Adobe Dreamweaver Forums



Last 10 THreads :         Problem with customized UIScrollBar component (Last Post : driscollwebdev - Replies : 0 - Views : 1 )           »          Flash Controls Not Displaying in Embedded File (Last Post : QADesign - Replies : 0 - Views : 1 )           »          CS3 - Export/Save as vector file??? (Last Post : Linda Rathgeber - Replies : 9 - Views : 10 )           »          Undesired offset with Flash object (Last Post : Lonesome61 - Replies : 0 - Views : 1 )           »          Dreamweaver CS4 Beginner (Last Post : catwoman - Replies : 0 - Views : 3 )           »          Conditional Tags Gone Wild (Last Post : HydroModeler - Replies : 0 - Views : 1 )           »          audio (Last Post : SPScreate - Replies : 4 - Views : 5 )           »          Quiz communication to SumTotal LMS (Last Post : roxlwood - Replies : 6 - Views : 7 )           »          How to turn IMAGE into MOVIECLIP??? (Last Post : Greg Lafrance - Replies : 6 - Views : 7 )           »          flash movies load 100% but don't play all the waythrough (Last Post : kglad - Replies : 6 - Views : 7 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Flex
 
Tags:



Reply
  #1 (permalink)  
Old 10-31-2008, 06:25 PM
cputnam14
 
Posts: n/a
Diggs:
Default Talking to Flex from Flash

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



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 10-31-2008, 06:25 PM
wvxvw
 
Posts: n/a
Diggs:
Default Re: Talking to Flex from Flash

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.

Reply With Quote
  #3 (permalink)  
Old 10-31-2008, 06:25 PM
LuigiL
 
Posts: n/a
Diggs:
Default Re: Talking to Flex from Flash

You should really investigate the Flash Component Kit For Flex
Reply With Quote


  #4 (permalink)  
Old 10-31-2008, 06:25 PM
Amy Blankenship
 
Posts: n/a
Diggs:
Default Re: Talking to Flex from Flash


"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


Reply With Quote
  #5 (permalink)  
Old 10-31-2008, 06:25 PM
Karl_Sigiscar_1971
 
Posts: n/a
Diggs:
Default Re: Talking to Flex from Flash

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.


Reply With Quote
  #6 (permalink)  
Old 10-31-2008, 06:27 PM
cputnam14
 
Posts: n/a
Diggs:
Default Re: Talking to Flex from Flash

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

Reply With Quote


Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 10:03 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Cheap Car Insurance - Compare Motor Insurance
Endsleigh Car Insurance Natwest Car Insurance
More Than Car Insurance Norwich Union Car Insurance
Prudential Car Insurance Zurich Car Insurance
Inactive Reminders By Mished.co.uk