A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: need help referencing main timeline

  1. #1
    Junior Member
    Join Date
    Jan 2007
    Posts
    5

    need help referencing main timeline

    Hi, this is my first post here in the forums. I have a movie clip on, lets say, frame 10 of the main timeline. Within the clip I've placed a button with the following code to bring me to a specific frame using labels on the main timeline.

    Code:
    on (release) { 
         _root.gotoAndStop("labeled frame"); 
    }
    Everything worked just fine until I created a preloader swf using the loader component and progressBar in Flash 8 and following the tutorial at: http://www.webwasp.co.uk/tutorials/b...s/tutorial.php

    In otherwords my original swf works just fine by itself but once I added the preloader which in turn loads the original swf file, the goto button within the movie clip no longer works.

    Any help is greatly appreciated.

  2. #2
    Can't Re-Member madzigian's Avatar
    Join Date
    Apr 2004
    Location
    Boston MA
    Posts
    2,662
    well. i've never used the loader component... i've always built my own preloaders....

    I'd suggest trying _lockroot to LOCK your root timeline... or try using _level0.gotoAndStop("labeled frame"); _level0 and _root are more or less the same... but when you run into problems using _root, swapping it for _level0 usually will solve the problem. If you're not familiar with _lockroot --> check your actionscript HELP files for details.
    Please DO NOT PM me simply for individual help. Post in the public forums...that's what they are for, and they allow others to benefit as well. - Thx
    OS X 10.3.9 || Flash MX04 Pro
    | del.icio.us || furl || Helpful Source Files || Free Pixel Fonts |

  3. #3
    Junior Member
    Join Date
    Jan 2007
    Posts
    5
    I got it, I tried the _level0 with no help, I wasn't sure what to do with _lockroot so I tried _parent and it worked ! Maybe _root is trying to take it back to the preload swf ???
    Thanks

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