-
FLV component - controlling movieclips with video
Hello,
I have a flv component one one side of my stage and a movieclip that plays on the other side.
...my play/pause button works and stops the movieclip and video at the same time. Now I just want a back button that will replay the movieclip and the video at the same time. Here's what I have:
//
/**
FLV variables
*/
import mx.video.*;
my_FLVPlybk1.playPauseButton = my_plypausbttn1;
// listeners for the play/pause, next, and back buttons
//
var listenerObject:Object = new Object();
listenerObject.stateChange = function(eventObject:Object) {
if (my_FLVPlybk1.paused)
maturity_intro.stop();
};
my_FLVPlybk1.addEventListener("stateChange", listenerObject);
//
//I want this code to replay the video, and the movieclip from the beginning
//
var listenerObject:Object = new Object();
listenerObject.backChange = function(eventObject:Video) {
if (backbtn1.press)
my_FLVPlybk1.play();
};
my_FLVPlybk1.addEventListener("backChange", listenerObject);
Any help with the replay? Thanks for the info!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|