PDA

View Full Version : Actionscript Sounds -- "_root.bgsound.stop" help


sizer
03-10-2008, 04:23 PM
thanks man..that has already helped!
ok now i have a problem with stopping a second sound on another page. ive tried adding '_root.audioTrack1.stop();' to the below script on the main menu hoping it would also stop the sound like as before. but with no luck

_root.bgSound.stop();
_root.audioTrack1.stop();
introsound = new Sound(this);
this.introsound.attachSound("intro.snd");
this.introsound.start(0,1000);

this is the script i have for the audioTrack1 movieclip symbol

on(release){
audioTrack1 = new Sound(this);
this.audioTrack1.attachSound("works.snd");
this.audioTrack1.start(0,1);
}


thanks dude..

atomic
03-10-2008, 04:47 PM
Is this just a typo in your post, 'cause you're using _root.bgsound.stop(); witha small "s", but you've apparently defined it using a cap "S", bgSound = new Sound(this);

sizer
03-10-2008, 05:18 PM
thanks man..that has already helped!
ok now i have a problem with stopping a second sound on another page. ive tried adding '_root.audioTrack1.stop();' to the below script on the main menu hoping it would also stop the sound like as before. but with no luck

_root.bgSound.stop();
_root.audioTrack1.stop();
introsound = new Sound(this);
this.introsound.attachSound("intro.snd");
this.introsound.start(0,1000);

this is the script i have for the audioTrack1 movieclip symbol

on(release){
audioTrack1 = new Sound(this);
this.audioTrack1.attachSound("works.snd");
this.audioTrack1.start(0,1);
}


thanks dude..

atomic
03-10-2008, 05:24 PM
Grrrrrrrreat! ;)

Would have to see your .fla, but you're talking of an audioTrack1 movie clip now, and the use of this, within this button's script, might be referencing the audioTrack1 mc itself rather than _root, thus causing a wrong path problem...

sizer
03-10-2008, 05:34 PM
ok how do i send my fla. file??? lol soz man im a bit new to this
and thankyou sooo much...ill buy u apint if u live in london

atomic
03-10-2008, 05:42 PM
You might want to send that pint on the next flight to Canada...
Or I'll give you a ring on my next visit to London...

As for the .fla, first it should be in a no higher format than Flash 8, if you happen to be on CS3...
Next it needs to be zipped up to be able to attach it to this forum (Manage Attachments button below the reply window), and under 500KBs...

Alternately, you can always use a file sharing site, as www.rapidshare.com , to upload your .fla, again in a no higher format than Flash 8, and provide the link from which to download it...

sizer
03-10-2008, 05:42 PM
right ok u was right it was the mc that done it wrong...ive now changed to a button that when is pressed plays the track...when i go to the main menu it stops...which is all good..now though the track 1 still plays when i try click on track 2 of the same audio page..
is this makin sense?

atomic
03-10-2008, 05:45 PM
Not really... See my above last post.

sizer
03-10-2008, 05:46 PM
ok cool...yep its in flash 8...do u have winrar??
im goin to put it on fileshare if thats cool
il post the add up in a sec
cheers

atomic
03-10-2008, 05:50 PM
Waiting! Can your .rar the pint with it?

sizer
03-10-2008, 05:54 PM
ok looks like ive solved the issue!!!woohoo
whether or not its the right way i dunno
k ive zipped it but its still like 11mb...do u need al the audio files in the flash file? is there a way to not export them?

sizer
03-10-2008, 06:00 PM
haha rar the pint? lol ill try man

atomic
03-10-2008, 06:00 PM
Use the file sharing site I posted a link to...

sizer
03-10-2008, 06:18 PM
http://www.fileden.com/files/2007/10/30/1553960/MY%20CV%203.rar
right heres the link dude
thanks

atomic
03-10-2008, 06:27 PM
Can't find the pint?

So, what's not working now?

Or did you just upload it for me to confirm, this would be the best way to do it?

sizer
03-10-2008, 06:31 PM
lol
yer wanted to confirm with you tht its the proper way to do it?

atomic
03-10-2008, 06:34 PM
Other than the pint, this seems fine to me mate...

sizer
03-10-2008, 06:35 PM
k another quick question...i want to export my flash swf but when i do the video clips i have imported do not show up...however they do when i load the flash swf thats in my flash root directory?

atomic
03-10-2008, 06:46 PM
Your .flv's seem to be in a folder named Video... Do you have the same structure on your server?

Or are you asking something else?

Might be going out for a little cross-country skying... Back in a while...