Deviant Login Shop  Join deviantART for FREE Take the Tour
×



Details

Submitted on
July 30, 2008
Image Size
1.5 MB
Resolution
550×400
Link
Thumb
Embed

Stats

Views
1,169
Favourites
14 (who?)
Comments
115
Downloads
49
×
EDIT: Added a preloader, there's basic movie control down there, and you can now copy and paste the actionscript from the movie from the movie iteself C:
Took a while to upload this D8
Sorry, Frank says nothing new at the preloader D8


REQUESTED BY :icondoksuri:

Sorry no music in background, but a fancier version will be available at [link] as soon as possible D8
The full title is "Tutorial: simple button coding in flash", but since dA has a limit on how many characters can be in a title, I had to shorten it D8

Sorry this isn't the best flash tutorial in the world, sorry the sound's a bit off, but I hope that this helps even a little bit <:3

Actionscript used:

Frame 1:

stop (); //put this one on the frame itself//

on(release){gotoAndStop(2); } //put this one on the button in frame 1//

on(keypress"<up>"){gotoAndStop(3); } //put this on the button in frame 2//

other than that, it's pretty self explanatory C:
Add a Comment:
 
:iconanna-philips:
Anna-Philips Nov 16, 2010
this solved all my problems
Reply
:iconorribu:
orribu Nov 16, 2010  Hobbyist Digital Artist
cool
Reply
:iconevolvd-studios:
evolvd-studios Feb 19, 2010  Hobbyist Traditional Artist
Would you like to Join EvolvdStudios Online? Here you can share all your latest flash animations and games, as well as ask questions and watch our new tutorials that will help you on new animating tricks as well as actionscripting faqs (You can also upload your own tutorials, otherwise what would it all be about?). You can also access our newly created ANIMATED SPRITE DATABASE, Here you can download spritepacks from many famous characters, for example, sonic and mario. These are added weekly, but to enjoy all this, all you have to do is this:
CLIC ON THE CLUB BELOW, FIND THE JOIN NOW BUTTON, PRESS IT, AND VOILA!!! UR IN!
:iconevolvdstudios-online:!!!JOIN NOW!!!:iconevolvdstudios-online:

PS: Had to do a personal invitation scince all our actual invites are now used up >.>
Reply
:iconorribu:
orribu Mar 27, 2010  Hobbyist Digital Artist
Sounds nifty, but can you note this to me next time? ^^;
Reply
:iconevolvd-studios:
evolvd-studios Apr 5, 2010  Hobbyist Traditional Artist
oh...Im sorry.... =p Seems ur rite =p I will try to next time XD soo----is that a yes? XD
Reply
:iconorribu:
orribu Apr 5, 2010  Hobbyist Digital Artist
Well yeah, ha ha. I already joined. ^^
Reply
:icondragontrap:
dragontrap Apr 3, 2009  Professional General Artist
Ok, forward works great! Now, can you clue me in on how to make it go to the previous frame?
Reply
:iconorribu:
orribu Apr 4, 2009  Hobbyist Digital Artist
Oh, that's easy~! 8D
All you have to do is add this:

on(release){prevFrame();}

And it should work~! 8D
I have yet to figure out to make it jump a certain amount of frames, but when I do and if you want to know I'll let you know~ :3
Reply
:icondragontrap:
dragontrap Apr 4, 2009  Professional General Artist
It actually doesn't work for me, BUT I was able to figure it out after a few hours. The scripting that did work was:

on (press) {
_root.gotoAndPlay(number);
}


So thanks for responding, and thanks for the tutorial none the less, it was still helpful and I was able to make a tester comic with it [link]
Reply
:iconorribu:
orribu Apr 4, 2009  Hobbyist Digital Artist
oh mai, okies~! o:

Thanks so much for lending me the tip, and I'm so sorry xD;;;;

I winged it after taking some 4-5 hour test ^^;
Reply
Add a Comment: