PDA

View Full Version : Connecting PlayPauseButton, StopButton components to FLVPlayback


FlashBulb
11-01-2007, 03:03 PM
I thought that they would connect automatically, or that they would have Parameters I could use to connect them... I dragged the FLVPlayback component onto the Stage, and then a few of the buttons that are there in the Component Inspector (PlayPauseButton, etc.)... I set the ContentPath of the FLVPlayback, and ran my movie.

The FLV plays, but all the buttons are not functional. Do I have to write my own Actionscript for them? I thought that a component would have the decency to come with a little functionality!

How can I make these buttons control my movie?

FlashBulb
11-01-2007, 04:30 PM
Ok, my bad... tried a different tack on Help searching, and found the answer. Figured it would be simple.

my_FLVPlybk.backButton = my_bkbttn;
my_FLVPlybk.forwardButton = my_fwdbttn;
my_FLVPlybk.playButton = my_plybttn;
my_FLVPlybk.pauseButton = my_pausbttn;
my_FLVPlybk.stopButton = my_stopbttn;

Just had to set the FLVPlayback clip's button settings to the instance names of my buttons. :rolleyes: