Groups | Blog | Home
all groups > flash (macromedia) > february 2004 >

flash (macromedia) : Media Controller problems


Jay128
2/29/2004 11:55:38 PM
First I want to thank any and all for their time and help.

Heres the problem. I have added a MediaController (Media Component) to a
slide on my presentation. I know I can supposedly add behaviors to it and have
it load a file from the library or load a streaming mp3 file, but I have
played around with these options for a long while with no success and need some
help. My goal is to either have it play different sound files that a visitor
could click/select (as if they were links), or if its easier, have it play a
long list of streaming songs put together in one file that they could skip form
using the controls on the MediaController itself.

Any help would be great, thanks .
Jay128
3/1/2004 10:42:07 PM
MMTS Kesh
3/2/2004 4:28:36 AM
I think the component can only hold one FLV or one MP3 at a time. I was
able to make one component to play different MP3s/FLVs by using buttons to
load/overwrite the existing file that the components is playing.

I'm not sure if you can really load files from the library. Since these
components were like doing this streaming thing, I think they can only
handle files outside of the FLA, those files that you're loading externally.
(not really sure on this part, that's just what I thought).

Here's the simple test that I did:

1. Placed a Media Playback component (I think this will also work with
Media Display) and named its instance as "myMedia".
2. Placed two buttons on the stage.
3. First button has this script:

on (release){
myMedia.setMedia("jetski.flv");
}

4. Second button has this one:

on (release){
myMedia.setMedia("test.flv");
}

You can change the FLV using the "setMedia" method the component.

That's just one way of doing it though. Experiment more by playing with the
Media Component's methods, properties and events.

AddThis Social Bookmark Button