lil boi blue -> RE: Flash help and tutorials, come here to share your wisdom or ask questions (9/26/2005 21:51:05)
|
ok done with homework, but im having trouble trying to get the actionscript way to work (its usually less messy and less space) but here is the "fail safe" method 1)open flash document 2)draw your bird 3)right click on it and convert it to a symbol/button quote:
ACTION SCRIPT INSTRUCTIONS -with the free transform tool left click the bird (that is now a button) -in the action script area type= on(release){gotoAndPlay(21);} -explaination= just telling it that when you click on the bird, it will play frame 21 -fin=this will apply to all frames that chicken is in 4)right click on frame 1 and select create motion tween 5)keyframe frame's 5,10,15, 19 quote:
ACTION SCRIPT INTSTRUCTIONS 2 -click frame 19 -in action script box type= {gotoAndPlay(1);} -explanation= just saying when you get to frame 19 replay the whole thing again 6)on frame 1 make the bird on left of screen, on frame 5 make bird on top of screen, on frame 10 make bird on right side of screen, on frame 15 make bird on bottom of screen, on frame 19 place it as close as you can to original start of other chicken TIP= dont just copy frame 1 and paste it to frame 19 cause it will screw up the action script instructions 7)keyframe frame 20, then clear it, DONT REMOVE it just clear it 8)keyframe frame 21, make a bagged up bird or dead bird there, then make frame 21 motion tweened 9)key frame frame 28 and make the bag (if chosen) go right, then on keyframed 34 (that you would do) make bag go left 10)keyframe frame 35 and make bag back to original position ACTION SCRIPT INSTRUCTIONS -click frame 35 -add this for actionscript= {gotoAndPlay(21);} FIN= YOUR DONE, W00T, now you can repeat this in different layers to get more birds Another thing, if you make more birds,you can make more layers and "captured bird"frames to make it different ex:// there are birds A, B, C, and D each on their own separate layers A=1 B=2 C=3 D=4; Frames1-19= A, B, C, D Frames 20-29=A, B, C, D Frames30-39=A, B, C, D Frames40-19= A, B, C, D Frames50-59=A, B, C, D Frames60-69=A, B, C, D Frames70-79=A, B, C, D Frames80-89=A, B, C, D Frames90-99=A, B, C, D Frames100-109=A, B, C, D Frames110-119=A, B, C, D Frames120-129=A, B, C, D Frames130-139=A, B, C, D Frames140-149=A, B, C, D Frames150-159=A, B, C, D Frames160-169=A, B, C, D you capture B, you go and play frame 41 so that B is gagged in a bag while A C and D are still out, See the pattern? its like using math (the actionscript method is by making animations within one frame repeatedly, im having trouble making the bird go on diagonals cause i can only make it go on one axis [either x or y] but i'll keep trying^_^)
|
|
|
|