I guess the swf that you are trying to load using SWFLoader is
published using flash player 8 that is AVM1.
You can only load the AVM1 contents in mxml but can not access its
code or variables from the mxml application,
as it uses flash player 9 that is AVM2 to run the swf created using
mxml.
>From flex docs : "You can embed SWF files created for Flash Player 8
and earlier. When embedded, your Flex 2 application cannot interact
with the embedded SWF file. That is, you cannot use ActionScript in a
Flex 2 application to access the properties or methods of a SWF file
created for Flash Player 8 or earlier"
Hence you are getting error " Type Coercion failed: cannot convert
flash.display::AVM1Movie@1cfa30f9 to flash.display.MovieClip." as the
implementation of movieClip class in as2 is different from as3.
You can read the docs http://livedocs.adobe.com/flex/2/langref/migration.html
Regards
PS ε
http://livedocs.adobe.com/flex/2/langref/migration.html
| senocular | 09-25-2006 04:01 PM |