Author Message

Posted: Wed Jul 07, 2010 10:47 am   Post subject: Trouble with AS3 sample

I am trying the AS3 sample in as2player_simplest_example.fla, but can not get it to work.

I have investigated a little bit, and it seems that it fails to load in the load() function in the PresentationLoader.as.

Exactly what I have figured out is:

Code:
public function load(request:URLRequest, securityDomain:SecurityDomain = null):void
{
   unload();
   
   m_commandConnectionName = null;
   m_eventConnectionName = null;
   
   var loaderContext:LoaderContext = new LoaderContext(false, null, securityDomain);
   
   var vars:URLVariables = URLVariables(request.data);
   
   if (vars == null)
   {
      vars = new URLVariables();
      request.data = vars;
   }

   vars.commandConnectionName = commandConnectionName;
   vars.eventConnectionName = eventConnectionName;
   
   m_loader.load(request, loaderContext);
   
}



This does not load at all, and I get Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.

If i comment out the line:
Code:
request.data = vars;


then the sample loads the presentation1.swf, but the buttons will not work.

What is going on?


Profile profile test

Posted: Wed Jul 07, 2010 6:01 pm   Post subject: Re: Trouble with AS3 sample

Please launch the sample using web browser


Profile profile test WWW www ICQ ICQ
Display posts from previous:  Sort by  

  


Who is online
Who is online In total there are 6 users online :: 1 registered, 0 hidden and 5 guests (based on users active over the past 5 minutes)
Most users ever online was 108 on Thu Nov 21, 2013 3:41 pm

Registered users: Bing [Bot]


cron