-
1. Re: LocalConnection works when it should fail
kglad Apr 15, 2012 7:19 AM (in response to theErez)show your localconnetion code (only) including your statusevent listener.
-
2. Re: LocalConnection works when it should fail
theErez Apr 15, 2012 7:41 AM (in response to kglad)there you go:
protected function onEnterFrame(event:Event):void
{
removeEventListener(Event.ENTER_FRAME, onEnterFrame);
...
var conn:LocalConnection = new LocalConnection();
conn.addEventListener(StatusEvent.STATUS,onLCStatus);
conn.connect("toolbarCheck");
conn.send("toolbarCheck","checkForToolbar");
}
private function onLCStatus(event:StatusEvent):void
{
if (event.level == "error")
{
// display message
}
else
{
// keep on going...
}
}
and as i mentioned - at this point, there isn't any other swf which handles this call
-
3. Re: LocalConnection works when it should fail
kglad Apr 15, 2012 1:04 PM (in response to theErez)use:
protected function onEnterFrame(event:Event):void
{
removeEventListener(Event.ENTER_FRAME, onEnterFrame);
...
var conn:LocalConnection = new LocalConnection();
conn.addEventListener(StatusEvent.STATUS,onLCStatus);
//conn.connect("toolbarCheck");
conn.send("toolbarCheck","checkForToolbar");
}
private function onLCStatus(event:StatusEvent):void
{
if (event.level == "error")
{
// display message
}
else
{
// keep on going...
}
}