Re: [flexcoders] Can I use Flash Library items in Flex, if so, how?

2007-03-13 Thread greg h

True to Dave Mendels' post about Adobe's working on making Flex/Flash
workflow easier, yesterday Grant Skinner posted the slides from his
presentation last week at 360 Flex.

Grant's presentation was entitled:  Flex Loves Flash? Embed and Beyond!

Blog post here:
http://www.gskinner.com/blog/archives/2007/03/flex_loves_flas.html

Actual presentation slides here:
http://gskinner.com/talks/flexlovesflash/

fyi ... in the presentation's opening notes regarding "Who am I?", Grant
wrote "working with Adobe on Flex/Flash workflow" and "architected and
developed v3 components".  Under "What this talk is about?" he wrote "I'd
also like to get people thinking, and solicit feedback."

Grant's blog entry concludes with:

Over the next few days I will release some of the code I showed, and blog
about a couple of the more important topics, like Shake and Bake swfs.
You'll have to wait for some of the more advanced pieces until after Flash
CS3 ships though.

Above all, I want to get people thinking about this topic. Flex applications
are so much cooler when Flash is involved in the workflow. If you have any
tips or ideas on enhancing this workflow, please feel free to leave them in
the comments.

hth,

g

On 3/4/07, David Mendels <[EMAIL PROTECTED]> wrote:


 Hello,

BTW, we are looking to make this workflow much easier in the releases of
Flash Professional and FlexBuilder this year.

-David



RE: [flexcoders] Can I use Flash Library items in Flex, if so, how?

2007-03-04 Thread David Mendels
Hello,
 
BTW, we are looking to make this workflow much easier in the releases of
Flash Professional and FlexBuilder this year.
 
-David



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of greg h
Sent: Sunday, March 04, 2007 7:02 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Can I use Flash Library items in Flex, if so,
how?



Mark,

I have had success making calls to my AS3 SWFs  compiled in Flash using
the Flash Professional 9 ActionScript 3.0 Preview
<http://labs.adobe.com/technologies/flash9as3preview/> .

The "Flash Professional 9 ActionScript 3.0 Preview" has been public for
over 8 months.  I say shame on Adobe for publishing nothing on how to
integrate Flash authored AS3 SWFs into Flex 2 apps.  Nothing.

But huge thanks to Jesse Warden.  If you have not already, please review
the following 2 posts by Jesse on the topic.  Note:  the first link
includes downloadable code.  It has been a few weeks since I was in
either Jesse or my code.  I do recall that in the first article Jesse
documented a few requirements that I had not seen elsewhere and likely
never would have guessed.

Flash 9 Button in Flex 2, August 27, 2006
http://www.jessewarden.com/archives/2006/08/flash_9_button.html
<http://www.jessewarden.com/archives/2006/08/flash_9_button.html> 

Integrating a Flash Interface into Flex 2, December 17, 2006
http://www.jessewarden.com/archives/2006/12/integrating_a_f.html
<http://www.jessewarden.com/archives/2006/12/integrating_a_f.html> 

If you are still unable to accomplish what you need to after reviewing
Jesse's posts, please post back and I will go into the code and see if I
can provide you a walkthrough.

Of course, please also post back if you do succeed in getting your Flash
authored AS3 SWFs working in Flex 2.

 hth,

 g


On 3/3/07, Mark <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> >
wrote: 

I'm trying to load a flash 9 SWF into Flex with some luck.  I
can
get it in there with SWFLoader but now how can I use something
from
the Flash Library... or can I?

I get this error when I run the code below "ReferenceError:
Error 
#1065: Variable Radar is not defined."  But when I "Dismiss All"
then click the button in the app it will move the radar
movieClip
that sits on the Flash Stage.  I'm confused as to what this
error is. 

For the library item - If it was being done in Flash, I'd use
attachMovie () like:

var cPoint:MovieClip = circle.attachMovie(pointer, 'point' +
counter, 0 + counter, {_x:centerX + x, _y:centerY + y,
date:cDate}); 

which would place the item on the stage as many times as I need
it
depending on the number of nodes from my XML.  Is there a way to
do
this in Flex using my loaded SWF?

 
http://www.adobe.com/2006/mxml
<http://www.adobe.com/2006/mxml> "
layout="absolute" creationComplete="init(event)">



 




 


Re: [flexcoders] Can I use Flash Library items in Flex, if so, how?

2007-03-04 Thread greg h

Mark,

I have had success making calls to my AS3 SWFs  compiled in Flash
using the Flash
Professional 9 ActionScript 3.0
Preview
.

The "Flash Professional 9 ActionScript 3.0 Preview" has been public for over
8 months.  I say shame on Adobe for publishing nothing on how to integrate
Flash authored AS3 SWFs into Flex 2 apps.  Nothing.

But huge thanks to Jesse Warden.  If you have not already, please review the
following 2 posts by Jesse on the topic.  Note:  the first link includes
downloadable code.  It has been a few weeks since I was in either Jesse or
my code.  I do recall that in the first article Jesse documented a few
requirements that I had not seen elsewhere and likely never would have
guessed.

Flash 9 Button in Flex 2, August 27, 2006
http://www.jessewarden.com/archives/2006/08/flash_9_button.html

Integrating a Flash Interface into Flex 2, December 17, 2006
http://www.jessewarden.com/archives/2006/12/integrating_a_f.html

If you are still unable to accomplish what you need to after reviewing
Jesse's posts, please post back and I will go into the code and see if I can
provide you a walkthrough.

Of course, please also post back if you do succeed in getting your Flash
authored AS3 SWFs working in Flex 2.

hth,

g

On 3/3/07, Mark <[EMAIL PROTECTED]> wrote:


I'm trying to load a flash 9 SWF into Flex with some luck.  I can
get it in there with SWFLoader but now how can I use something from
the Flash Library… or can I?

I get this error when I run the code below "ReferenceError: Error
#1065: Variable Radar is not defined."  But when I "Dismiss All"
then click the button in the app it will move the radar movieClip
that sits on the Flash Stage.  I'm confused as to what this error is.

For the library item - If it was being done in Flash, I'd use
attachMovie () like:

var cPoint:MovieClip = circle.attachMovie(pointer, 'point' +
counter, 0 + counter, {_x:centerX + x, _y:centerY + y, date:cDate});

which would place the item on the stage as many times as I need it
depending on the number of nodes from my XML.  Is there a way to do
this in Flex using my loaded SWF?


http://www.adobe.com/2006/mxml";
layout="absolute" creationComplete="init(event)">