A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Attachmovie to timeline from library

  1. #1
    Junior Member
    Join Date
    Jun 2003

    Attachmovie to timeline from library

    ok... what i have is a button which i want to attach a movie to a blank MC in my main timeline, the movie i am attaching is in the library. I exported it for AS and everything, then i wrote this actionscript:
    on (press) {_root.thing.attachMovie("Float", "float1", 1);

    I also tried:
    on (press) {thing.attachMovie("Float", "float1", 1);

    And lastly, i tried each one with on (release) just in case.

    Can someone help me out here, thing is the blank MC in the timeline, and Float is the MC i am attaching to thing from the library

  2. #2
    Senior Member
    Join Date
    Apr 2003
    Santa Barbara
    The clip may not be available at the time you are calling it....I don't know what frame you are calling the attachMovie function from, but if it's frame #1 then you will also need to tell the clip to be available in frame #1 (using the linkage property items, IE export to frame #1).

    Maybe that will help,

    - Jeff
    Small minds talk about people, Average minds talk about events, Great minds talk about ideas.

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