Naty's Profile
Reputation: 0
Neutral
- Group:
- Membros
- Active Posts:
- 59 (0.03 per day)
- Most Active In:
- Flash & ActionScript (54 posts)
- Joined:
- 22-September 06
- Profile Views:
- 2953
- Last Active:
Dec 05 2011 04:40 PM- Currently:
- Offline
My Information
- Age:
- 27 years old
- Birthday:
- June 6, 1984
- Gender:
-
Female
- Location:
- Santos/SP
- Interests:
- Aprender cada vez mais !
Contact Information
- E-mail:
- Click here to e-mail me
- MSN:
-
natalia.plugcom@hotmail.com
- Website URL:
-
http://www.plugcomunicacao.com.br
Latest Visitors
-
Utisticsjek 
29 Sep 2011 - 10:02 -
RONYTORRES 
03 May 2011 - 16:26 -
LILO's J.... 
12 Oct 2010 - 11:22 -
pk_ 
11 Aug 2010 - 18:21 -
fabiano_magno 
02 Aug 2010 - 10:52
Topics I've Started
-
Mouse Over & Mouse Out [RESOLVIDO]
04 November 2011 - 05:18 PM
Olá, pessoal....
Tenho um dúvida que já revirei o PAI Google e este forum e não encontrei nada que me ajudasse a resolver...
Estou tentando fazer um menu com submenu, este submenu é ativo com MouseOver e MouseOut.
Porém quando utilizo o MouseOut não consegui acessar os bts que estão no submenu, pois ele logicamente desaparece pois esta sendo chamada a função MouseOut.
Minha dúvida é onde ao certo devo colocar o MouseOut, pois se eu colocar no bt_empresa logicamente ele não ficará acessível.
Abaixo segue partes do meu código:
function vaiHome (evt:Object) { addChildAt(conteiner1, 4) // conteiner1.addChild(bt_home) bt_home.x = 28 bt_home.y = 139 animaTween = new Tween(bt_home, "alpha", Strong.easeOut, 0, 1, 0.5, true); antiGC.push(animaTween); bt_home.meuTween = animaTween // animaTween.addEventListener(TweenEvent.MOTION_FINISH, vaiEmpresa) bt_home.addEventListener(MouseEvent.CLICK, clicou) } function vaiEmpresa (evt:TweenEvent) { conteiner1.addChild(bt_empresa) bt_empresa.x = 150 bt_empresa.y = 139 animaTween = new Tween(bt_empresa, "alpha", Strong.easeOut, 0, 1, 0.5, true); antiGC.push(animaTween); bt_empresa.meuTween = animaTween // animaTween.addEventListener(TweenEvent.MOTION_FINISH, vaiAtuacao) // bt_empresa.addEventListener(MouseEvent.CLICK, clicou) bt_empresa.addEventListener(MouseEvent.MOUSE_OVER, overEmp) bt_empresa.addEventListener(MouseEvent.MOUSE_OUT, outEmp) } function vaiAtuacao (evt:TweenEvent) { conteiner1.addChild(bt_atuacao) bt_atuacao.x = 316 bt_atuacao.y = 139 animaTween = new Tween(bt_atuacao, "alpha", Strong.easeOut, 0, 1, 0.5, true); antiGC.push(animaTween); bt_atuacao.meuTween = animaTween // animaTween.addEventListener(TweenEvent.MOTION_FINISH, vaiObras) bt_atuacao.addEventListener(MouseEvent.CLICK, clicou) } function vaiObras (evt:TweenEvent) { conteiner1.addChild(bt_obras) bt_obras.x = 541 bt_obras.y = 139 animaTween = new Tween(bt_obras, "alpha", Strong.easeOut, 0, 1, 0.5, true); antiGC.push(animaTween); bt_obras.meuTween = animaTween // animaTween.addEventListener(TweenEvent.MOTION_FINISH, vaiClientes) bt_obras.addEventListener(MouseEvent.CLICK, clicou) } function vaiClientes (evt:TweenEvent) { conteiner1.addChild(bt_clientes) bt_clientes.x = 665 bt_clientes.y = 139 animaTween = new Tween(bt_clientes, "alpha", Strong.easeOut, 0, 1, 0.5, true); antiGC.push(animaTween); bt_clientes.meuTween = animaTween // animaTween.addEventListener(TweenEvent.MOTION_FINISH, vaiContato) bt_clientes.addEventListener(MouseEvent.CLICK, clicou) } function vaiContato (evt:TweenEvent) { conteiner1.addChild(bt_contato) bt_contato.x = 808 bt_contato.y = 144 animaTween = new Tween(bt_contato, "alpha", Strong.easeOut, 0, 1, 0.5, true); antiGC.push(animaTween); bt_contato.meuTween = animaTween // animaTween.addEventListener(TweenEvent.MOTION_FINISH, vaiTexto) animaTween.addEventListener(TweenEvent.MOTION_FINISH, vaiFoto1) bt_contato.addEventListener(MouseEvent.CLICK, clicou) } // CHAMA A ANIMAÇÃO DO SUBMENU function overEmp (evt:MouseEvent) { conteiner1.addChild(fundo) fundo.x = 113 fundo.y = 180 fundo.width = 164 fundo.height = 165 animaTween = new Tween(fundo, "height", Regular.easeOut, 0, 165, 0.1, true); animaTween = new Tween(fundo, "alpha", Strong.easeOut, 0, 1, 0.1, true); antiGC.push(animaTween); fundo.meuTween = animaTween // animaTween.addEventListener(TweenEvent.MOTION_FINISH, vaiEmpresa2) } // CHAMA O TEXTO E BTS DO SUBMENU function vaiEmpresa2 (evt:TweenEvent) { conteiner1.addChild(mc_empresa) mc_empresa.x = 115 mc_empresa.y = 190 animaTween = new Tween(mc_empresa, "alpha", Strong.easeOut, 0, 1, 0.5, true); antiGC.push(animaTween); mc_empresa.meuTween = animaTween // mc_empresa.buttonMode = true mc_empresa.useHandCursor = true // mc_empresa.addEventListener(MouseEvent.CLICK, clicou) } // RECOLHE O SUBMENU function out (evt:MouseEvent) { if(mc_empresa) if(mc_empresa.parent) mc_empresa.parent.removeChild(mc_empresa) // animaTween = new Tween(fundo, "height", Regular.easeOut, 165, 0, 0.1, true); animaTween = new Tween(fundo, "alpha", Strong.easeOut, 1, 0, 0.1, true); antiGC.push(animaTween); fundo.meuTween = animaTween }

Help

Find My Content
Display name history
Comments
Naty
31 Jul 2010 - 17:25