rkarleskint
08-26-2008, 05:29 PM
import caurina.transitions.Tweener; mcclip.buttonMode = true; mcclip.mouseChildren = false; mcclip.addEventListener(MouseEvent.ROLL_OUT, hover) mcclip.addEventListener(MouseEvent.ROLL_OVER, hover) function hover(e:MouseEvent) { if (e.type == "rollOver") { Tweener.addTween(this, {_color:0x837293, time:1, transition:"easeIn"}); } else { Tweener.addTween(this, {_color:0x000000, time:1, transition:"easeOut"}); } }
This code works fine in my .swf file, as soon as I export it to air It stops working, I exported the class files as well, and when I load up the .swf in the install directory it works as it should but as soon as I run the air app it works, now if it helps In the main file that im working on that uses this same type of code, I have it do click events and such and they go through, however you do not get the rollOver action, also the Tweener class works in other places in my document but not here, is it because it is dynamic text, that is the only thing I can think off that separates it from the rest of the working models. If so, why does it work in .swf and not in air and what is my work around? I will post the flash file as well so you can see the setup as well. Any help on the matter would be great as this is a very urgent problem. Thank you in advance.
This code works fine in my .swf file, as soon as I export it to air It stops working, I exported the class files as well, and when I load up the .swf in the install directory it works as it should but as soon as I run the air app it works, now if it helps In the main file that im working on that uses this same type of code, I have it do click events and such and they go through, however you do not get the rollOver action, also the Tweener class works in other places in my document but not here, is it because it is dynamic text, that is the only thing I can think off that separates it from the rest of the working models. If so, why does it work in .swf and not in air and what is my work around? I will post the flash file as well so you can see the setup as well. Any help on the matter would be great as this is a very urgent problem. Thank you in advance.