Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Mar 21st, 2010 | Syntax: None | Size: 2.62 KB | Hits: 122 | Expires: Never
Copy text to clipboard
  1. var Contato     : Object                                                                =       new Object( {
  2.                                                                                                                                         _mc                             :       MovieClip,
  3.                                                                                                                                         _pag                    :       Number
  4.                                                                                                                                 });
  5.  
  6. Contato.Init                                                                            =       function():Void {
  7.         this._mc                                                                                =               _container.attachMovie( "contatoMc",
  8.                                                                                                                                                                         "contatoCont",
  9.                                                                                                                                                                         200);
  10.  
  11.         this._mc._x = 50
  12.         this._mc._y     =       206;
  13.        
  14.        
  15.         Contato.View(1);
  16.        
  17.                
  18.  
  19.                 Contato._mc.titulo.descricao.olatit._visible = true
  20.                 Contato._mc.titulo.descricao.trabalhetit._visible = false
  21.                
  22.                 Tweener.addTween(Contato._mc.titulo.titulo, { _x: -95, time: 0.8,  transition:"easeInOutQuad" } );
  23.                 Tweener.addTween(Contato._mc.titulo.descricao, { _x: 90, time: 0.8,  transition:"easeInOutQuad" } );
  24.                 Tweener.addTween(Contato._mc.titulo.linha.mascara, { _x: -540, time: 0.5,  transition:"easeInOutQuad" } );
  25.                
  26.        
  27.  
  28.                
  29.        
  30.         Contato._mc.titulo.descricao.ola.onRollOver = function() { Tweener.addTween(Contato._mc.titulo.descricao.ola, { _color:0xFFFFFF } ); }
  31.         Contato._mc.titulo.descricao.ola.onRollOut = function() { Tweener.addTween(Contato._mc.titulo.descricao.ola, {  _color: 0x5C2D91 } ); }
  32.         Contato._mc.titulo.descricao.ola.onRelease = function():Void { ola(this); }
  33.        
  34.        
  35.         Contato._mc.titulo.descricao.trabalhe.onRollOver = function() { Tweener.addTween(Contato._mc.titulo.descricao.trabalhe, { _color: 0xFFFFFF } ); }
  36.         Contato._mc.titulo.descricao.trabalhe.onRollOut = function() { Tweener.addTween(Contato._mc.titulo.descricao.trabalhe, { _color: 0x5C2D91 } ); }
  37.         Contato._mc.titulo.descricao.trabalhe.onRelease = function():Void { trabalhe(this); }
  38.        
  39.        
  40.  
  41.        
  42.        
  43.  
  44.        
  45.        
  46.        
  47.        
  48.        
  49.         Contato.addListeners();
  50.        
  51.  
  52.        
  53.        
  54.         /// BOTAO ENVIAR
  55.         Contato._mc.trabalhe.enviar.onRelease                   =       function():Void {
  56.                
  57.                 if (Contato.Validate())  {
  58.                         Contato.Feedback("clear");
  59.                         Contato.SendMail();
  60.                 }
  61.         }      
  62.        
  63. }
  64.  
  65.  
  66. Contato.View                    =       function(_pag:Number):Void {
  67.  
  68.  
  69.         if (_pag == 1) {
  70.        
  71.                
  72.                 Tweener.addTween(Contato._mc.ola.enderecoanime, { _alpha: 100, _x: 158, time: 0.5, delay: 0,  transition:"easeInOutQuad" } );
  73.                 Tweener.addTween(Contato._mc.ola.emailanime, { _alpha: 100, _x: 120, time: 0.5, delay: 0.1,  transition:"easeInOutQuad" } );
  74.                 Tweener.addTween(Contato._mc.ola.bloganime, { _alpha: 100, _x: 120, time: 0.5, delay: 0.2,  transition:"easeInOutQuad" } );
  75.                 Tweener.addTween(Contato._mc.ola.twitteranime, { _alpha: 100, _x: 120, time: 0.5, delay: 0.3,  transition:"easeInOutQuad" } );
  76.                 Tweener.addTween(Contato._mc.ola.ola, { _alpha: 100, _x: 543, time: 0.5, delay: 0.4,  transition:"easeInOutQuad" } );
  77.                 Tweener.addTween(Contato._mc.ola.form, { _alpha: 100, _x: 543, time: 0.5, delay: 0.5,  transition:"easeInOutQuad" } );
  78.                
  79. }
  80. }