help need about random loading

  • astolitu
  • Newbie
  • Newbie
  • astolitu
  • Posts: 5

Post 3+ Months Ago

I need help about random loading.
I dont know how to make pattern generator.here is my problem.
lets say i have 100 images , and i need to load 5 random images of 100 at the same time at the same location to make a random graphic

please help,tnx
  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Posts: 1402
  • Loc: Philadelphia, PA

Post 3+ Months Ago

You mean like
Code: [ Select ]
for (var i = 0; i<5; i++) {
    loadMovieNum("file"+(random(100)+1)+".swf", i);
}
  1. for (var i = 0; i<5; i++) {
  2.     loadMovieNum("file"+(random(100)+1)+".swf", i);
  3. }
  • astolitu
  • Newbie
  • Newbie
  • astolitu
  • Posts: 5

Post 3+ Months Ago

tnx, I will try with that code
  • astolitu
  • Newbie
  • Newbie
  • astolitu
  • Posts: 5

Post 3+ Months Ago

work fine, many tnx

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 4 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.