Joke Collection Website - Cold jokes - Flash voice control code with high score
Flash voice control code with high score
my Sound = new Sound();
Mysound.loadSound("mp3 file path ",true);
my sound . start(0);
onEnterFrame=function(){
Mysound.setVolume(mc。 _x)// The volume is the _x coordinate of the movie MC.
//Respond to an event when the volume is greater than 60%
If (mc. _ x & gt60){
Trace (event to respond to)
}
Otherwise {
Tracking ("No")
}
}
//-Description: You have to pass startdrag () separately; Control the sliding of movie mc
That's it. Give me extra points if you do well in the exam, hahaha. . . .
- Previous article:Jokes and jokes about driverless technology
- Next article:Business joke
- Related articles
- Sentences that incisively discuss or express opinions in The Journey to the West.
- The 22-year-old tiger's name is
- Is the marathon the Korean version of Forrest Gump?
- In Peach Blossom Fan, Liu Jingting told a joke. I don't know what the answer means. Who can explain?
- Help translate
- Time translation? Misky did it.
- Beg 100 hilarious jokes.
- 100000 paragraphs are hung on the lyrics of lrc in Southeast Branch.
- Interesting homophonic stalk copy sent to a circle of friends.
- Will the war break out when NATO draws a red line?