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);
}


Reply via email to