Hi,
But the loaded swf its in AS2, so the swfLoader file cant access the variables in swfLoaded file and vice-versa, right?
Álvaro

Taka Kojima escreveu:
Appending arguments to the end of a swf file acts the same as setting
FlashVars.

So, I take it you are trying to pass an id to the loaded in sub swf?

Another way to go about it would be to wait until it loads, and then access
the contents of the subloaded swf and set variables that way.

Or you can just use a static var like MyApp.varName = value; and then the
subloaded swf can check for MyApp.varName

- Taka

On Mon, Sep 14, 2009 at 11:48 AM, Ian Thomas <i...@eirias.net> wrote:

Don't use query strings?

Seriously - local file names on files systems don't take query
strings. You don't have any files called C:\windows\test.exe?id=33, do
you?

To make a query string work, you need to route the call through an HTTP
server.

Sounds like you're trying to avoid caching? But I'm not clear why
you'd want to avoid caching a local, non-dynamic file...

Ian

On Mon, Sep 14, 2009 at 7:16 PM, Álvaro Saraiva <alv...@glups.pt> wrote:
Hi everyone,
I have a strange problem loading external assets from local files with
Loader() Class in AS3.
If i use query string in the file name, the asset don't loads.

This code doesnt load the swf file inside a class
this.mySWFLoader = new Loader();
this.mySWFLoader.contentLoaderInfo.addEventListener(Event.INIT,
displaySwfContainer );
this.mySWFLoader.load(new URLRequest("my_swf.swf?id=33"));

if i dont use the '?id=33' it works.

Any suggestions?
Thanxs in advance,
Álvaro




_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to