Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CONTROLLING AN FLV & EXTERNAL MP3

Status
Not open for further replies.

supersoul69

Technical User
Oct 27, 2005
8
GB
Hi,

I'm having a major head-ache just now trying to control an FLVPlayBack component and an external MP3 sound file in a slide presentation. I'm loading the MP3 with a script on the slide:

on (reveal) {
var mySound:Sound = new Sound();
mySound.loadSound("sounds/0202.mp3", true);
}
on (hide) {
stopAllSounds();
}

I'm using standard FLVPlayBack UI components to controll the FLV and was wondering if anyone knows if there's a way to see or change the script that controls these buttons?

I'm basically wanting to create a button that will pause the video and the sound at the same time and then a button that will play them both again at the same time.

I hope I've explained that well - I'm new to ActionScript and I know exactly what I want my script to do but can't find a way to do it.

Any advice/pointers would be appreciated.

- Jamie
 
Don't think you should be using a streaming dynamically loaded .mp3, but an attached one instead...

See
You should also use a stop action on the soundObject itself rather than stopAllSounds() and store the sound's position, to re-start it from where it was stopped...

Same link as above.

Regards. Web Hosting - Web Design
03/13/05 -> OLDNEWBIE VS FLASHKIT
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top