AS Sound Problem
- Started
- Last post
- 6 Responses
- qaddisin
Need a quick solution.
1.
I have a preloader movie (preloader.swf) that loads the main movie.
i.e. emptyMC.holderMC.loadMovie()2. I am doing this becuase I am loading sounds from the library
and attaching them.
i.e. intro1.attachSound(), intro1.start()Note: the main movie works fine, but when loaded in the preloader the sound does not play. Any ideas why? Is it something I over looking? Help a brother out people. I have a couple of Computer Art Mags in PDF I can give in return for some assistances.
Thanks in advance.
- qaddisin0
Bring it back. :)
- tGP0
hey man, hit me with an email of what you are trying to do, or send the fla if you want, i will try to help you out...
email is in my profile...
cheers
j
- qaddisin0
Entwell tGP,
i did some helpful info over here ---> http://www.actionscript.org/foru…something about the new Sound() object has and optional parm for targeting. couldn't send you the fla man, the projects for a client (copyright issues), but if you have any more information about the sound object and preloading attached sounds and mcs let me know.
cheers
- tGP0
hey man,
yeah, on the Sound() object, the parameter that is passed, is actually to reference where the sound is targeted, meaning, if you set a new Sound(), leaving the parameter blank, the sound is addressed to the _root time line, as this is default, so when you control root sounds, it gets hit...
but, if you do something like Sound(my_mc), a movieclip called my_mc has been targeted, so you can more accurately isolate your sound if it needs to be controlled, or deleted....
cheers
j
- tGP0
oh, as far as your problem above, try to target the clip you are loading your sound into... so when you create teh sound object, use something like
new Sound(intro1);
cheers
j
- qaddisin0
thanks alot for the info.
i used new Sound(this) and it worked perfectly. i sent you and email with a links to the two computer arts mags i have. thanks again for your time. get the pdfs before noon tomorrow, i will remove them from my server after that. there both about 9 mg.peace.