PDA

View Full Version : Volume Control for Imported MPG Movieclip


Shodan_v2
06-11-2002, 02:30 PM
After many strugles with loadvariablesnum >:
I've moved on to creating a Movie player for my current multimedia
project.

Right,
I've imported a MPG movie and specified not to add additional frames ... then Converted it to a movie clip (adding all frames)
added a play, stop, pause and time scrollbar to the movie clip.

Now I want to add a volume control .... setvolume isn't working,
probably because it's a movie ..not a sound??
Don't tell me that didn't think of this...

Please Help!

Thanks,
Shodan_v2

dv8
06-11-2002, 03:16 PM
Welcome to FlashMove Shodan_v2,
While Importing Video, the Sorenson Spark Settings window states that audio will not be imported. :(

Shodan_v2
06-12-2002, 02:25 PM
I got that when I tried to import a MOV file without Quicktime PRO.
(and I do not intend to BUY it... MOV sucks! DivX rulz)
But when I import an M-Peg clip from my sony digicam it does load the sound... it even plays the sound... But how do I control the sound...

dv8
06-12-2002, 03:14 PM
Ah! I didn't know that, learn more everyday.
I'd have to give it try to figure out the answer ;)

dv8
06-13-2002, 01:47 AM
Hey Shodan_v2,
This is what I've found out so far.
-Import the Movie to a MovieClip Symbol.
-Drag the Symbol to the Main Timeline.
-Give the MC the instance of "video".

Now, create a new Sound() Object;

videoSound = new Sound(_root.video);

The Incrementing Sound is controlled like so...
videoSound.setVolume(n);


// If Using a Slider
on (release) {
videoSound.setVolume(this._x*2);
}


Working on an Example :D

dv8
06-13-2002, 03:30 AM
Sorry didn't place a Preloader on it :(
Video Volume (http://dv8flasher.com/flashmove/videoVolume/vidVolumeExample.swf)