A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: [F8] randomly loaded images

  1. #1
    Member
    Join Date
    Mar 2006
    Location
    Torrington, CT
    Posts
    44

    [F8] randomly loaded images

    Hello there, I was originally going to post this in the Actionscript area, but after reading some of the posts my question appears to be much too simple to warrant it's inclusion among such complicated scenarios, I suspect the solution to mine is much simpler. So here goes..

    I want to have some movie clips that will randomly load images from a specified image folder, every time the is brought to this specific frame, they would encounter a new series of images. I'm familiar with using a move clip loader, and I know there are ways to make things random within Flash.

    What I'm not sure about, however, is how to integrate the two, where if perhaps I had a folder of image001.jpg, image002.jpg, etc. that I could use something which would select these images randomly - this is still in it's conceptual stages at the moment, but any input would be appreciated greatly. Much thanks.

  2. #2
    Member
    Join Date
    Mar 2006
    Location
    Torrington, CT
    Posts
    44

    Should this be on the ActionScript Forums?

    Hey there, this is the first time I've asked a question without getting some input, usually I get more great advice than I know what to do with.. is this becuase this should be placed in the ActionScript area instead of newbies? The problem seems so simple that I didn't think it should go in there..

    thanks..

  3. #3
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    name your images - image0.jpg, image1.jpg.....

    have your random generator output -
    randNum = 0; // or 1 or 2 etc

    load your movieclip with -
    myClip.loadMovie("myFolder/image"+randNum+".jpg");

  4. #4
    Member
    Join Date
    Mar 2006
    Location
    Torrington, CT
    Posts
    44
    thanks for the help, I got it up and running!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center