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

how can i test if an instance exits?

Status
Not open for further replies.

adamr1001

MIS
Jul 25, 2001
166
CA

more specifically...

i have a loader window that loads difference SWFs into level1.

some have soundtracks, and other do not.

in the loader window, there is a volume controller that always controlls _leve1.soundTrack

if there _level1.soundTrack does not exist, i would like to disable the volume controller.

so all i need to do is figure out the most efficient way of simply testing to see if _level1.soundTrack exists.

Thanks!
 
perhaps the easiest way is just to place a value in frame 1 of each swf to be loaded

HasSoundTrack = true or false

test for this variable and have the volume buttons enabled or visible property determined by this value

myVolumeButton._visible = HasSoundTrack;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top