PDA

View Full Version : Project help~~~~~~ IN HURRY



EvaWinds
03-23-2005, 05:47 AM
how can i make the line which could growing by itself when i play the movie?

plz help..........
Thank you so much......

Eva

NTD
03-23-2005, 03:19 PM
Hi,

The easy way if your not up to speed on actionscript and using the drawing API would be to use a shape tween. Create a small dash on the first frame of a blank movie. Insert a keyframe some frames down the timeline. Create a shape tween. On the last frame of the shape tween, scale the line to the size you want. Test it. It should animate the line as if it were being drawn or growing. Another method is to use a keyframe animation approach. Draw your line in small increments over several keyframes to simulate the line being drawn. The last option is to use the Macromedia Flash drawing API in an onEnterFrame event. You can use a points array to determine where the line needs to draw to. This last method might be a little more complex than your looking for but it is useful to learn. You can also use the actionscript pane to learn about the methods of any object. Example, type

Drawing Methods

into the actionscript panel. Highlight it and click on the little book with a ? icon(Flash help manual). It will give you all of the available methods with a brief description. Most contain a code sample example of how to employ the method.

hope it helps
NTD