When using 'playbackwards()' can't see movie next time I want to play it.
Hi All,
I'm banging my head here:
I have sound cues in a sound file that make tweened movie clips play. (They change alpha state so they fade up.) When I fade up one I also fade down the previous image using 'playbackwards()'.
However, I need to repeat images and it looks like if I use 'playbackwards()' on an movie clip, I don't see it when I try to play()' it again (play it forwards again).
If I just make the previous image invisible when showing the next image, that previous image will show next time I need to play it...I just can't use 'playbackwards()' on it if I need to play that movie clip again.
Here's some of my code:
// On Cue Point
function onCuePoint(event:CuePointEvent):void
{//find the movie clip asociated with the string name of the cue in the soundtrack
for ( var faceImg : * in faceImgs ) //run thru all mdImgs
{
//if the sound cue string name = the faceImg string name
//then dissolve up the faceImg MC and dissolve down the current faceImg, if there is onevar newFaceName : String = faceImgs[ faceImg ];
if (event.name == newFaceName) //Find the faceImg MC that matches the cue point name
{
//dissolve up the new faceImg
faceImg.visible = true;
faceImg.play(); //face dissolves up
trace ("faceShowing :" + faceImg);
//dissolve down the current faceImg
currentFaceImg.playBackwards();
//currentFaceImg.stop();
//currentFaceImg.visible = false;
trace ("previous Img: " + currentFaceImg);
//The new faceImg becomes the 'current faceImg'
currentFaceImg = faceImg;
}}
}
I've posted the folder with the fla file in question (and sound cue files, etc) here:
http://home.comcast.net/~samiri/director/TEST_soundCues.zip
Any help is greatly appreciated.
