Hi,

I've found out that my problem has been caused by the
fact that a snapshot of target_mc's propertis is being
taken when the TransitionManager constructor is being
called, or when TransitionManager.start() is being called
for the 1st time. And not when I call startTransition() or
when I call the static method start() for the 2nd or 3rd time...

On 4/30/07, Alexander Farber <[EMAIL PROTECTED]> wrote:
I have a v2 component displaying up to 12 playing cards at the
bottom of the stage and slightly rotating them from left to right:

        private function placeCards(new_array:Array):Void {
                var gap:Number = 40;

                for (var i:Number = 0, j:Number = 0; i < new_array.length; i++) 
{
                        var index:Number = new_array[i];
                        var card_mc:MovieClip = index > 0 ?
                            opened_cards[index] : you_closed[j++];

                        card_mc.setDepthTo(DepthManager.kTop);
                        card_mc._x = RADIUS + gap * i;
                        card_mc._y = height - Card.HEIGHT_2;
                        card_mc._rotation = 4 * (i - new_array.length / 2);
                        //TransitionManager.start(card_mc, {type:Fly, 
direction:Transition.IN,
                          //  duration:3, easing:Strong.easeOut, startPoint:(1 
+ i % 3)});
                }

                deal_sound.start();
        }

the transition does work:
the cards fly down from above (startPoint is 1, 2 or 3), but after
the 2nd call of placeCards() the _x coordinates of the playing
cards get broken: every 3 or 4th card is displaced (_x is too low).


Regards
Alex

--
http://preferans.de
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to