View Full Version : appling a 'go forward x amount of frames' action to a button can it b done?
hoobus
January 9th, 2005, 04:56 AM
i've made a game with 2 view so i need to be able to switch between them during it. Instead of making a goto frame 7 on the button on one frame for example and then a goto frame 8 on button on the next frame is there a way i could just put go forward 40 frames for example and apply that to the button on each frame, so on frame 1 the button would take u to frame 41 and on frame 3 it would take u to frame 43.
otherwise i'd have to keep changing the number for each frame
furthermore, is there a way i could make it go back say 40 frames to switch the view back?
can anyone help?
scotty
January 9th, 2005, 05:08 AM
Maybe you can use this?
on(release){
_root.gotoAndStop(_root._currentframe+40)
}
scotty(-:
hoobus
January 9th, 2005, 05:13 AM
cheers that is bloody brillient info but does it have to b gotoandstop?
scotty
January 9th, 2005, 05:21 AM
Don't think so, it was just an example,have you tried changing it in gotoAndPlay?
scotty(-:
hoobus
January 9th, 2005, 05:28 AM
yeah done that ages ago thanks for the info could u help me out with this:
go to my post called 'how do u make a curser that you've made look different when u roll over a button' and see if u can help me out.
Ben H
January 9th, 2005, 08:06 AM
Maybe you can use this?
on(release){
_root.gotoAndStop(_root._currentframe+40)
}
scotty(-:
Dam!
beat me to it!
scotty
January 9th, 2005, 08:26 AM
You can't win them all:lol:
scotty(-:
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.