![]() |
![]() |
||||||
|
|||||||
| Tags: |
![]() |
|
|||
|
I don't even know if this is possible, but here goes...
I have a flash movie that has a button in it. I have a flex app that the flash movie is in along with a label. When I press the button in my flash movie, I want my flex label.text to say WOOHOO IT WORKED!!!! I have no clue how to even start doing this, or if it is even possible. My eventual goal is to have a map of the USA in flash that when the user clicks a state it does something in Flex |
| Sponsored Links |
|
|||
|
Sure this is possible. There're lots of ways you can do it. The very strait
forward way is to compile your FLA into SWC (check this option in the publish settings) and than use that SWC in your Flex project. You can also embed the compiled SWF or load it and do with it whatever you want. |
|
|||
|
"cputnam14" <webforumsuser@macromedia.com> wrote in message news:gcj2u0$fc$1@forums.macromedia.com... >I don't even know if this is possible, but here goes... > I have a flash movie that has a button in it. > > I have a flex app that the flash movie is in along with a label. > > When I press the button in my flash movie, I want my flex label.text to > say > WOOHOO IT WORKED!!!! > > I have no clue how to even start doing this, or if it is even possible. > > > My eventual goal is to have a map of the USA in flash that when the user > clicks a state it does something in Flex Would this help? http://flexlib.googlecode.com/svn/tr...Map_Sample.swf |
|
|||
|
Another possibility to investigate is the LocalConnection object of the Flash
Player which allow two SWFs on the same page to communicate: http://livedocs.adobe.com/flex/2/lan...onnection.html My preferred way would really be the Flex Component Kit for Flash as Luigi pointed out. |
|
|||
|
After looking through lots of stuff on the flash component kit...thats what I
went with. I converted each state to a movie clip, and copied it 3 times. I changed the color for each one... I published my swc file and now I have my button skins. Everything works great. Thanks for the help folks |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
- Contact Us
-|-
Adobe Dreamweaver Forums -|-
Archive -|-
Top -|-Rules/Disclaimer-|-Help/Support-|-Advertise