I do this all the time it works great. Couple notes:
you can use bubbling to dispatch Events up from the timeline to flex -
which is handy
focus sometimes can be tricky
Also set your publishing settings , uncheck declare stage instances,
you'll want to declare them
for safety, when defining a movieclip - make them public vars
Also, fonts you embed in stylesheets should have different names than
ones embedded in flash - or they won't display
This should save you time.
Cheers
Patrick
On Oct 11, 2007, at 9:23 AM, Alex Harui wrote:
should be doable. Note that you will be importing symbols/
components and not the entire swf.
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Stephen Roy J. Tang
Sent: Thursday, October 11, 2007 2:46 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Using Flex Component Kit for Flash CS3
Hi,
I've been looking at using the Flex Component Kit for Flash CS3 to
create animations for a Flex app.
What I need to consider is something like this: my app would have some
animated thingies on the screen that perform some animations based on
their states. Probably, I'll ask a Flash dev to do it right? Then he
can export to an SWC using the component kit. My understanding is that
I can then load the content of the SWC as MovieClip object in Flex and
do whatever I want with it.
My question now is: Can I have an irregularly shaped MovieClip? i.e.
if I create an SWF using flash, it has a rectangular background, but I
want the MovieClip to be just the animated thingy I create, and the
background to be transparent (so it appears on top of whatever other
flex objects in my flex app)
I haven't been able to try this myself (I'm still downloading the
Flash CS3 trial so I can try it out); I just thought I'd ask here to
see if anyone knew. I'm not even sure if this is the correct forum to
ask as I suppose it might be more of a Flash-related question than a
Flex one? (I don't know if you can set transparent background in
flash)
Any advice?
Thanks,
Roy