Okay, I have figured out the mechanics of how to make a simple button, and have
seen many, many tutorials about buttons, and have coded the Actionscript. (it's
3.0) What I type is on the bottom.
And then I draw something on frame 2, frame 3 and so on... but then I test the
movie and the beginning frame with the button in only on screen for 1/12 of a
second. How can I make it so it stays onscreen until it is clicked?
Thanks!
on (release) {
gotoAndPlay(1);
}
Travis Newbury - 25 Jul 2008 02:17 GMT
> Okay, I have figured out the mechanics of how to make a simple button, and have
> seen many, many tutorials about buttons, and have coded the Actionscript. (it's
[quoted text clipped - 3 lines]
> movie and the beginning frame with the button in only on screen for 1/12 of a
> second. How can I make it so it stays onscreen until it is clicked?
It sounds like you are adding key frames in the same time line as the
buttons are in. If you are using CS3, you might want to think about
losing the time line except for very generic repeatable animations.
Actionscript lets you do so much more. And rumor olds that CD4 will
eliminatethe time line all together. (Though I must admit I have not
followed up on that rumor)
--
Travise Newbury <http://travisnewbury.blogspot.com/> Flash Crap
Travise Newbury <http://travisnewbury.blogspot.com/> Flash Crap
Travise Newbury <http://travisnewbury.blogspot.com/> Flash Crap
Travise Newbury <http://travisnewbury.blogspot.com/> Flash Crap
Noelbaland - 25 Jul 2008 03:26 GMT
Extend the frames in the timeline for your button layer. So go to the last
frame that you drew something on, click on it to select the frame, and then hit
F5 on your keyboard or go Insert>Timeline>Frame.
german01 - 25 Jul 2008 04:46 GMT
On the first frame of your timeline type
stop();
aniebel - 25 Jul 2008 11:32 GMT
Just curious about your code... that's AS2 you've got there, not AS3. But both
of the other two responses could be correct, depending on what you're doing.
The timeline will continue to play so unless you stop it or add more frames so
that it exists where your other items are, you'll only see the button for a
split second.