Re: [Flashcoders] Flash 9 CS 3 and Flex framework

2007-04-05 Thread Muzak
The way I see it the following is just bad OOP:

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

regards,
Muzak

- Original Message - 
From: Austin Kottke [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Thursday, April 05, 2007 4:23 AM
Subject: Re: [Flashcoders] Flash 9 CS 3 and Flex framework


 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


___
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


RE: [Flashcoders] Flash 9 CS 3 and Flex framework

2007-04-04 Thread David Mendels
Hello,

I am not sure I understand your question perfectly.  If you are asking:
Will I be able to create components in Flash CS3 and then use them
inside a Flex application?, then answer is YES.  We are working on some
things that will make this much easier, in the relatively near term.

-David 
Adobe

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Austin
Kottke
Sent: Wednesday, April 04, 2007 5:01 PM
To: Flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Flash 9 CS 3 and Flex framework

Does anyone know if you're going to be able to call flash 9 CS3
components from flex? Ala accessing a button component in flash 9 cs3 on
the stage with the flex framework?

That way if you load in a flash 9 cs3 movie you can access the rest of
the component set such as a datagrid component made in flash 9 cs3?

Best,

Austin
___
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


Re: [Flashcoders] Flash 9 CS 3 and Flex framework

2007-04-04 Thread Austin Kottke

Thanks David,

   That helps, however, I meant more of a workflow, like create the 
animation in flash cs3 and
the animation has certain flash components in it, such as a datagrid at 
the end of the last frame
or the flash animation has a few buttons in it on the side, along with 
other types such as a textarea.


   I would want to be able to reference these buttons and components 
from flex ideally or have
some really nice work flow that would allow via as3 to reference those 
components. That way
I can make some re-usable animations and use flex for the main 
structure, but have all of the animation
power needed (this includes having buttons, comboboxes, made in flash 
cs3) directly accessible

through flex.

   I bring this up as I had thought that there would be a problem with 
flash 9 cs3 NOT using the flex framework
directly and the different types of buttons, datagrids would be an 
entirely different set of code made specifically
for flash 9 cs3 (ie the datagrid in cs3 is not the same datagrid as 
flex). Im not

totally tracking on adobe's plan to handle this issue.

   I'm just trying to see what the plan on the workflow integration 
between the to. The data on flash 9 cs3 is a bit

general on this point so I want to get this clarified.

Best,

Austin

David Mendels wrote:

Hello,

I am not sure I understand your question perfectly.  If you are asking:
Will I be able to create components in Flash CS3 and then use them
inside a Flex application?, then answer is YES.  We are working on some
things that will make this much easier, in the relatively near term.

-David 
Adobe


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Austin
Kottke
Sent: Wednesday, April 04, 2007 5:01 PM
To: Flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Flash 9 CS 3 and Flex framework

Does anyone know if you're going to be able to call flash 9 CS3
components from flex? Ala accessing a button component in flash 9 cs3 on
the stage with the flex framework?

That way if you load in a flash 9 cs3 movie you can access the rest of
the component set such as a datagrid component made in flash 9 cs3?

Best,

Austin
___
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

  


___
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


Re: [Flashcoders] Flash 9 CS 3 and Flex framework

2007-04-04 Thread Muzak
Even if this will be possible, you probably should think about separating 
animation from non-animated visual elements 
(ui-components).
Why bring in a different framework if Flex already has one?

fl.controls.Button (CS3)
vs
mx.controls.Button (Flex)

Different package, but the same Button though.

In any way, your Flex app probably shouldn't be *talking* to assets inside a 
loaded swf (Flash or otherwise) directly anyway.
The loaded swf should have its own class and handle things independant and 
dispatch events when needed to communicate to the outside 
(Flash -- Flex) and have public methods to allow communication in the other 
direction (Flex -- Flash).
So I think the more important question is, will events dispatched from an FCS3 
swf loaded in an Flex app be captured, or in other 
words, if a FCS3 swf has a (document) class associated with it, will Flex 
recognize it.
My guess is that this is what they're currently (or have been) focusing on ;-)

Right now the communication between Flex and a loaded (flash 8) swf is 
established through a LocalConnection.
I guess we'll just have to wait and see ;-)

regards,
Muzak

- Original Message - 
From: Austin Kottke [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Wednesday, April 04, 2007 11:56 PM
Subject: Re: [Flashcoders] Flash 9 CS 3 and Flex framework


 Thanks David,

That helps, however, I meant more of a workflow, like create the animation 
 in flash cs3 and
 the animation has certain flash components in it, such as a datagrid at the 
 end of the last frame
 or the flash animation has a few buttons in it on the side, along with other 
 types such as a textarea.

I would want to be able to reference these buttons and components from 
 flex ideally or have
 some really nice work flow that would allow via as3 to reference those 
 components. That way
 I can make some re-usable animations and use flex for the main structure, but 
 have all of the animation
 power needed (this includes having buttons, comboboxes, made in flash cs3) 
 directly accessible
 through flex.

I bring this up as I had thought that there would be a problem with flash 
 9 cs3 NOT using the flex framework
 directly and the different types of buttons, datagrids would be an entirely 
 different set of code made specifically
 for flash 9 cs3 (ie the datagrid in cs3 is not the same datagrid as flex). Im 
 not
 totally tracking on adobe's plan to handle this issue.

I'm just trying to see what the plan on the workflow integration between 
 the to. The data on flash 9 cs3 is a bit
 general on this point so I want to get this clarified.

 Best,

 Austin


___
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


Re: [Flashcoders] Flash 9 CS 3 and Flex framework

2007-04-04 Thread Austin Kottke

Muzak,

   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.

   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.
 
   Best, Austin


Muzak wrote:
Even if this will be possible, you probably should think about separating animation from non-animated visual elements 
(ui-components).

Why bring in a different framework if Flex already has one?

fl.controls.Button (CS3)
vs
mx.controls.Button (Flex)

Different package, but the same Button though.

In any way, your Flex app probably shouldn't be *talking* to assets inside a 
loaded swf (Flash or otherwise) directly anyway.
The loaded swf should have its own class and handle things independant and dispatch events when needed to communicate to the outside 
(Flash -- Flex) and have public methods to allow communication in the other direction (Flex -- Flash).
So I think the more important question is, will events dispatched from an FCS3 swf loaded in an Flex app be captured, or in other 
words, if a FCS3 swf has a (document) class associated with it, will Flex recognize it.

My guess is that this is what they're currently (or have been) focusing on ;-)

Right now the communication between Flex and a loaded (flash 8) swf is 
established through a LocalConnection.
I guess we'll just have to wait and see ;-)

regards,
Muzak

- Original Message - 
From: Austin Kottke [EMAIL PROTECTED]

To: flashcoders@chattyfig.figleaf.com
Sent: Wednesday, April 04, 2007 11:56 PM
Subject: Re: [Flashcoders] Flash 9 CS 3 and Flex framework


  

Thanks David,

   That helps, however, I meant more of a workflow, like create the animation 
in flash cs3 and
the animation has certain flash components in it, such as a datagrid at the end 
of the last frame
or the flash animation has a few buttons in it on the side, along with other 
types such as a textarea.

   I would want to be able to reference these buttons and components from flex 
ideally or have
some really nice work flow that would allow via as3 to reference those 
components. That way
I can make some re-usable animations and use flex for the main structure, but 
have all of the animation
power needed (this includes having buttons, comboboxes, made in flash cs3) 
directly accessible
through flex.

   I bring this up as I had thought that there would be a problem with flash 9 
cs3 NOT using the flex framework
directly and the different types of buttons, datagrids would be an entirely 
different set of code made specifically
for flash 9 cs3 (ie the datagrid in cs3 is not the same datagrid as flex). Im 
not
totally tracking on adobe's plan to handle this issue.

   I'm just trying to see what the plan on the workflow integration between the 
to. The data on flash 9 cs3 is a bit
general on this point so I want to get this clarified.

Best,

Austin




___
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


Re: [Flashcoders] Flash 9 CS 3 and Flex framework

2007-04-04 Thread Muzak
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


Re: [Flashcoders] Flash 9 CS 3 and Flex framework

2007-04-04 Thread Austin Kottke
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