On Wed, Nov 18, 2009 at 11:51 AM, Cedric Muller <[email protected]> wrote:

> that's the problem. I suspect external calls, all one line after the other,
> in the timeline, and maybe the timeline's playhead gets over this code every
> frame ?
>
> main.hatAndFace();
> main.eyeball1();
> main.eyeball1();
> main.rightHand();
> ...
>
> beno, could you try:
>
> public function init():void {
>        hatAndFace();
>        eyeball1();
>        eyeball2();
>        rightHand();
>        leftHand();
> }
>
> then, in your FLA main timeline:
>
>
> var main:Main = new Main();
> addChild(main);
> main.init();
>
> stop(); //      this stops the timeline playhead, just to be sure it won't
> loop over 2 frames....
>

How interesting. That stopped all alpha tweens but *not* the "hands"!

  public function rightHand():void
    {
    var mcHandInstance1:mcHand = new mcHand();
    addChild(mcHandInstance1);
    mcHandInstance1.x = 400;
    mcHandInstance1.y = 200;
  }

Please advise.
beno
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to