The main thing on this is if I load in a flash 9 cs3 swf with a textarea created.

var t:TextArea;

I then try and reference this same text area from flex

var text:TextArea = myflashmovie.myClass.getText();

This would create a compiler error as the textarea would be the flex framework and the flash textarea would be the flash components. Not the same object. (This is an assumption as I dont have flash 9 cs3).

Of course you can make a wrapper around the textarea object to return only the data you want such as a string, etc. But this is just an extra pain.

As an example something in the flex framework's text area has methods that are not in the flash text area. Now you have to write code to accomodate for this.

Does this make sense?

Best, Austin


Muzak wrote:
I mainly just want to be able to access components such as a text area and have it work in flex and flash and not have to worry about the kind of text area I'm using if its flex or flash. They should both be able to work together. Or a simple component such as a button, they should be
recognized the same while calling it in flash or flex.

   If not, I can see major pains between the two.

Not really, all you need is a class associated with the loaded swf that Flex can communicate with, as I explained in my previous post.

It would be nice if there is some brilliant workflow integration to handle this point. Otherwise we'll need to make an Interface for
every flex to flash movie which is probably better structure wise, but what if 
we want to return objects from one framework to the
next. Might bring up issues such as a text area from flash or flex.


Not sure where the Interface idea came from, but you don't need an Interface to 
work with Classes.
What exaclty do you mean with "return objects".. you mean data, as in Array, 
ArrayCollection?
If so, with a class associated with the loaded swf that should be a walk in the 
park.

regards,
Muzak


_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to