ok, i am just getting started in flash i need to know where to look to find code for my first project, a choose your own adventure game so i need to find code that plays part of the movie then makes the user pick an option, then the movie would play different things depending on the option the user chose can somebody help me out?
You should be able to use the buttons to load each next movie clip [with an on (release) sort of code] or option selection with the tutorial :
http://www.kirupa.com/developer/flash5/loadmovie.htm
let me know if this won’t work with what you plan to do.
:love:
~ S. Blaze
i looked at the tutorial and it doesnt seem this is what i need i am submitting this contents on newgrounds.com and it can only be one movie i was thinking maybe i can use the goto command to skip over frames or whole scenes when the user chooses a button is this possible?
you can use frame labels and skip ahead…how long do you think your project will be, in seconds or frames?
well, i hadnt really planned ahead on the length (only finished with title frame) i really dont know but i will try to lay out what i am trying to do
BEGGINING
(title scene)
(two buttons appear)
button one
animation and two more buttons
sub button 1a>=ENDING 1a
sub button 1b>=ENDING 1b
button two
animation and two more buttons
sub button 2a>=ENDING 2a
sub button 2b>=ENDING 2b
!!not code just graphic representation!!
well i can draw and animate all this but i just need to know how to make it happen with the code
;(
no problem, but don’t go over 900 frames…flash starts freaking out (this includes ALL scenes)
Let’s see what you got…
BEGINNING
- Select Frame 1
- You should see a spot in the Properties Inspector at the bottom of your screen that says, in grey, “<frame label>”…click in this box and give it a name of “Title Screen”. Press Return.
- Right click on the first frame in your Timeline. Select “Actions”
- From the Actions Window that pops up, to your left will be some little books. Click Actions/Movie Control and then double click on stop. Close the window.
- Since it’s your first time, no need to reinvent the wheel. Go to Window/Common Libraries/Buttons and pick out a couple of buttons you like. Drag them from the Library to the Stage (the canvas area).
- Now, go into the next frame of your Timeline. Repeat Steps 2 through 4, but this time, label the frame “Chapter 1” or something that has meaning to you.
- Go to Frame 1 in the Timeline, and right click on the first button in your frame. Select “Actions”
- Click Actions/Movie Control and then double click on “on”.
- Click on the second line of text that appears. Double click on “goto”.
- Select Go To and Play or Stop, depending on what you need the playback head to do.
- Change the Type to “Frame Label”
- Select your Frame Label from the list.
Congratulations! With this knowledge, you should be able to assemble your first movie. Look under the Flash Tutorials to learn more about how to animate in Flash using Tweening. Good Luck!