Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Web Design Lobby Forum for general web design issues not specific to scripting or graphics.

Ezilon Directory   ClickBooth Network   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 11-29-2003, 06:37 AM   #21 (permalink)
Inactive
 
Join Date: 10-13-03
Posts: 189
iTrader: 0 / 0%
Latest Blog:
None

as_scripter is a jewel in the roughas_scripter is a jewel in the roughas_scripter is a jewel in the roughas_scripter is a jewel in the roughas_scripter is a jewel in the roughas_scripter is a jewel in the rough
heh.

The riddles are simple. You place a input text box on the stage, fill in the var field with 'answer'. Then when the user hits enter just execute a simple script.

if (answer=="black") {
//You got it!
}else{
nomc.play(); // Play the NO sound
answer = "" //Make the input box blank
}
as_scripter is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-29-2003, 06:49 AM   #22 (permalink)
Moderator
 
LazyJim's Avatar
 
Join Date: 10-13-03
Location: UK
Posts: 2,819
iTrader: 0 / 0%
Latest Blog:
None

LazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to all
Send a message via MSN to LazyJim
don't need to presse enter!
in HTML and JavaScript I would check the value each time the value is changed.
onchange="if (this.value == 'answer') playClip('answer'); else playClip('no');"
sort of thing

there would probably be a few was to do the lady-bird - but u'd have to test each roughly to see which works best.
It could just be a load of layers sliding over each other and one is the shape that masks the layers and moves.
I don't know - I aint even worked in Flash b4, - but I can imagine possible ways in DHTML
__________________

-LJ-

My advice is to look at each case individually, with an informed mind and an appropriately balanced and objective viewpoint.

Web Design and Development, Ipswich, UK.
My deviantArt
LazyJim is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-29-2003, 06:54 AM   #23 (permalink)
Inactive
 
Join Date: 10-13-03
Posts: 189
iTrader: 0 / 0%
Latest Blog:
None

as_scripter is a jewel in the roughas_scripter is a jewel in the roughas_scripter is a jewel in the roughas_scripter is a jewel in the roughas_scripter is a jewel in the roughas_scripter is a jewel in the rough
It really isn't complicated. You can just create a loop that checks what has been entered every .5 seconds.

Or you could have flash watch for keys to be typed, when ever a key is pressed it will execute the script.

-Mike
as_scripter is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-29-2003, 07:01 AM   #24 (permalink)
Inactive
 
Join Date: 10-13-03
Posts: 189
iTrader: 0 / 0%
Latest Blog:
None

as_scripter is a jewel in the roughas_scripter is a jewel in the roughas_scripter is a jewel in the roughas_scripter is a jewel in the roughas_scripter is a jewel in the roughas_scripter is a jewel in the rough
[code:1:19c32a33cc]watch = new Object();
watch.onKeyDown = function() {
if (answer == "black") {
//You got it!
} else {
nomc.play();
// Play the NO sound
answer = "";
//Make the input box blank
}
};
Key.addListener(watch);[/code:1:19c32a33cc]

Here is an example, flash executes the script whenever a key is pressed.

-Mike
as_scripter is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-30-2003, 05:53 AM   #25 (permalink)
Inactive
 
Join Date: 10-13-03
Posts: 1,671
iTrader: 0 / 0%
Latest Blog:
None

AcRoNym is a jewel in the roughAcRoNym is a jewel in the roughAcRoNym is a jewel in the roughAcRoNym is a jewel in the roughAcRoNym is a jewel in the roughAcRoNym is a jewel in the rough
what about variables if i type in a commonly wrong answer or something stupid it replies with a speech sample
AcRoNym is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-30-2003, 06:03 AM   #26 (permalink)
Inactive
 
Join Date: 10-13-03
Posts: 189
iTrader: 0 / 0%
Latest Blog:
None

as_scripter is a jewel in the roughas_scripter is a jewel in the roughas_scripter is a jewel in the roughas_scripter is a jewel in the roughas_scripter is a jewel in the roughas_scripter is a jewel in the rough
You could add in as many if, thens as you like.
[code:1:d46def452f]
}else if (answer == "bum" {
stupidmc.play();
}else if (answer == "suckme") {
stupidmc.play();
} ..ect..ect..[/code:1:d46def452f]
as_scripter is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-30-2003, 08:00 AM   #27 (permalink)
Inactive
 
Join Date: 10-13-03
Posts: 1,671
iTrader: 0 / 0%
Latest Blog:
None

AcRoNym is a jewel in the roughAcRoNym is a jewel in the roughAcRoNym is a jewel in the roughAcRoNym is a jewel in the roughAcRoNym is a jewel in the roughAcRoNym is a jewel in the rough
nice
AcRoNym is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How much do you charge? kristeejo SEO Forum 25 09-19-2006 04:34 AM
What should I charge Boygenius Web Design Lobby 7 08-01-2006 11:15 AM
How much would you charge for this.. Tekno Monkey Web Design Lobby 7 05-25-2006 11:17 AM
How much should I charge? DarrenC Marketing Forum 6 04-18-2006 02:14 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 02:53 PM.
© Copyright 2008 V7 Inc