A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Loading text from .txt document

  1. #1
    Member
    Join Date
    Nov 2002
    Location
    Montreal, Canada
    Posts
    59

    Loading text from .txt document

    Im doing a projet who i have to load some text from a .txt document.

    Here my script:

    system.useCodepage = true;
    loadVariables("my file" add ".txt", "_level1");

    It's work fine on the main timeline, but if i try to load the text in a MovieClip it's doesn't work.

    Someone have a solution for this?
    THX

    --------------------------------------
    BIOPIXELZ INTERACTIVE ----- My Portfolio

  2. #2
    Junior Member
    Join Date
    Jul 2000
    Posts
    15
    try this

    result="_level1"+mcname; (where mcname is the name of the mc in the level1)

    loadVariables("my file" add ".txt", result);

  3. #3
    Junior Member
    Join Date
    Jul 2000
    Posts
    15
    forgot the dot above... the right one is this

    try this

    result="_level1."+mcname; (where mcname is the name of the mc in the level1)

    loadVariables("my file" add ".txt", result);

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