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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:34:02+00:00 2026-05-27T03:34:02+00:00

My game stores levels in large strings. Not very long, the length is about

  • 0

My game stores levels in large strings. Not very long, the length is about half my desktop on a 1080p screen. Flash can handle it fine, but when I do something like

var levels:Array = ["Large String
gets broken up because of the len
gth"];

Flash IDE tells me that I will need to end the string literal before a new line. I can’t, since it’s too long. (For the IDE, not flash enviroment)

How should I store the string?

  • 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-27T03:34:03+00:00Added an answer on May 27, 2026 at 3:34 am

    You could also embed the text files in your app in much the same way you would embed a Bitmap.

    [Embed(source='test.txt', mimeType='application/octet-stream')]
    private var TextData:Class;
    
    ...
    
    var thing:String = new TextData();
    trace(thing);
    

    Note: a mimeType of ‘text/plain’ does not go down well with the compiler hence the octet-stream.

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

Sidebar

Related Questions

In my game I have a concept of resource manager, a class that stores
I'm using a MySQL database to store scores for my game. A very simplified
I am making a small game in flash, I would like to track scores
I am writing an android game. I need a Point class that stores x
I'm building a game in XNA 3 and I have the levels stored in
I'm making my first game in iOS and I need to load some levels
I am developing an iPad game that lets you buy new game levels (that
I am making an javascript game, featuring several levels, stored in json. When loading,
In my game, when a level is completed the app stores a 1 in
I have a chess game that originally used an stl list to store the

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.