Jump to content

Implement a preloader sprite when video is loading


jaraiza
 Share

Recommended Posts

Hi,

How can I implement a preloader when a video has just changed source?

I haven't found a moment, event or something when I can use:
 

anim_Loading.animations.play('Rota');
anim_Loading.visible = true;

And when to use:

anim_Loading.animations.stop('Rota');
anim_Loading.visible = false;

I've tried using play before "video.changeSource"  and stop after "video.play()" but sometimes it doesn't nothing and sometimes the code crashes because "play() conflicts".

Any ideas?

Thanks!!

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...