Quick Flash Q
Quick Flash Q
- Started
- Last post
- 2 Responses
- silentseven
I am trying to rotate a rectangle around the bottom left corner of it to 45 degrees and then stop. But the damn thing keeps spinning in a 360.
this is wha I have so far its probably all wrong but can someone please give me some help
Thanks
onClipEvent (enterFrame) {
i = getProperty(block,_rotation);
setProperty(block,_rotation,i+ -1);else {
if (this._rotation >= -45) stop();
}
- j_red0
change else to if
- davi-t0
Hard to picture what you're trying to do smoked out but try this:
block.onLoad = function(){var start_rotation=block._rotation;}
block.onEnterFrame = function(){if(block._rotation>=s... this.onEnterFrame;}else{block._r... --;}}