| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Registered User
Join Date: Dec 2007
Posts: 1
|
importing external swf with sound
hello i have a problem when i try to import a child swf which has a loop sound as background into a parent swf. if I play child swf as standalone, the sound is ok, but if i play the parent swf, when child is runnning i dont hear any sound. another problem is that i have constructed a preloader, but when i start the movie, the preloader is star running, but in the same time the movie is starting, and i want the movie to start only after the preloader is finish. thanks for you time |
|
|
|
|
|
#3 (permalink) |
|
Podcaster on Web Design
|
like photon said, please post your code here, but when you have a child SWF, you need to make an instance of it in the parent SWF and either load the sound in the child with: yoursound = new Sound(); yoursound.loadSound(URL); If you plan on doing it via the _root level, you can try this: _root.ParentSwfInstance.ChildSwfInstance Of course, you need to create an instance in place of ParentSwfInstance and ChildSwfInstance |
|
![]() |