Actionscript [Variable Declaration]

Go down

Actionscript [Variable Declaration]

Post by Wingedge on 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;
}
avatar
Wingedge
Admin
Admin

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

Credits
GP: 9999

View user profile

Back to top Go down

Back to top

- Similar topics

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