[osflash] Tweening by Code
beno -
flashmebaby at gmail.com
Tue Nov 3 08:08:05 PST 2009
Hi;
I'm trying to figure out how to do an alpha tween. When I run this code:
onClipEvent(enterFrame){
if(this._alpha < 100){
this._alpha += 1;
};
}
I get this error after the first line:
Extra characters found after end of program
When I create an object on the stage and convert it to a movie clip named
"test" and run this script:
test.MovieClip = new MovieClip();
this.addChild(test);
var i:Number = 0;
test.onEnterFrame = function() {
while (i < 10) {
i++;
test.alpha += .10;
};
}
I get an error about test being an unidentified variable. Please advise.
Also, while we're at it:
1) How do I change the framespeed?
2) I have a motion tween between different 5 graphics. I want to put the
whole thing into a movie that I can place in the library and call as I will.
How do I do that? Also, how do I reverse the movie?
TIA,
beno
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/osflash_osflash.org/attachments/20091103/f5c16235/attachment.html>
More information about the osflash
mailing list