If you let the compiler generate a resource class for you, it generates
a class derived from Sprite (which does not support animation). I think
this is a bug, it should probably look to see if there are multiple
frames to make this choice or something.
If you embed at the class level, you can control the base class.
// MyTest.as
package
{
import flash.display.MovieClip;
[Embed(source="test.swf")]
public class MyTest extends MovieClip {}
}
Now, if you do Embed, we can't guarantee that older bytecode will run.
In fact, we'll be stripping it out at some point.
If you dynamically load the other SWF, then the bytecode inside will
run, but you're fairly limited in communication between the two virtual
machines.
-rg
> -----Original Message-----
> From: [email protected]
> [mailto:[EMAIL PROTECTED] On Behalf Of riskyseven
> Sent: Monday, March 20, 2006 12:55 PM
> To: [email protected]
> Subject: [flexcoders] Flash within Flex?
>
> I am very new to Flex, and only working in Flex 2.0 Beta 1. What are
> the limitations for embedding a flash swf in flex? It seems
> if I embed
> the swf as an image, it only shows/plays frame 1 of the
> embedded swf.
> Supposing I get past this, can you get access to the embedded swf's
> actionscript/variables? Thanks.
>
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>
>
>
>
>
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/