info on loader:
http://livedocs.macromedia.com/labs/as3preview/langref/flash/display/Loader.html
or
http://livedocs.macromedia.com/flex/2/langref/flash/display/Loader.html

http://livedocs.macromedia.com/labs/as3preview/langref/flash/display/LoaderInfo.html

If you load a v8 swf in v9 it becomes an AVM1Movie
http://livedocs.macromedia.com/labs/as3preview/langref/flash/display/AVM1Movie.html
You do not have full control over an AVM1Movie, control is very limited.
If I'm not mistaken, you can't control its timeline.

The reason the trace returns null, is because nothing is loaded yet.
You'll need to use events to determine when content is loaded (see examples in 
the docs)

regards,
Muzak

----- Original Message ----- 
From: "Dave Geurts" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" <flashcoders@chattyfig.figleaf.com>
Sent: Wednesday, October 18, 2006 10:31 PM
Subject: [Flashcoders] AS 3.0 - Loader.load() a .swf and than control it


I am a little confused with loading media into the loader object.

I can load a swf in fine but than how do you control that swf's timline? I 
think that the swf gets loaded into a loader object, that 
has a display container? Im a little lost with the loader object concept.


I assumend it would be loader.getChildAt(0)

i saw loader.content in there but not sure what that does.

-------
var introLoader:Loader = new Loader();

var request:URLRequest = new URLRequest("intro.swf");
introLoader.load(request);


trace(introLoader.content);
---------------
Intro loads fine and starts playing
Trace returns null

Another question is can you load in a .swf that was compiled in 2.0 even if it 
has no AS in it and control its timeline?


thanks for your time!

-Dave




_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to