-
AS2 help please, movie clip used as a button ?
Hey, I have searched everywhere for how to do this and couldnt find anything i need to create a new movieclip in the actionscript and then be able to click the new movieclip so it rotates ? any help, thanks 8)
Below is what i already have as my code, shape1 is the movieclip i am duplicating and square 1 is the new movieclip but i cant seem to get it to work when i click it :/
Code:
duplicateMovieClip(shape1, square1, 1);
setProperty(square1, _x, 200);
square1.onPress = function()
{
setProperty(square1, _rotation, 90);
}
-
Code:
var sq1 = shape1.duplicateMovieClip("square1", 1);
sq1._x = 200;
sq1.onPress = function() {
this._rotation += 90;
};
-
thanks this should do the trick :P i need to get on my coding computer first though to try it out, thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|