A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: [F8] button actionscript help

  1. #1
    Junior Member
    Join Date
    Nov 2006
    Posts
    8

    [F8] button actionscript help

    hey guys, im having trouble with this code here with the buttons, the buttons are movieclips with this action script applied inside. But i dont want it to goto an external link, more so, id like it to goto frame 55, or frame label redgallery in my movie which is index.swf

    here is the original code, i just want to replace the geturl with "gotoandstop blah blah blah frame 55 or framelabel redgallery"

    but when i put that in it doesnt work out for me

    here is the original script given by the tutorial site..

    Code:
    stop ();
    this.onEnterFrame = function(){
    if(rewind == true){
    prevFrame();
    }
    }
    this.onRollOver = function(){
    rewind = false;
    play();
    }
    this.onRollOut = function(){
    rewind = true;
    }
    this.onRelease = function(){
    getURL("http://www.toxiclab.org");
    }
    here is what im trying, but doesnt work...
    Code:
    stop ();
    this.onEnterFrame = function(){
    if(rewind == true){
    prevFrame();
    }
    }
    this.onRollOver = function(){
    rewind = false;
    play();
    }
    this.onRollOut = function(){
    rewind = true;
    }
    this.onRelease = function() {
    gotoAndStop(55);
    
    }
    version
    flash 8 proffesional
    thnx in advance!
    Last edited by mu0p; 11-09-2006 at 11:12 PM. Reason: misspell

  2. #2
    Senior Member
    Join Date
    Apr 2005
    Location
    FL, USA
    Posts
    442
    Probably a scope issue. Try _root.gotoAndStop(55); or _parent.gotoAndStop(55); if you're trying to control the main timeline from a button MC.

  3. #3
    Junior Member
    Join Date
    Nov 2006
    Posts
    8
    perfect!
    that worked!


    thanks alot!

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