-
[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
-
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.
-
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|