Adding back the sound
Hi,
I need some advice.
I have a tween, which is rotating the (MovieClip01) and playing a sound on the same time.
The sound is a song, 7.2 seconds long.
rotationTween = new Tween(this, "rotation", None.easeIn, 0, 2880, 7.5, true);
When another animation starts (MovieClip02), also with sound, the sound for MovieClip01 is stopped. In order not to have mix and also to save some memory, as the second animation is quite big.
In case the second animation is stopped (animation and sound), but the first one still lasting, I would like the sound of the first MovieClip01 to start playing again. But not from beginning, but from the place where the Tween is at that point of time.
I could just mute the sound for the first animation and then unmute, but that wouldn't free up the memory.
And so my question - how to find the current position of the tween to use it for calculating the place from where the sound should start playing again?
I thought to stop the rotation tween at that moment, take the rotation value and use it for calculating the starting position for the sound.
But the rotation value seems to be between -180 and 180.
rotationTween.stop();
curRotation = this.rotation;
trace("curRotation is " + this.rotation);
Many thanks in advance!
