Thank you very much..
+rep, do you go on Habbo?

Thank you very much..
+rep, do you go on Habbo?
Occasionally, and no problemNeeds a bit more work as it gets faster each time you press the button, I'll look into that later
![]()
Last edited by Protege; 16-07-2008 at 12:34 PM.
Hi, names James. I am a web developer.
nono, i didn't want it to get faste... It was going to be a "you are this cool" meter..
I'll donate you some rares next time i am on if you want![]()
Its alright, I'll see how I can make it to stop getting faster![]()
Hi, names James. I am a web developer.
Heres an update, its a easier method to rotate the objects
Place that in the actionscript frame (root) and use this func to rotate any movieclip.Code:var objRotate; var rotation; function rotateObj () { if ( ! rotation == 0 ) { _root[objRotate]._rotation += 1; rotation--; rotating = true; } else { rotating = false; clearInterval( interval ); } } function rotateObject ( degree, obj, speed ) { if ( rotating === true ) { // fail } else { rotation = degree; objRotate = obj; for ( var i = 0; i <= 180; i++ ) { clearInterval( interval ); interval = setInterval( rotateObj, speed ); } } } stop();
On a button :
In a script...Code:on (release) { rotateObject( 90, "mcobj", -50 ); }
Syntax:Code:rotateObject( 90, "mcobj", -50 );
Pink -> Degree
Orange -> Instance name
Green -> Speed
Heres the (*.fla)
http://www.disasterpiece.co.uk/flash/rotateObj.fla
Heres an example (*.html)
http://www.disasterpiece.co.uk/flash/rotateObj.html
Any probs post.
Last edited by Protege; 16-07-2008 at 04:52 PM.
Hi, names James. I am a web developer.
Nice work James!
Want to hide these adverts? Register an account for free!