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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

loading external swf 1

Status
Not open for further replies.

thirtyottsixx

Technical User
Aug 7, 2002
27
0
0
US
I'm loading an external .swf that contains action script and sound. I got the movie loaded and it seems to play fine, however I can't hear anything. When I play the external movie standalone, the sound works perfectly. Any ideas?
 
I bet you have two types of sound files. I had the same trouble on a projec that I was doing. I changed the files to the same format and viola the sound of music Visual1
("The only difference between me and a madman, is that I am not mad") Dali
 
if it worked, give me a star man....gracias Visual1
("The only difference between me and a madman, is that I am not mad") Dali
 
All of the sounds are in .wav format. I created them all with the same program. Any ideas?
 
What actionscript are you using? Any sounds actions in there? Are you using the sound object, sound controls?

A link would also be nice. Regards,

oldman3.gif
 
Thanks for trying to help me out. Here's a link to the page
Here's a direct link to the movie being loaded in
Yes there's sounds action in the script. The sound action script is pretty simple just attaching the sounds and starting and stopping them with the buttons. Please let me know what other questions I can answer. Using MX.
 
How about links to the .flas? If all possible? Regards,

oldman3.gif
 
Yes, that worked! Good job! How did you do it? Can I get the new source file from you.
 
You sure can!
Try these 2 corrections.

1- Add a stop(); action on the first frame of your main movie, so that it won't loop:

loadMovie("ls.swf", ls_container);
stop();

2- Although documentation says the target parameter is optional in the new Sound object, add this on the first frame of your ls.swf:


soundBE = new Sound(this);
soundBE.attachSound("BE");
soundSCREAM = new Sound(this);
soundSCREAM.attachSound("SCREAM");
soundBUSSIN = new Sound(this);
soundBUSSIN.attachSound("BUSSIN'_IT");
stop();

That's it! It should work for you as it does for me!
Regards,

oldman3.gif
 
Hey... I appreciate it. That worked great. I guess I wasn't as far off as I thought. Well thanks again. I gave you a star!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top