Override GetBorderClass


/ Published in: ActionScript 3
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.