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

flash actionscript : Linking to different FLV files - FLASH VIDEO???


Lime_Shmoo
10/3/2004 10:38:21 PM
Hi all, I am developing a CD-Rom presentation. Within the presentation will be
a number of video files. I have converted these to flv files and want to link
to them through the media display and media controller components. I can work
all of this out and have it functioning for one flv file.

On the left I have a set of buttons which when clicked should take the user to
its corresponding video file. I am having troubles working out how to link
buttons to play their corresponding flv file.

I tried building each flv file with its own media components in its own movie.
Exporting these to their own swf file. Then just running a load movie command
from the button navigation. This attempts to load the movie with the media
component but it takes forever, then tells me the page is running a script that
will slow my computer down! Then doesn't work once loaded.

I have looked through the tutorial on the MM site bit I don't want to use a
slide show as there are some timeline animations on each movie calling the flv.
I am also using many flv files that I want to load at the users request so
seeking to cue points isn't much help.

I thought I would just be able to load and unload swf movies with the media
player which calls the flv file through it. This is not working for me?

Can anyone point me in th right direction of working this out.

brainiac_7
10/3/2004 11:23:24 PM
I"m having trouble grokking Flash 7 video too, and no one's answered any of my
questions either. I've read the LiveDocs article below and hacked a onEvent
load function onto it, but there's no media controller. It would be more useful
if you could place a variable instead of the flv path string in the Component
Inspector, or fiddle with it's underlying ActionScript.

Anyway, check this link, and my onEvent function (controlled by buttons) below
it. I'm stuck for a player, a skin, or a preloader however:

http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/
wwhelp.htm?context=Flash_MX_2004&file=00001107.html




// Create a NetConnection object
var netConn:NetConnection = new NetConnection();
// Create a local streaming connection
netConn.connect(null);
// Creat a NetStream object and define an onStatus() function
var netStream:NetStream = new NetStream(netConn);
netStream.onStatus = function(infoObject) {
status_txt.text += "Status (NetStream)" + newline;
status_txt.text += "Level: "+ infoObject.level + newline;
status_txt.text += "Code: "+ infoObject.code + newline;
};
//Attach the NetStream video feed to the Video object
my_video.attachVideo(netStream);
// Set the buffer time
netStream.setBufferTime(5);

// Place some named buttons on stage to call the videos
but1_btn.onRelease = function() {
netStream.play("Clip2.flv");
};
but2_btn.onRelease = function() {
netStream.play("Clip3.flv");
};
FlashJester Support Team
10/5/2004 6:42:57 PM
HI,

Try reading this it has some helpful hints

http://www.flashjester.com/?section=faq&cPath=14_53

Regards
FlashJester Support Team
e. - support@flashjester.com
w. - http://www.flashjester.com

"Happiness is not so much in having as sharing."
"We make a living by what we get, but we make a life by what we give."

brainiac_7
10/10/2004 12:03:15 AM
AddThis Social Bookmark Button