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");
}
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
Post a Comment