Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...

GlanGlan

Members
  • Posts

    1
  • Joined

  • Last visited

GlanGlan's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hello, Sorry for my english, i'm frensh speaking. I made an exercice from the Thibault Imbert's book "Pratique d'Action Script 3". He uses the fl Tween Class to do this exercice but I want to do it with the TweenLite Class and I don't find the solution could you help me? Here is the code: import fl.transitions.Tween; import fl.transitions.easing.Elastic; var tableauLabel:Array = new Array ("Accueil", "Historique", "Contact", "Jeux"); var containerBtn:Sprite = new Sprite(); containerBtn.x = 20; addChild (containerBtn); function creerMenu ():void { var lng:int = tableauLabel.length; var btn:Bouton; for (var i:int = 0; i< lng; i++){ btn = new Bouton(); btn.y = 20 + i*(btn.height + 10); btn.buttonMode = true; btn.mouseChildren = false; btn.maLegende.text = tableauLabel; btn.tween = new Tween (btn, "y", Elastic.easeOut, 0, 20 + i*(btn.height + 10), 3, true); containerBtn.addChild (btn); } } creerMenu () Thank you for your answer!
×