I have two mxml components.Both have
 <mx:Move id="move_up" target="{projectGalleryBox}" /> this tag.The only
difference is one is moving horizontally and other is moving vertically.
In the script tag I have written
This is for vertical movement
private function moveUp():void
{
move_up.yFrom = seconHbox.height;
                move_up.yTo = 0 - projectGalleryBox.height + 6;
                move_up.repeatCount = 0; //loop
                move_up.repeatDelay = 0; //loop time
                move_up.duration = 15000; //the time of scroll once
                move_up.play();
 }
private function move_pause():void
            {
                move_up.pause();  //pause
            }

            private function move_resume():void
            {
                move_up.resume(); //start from the pause position
            }


This is for horizontal movement.
private function moveLeft():void
{
move_Left.xFrom = -1;
move_Left.xBy = -200;
move_Left.addEventListener(EffectEvent.EFFECT_START,addLast)
move_Left.addEventListener(EffectEvent.EFFECT_END,removeFirst);
move_Left.play();
}
private function addLast(evt:Event):void
{
       /*---Assume some component--*/
var item:compSample = new compSample();
item = movingHbox.getChildAt(0) as compSample;
addNewItem(item.lbl,5);
updateDataProvider();
}
private function removeFirst(evt:Event):void
{
movingHbox.removeChildAt(5);
updateComponents();
move_Left.play();
}
<mx:Move id="move_Left" duration="3000" target="{movingHbox}" />


And have used both the mxml components in main file.
Due to some reasons target components are not moving simultaneously.If one
stops other starts moving.
I cant send the whole code as it not modular enough that you can paste it
and run on your machine.

On Mon, Oct 26, 2009 at 5:53 PM, <[email protected]> wrote:

> If you need help, please send the sample of your code?
> This is the best way for this group to help you.
>
> Thanks
> Ed
>
>
> On Mon, Oct 26, 2009 at I2:25 AM, vishal lad <[email protected]> wrote:
>
>> Both the components are in different files.I had specified Move for each
>> one in their respective file.
>>
>>
>> On Mon, Oct 26, 2009 at 11:52 AM, GAGAN anand <[email protected]>wrote:
>>
>>> HI Vishal
>>>
>>> Could u please send the code?? I think you are using the same move effect
>>> for both the components.
>>>
>>> Regards
>>> Gagan Deep
>>>
>>> 2009/10/26 vishal lad <[email protected]>
>>>
>>>> Hi friends,
>>>>   I have applied move effect to two different components.One moves
>>>> vertically and other moves horizontally.My Problem is both components
>>>> doesn't move simultaneously. If I Pause one the other starts moving else it
>>>> halts.What is the reason behind this and how this can be solved.
>>>> Thanks & Regards,
>>>>     Vishal
>>>>
>>>>
>>
>>
>>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to