Posted By

tpryan on 06/05/11


Tagged


Versions (?)

Override GetBorderClass


 / Published in: ActionScript 3
 

  1. // Override this function to return our skin images and not the normal ones.
  2. override protected function getBorderClassForCurrentState():Class
  3. {
  4. if (currentState == "down"){
  5. labelDisplay.setStyle("color",0xFFFFFF);
  6. return down;
  7. }
  8. else{
  9. labelDisplay.setStyle("color",0x48250A);
  10. return up;
  11. }
  12. }

Report this snippet  

You need to login to post a comment.