This content has been marked as final.
Show 3 replies
-
1. Re: check loaded SWF playback completion
kglad Nov 10, 2007 10:11 PM (in response to gravitycollapse)in as3, you don't load into a movieclip like you did with as2. you're loading into a loader.
to display your loaded swf, you add your loader to the display list. to access the properties, methods, functions, object and variables of your loaded swf, you reference your loader's content property. because the flash compiler has a severe short-term memory issue, you'll need to cast the loader's content as a movieclip. for example:
-
2. Re: check loaded SWF playback completion
gravitycollapse Nov 11, 2007 12:06 AM (in response to kglad)This sample code you gave me results in a type conversion error. It seems the content property of the loader cannot be converted to a MovieClip.
at flash.utils::Timer/flash.utils:Timer::tick()
TypeError: Error #1034: Echec de la contrainte de type : conversion de flash.display::AVM1Movie@31319641 en flash.display.MovieClip impossible
I've simplified my code a bit to use the displayList (got rid of my holder clip), but I still cannot call currentFrame on it. It just tells me it's not the right type of data. And, the clip shows and plays back fine. -
3. Re: check loaded SWF playback completion
kglad Nov 11, 2007 10:09 AM (in response to gravitycollapse)then you're not loading an as3 swf.


