help need about random loading

  • astolitu
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Jun 26, 2005
  • Posts: 5
  • Status: Offline

Post June 26th, 2005, 1:05 pm

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
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post June 26th, 2005, 1:05 pm

  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Joined: Jun 26, 2003
  • Posts: 1402
  • Loc: Philadelphia, PA
  • Status: Offline

Post June 26th, 2005, 9:43 pm

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
  • No Avatar
  • Joined: Jun 26, 2005
  • Posts: 5
  • Status: Offline

Post June 27th, 2005, 3:32 am

tnx, I will try with that code
  • astolitu
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Jun 26, 2005
  • Posts: 5
  • Status: Offline

Post June 27th, 2005, 5:14 am

work fine, many tnx

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 30 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
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.