In my .FLA, I have imported a flv into a movieclip, movieclip has 100 frames with sound.
I am using code see below. Everything works as expected but there is no sound ???
I have 2 questions.
//If i use mc.gotoAndPlay(50); instead of TweenMax then sound works.
mc.gotoAndPlay(50);
see code, is it correct way to play 2 frame ranges ? and then reverse it or is their a better way to play in reverse ? How can i make it work with sound which already there in movieclip as it is flv.
import com.greensock.*;
import com.greensock.easing.*;
mc.addEventListener(MouseEvent.MOUSE_DOWN,PlayClip);
mc.addEventListener(MouseEvent.MOUSE_UP,ReverseClip);
function PlayClip(event:MouseEvent)
{
TweenMax.fromTo(mc, 1, {frame:50}, {frame:60});
}
function ReverseClip(event:MouseEvent)
{
TweenMax.fromTo(mc, 1, {frame:60}, {frame:50});
}