A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Read here for a solution for loading a .txt file into a dynamic textbox in an MC

  1. #1
    Senior Learner garion1's Avatar
    Join Date
    Dec 2001
    Location
    South Africa
    Posts
    483

    Read here for a solution for loading a .txt file into a dynamic textbox in an MC

    Movies section will not let me upload this as it is a version 8 file. It should work in version 6 and 7 though.

    If you cannot make sense of the file, please let me know. It is extremely simple though:

    -ActionScript on the MC must reference the .as file on the server
    -Textbox variable name, currently "yourTextbox", must appear in the .txt file and the .as file.
    -.swf, .txt and .as must be in the same folder on the server
    -.txt and .as files can be opened with notepad or any other txt file viewer/editor

    Enjoy!
    Attached Files Attached Files
    Last edited by garion1; 01-23-2006 at 07:36 AM.
    "A day without laughter is a day wasted." - Charlie Chaplin

  2. #2
    FK Slacker
    Join Date
    Jun 2000
    Location
    vancouver
    Posts
    3,208
    Quote Originally Posted by garion1
    -ActionScript on the MC must reference the .as file on the server
    -.swf, .txt and .as must be in the same folder on the server
    Just a note - Actionscript .as files are compiled into the SWF when it is created, and do not need to reside on the server at all...

    K.

  3. #3
    Senior Learner garion1's Avatar
    Join Date
    Dec 2001
    Location
    South Africa
    Posts
    483
    Thanks. I've always used this method and never given much thought to the server side files.
    "A day without laughter is a day wasted." - Charlie Chaplin

  4. #4
    Senior Learner garion1's Avatar
    Join Date
    Dec 2001
    Location
    South Africa
    Posts
    483
    Thanks. I've always used this method and never given much thought to the server side files. They were originally part of
    "A day without laughter is a day wasted." - Charlie Chaplin

  5. #5
    Senior Learner garion1's Avatar
    Join Date
    Dec 2001
    Location
    South Africa
    Posts
    483
    Thanks. I've always used this method and never given much thought to the server side files. They were originally part of a dynamic scrollpane and I just adapted it to a simple text box.
    Last edited by garion1; 01-23-2006 at 02:41 PM.
    "A day without laughter is a day wasted." - Charlie Chaplin

  6. #6
    Senior Learner garion1's Avatar
    Join Date
    Dec 2001
    Location
    South Africa
    Posts
    483
    Sorry about the above! The message saved 3 times while I was typing it!? Not quite sure how that happened!
    "A day without laughter is a day wasted." - Charlie Chaplin

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