;

PDA

Click to See Complete Forum and Search --> : Embedded assets


sambo
09-04-2006, 01:43 PM
Hi,

I am using Flash 9 IDE to create assets for Actionscript projects that I build in Flex Builder 2. I am not creating Flex applications - just plain Actionscript projects. I am able to embed assets easily like this:



[Embed(source="embedded_assets/Library.swf", symbol="Plotter")]
private var Plotter:Class;




And I can add the "Plotter" symbol from the library to the display list.

What is not working is stop(); actions in the Plotter symbol. Plotter is an animated symbol that has a stop(); action on the last frame. That actions is simply ignored.

I read somewhere that Flex Builder stripped out timeline code from embedded assets. Is that correct?

Sammi

cancerinform
09-04-2006, 04:21 PM
try this.stop();

sambo
09-04-2006, 04:40 PM
Thanks,

however, that did not help :(

cancerinform
09-04-2006, 08:00 PM
What does it give when you put trace(this); in one of the frames?

sambo
09-05-2006, 06:37 AM
Hi,

it doesn't trace. That is because the compiler strippes out all code as I read about in an article on this page:

http://www.jessewarden.com/

Check the Flash 9 button in Flex article.

Thanks anyway.
Sammi