This content has been marked as final. Show 3 replies
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:
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.
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.
then you're not loading an as3 swf.