neiro
02-28-2005, 09:28 PM
I am trying to get this animation to do a burn effect on the movieclip called image. Button I want it to do the function automatically when it hits the frame, not by using a button or another function to do it. Here is the code I have so far.
This is the code for when the flash hits a certain frame
#include "lmc_tween.as"
image.colorTransformTo(100, 0, 100, 0, 100, 0, 100, 100, 1, "easeInQuad");
These functions are the ones I got off the board, and are using as guides.
image.onRollOver = function () {
this.colorTransformTo(200, 255, 200, 255, 200, 255, 200, 255, 1, "easeOutQuad");
}
image.onRollOut = function () {
this.colorTransformTo(100, 0, 100, 0, 100, 0, 100, 0, 1, "easeOutQuad");
}
The rollOver and rollOut functions work great and does what I want it to, but I cant get it to work by itself.
If anyone can help me out I would greatly appreciate it.
Thanks,
Chad
This is the code for when the flash hits a certain frame
#include "lmc_tween.as"
image.colorTransformTo(100, 0, 100, 0, 100, 0, 100, 100, 1, "easeInQuad");
These functions are the ones I got off the board, and are using as guides.
image.onRollOver = function () {
this.colorTransformTo(200, 255, 200, 255, 200, 255, 200, 255, 1, "easeOutQuad");
}
image.onRollOut = function () {
this.colorTransformTo(100, 0, 100, 0, 100, 0, 100, 0, 1, "easeOutQuad");
}
The rollOver and rollOut functions work great and does what I want it to, but I cant get it to work by itself.
If anyone can help me out I would greatly appreciate it.
Thanks,
Chad