Flash randomico para imagenes


/ Published in: ActionScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. function CambiarBanner():Void{
  2. var num:Number = random(10); //suponiendo q tenes 10 banners
  3. _root.cargador.loadMovie("banners/banner_"+(num+1)+".sewf");
  4. }
  5. //cargamos el primer banner
  6. CambiarBanner();

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.