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

# ilanb

Members

27

0

3. ## Optimisation

Hey Carl ! thanks for tips ! this work fine for me, I don't know how to quantify benefits but work fine thanks again ! for (var i:int = 0; i < flipListArray.length; i++) { element = flipListArray[i] as CardFlip; element.flipToFront(); if( i % 2 == 0) TweenLite.to(element, .5, {alpha:0, x:-1000, y:String( Math.random()* 1000 ), delay:Math.random() * 1, z:Math.random()*3000 , ease:Quad.easeInOut}); else TweenLite.to(element, 1, {alpha:0, x:-1000, y:String( Math.random()* -1000 ), delay:Math.random() * 1, z:Math.random()*3000 , ease:Quad.easeInOut}); }

5. ## TimelineMax "gotoAndStop in insertMultiple"

Thx Carl ! very useful example ! try this and adapt for my need !
6. ## TimelineMax "gotoAndStop in insertMultiple"

Hi Carl, I would like to have color change for one movieClip when rotation of this movieClip is finished, actually color are change when rotation of all movieClip is ended (see onComplete function in code) Sorry for poor english... thx num = int(e.target.name.split("img_")[1]); var timeline:TimelineMax = new TimelineMax({onComplete:function() { var tmp:MovieClip; for (var i:int = 1; i <= 10; i++) { tmp = getChildByName("img_" + i) as MovieClip; tmp.gotoAndStop(num); } }}); var clicked_img:MovieClip; var listArray:Array = new Array(); listArray.push(img_1, img_2, img_3, img_4, img_5, img_6, img_7, img_8, img_9, img_10); for (var i:int = 1; i <= 10; i++) { clicked_img = getChildByName("img_" + i) as MovieClip; timeline.insertMultiple( TweenMax.allFrom(listArray, .5, {rotationY:clicked_img.rotationY - 180, ease:Cubic.easeOut}, .06), .5); }
7. ## TimelineMax "gotoAndStop in insertMultiple"

Hi Carl, Thanks for reply, I have tested your solution, but don't make what I need, you can look my attached file to see what i would like. All movieClip turnaround and all movieClip colors changes when tween is finished. But I need change color when a rotation movieClip is finished. Sorry for my poor english File is more explicit Ilan
8. ## TimelineMax "gotoAndStop in insertMultiple"

Hello, I have ten movieClip on stage (img_1, img_2...) each have 10 key (different color). I try to change color for each movieClip when rotation of movieClip is ended here is my test: actually color of movieClip change when timeline is completed not when rotation of movieClip is ended. function onClickItem(e:MouseEvent):void { num = int(e.target.name.split("img_")[1]); var timeline:TimelineMax = new TimelineMax({onComplete:function() { var tmp:MovieClip; for (var i:int = 1; i <= 10; i++) { tmp = getChildByName("img_" + i) as MovieClip; tmp.gotoAndStop(num); } }}); var clicked_img:MovieClip; for (var i:int = 1; i <= 10; i++) { clicked_img = getChildByName("img_" + i) as MovieClip; var listArray:Array = new Array(); listArray.push(img_1, img_2, img_3, img_4, img_5, img_6, img_7, img_8, img_9, img_10); timeline.insertMultiple( TweenMax.allFrom(listArray, .5, {transformAroundCenter:{rotationY:clicked_img.rotationY - 180}, ease:Cubic.easeOut}, .06), .5); } } Thx for point me to the right direction !
9. ## LoaderMax error with "videoItem.content"

Ok sorry, I make a zip today. For MonsterDebugger, yes I have tried with removing trace and it's same.

Hi Jack, the class : https://files.me.com/ibompuis/9uvspy thanks