Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8386145
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T17:51:17+00:00 2026-06-09T17:51:17+00:00

50 RANDOM QUOTES Looking to create an AS3 air for android app that loops

  • 0

50 RANDOM QUOTES

Looking to create an AS3 air for android app that loops through folders and
randomly selects from all the mp3s in a folder and plays one of them. After
it is done playing it will go to the next folder and do the same until it has
finished playing 50 random quotes.

FOR EXAMPLE:

  1. The code would start with A1 and open folder 01 and randomly play one of the 10 mp3s.
  2. When audio is over it would open folder 02 and randomly play one of the 7 mp3s.
  3. After looping through all folders in A1 it would do the same thing all over in A2 – A5…

WHAT I REALLY NEED HELP WITH IS…

Using AS3 how do I select the contents of local folder  or sub 
folder and put them into an array and randomly choose one
from that array?

If I know how to do that then I can use this for the audio files and later apply this
same structure to call 50 random images.

NOTE The loop has to go in this order for a reason I will not explain here.

I included an IMAGE so you can visualize what I am trying to do.



enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T17:51:19+00:00Added an answer on June 9, 2026 at 5:51 pm

    This code gets contents of the folders.

    import flash.filesystem.File;
    
    var desktop:File = File.applicationDirectory.resolvePath("TheFilePathYouChoose/Choice");
    var files:Array = desktop.getDirectoryListing();
    for (var i:uint = 0; i < files.length; i++)
    {
     trace(files[i].nativePath); // gets the path of the files
     trace(files[i].name);// gets the name
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create an Android app that adds a random quote to images.
I have a facebook app that is displaying random quotes - it is written
I'm trying to wrtie a facebook application that generates random quotes using php. However,
Several random customers get this exception every time I update my Android app. I've
I'm working on a open source script. (https://github.com/keverw/Random-Quotes) SELECT * FROM quotes WHERE text
I want to develop an app that gives a random quote every time you
I want to create a scrolling text ticker for a simple android app. I
I got a piece of code that display a random quote from a text
from random import * while True: random1 = randint(1,20) random2 = randint(1,20) print(h =
If I have: <quotes> <quote> <name>john</name> <content>something or other</content> </quote> <quote> <name>mary</name> <content>random stuff</content>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.