This content has been marked as final. Show 4 replies
Thee are issues using flash Player 8 (AS2) swfs inside a Flex 2 FlashPlayer 9 (AS3). Specifically, communication must be via localConnection.
Google this for lots more info.
This is how I incorporated mine.
First I created a SWFLoader component in a folder I called 'view' with the following code...
<?xml version="1.0" encoding="utf-8"?>
<!-- FlashIntroSWFLoader.mxml Component(Version 184.108.40.206[Build 2.13.07]) -->
<!-- No known bugs -->
Note: You'll need to set the properties according to your needs.
Then I placed an instance of the component in my Main.mxml code with the following code...
Note: You can not set the ID property directly inside the component. Instead you set the ID property inside the instance of the component. I hope I am saying this right! :) Also be sure to set the source URL to point to your .swf file.
The LAST thing to do is to add the following to the opening Application tag of your Main.mxml, or the opening tag of another component if the instance is being placed in that component.
Note: You'll need to change the namespace above according to your folder structure.
I do not have any issues whatsoever with loading my flash intro, which I created in Flash 8, into Flex 2.
Please let me know if this helps!
hey john, i dont have any problems with loading the swf file, im wondering it it would be possibly to destroy/kill/ unload? it after it finishes playing?
the following swf embedding techniques work aswell
never mind, ugh silly me