controlling main timeline from loaded swf.
A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: controlling main timeline from loaded swf.

  1. #1
    Member
    Join Date
    Jan 2001
    Posts
    42

    controlling main timeline from loaded swf.

    I have a index.swf loaded into a level on my main timeline.

    loadMovieNum (index.swf, 2)

    This loades fine. I need the index.swf to stop the main timeline it is loaded in. this is the code i have used before and it worked, this time it does not.

    on (release) {
    _root.level0.stop();
    }

    Please help. thanks

    Dawn

  2. #2
    Mod cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,433
    on (release) {
    level0.stop();
    }

    _root refers to the childmovie timeline and level0 refers to the parent movie timeline.
    - The right of the People to create Flash movies shall not be infringed. -
    | www.Flashscript.biz | Flashscript Biz Classes/Components |

  3. #3
    Member
    Join Date
    Jan 2001
    Posts
    42

    i tried that

    I have used that code and it still does not work. Any other ideas?

  4. #4
    Senior Member
    Join Date
    Feb 2003
    Location
    miami
    Posts
    540
    take it to a keyframe label that has a stop() action.

    _level0.gotoAndPlay("stop");

  5. #5
    Member
    Join Date
    Jan 2001
    Posts
    42
    It seems like it is not communicating with the main timeline. nothing works.
    Does it matter what level it is on? it is being loaded through an action script on the first key frame of the main timeline.

    Has anyone else had problems with flash mx actionscripting not working or not being consistant. sometimes it works.

  6. #6
    Senior Member
    Join Date
    Feb 2003
    Location
    miami
    Posts
    540
    make sure you publish (Ctrl + Enter) both movies eveytime you make changes to them.

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

Poll by Flashkit.com