Several questions about (random) sound (in actionscript), linkage and some sort of pu

[font=Arial]I have to design a game for a school project that I have to redo to pass my year, but so far I have encountered several problems. My game is for children from 6 to 8 years old, so the game has to have a lot of sound (voice recordings) to explain the menu’s and the stuff they have to do.[/font]

[font=Arial] [/font]

[font=Arial]1. Sound as rollover on a button[/font]
[font=Arial][/font]
[font=Arial]The problem is not that it doesn’t work, but that it only works once. If you move your mouse cursor over the buttons the first time, it will play the sounds. But if you move over them a second time, it doesn’t work anymore. You have to reload to make it work again.[/font]

[font=Arial] [/font]

[font=Arial]Used code:[/font]

[font=Arial]* on an actions layer:[/font]

[font=Arial]

[/font]
[font=Arial][font=Arial][size=2]//copyright August 2002 by Kenny Bellew - kennybellew@hotmail.com[/size][/font]

[font=Arial][size=2]this.onEnterFrame = function () {[/size][/font]

[font=Arial][size=2]if (playing==true) {[/size][/font]

[font=Arial][size=2] myPlay=“Playing”[/size][/font]

[font=Arial][size=2]}[/size][/font]

[font=Arial][size=2] else {myPlay=“Not Playing”[/size][/font]

[font=Arial][size=2] }[/size][/font]

[font=Arial][size=2]if (playing02==true) {[/size][/font]

[font=Arial][size=2] myPlay02=“Playing”[/size][/font]

[font=Arial][size=2]}[/size][/font]

[font=Arial][size=2] else {myPlay02=“Not Playing”[/size][/font]

[font=Arial][size=2] }[/size][/font]

[font=Arial][size=2]}[/size][/font]

[/font][font=Arial][font=Arial][/font]
[/font]
[font=Arial][/font]
[font=Arial][font=Arial]-[/font][size=2] * [/size][/font][font=Arial]on the layer with the buttons:[/font]
[font=Arial][/font]

[font=Arial][size=2]

[/size][/font]
[font=Arial][size=2][font=Arial][size=2]this.kapitein.onRelease = function() {[/size][/font]

[font=Arial][size=2] getURL(“scene2.html”);[/size][/font]

[font=Arial][size=2]}[/size][/font]

[font=Arial][size=2] [/size][/font]

[font=Arial][size=2]this.help.onRelease = function() {[/size][/font]

[font=Arial][size=2] getURL(“scene3.html”);[/size][/font]

[font=Arial][size=2]}[/size][/font]

[font=Arial][size=2] [/size][/font]

[font=Arial][size=2]firstSound = new Sound();[/size][/font]

[font=Arial][size=2]firstSound.attachSound(“zin1”);[/size][/font]

[font=Arial][size=2]var secondOffset = 0;[/size][/font]

[font=Arial][size=2]var loops = 0;[/size][/font]

[font=Arial][size=2]var playing = false;[/size][/font]

[font=Arial][size=2] [/size][/font]

[font=Arial][size=2]secondSound = new Sound();[/size][/font]

[font=Arial][size=2]secondSound.attachSound(“klikhier”);[/size][/font]

[font=Arial][size=2]var secondOffset = 0;[/size][/font]

[font=Arial][size=2]var loops = 0;[/size][/font]

[font=Arial][size=2]var playing = false;[/size][/font]

[font=Arial] [/font]

[/size][/font][font=Arial][size=2][font=Arial][size=2][/size][/font]
[/size][/font]
[font=Arial][size=2][/size][/font]
[font=Arial][size=2] * [/size][/font][font=Arial]on the buttons:[/font]
[font=Arial] [/font]

[font=Arial][size=2][/size][/font]

[font=Arial]

[/font]
[font=Arial][font=Arial]on(rollOver) {[/font]

[font=Arial][size=2]if (playing!=true) {[/size][/font]

[font=Arial][size=2] playing=true;[/size][/font]

[font=Arial][size=2] firstSound.start(secondOffset,loops);}[/size][/font]

[font=Arial][size=2] }[/size][/font]

[/font][font=Arial][font=Arial][/font]
[/font]
[font=Arial][/font]
[font=Arial]So, the question is, does anyone know how I can make the sounds play on a rollover action everytime you move over the buttons?[/font]
[font=Arial][/font]
[font=Arial]http://cmdstud.khlim.be/~ejansen/CreativeDesign/scene1.html[/font]
[font=Arial] [/font]

[font=Arial]2. Random sounds [/font]

[font=Arial]One of the characters in the game is a parrot. I would like to have it yell out some things randomly. And at the same time, the parrot should move its beak.[/font][font=Arial]I know I have to use an array for the random sounds generation, but I don’t know exactly how and how do I make the beak move when one of the sounds plays?[/font]
[font=Arial] [/font]

[font=Arial]3. Linkage[/font]

[font=Arial]I have 7 scenes in the demo version of my game. I have read that it’s not a sensible thing to do to make one file with all those scenes, besides that, I have tried it before with only 2 or 3 scenes and I got in trouble with linking. [/font]
[font=Arial]So now I’ve made 7 swf files and linked them to each other by using the getURL action, but that links to the html files, and I would like to play everything with the flash player. If I link to the separate swf’s than it opens a new player with that file and I’ll have 7 different things open. [/font]

[font=Arial]So, is there another way to play the game without putting the 7 scenes in one swf?[/font]
[font=Arial] [/font]

[font=Arial]4. Puzzle[/font]

[font=Arial]I have designed a counting table where the kids have to ‘fill in’ numbers. So they make the sum, and they have to drag a number in a gray box, to the empty box in the table. [/font][font=Arial]So that’s probably done with drag and drop target? But what if they want to put the wrong number in the box? How can I specify that? [/font]
[font=Arial][/font]

http://cmdstud.khlim.be/~ejansen/CreativeDesign/scene5.swf (this is what that scene looks like)