papalazarou78
Technical User
Hi
I'm using Tweener to create rollovers (changing the text colour) with the following text;
The rollover works great, but I want the button/text to remain in the rollover colour of red (990000) when the button is pressed, but can't seam to get it working. I have tried added the last tweener command into a onPress function as well with no luck.
Has anyone any pointers??
Thanks
I'm using Tweener to create rollovers (changing the text colour) with the following text;
Code:
movMenuBar.movServicesBtn.onRollOver = function() {
Tweener.addTween(movMenuBar.movServicesBtn.txtServices, {_text_color:0x990000, time:2});
};
movMenuBar.movServicesBtn.onRollOut = function() {
Tweener.addTween(movMenuBar.movServicesBtn.txtServices, {_text_color:0x999999, time:2});
};
movMenuBar.movServicesBtn.onRelease = function() {
Tweener.addTween(movMainContent, {_x:0, time:1.5, transition:"easeInOutBack"});
movMainContent.movServices.gotoAndPlay("services_start");
Tweener.addTween(movMenuBar.movServicesBtn.txtServices, {_text_color:0x990000});
};
The rollover works great, but I want the button/text to remain in the rollover colour of red (990000) when the button is pressed, but can't seam to get it working. I have tried added the last tweener command into a onPress function as well with no luck.
Has anyone any pointers??
Thanks