flash - group rollover effects with actionscript3 -
I have found the following problem with the actionscript3 project.
I have a group of button setups through a class sitting in a holder's spread.
When I roller one of these buttons, I loop through all the buttons in the holder and run between 4-4 in the middle of the alpha to run the twilllight. Click on the button.
When I rollout I reset all the buttons again in alpha 1 via a twinlight tin.
It works fine most of the time. I have these problems as follows:
- When I roll from one button to the other directly then there is a lot of flicker < / Li>
- Sometimes when I roll on another button,
- I have a case, instead of returning all the buttons in alpha1, they return them to an initial state alpha is required.
I have tried Tweengroup but it does not seem to help either.
Let me know if you need more details, the code is integrated into many other things, this is the reason why I have not posted it but if I need to, keep anything together Can i
Thank you.
Josh
IMO, you should create a class for those buttons, which Keep the state internally ... So from the outside, you only call two methods, we say that fadeDown
and fadeUp
, button ... button They know themselves, what their alhpa is, if a twill is running etc. ... will always kill their own strife (or just continue, if this is the right middle one) ... and then the right animation will be the internal state Right of Start for the representation ... you can consider using that thing ... to keep your code clean ... (just use private sections, not enough files). Also, it is a good thing, that the animation is different logic, so that you can easily reuse the button outside of the coefficient of ntext, and / or change the animation concept (eg. .
Congratulations
back2dos
/ P>
Comments
Post a Comment