Would you like to react to this message? Create an account in a few clicks or log in to continue.

Actionscript [Variable Declaration]

Go down

Actionscript [Variable Declaration] Empty Actionscript [Variable Declaration]

Post by Wingedge Tue Oct 14, 2008 2:09 am

Syntax for declaring variables

var VarName:VarType;
var VarName:VarType = Value;
var VarName = Value;


[root]
var Score:Number = 0;

[movieClip]
onClipEvent(load){
var Score:Number = 0;
}

[button]
on(Load){
var Score:Number = 0;
}
Wingedge
Wingedge
Admin
Admin

Male
Number of posts : 77
Age : 40
Name : Sir Francis
Year Level : Instructor
Location : UC
Registration date : 2008-06-10

Credits
GP: 9999

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum