This content has been marked as final.
Show 6 replies
-
1. Re: Drag Drop and Rotate Multiple Objects
kglad Nov 2, 2006 11:56 AM (in response to Jeff_Hight)if your variable contains that name of the movieclip that you want to rotate, there should be no problem short of faulty programming. does your variable contain the name of the movieclip that's to be rotated? if so, show your code. -
2. Re: Drag Drop and Rotate Multiple Objects
Jeff_Hight Nov 2, 2006 12:09 PM (in response to kglad)Thanks for your reply Kglad
Here's the code, for what it's worth...
on(press) {
_root.object="box1"
this.startDrag();
}
on(release) {
this.stopDrag();
}
on(keyPress "<left>") {
_root.object._rotation += 2;
}
on(keyPress "<right>") {
_root.object._rotation -= 2;
}
As soon as I change it from this._rotation to the variable name, it kills it....
jH -
3. Re: Drag Drop and Rotate Multiple Objects
kglad Nov 2, 2006 12:14 PM (in response to Jeff_Hight)if you use a string to designate your object to be rotated you must help flash convert that string to an object. you can use array notation:
-
4. Re: Drag Drop and Rotate Multiple Objects
Jeff_Hight Nov 2, 2006 12:25 PM (in response to Jeff_Hight)Thanks again for getting back to me so quick Kglad,
I tried both examples and the darn thing still won't rotate...
Double checked and made sure the movieClip was named "box1" -
5. Re: Drag Drop and Rotate Multiple Objects
Jeff_Hight Nov 2, 2006 12:29 PM (in response to Jeff_Hight)Scratch that... I got it working... Thanks a million man! -
6. Re: Drag Drop and Rotate Multiple Objects
kglad Nov 2, 2006 12:37 PM (in response to Jeff_Hight)ooops. this is a little awkward but you should use: