Hi TIm & Alex Thanks for your help. I will look at the pop up manager & Tween in Flex. Thanks Anuj
On Wed, Aug 20, 2008 at 9:47 PM, Alex Harui <[EMAIL PROTECTED]> wrote: > Look at how Tweens are used in Flex source code. ComboBox and Menu > probably > > > ------------------------------ > > *From:* [email protected] [mailto:[EMAIL PROTECTED] *On > Behalf Of *anuj181 > *Sent:* Wednesday, August 20, 2008 3:38 PM > *To:* [email protected] > *Subject:* [flexcoders] Problems implementing tweening in FLEX > > > > Hi All > I implemented transition with effects in Flash using the following > code. My aim is as soon as user rolls over the arrow it brings up the > menu.As long as the mouse remains on the menu, the menu stays else > menu goes away. I am succesful in implmenting that in Flash.I used > Tween and changes the y-coordinate through tweening. Now if I have to > implement the same functionlaity in Flex and I am not sure how would > to do that . I am trying to copy and paste same code but it is giving > me errors as tweening does not working similarly in Flex as it does in > Flash. It is asking me that i have to set the end time too which i am > not sure how to do. Please help me out in implementing the same > functionality in Flex. > Thanks > Anuj > > //Code > var startValue:Number; > var finishValue:Number; > var duration:Number; > > mc_RightArrow.addEventListener(MouseEvent.ROLL_OVER,showChapterMenu); > > function showChapterMenu(event:MouseEvent):void > { > mc_ChapterMenu.visible=true; > duration= 1; > var myTween:Tween = new Tween(mc_ChapterMenu, "y", Regular.easeOut, > mc_ChapterMenu.y, mc_ChapterMenu.y-230, duration, true); > } > > > mc_ChapterMenu.addEventListener(MouseEvent.ROLL_OUT,hideChapterMenuFromChapter); > > function hideChapterMenuFromChapter(event:MouseEvent):void > { > var hideChapter:Tween = new Tween(mc_ChapterMenu, > "y",Regular.easeIn,mc_ChapterMenu.y,mc_ChapterMenu.y+230,duration, true); > } > > >

