all groups > flash actionscript > april 2004 >
You're in the

flash actionscript

group:

NEED HELP W/ SOUND.START()


NEED HELP W/ SOUND.START() NSurveyor
4/26/2004 10:20:06 PM
flash actionscript: I am making a program, where the user inputs text, then each letter is spoken.
So, lets say first I make a bunch of sound objects, each corressponding with a
character, like the sound object X would play x. Then I used the following
action script to find the first character:

let=text2.charAt(0);
//tex2 is the name of the text box

Now how do I get the variable, LET to play its corresponding sound object.
Basically, if LET = "X" i would want to be able to do something like
let.start() to play x.start()
Re: NEED HELP W/ SOUND.START() kglad
4/27/2004 1:01:04 PM
mys=new Sound();
mys.attachSound(let); // where x's sound file has a linkage id = x
AddThis Social Bookmark Button