Jephthah's Domain
Home Smallville Ramblings Movie Thoughts Programming Stuff Random Rants Pi Page Billy Gilman



View all Random Pictures.







Super Star Lights

spiderwebman.net

Priceless Design

Other not as cool looking links...


If you have the urge to link to me...

Programming Stuff
index


ActionScript Commands Learned

Command Function Extra Information
stop(); Stops the frame. Can be overpassed on the internet by simply right-clicking and clicking "play."
play(); Plays the frame. Hardly ever used because the frame plays by default, but it's good to know it's there.
gotoAndStop([frame]); Goes to the specified frame and stops. The frame can be specified as the frame number itself, or the name of a frame using quotations.
gotoAndPlay([frame]); Goes to the specified frame and plays. The frame can be specified as the frame number itself, or the name of a frame using quotations.
startDrag([target], false); Starts a drag on the specified target with either holding down the mouse while dragging (false), or just clicking once.(true) The second item passed in is most commonly "false" as that's the most common way to drag items.
stopDrag(); Stops the drag on the item currently being dragged. Will stop either way of dragging.
if([conditional statement])
{
//action that occurs
}
The action in the statement only occurs if the conditional statement is true. The conditional statements are used the exact way as they are in most other programming languages.
if([conditional statement])
{
//action that occurs
}
else if([conditional statement])
{
//action
}
else
{
//action
}
The else if only occurs if the first if is false, if the else if is true then that action occurs and it stops there. If both the if and the else if are false, then the else is executed no matter what. Used the same way in every other programming language I know.
random([number]); Will pick a random number from 0 to the number in the parenthesis. Usually used by setting it equal to a variable.
on(MouseEvent)
{
//action
}
On the mouse event specified, the action will occur. There are numerous MouseEvents that can occur. (see table below) Only used on buttons.


Mouse Events

Command Function Extra Information
press When the mouse button is pressed with the cursor over the button. Occurs the moment you click, not when you release.
release When the mouse button is released with the cursor over the button. Occurs the moment you release the click. Could bypass by simply clicking and holding down and releasing outside the button.
releaseOutside When the mouse button is released outside the button after clicking inside the button. Could be used to prevent the bypass mentioned above.
rollOut When you roll out of the button your cursor is over. Used in my mouse game.
rollOver When you roll over a button. Used in my mouse game.
dragOut While the pointer is over the button, the mouse button is pressed and then rolls outside the button area. I never used this, so I'm not sure how it's different from releaseOutside.
dragOver While the pointer is over the button, the mouse button has been pressed then rolled outside the button and then rolled back over the button. Also never used this before, so I don't know why you would use it.
keyPress ("<Enter>") When the button specified has been pressed, in this case the "Enter" key. There are many other keys you can use such as the arrow keys or the space bar.
Home | Smallville Ramblings | Movie Thoughts | Programming Stuff | Random Rants | Pi Page | Billy Gilman
© Jephthah October 2005