Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Basic Flash Variable Tutorial 1/2

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
1,340
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on May 13, 2010

Please Read:

Part 2 here: http://www.youtube.com/watch?v=PiyJZEIOCCk

This is the first part to my basic variable tutorial.
I'd appreciate any positive suggestions or improvements.

Have any tutorial suggestions make a comment or send me a message on youtube or at dante22_22@msn.com
Ya know I'm really exited about my videos being in HD. :3

Tags: Flash AS2 AS3 CS3 CS4 help tutorial flash help video game movie actionscript action script

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (sasuke2910)

  • Ok it seems your going to need to make sure this is on an enterFrame

    stop();

    onEnterFrame = function ()

    { if (points > 3); { trace ('win') }

    }

    By not putting it in an enterFrame event your only check if points > 3 once(when the frame loads) by putting it in an enterFrame event your checking all the time.

  • what happens if you /=0? since you can't divide by 0

  • @snunicycler

    a /= 0;

    If 'a' is greater then 0, then it will be 'Infinity'

    If 'a' is less then 0, then it will be '-Infinity' (negative Infinity)

    If 'a' is 0, then it will be 'NaN' (Not a number)

    If you try to use 'Infinity' or '-Infinity' in an equation it will act like 0.

    This answer you question?

    Ya could of just traced this stuff ya know. XD

  • Uhhhhhh.... O.O ? my brain broke

  • @kotomimaya If you need something explained better I'd be happy to do it.

  • how can I draw the variable on the screen?

  • @lorenzog4545 You can't... You can set them to display in a textbox on the stage if that's what you mean. Or do you mean that trace thing?

see all

All Comments (10)

Sign In or Sign Up now to post a comment!
  • i dont get it in the first frame i put

    var manSpeed = 4;

    then for my character the actionscript is all correct but when i take this

    this._x += 4;

    and replace the 4 with manSpeed it doesn't do anything how would i get it to accept variables that i set?

  • i need a point system and when i try this it always says win

    stop();

    if (points > 3);

    { trace ('win')

    }

  • thanx ^__^

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