Added: 2 years ago
From: it9001
Views: 6,407
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (27)

Sign In or Sign Up now to post a comment!
  • is the scripting shown in this work if you are trying to make a button that would start an animation when the button is clicked?

    also, i was wondering if you would know what:

    a) a movie clip symbol is and

    b) a graphic symbol is ?

    thankyou.

  • thanks!!!!!!!!!!!!!!!

  • ..so im making a sniper game..and i have my character as a button and i need to "end" the button somehow so i cant keep clicking the character and killing him more than once... i.g i shoot the baddie, baddie plays a death animation and stops(); on last frame... but if i shoot the dead guy it will play the animation again...how do i stop this??

  • @YoshiJumper

    well it seems like that when you are shooting the character, his animation starts playing and your keeping the dead body movieclip on the stage. What I suggest you do is, remove the movieclip and replace that (x,y) location with an image equivalent. For example, the last frame of the movie clip is the dead body. Take that dead body and make it an image. Using some simple/clever action scripting,replace the movie clip with the image. Tell me\ if you need help scripting this...

  • @it9001 do you mean like a graphic?? im a noob scripter and ive only made a platform game... what kinda scripting is needed??

  • @Subandiwillsub2u

    on(release) {

     gotoAndStop(10);

    }

  • @Subandiwillsub2u The coding is actionscript 2.0

    you need that for the button to do an action.

  • i hope this wasnt suppose to be a tutorial because it sucked!

  • thanks!

  • sorry- I will say it nicer- you do go too fast- Looks like what you are saying is helpful- but with the screen moving all over and u going fast- it is hard to follow- but THANK YOU-

  • well Fuck you...just because you know every thing doesn't mean you should go so fast .... Biatch

  • it would be helpful if you left details on what you didn't understand. The tutorials are intended for people who have a basic understanding of flash. What action script is, what tools i am using, how to create objects, and that is why i am trying to go fast.... for the future... I will in the future try to go slower with tutorials

  • wew,

    you saved me bro!

    thanks a lot!

  • Yeah I think I understand it now. Thanks for the help and the video's.

  • I have a question about prev and next buttons. I have an image gallery set up on one of my scenes with a prev and next button. They work fine until I get to the end of the image gallery. If I keep on clicking past the last image it goes to my next scene. Is there a way to tell it to stop on the last and first image. Thanks for the video!

  • yes... what you can do is there is a function in flash that lets you get the current keyframe number that you are on. I forgot what it was but if you google it, you should be able to find it. Basically, you get the current number, and using a simple conditional test to test if you have exceeded the last frame of the clip....this is the better way of doing it.

    If you want to make your script universal, the use actionscript to check what is the LAST keyframe # and check that with the current....

  • let me know if this wasn't clear....

  • hey thanks for the tut but i have a problem. I have a pause button that i need to edit a variable that has a number datatype when i click it. If the variable is in the actionscript on a frame am i going to be able to change the variable from the actions on my button? I'm sorry if that didnt make much sense im really new to actionscript. If i cant change it from the button then what would i do on the frame? thanks.

  • what do you want to do with your code?

    I can help you if you tell me what you need to do...

  • i need so that when i click a movieclip (with the instance name "pause1") a variable named timespeed changes to 0.

  • inside your movieclip "pause1" ... put this on the first frame...

    stop();

    this.onRelease = function(){ timespeed = 0; 

    }

  • ok i got 3 errors.

    "Statement must appear within on/onClipEvent handler"

    "Operator '=' must be followed by an operand"

    "Unexpected '}' encountered"

    and i think there may be another problem. If i declare the variable on a frame with the movieclip change it?

  • nevermind i just put a _root at the front that that seemed to fix it for some reason. Funny how things work out by total flukes.

  • Comment removed

  • 2:25.... in the actions i didn't see that it was hard to see the curly brackets... sorry...

  • I overreacted - that was frustration talking. I'd still be stuck if I hadn't found your tutorial. Thanks for correcting it.

  • good video

    i will give you a camtasia code and link to download at

    because this was a good video but hard to follow the views

    but really just pm my new account techhelp41

    and if u don't know what camstasia is look at my newer videos ... it is the most advanced screen caputure program out there

  • Thanks, this really helped.

  • Thankyou so much

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more