Welcome, Guest
  • Author Topic: AS3 - load help  (Read 1020 times)

    dani_bul

    • Server what's that
    • *
    • Posts: 1
      • View Profile
      • Email
    AS3 - load help
    « on: 11/16/09, 06:42 »
    hello - i have 6 UILoaders - with 6 external images /with different sizes/
    i want to stop all animations ..until this images are completely loaded
    any ideas ?
    Thank you !

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re: AS3 - load help
    « Reply #1 on: 11/16/09, 07:21 »
    Animations are basically MovieClips with his timeline running, so you should instruct them to stop, then to play again. If all of them are in the same timeline, a possible approach could be:

    Code: [Select]
    var tot:Number = this.numChildren
    for(var i:Number = 0; i<tot; i++){
      if(this.getChildAt(i) is MovieClip) MovieClip(this.getChildAt(i)).stop()
    }

    Jorge