View Full Version : anyone else had this prob
sandman9
03-31-2003, 09:43 PM
I have a bunch of frame labels and each frame label has a stop action ........ when I click on the button illustration for example, it will go to the frame label called "illustrations" ..... if I click this same illustration button again (once it's already at the frame label illustration) then it goes to the next frame label
Anyone know why it does this and how I can fix it?
adroitemedia
03-31-2003, 10:57 PM
try this possibly:
on (press) {
if (_root._currentframe = "illustrations") {
gotoAndStop("illustrations");
}
}
jubei
04-01-2003, 03:29 AM
It would be much easier to pick what the problem was if you posted the actionscript that's affecting that button
sandman9
04-01-2003, 06:53 AM
it's just has the script that says
on (Press) {
gotoAndPlay("illustration");
}
And the frame label illustration has a stop action ...... so this all works fine but if I click this button again when it's already stopped at "illustration" then it plays in the timeline (there fore stopping at the next stop action)
And Androit, your script didn't work
CyanBlue
04-01-2003, 06:56 AM
I hope this isn't the case, but check if you have multiples of the frame label 'illustration' in your entire movie... You cannot have duplicates of the same frame label...
sandman9
04-01-2003, 06:59 AM
no i don't because I have other buttons that go to frames labeled "flash" "html" "print", etc and they all do that same thing :(
annexion
04-01-2003, 08:05 AM
on (press) {
if (_root._currentframe == "illustrations") {
gotoAndStop("illustrations");
}
}
Try that.
Good luck.
CyanBlue
04-01-2003, 08:33 AM
Um... _currentframe returns the number of the frame, not the frame label itself...
zebbah
04-01-2003, 10:43 AM
Just use gotoAndStop() insted of gotoAndPlay() and it should work fine.
:)
sandman9
04-01-2003, 05:34 PM
no one said gotoAndPlay
And the following was already said and it doesn't work
on (press) {
if (_root._currentframe == "illustrations") {
gotoAndStop("illustrations");
}
}
zebbah
04-01-2003, 06:05 PM
it's just has the script that says
on (Press) {
gotoAndPlay("illustration");
} This doesn't play the second time you press your button: on (press) {
gotoAndStop("illustration");
}
annexion
04-01-2003, 06:46 PM
Eh, it was worth a shot. I've never used frame labels, as I don't animate too much. So, I was just trying to correcting the syntax of a previous reply.
Good luck.
sandman9
04-01-2003, 07:22 PM
Zebbah you are a smart one!!!!!!!!!!!!!!! :D
I love this place!!!!!
Thanx to all that posted in this thread (especially Zebbah)
Now I should go kick myself for such a stupid mistake!!!
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.