Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > General > Gaming and Game Development

Reply
 
Thread Tools Rate Thread Display Modes
Old 05-10-2002, 03:39 PM   #1
fredbelli
Registered User
 
Join Date: May 2002
Posts: 2
Default Sound for game

I've started a game at:
http://texasmedia.cocomm.utexas.edu/...en/fred/4.html

My idea is have the player drag the pieces over onto the stage and arragne them as they wish. Once arranged, they click a button and mouse over the pieces, and each piece will play a musical note. If they are in the correct order, they will hear Mary Had a Little Lamb.

I do not want them to hear any of the sounds until they hit a button to turn the sound on. Right now they hear the sounds at every stage. The sounds are currently imbeded in a movieclip, and the sound plays regardless. Do you know of a way to code this to work like I've described?

Let me know what you think!

Fred
fredbelli is offline   Reply With Quote
Old 05-10-2002, 03:58 PM   #2
sfa
The Placid Casual
 
sfa's Avatar
 
Join Date: Oct 2001
Location: Malta
Posts: 1,026
Default

You can use a variable like sound = on or off and have an if statement on rollover to see if it should play or not.

SFA
sfa is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kenny Bellew Sound Object Tutorial Updated Kennyb ActionScript 2.0 23 05-09-2007 09:38 PM
How can I play sound exactly on event without gap ? sces99 ActionScript 2.0 0 07-21-2004 08:34 AM
mozilla sound problem spacether ActionScript 1.0 (and below) 0 07-03-2004 07:53 PM
Sound and Websites spazmaster General Chat 7 05-13-2004 08:06 PM
Control Sound Object puthisorn ActionScript 2.0 9 05-06-2004 05:20 AM


All times are GMT. The time now is 10:33 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.