Forum Topic: need actionscript help, thx

(278 views • 2 replies)

This topic is 1 page long.

<< < > >>
None

EdibleCastle

Reply To Post Reply & Quote

Posted at: 3/25/06 05:39 AM

EdibleCastle DARK LEVEL 10

Sign-Up: 03/29/03

Posts: 124

hi there newground helpfuls

i have a sound on/off toggle on my new site with the sound graphic mc toggling from 1 frame to another to show the relative 'mute' and 'unmute' images. the script turns the master volume of the swf to 0, or 100

the script works for turning the sound on and off fine but as my site is seperated into different scenes... if i toggle the sound graphic to MUTE and then go to a different section of the site (a different scene) the sound mc goes back to showing the first frame of the sound mc.. the UNMUTE image.

so i'm thinking i need to put a IF script on entering the frame of the new scene that reads something like:

if globalvolume >0
then show the first frame of the sound mc

if the globalvolume =0
then show the 2nd frame of the sound mc.

can someone help?

thanks guys.


None

Denvish

Reply To Post Reply & Quote

Posted at: 3/25/06 05:42 AM

Denvish DARK LEVEL 42

Sign-Up: 04/25/03

Posts: 15,933

if(globalvolume >0){
_root.MCInstanceName.gotoAndStop (1);
}else{
_root.MCInstanceName.gotoAndStop(2);
}

- - Flash - Music - Report Abuse - -
Not around any more, see last news post.

BBS Signature

None

EdibleCastle

Reply To Post Reply & Quote

Posted at: 3/25/06 05:51 AM

EdibleCastle DARK LEVEL 10

Sign-Up: 03/29/03

Posts: 124

thanks denvish boyo. i'm never too sure how to word these things. easy peasy. ta.


All times are Eastern Standard Time (GMT -5) | Current Time: 01:09 PM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!