Accessing Timeline Tweens associated with a MovieClip?
i'm trying create function take snapshot of state of objects on stage later restoration. works great movieclips, text boxes, etc i've hit tweens , motiontweens , i'm stumped. these not programatically created tweens, rather ones created on timeline.
i see theoretically, if figure out whether there's tween associated object, call position function find out how far along in playing, that's if can figure out how movieclip, far i'm stumped on.
is there simple way this?
thanks in advance,
eric.
ok, accomplished half-assed workaround.
it turns out while tween reports frame of 1, if put frame labels on, reported correctly. (go figure!)
so in save function, inserted:
if( thisnode.currentframelabel !== null ) {
xmlchild.frame = thisnode.currentframelabel;
} else {
xmlchild.frame = thisnode.currentframe;
}
which lets restore code still function either way, restoring tween should.
we still have go through , verify manual tweens built frame labels on each keyframe, close enough now.
More discussions in ActionScript 3
adobe
Comments
Post a Comment