Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 08-11-2004, 11:04 AM   #1
Registered User
Join Date: Jul 2004
Posts: 7
Default How do I load external sound into a movieclip vs. a Sound object?

I have a sound player movie clip that is designed to play the sound loaded into the parent movie clip. In particular, it uses "_parent.gotoAndPlay(targetFrame);" to start playing the sound. And it works well for statically loaded sounds.

However, how can I use this sound player movie clip with dynamically loaded sounds? The player requires a sound to be loaded into the parent movie clip, but the only way I know of loading an external sound is instantiating a new Sound() object and then using .loadSound(...). But loadSound doesn't load the sound into a movie clip.

So, how do I load an external sound into a movie clip versus a Sound object?

CodeNRun is offline   Reply With Quote
Old 08-11-2004, 12:33 PM   #2
Billy T
Oops I did it again
Billy T's Avatar
Join Date: Oct 2001
Location: Melbourne
Posts: 8,579

you can't

not sure what you are trying to do...maybe elaborate
Online Galleries
iPhone Safety App - iStaySafe
Free Flash Video Tutorials
Photo Website Template

Don't email or PM me questions...
Billy T is offline   Reply With Quote
Old 08-11-2004, 02:31 PM   #3
Registered User
Join Date: Jul 2004
Posts: 7
Default Trying to make a sound player that loads sounds a runtime

Hi Billy,

I'm trying to make a sound player that loads the MP3 file at runtime that's specified in the calling HTML's query string.

I've modified the "skin" of the sound player at http://www.gmg.com.au/assets/tutoria...dio/index.html

This sound player can restart a sound at any midpoint (depending on where you drop the slider) by having the sound on a layer and calling gotoAndPlay(x) with x calculated form the dagger position.

I want to load the sound externally, but keep the functionality of the player. I understand to load an external sound I must create a Sound() object, then call .loadSound. But loadSound doesn't let me restart the sound in the middle (to keep the dagger functionality). And if I use an Event sound instead of a Streaming sound, then the user would have to wait for the whole sound to load (not as nice).

So, what do I do? How do take an externally loaded streaming sound and a) know at what point it's playing now, and b) restart it at any given midpoint?

Thanks for you help!
CodeNRun is offline   Reply With Quote
Old 08-11-2004, 02:40 PM   #4
Banned by AS.org Staff
Join Date: Mar 2002
Posts: 10,533

If you check How to Load an External MP3 Dynamically as a Sound Object, here: http://www.kennybellew.com/tutorial/ , you'll see that you can load, play & pause & restart (all with displaying the position) both an "event" or "streaming" sound.
With an example .fla to download.
oldnewbie is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

All times are GMT. The time now is 05:33 AM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.