Actionscript [Variable Declaration]
:: Lessons :: Advance Lessons
Page 1 of 1
Actionscript [Variable Declaration]
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;
}
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- Admin
-
Number of posts : 77
Age : 40
Name : Sir Francis
Year Level : Instructor
Location : UC
Registration date : 2008-06-10
Credits
GP: 9999
Similar topics
» Actionscript [Firing Projectiles]
» Actionscript [MC always faces the mouse]
» Actionscript [Collision of 2 Movie Clips]
» Actionscript [Moving Movie Clips using Keyboard]
» Actionscript [MC follows mouse and hiding mouse cursor]
» Actionscript [MC always faces the mouse]
» Actionscript [Collision of 2 Movie Clips]
» Actionscript [Moving Movie Clips using Keyboard]
» Actionscript [MC follows mouse and hiding mouse cursor]
:: Lessons :: Advance Lessons
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|