by cogloch » February 5th, 2013, 10:35 pm
by ASH1138 » February 6th, 2013, 9:06 am
cogloch wrote:I've tried both simpleRegister and simpleConnect, and both return Error #2032: Stream Error. URL: http://api.playerio.com/api/403, missing game id. But the game id is there, I triple checked it, and it's there. I've uploaded the serverside code so I don't think that's the problem. If it's any relevant I'm using starling, therefore I don't have direct access to the native stage. Any help?
by Benjaminsen » February 6th, 2013, 10:49 am
cogloch wrote:I've tried both simpleRegister and simpleConnect, and both return Error #2032: Stream Error. URL: http://api.playerio.com/api/403, missing game id. But the game id is there, I triple checked it, and it's there. I've uploaded the serverside code so I don't think that's the problem. If it's any relevant I'm using starling, therefore I don't have direct access to the native stage. Any help?
by cogloch » February 6th, 2013, 8:09 pm
ASH1138 wrote:I think you must rebuild everything on the game menu page.
Benjaminsen wrote:Post some code
PlayerIO.quickConnect.simpleRegister(
Starling.current.nativeStage,
"secret for whatever reason",
_user.text,
_pass.text,
_email.text,
null,
null,
{faction: _faction},
null,
function(client:Client):void{
trace("Yay");
},function(e:PlayerIOError):void{
trace("Got", e) //Error #2032: Stream Error. URL: http://api.playerio.com/api/403
});
by ASH1138 » February 9th, 2013, 8:00 am
by cogloch » February 10th, 2013, 7:52 pm
ASH1138 wrote:aha. I solved your problem.
native stage refers to the stage3D vector stage overlay and not the real flash stage.
Place the connect code on a movieclip class, add it to the stage and then call connect(root.stage), will solve it.
public class Login extends flash.display.MovieClip
{
public function attemptLogin():void
{
PlayerIO.quickConnect.simpleConnect(
root.stage,
//...
);
}
}
public class Main extends starling.display.Sprite
{
var _login:Login = new Login();
Starling.current.nativeOverlay.addChild(_login); //if I do simply addChild(_login) then I get e 1067: Implicit coercion...
_login.attemptLogin(); //same thing
}
by ASH1138 » February 11th, 2013, 8:59 am
cogloch wrote:ASH1138 wrote:aha. I solved your problem.
native stage refers to the stage3D vector stage overlay and not the real flash stage.
Place the connect code on a movieclip class, add it to the stage and then call connect(root.stage), will solve it.
- Code: Select all
public class Login extends flash.display.MovieClip
{
public function attemptLogin():void
{
PlayerIO.quickConnect.simpleConnect(
root.stage,
//...
);
}
}
- Code: Select all
public class Main extends starling.display.Sprite
{
var _login:Login = new Login();
Starling.current.nativeOverlay.addChild(_login); //if I do simply addChild(_login) then I get e 1067: Implicit coercion...
_login.attemptLogin(); //same thing
}
So that doesn't work either, or maybe I'm doing something wrong. Please tell me it's the second one.
by cogloch » February 11th, 2013, 1:46 pm
ASH1138 wrote:i dont know how feathers work, but why are you using it for your game menu especially when the perfromance of the menu is never important?