Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2012
17
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. package {
  2.  
  3. import flash.display.MovieClip;
  4.  
  5.  
  6. public class menuTab extends MovieClip {
  7. public var activatedW:int;
  8. public var activatedH:int;
  9. public var OrigW:int;
  10. public var OrigH:int;
  11.  
  12. public function menuTab() {
  13. activatedW = this.width * 1.2;
  14. activatedH = this.height * 1.2;
  15. OrigW = width;
  16. OrigH = height;
  17. }
  18. public function changeName(t:String){
  19. txtName.text = t;
  20. }
  21. public function deActivate(){
  22. this.width = OrigW;
  23. this.height = OrigH;
  24. }
  25. public function activate(){
  26. this.width = activatedW;
  27. this.height = activatedH;
  28. }
  29.  
  30.  
  31. }
  32.  
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement