Groups | Blog | Home
all groups > flash actionscript > june 2004 >

flash actionscript : Help! Media playback controller keeps playing flv



Portimao
6/3/2004 10:08:11 PM
My computer terminology is not the greatest so please bear with me.
I am using Flash Professional. I have a media playback controller on a screen.
When that screen is revealed the flv starts to play. No problem there. The
thing is when I reveal another screen and hide this one the flv pauses. In
other words when I return to the previous screen with the media controller the
flv continues to play from the point the screen was hidden. I have four
buttons. Each one reveals a different screen with a media playback controller
playing a different flv file. I want to be able to switch from screen to screen
and when I do the flv will start from the beginning. Please Help.
Thanks.
Colour Bleu
7/11/2004 10:52:17 PM
In article <c9o7gb$987$1@forums.macromedia.com>,
[quoted text, click to view]


use this:

// Create a NetConnection object:
var netConn:NetConnection = new NetConnection();
// Create a local streaming connection:
netConn.connect(null);
// Create a NetStream object
var netStream:NetStream = new NetStream(netConn);

// Attach the NetStream video feed to the Video object:
my_video.attachVideo(netStream);
// Set the buffer time:
netStream.setBufferTime(5);
// Being playing the FLV file:

Then this to trigger each film:

on (release) {netStream.play("VFA.flv");
}

And u must use the video
Embedded Video component that is in the library drop down menu

AddThis Social Bookmark Button