View Full Version : Simple (Me thinks) questions :)
Mario912
01-07-2003, 01:51 PM
Ok, I have a few scripting problems:
1. How do you insert a sound to play at a specified frame
2. How do you make a button that plays the movie?
3. How do you connect the scenes you made?
Thats about it
simontheak
01-07-2003, 03:23 PM
Simplest ways are as follows:
1. Insert a keyframe into the frame and drag your wav file from the library on to the stage
2.Place a stop action in the first frame (so that the movie doesn't play straight away, and on your button place the following code:
on (release){
gotoAndPlay(2);
}
3.The scenes will automatically play from one to the next. However you can use following code to go to particular scenes/frame numbers:
gotoAndPlay("sceneName",frameNumber)
Hope that helps!
Donīt miss your common libraries @ window/Common Libraries and the Using Flash Manual, there is a few examples of how to do it. Good Luck:)
Mario912
01-09-2003, 11:12 PM
Thanks, you guys are alot nicer then the people at the Visual Basic board
I am still having trouble though, it says that there is a syntax error... could anyone show me how to put in the stop command
simontheak
01-10-2003, 07:42 AM
Pah - Visual Basic :D
Anyway - the stop command: Insert a keyframe where you want the command (if you haven't already got code in there!) and open the Actions panel.
Then all you need to do is type stop();
That should pretty much do it
elfis
01-10-2003, 07:57 AM
If you are making a web page i would strongly recomend to use the mp3 audio format insted of waw because the last is way too heavy !!
Best wishes in Flashing !!! :D
Mario912
01-10-2003, 07:05 PM
Thanks, I never knew that you could use mp3's... Good.
I am making a simple movie, that is pretty hillarious. So, can anyone answer my previous question please. Thanks alot for the tip on MP3's
simontheak
01-10-2003, 07:35 PM
What is your previous question? I'm sorry,I thought they'd been answered
Mario912
01-10-2003, 10:41 PM
Oh, your right, but now I have a new question... MUWHAHA
Ok, I need to inport a sound from my computor and drag it onto the stage.... Get it?
Ex: You have downloaded a sound and you want it in the movie (starting at a specified frame)... Now what?
ALSO... Is there anyway to modify a layer to play a sound when it is clicked
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.