rotating a nested movieclip


i trying rotate nested movieclip pressing nested clip pressing rotation command. works when clip rotate on _root layer not when within (which must not rotate). need maintain nesting because have zoom , pan function associated movieclips in layer.

this code have:

rotate button -

on (press) {
changerotation = getproperty("/rotate", _rotation);
setproperty("/rotate", _rotation, number(changerotation)+15);
}

nested movieclip -

on (press) {
startdrag("", false);
}

on (release) {
stopdrag();
}

on (release) {
setproperty("/rotate", _name, "");
setproperty("", _name, "rotate");
}

you need use path/instance name target movieclip instance want control.


More discussions in ActionScript 1 and 2


adobe

Comments

Popular posts from this blog

Thread: PKI Client 5.00 install (for eToken Pro)

ATmega2560-Arduino Pin Mapping

Crossfader Arduino Tutorial