Jump to content
Search Community

santyas3

Members
  • Posts

    7
  • Joined

  • Last visited

santyas3's Achievements

0

Reputation

  1. Ahhhhh, details that make a good practitioner of AS (not my case). Thank you very much! I will continue to improve the animation between steps (I'll try to do it alone this time). If it works, I share!
  2. ok! thank you array_images.zip
  3. Thank you carl, Im sorry, the problem is when i clicked on any bullet the "tl" always show me "mc03", I think the problem is in the call to the button this[bulletVar]
  4. I cant find the right way to "play" each node of the array... maybe the problem is on the "onpress" code? Thank you! import com.greensock.*; var images:Array = [mc0,mc1,mc2,mc3]; //my movieclips to animate var tl:TimelineMax = new TimelineMax({repeat:-1}); for(var i:Number = 0; i < images.length; i++){ var imageVar:String = "image" + i; var bulletVar:String = "bullet" + i; tl.from(images[i],1,{_alpha :0}) //fade in .addLabel(imageVar) // place label right after image fades in .to(images[i], 1, {_alpha :0}, "+=1"); //fade out duplicateMovieClip(mcBullet, bulletVar, i); // duplicate "i" times setProperty(bulletVar, _x, "100"*i); // _x align this[bulletVar].onPress = function(){ // problem :/ tl.play(imageVar); } }
  5. tl.play("image1"); This works.
  6. Hello, thank you very much. I try to learn little by little! I paste the same code of "array" within each function buttons, ex: bullet1.addEventListener(MouseEvent.CLICK, bullet1_click); function bullet1_click(ev:MouseEvent):void { tl.from(images[1],1,{alpha:0}) .to(images[1], 0, {alpha:0}); } //etc Maybe 2 to 5 times, depending on the amount of images.In this way should have the effect "alpha" between instances? Thank you and I apologize for my english. Santiago
  7. Hello, good work! Is it possible to navigate to different images of the array with different buttons (like bullets)? Thank you very much Santiago
×
×
  • Create New...