AS3 - external content.
- Started
- Last post
- 5 Responses
- Fariska
Ok, with as3 you load external content via this new Loader thing. Fair enough.
Say i have a bunch of swfs to load. I do it via the loaders, and it's ok, but then, to access the timeline of the swf to play it i have to do myloader.content.play()
now, there is a way to strip the content from the loader and put it in a movieclip and/or sprite?
- thatblokemike0
myclip.addChild(myLoader.content as MovieClip);
don't forget to clean up your loader.
- maximillion_0
var myMC:MovieClip = new MovieClip(myloader.content);
sprites dont have timelines so cant be 'played' like a movieclip
- I know about spirtes. I was going to check the type of the loaded content and create the right container.Fariska
- Fariska0
I've tried something similar to the first solution but it didn't worked well, since i got a Movieclip with 1 frame and a MainTimeline Object in there which didn't respond to the play() command.
Anyway, thanks for that :-)
- maximillion_0
post yr code
- Fariska0
let me try before :-)