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 747193
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T14:10:37+00:00 2026-05-14T14:10:37+00:00

All I can find information on for the URLLoader object in Actionsript 3.0 involves

  • 0

All I can find information on for the URLLoader object in Actionsript 3.0 involves loading XML files, which I don’t want to do. I’m trying to load in a .txt file that I want to parse, line by line with each line being delimited by a comma. Anyone know a method of doing this or a place where I can find some information on how to do this? Thanks!

  • 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-05-14T14:10:38+00:00Added an answer on May 14, 2026 at 2:10 pm

    Look at the String’s split() methods for start.
    It splits a string into an array based on a delimiter. In your case you would access each line as an element of the array returned by using split() and the comma character.

    e.g.

    var csvLoader:URLLoader = new URLLoader(new URLRequest('yourFile.csv'));
    csvLoader.addEventListener(Event.COMPLETE, csvLoaded);
    
    function csvLoaded(event:Event):void{
       var lines:Array = String(event.target.data).split(',');
       var linesNum:int = lines.length;
       for(var i:int = 0 ; i < linesNum; i++){
          trace('line ' + i + ': ' + lines[i]);
       }
    }
    

    You can use event.target.data.split(‘,’), I used String to make split()’s origin obvious.

    @dhdean’s tutorial is pretty cool, bare in mind that is as2.0, so there are slight differences with loading the file, but parsing strings should be pretty much the same in as2.0/as3.0

    Depending on your comfort level with as3.0 you might want to have a look at csvlib.

    HTH,
    George

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have looked all over the web and I can not find the information
Can't find much information on how to do this at all - how can
Regarding In App Purchases, I can find a lot of information on all the
How can I find all information of install for ex: if my mobile has
All is in the title and I can't find clear information on the web.
All I can find using fopen() and fwrite() in C is to delete all
Does anybody know of a free flash obfuscator(protector)? All I can find are commercial
I've looked for overriding guidelines for structs, but all I can find is for
How I can find all extension methods in solution ?
How i can find all the windows created by a particular process using c#?

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.