Chelsea
10-10-2008, 02:53 PM
Hi,
I have an object that I want user to drag into a fire. When the user releases the mouse I want the object to fade out so it appears it was consumed by the fire. This is the code I have so far:
on(rollOver)
{
Mouse.show(hand);
}
on(press) {
startDrag(this);
}
//this line releases the shape and shows the mouse again on the screen
//this is where I want to add the code for the object to fade out and dissappear
on(release) {
stopDrag();
Mouse.show();
Any help with the code for the object to fade out would help. Thanks.
I have an object that I want user to drag into a fire. When the user releases the mouse I want the object to fade out so it appears it was consumed by the fire. This is the code I have so far:
on(rollOver)
{
Mouse.show(hand);
}
on(press) {
startDrag(this);
}
//this line releases the shape and shows the mouse again on the screen
//this is where I want to add the code for the object to fade out and dissappear
on(release) {
stopDrag();
Mouse.show();
Any help with the code for the object to fade out would help. Thanks.