Now, I am very accustomed to using keyframe animation, but I was open to coding my animations as well. I extensively used the Republic of Code site to find out more information about the Tween class. A tween is basically an increase or decrease of a property over a set time period. This change over time creates the animation.Once I replaced all my animations in my timeline, I then republished my movie and loaded it onto my tablet. It worked out successfully.
Here's a brief look at what I did:
This is the code that I used to achieve the animation. It's pretty short and to the point:
stop();By the way, I'm using the same methods for my final project that focuses on building ethical competence. I was tempted to post the animations that I've created for this project here, but I decided to hold off for now. I'm not quite done with it and I think you'll really enjoy it. In any case, I hope to be able to use this technique to for all of my projects so that they can be accessible on practically any device.
import fl.transitions.Tween;
import fl.transitions.easing.*;
import fl.transitions.TweenEvent;
//Creates a new variable to change the transparancy of the movie clip.
var myTween:Tween = new Tween(AnimationName, "alpha", Strong.easeIn, 1, 0, 2, true);
//Creates another variable to have the movie clip move off screen.
var myTween2:Tween = new Tween(AnimationName, "x", Strong.easeOut, AnimationName.x,AnimationName.x-350, 5, true);
Dee again...
ReplyDeleteThat's simple and cool! Have you ever looked at Codebaby. It's a simulation software...not sure if it's free but it makes some pretty cool simulations. I wish I had time to play with these things. I haven't touched simulations since Dr. Smith's class and that darn gazebo! lol!