Flep, I would like to congratulate for your tutorials and this amazing site. For weeks, I have been looking for a tutorial like that ... This tutorial give the sense of how to work around with arrays and movieClips from the library
My problem is that rather than have the movieClips in the stage of the flash movie. I do have them only in the library. Through an array and the loop, I can locate them on the stage and fadeIn (with a Tweener). But, If I can try to give a mouseEvent to them... It only works on the first mc and it does not work in the following three mc of the array on the stage.
Another issues is that the buttonMode does not work either.
Could you please help me with this issue? I am getting mad with this for the last two weeks.
Below I paste a copy of my class document.
I am reallyCode:package { import flash.display.*; import flash.events.*; import flash.filters.DropShadowFilter; import caurina.transitions.Tweener; import navigationMC; public class tweener_Loops extends MovieClip { //movieClips from the library private var _maMC:maMC=new maMC; private var _mossMC:mossMC=new mossMC; private var _stonMC:stoneMC=new stoneMC; private var _feelMC:feelMC=new feelMC; //container private var container:MovieClip=new MovieClip; private var xPos:Number=250; private var backMC:MovieClip=new MovieClip; public function tweener_Loops() { var webArray:Array=new Array(maMC,feelMC,mossMC,redBackMC,stoneMC); for (var i:int=0; i< webArray.length; i++) { var web=new webArray[i]; web.x=xPos; xPos += i.width +10; web.y=yPos; web.alpha=0; web.visible=true; web.mouseChildren=false; web.buttonMode=true; var shadow:DropShadowFilter=new DropShadowFilter(); shadow.distance=10; shadow.angle=90; shadow.alpha=0.5; shadow.color=0xCCCCCC; web.filters=[shadow]; Tweener.addTween(_maMC,{alpha:1,time:3, delay:1, transition:"linear"}); Tweener.addTween(_mossMC,{alpha:1,time:3, delay:1.5, transition:"linear"}); Tweener.addTween(_feelMC,{alpha:1,time:3, delay:2, transition:"linear"}); Tweener.addTween(_stonMC,{alpha:1,time:3, delay:2.5, transition:"linear"}); web.addEventListener(MouseEvent.MOUSE_OVER, _mouseOverWeb); web.addEventListener(MouseEvent.MOUSE_DOWN, _mouseDownWeb); } } public function _mouseOverWeb() { if (event.target==_maMC) { Tweeer.AddTween(_maMC,{scaleX:1.7, scaleY:1.7, time:0.5, transition:'easyOutElastic'}); } if (event.target==_feelMC) { Tweeer.AddTween(_feelMC,{scaleX:1.7, scaleY:1.7, time:1, transition:'easyOutElastic'}); } } } }
Thanks in advance.


LinkBack URL
About LinkBacks
Reply With Quote



with this issues.

Bookmarks