Comunidad de diseño web y desarrollo en internet online

Operador Trinario

Citar            
MensajeEscrito el 29 Nov 2010 07:38 pm
Muy buenas, gracias a un compañero de Cristalab he conocido este operador, pero no me funciona correctamente, alguien podría ayudarme? Tengo este código

Código ActionScript :

TweenLite.to(btn1, 0.2, {tint:(color02._currentframe==2)?0x000000:null, ease:Back.easeIn});
TweenLite.to(btn2, 0.2, {tint:(color02._currentframe==2)?0x000000:null, ease:Back.easeIn});
TweenLite.to(btn3, 0.2, {tint:(color02._currentframe==2)?0x000000:null, ease:Back.easeIn});


Al exportar me da el siguiente Warning, pero no funciona...

Warning: 1058: Migration issue: The property _currentframe is no longer supported. Use the MovieClip.currentFrame property instead..

Muchas gracias de antemano

Por zink1314

25 de clabLevel



 

firefox
Citar            
MensajeEscrito el 29 Nov 2010 07:46 pm
Como solisarg te espondio en tu otro post quitale el guion bajo.

Código ActionScript :

._current /*cambia por*/ .current

Por Angel Roberto

Claber

248 de clabLevel



 

firefox
Citar            
MensajeEscrito el 29 Nov 2010 07:48 pm
El mismo mensaje de error te esta diciendo que hacer:

Código ActionScript :

Use the MovieClip.currentFrame property instead..

//Osea que .currentframe te marcara error debes usar .currentFrame (con mayuscula)

Por Angel Roberto

Claber

248 de clabLevel



 

firefox
Citar            
MensajeEscrito el 29 Nov 2010 09:25 pm
Muchas gracias Angel! error de novatisimo!

Por zink1314

25 de clabLevel



 

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.