ichido
1
I been experiment actionscript this few day, some question pop up.
inputing actionscript on a movie clip to make rotation
onClipEvent(enterFrame){
this._rotation=this._rotation+=50;
}
wat happen if you wan the script to be on the timeline and not the movieclip itself…?
this._rotation=this._rotation+=50;
doeen’t work on the timeline.
system
2
theclip.onEnterFrame = function(){
this._rotation+=50;
}
system
3
You’ve mixed two operators. += is an operator that adds a value to the existing value, while = is an assignment operator.
anumber = 5;
anumber+=3;
//this is the same as saying
anumber = anumber+3;
= operator: http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary041.html
+= operator: http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary035.html