Hello,
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();
}
When I comment the last 2 lines in the for-loop above, everything
works: the cards are displayed one by one, with a gap of 40 pixels
between them and with rotation changed from left to right.
But when I try to use those 2 lines, then 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).
Does anybody have an idea what is happening or
should I prepare a simpler test case?
Is TransitionManager.start() supposed to be used on multiple
mc's simultaneously and is it supposed to change the end
coordinates (_x, _y) of them?
Thank you
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