A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Embedded assets

  1. #1
    Member
    Join Date
    Oct 2000
    Posts
    37

    Embedded assets

    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:

    Code:
    [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

  2. #2
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    try this.stop();
    - The right of the People to create Flash movies shall not be infringed. -

  3. #3
    Member
    Join Date
    Oct 2000
    Posts
    37
    Thanks,

    however, that did not help

  4. #4
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    What does it give when you put trace(this); in one of the frames?
    - The right of the People to create Flash movies shall not be infringed. -

  5. #5
    Member
    Join Date
    Oct 2000
    Posts
    37
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center