Results 1 to 2 of 2

Thread: Loading txt file into HTML from a Flash button

  1. #1
    Join Date
    Sep 2007
    Posts
    2

    Question Loading txt file into HTML from a Flash button

    This forum looks promising.

    I am trying to load a text file into a text box (in Dreamweaver) from a command from a Flash actionscript.

    My actionscript:
    HTML Code:
    button1.onRelease = function(success) {
        if (success) {
    	text_box.htmlText = loader.info;
        } else {
            text_box.text = "error.";
    }}
    loader.load("Lorem1.txt");
    "text_box" is the ID of the text box I want to load the text file into

    Is this the right direction? Do I pre-load the file from the Flash file?

    I'm not a complete n00b at this. I can usually figure this stuff out, but I'm quite stuck here. Help with my action-scripting and HTML coding would be greatly appreciated.

    Cheers

  2. #2
    Join Date
    Sep 2007
    Posts
    2
    Alright, let me make this simpler. forget the flash element.

    How do you load different files (text or html or .?. ) into the same text box when clicking on a different buttons?

    Or how about...
    I know I can do this in flash. Can an action-script in one flash element/file effect the time line of another flash element/file, that are load on the same page?
    Last edited by ColBalt; 22 Sep 2007 at 11:26 AM. Reason: an idea

Similar Threads

  1. Loading external text into an DREAMWEAVER HTML file (like in flash)
    By kitster79 in forum Web Design, HTML Reference and CSS
    Replies: 0
    Last Post: 20 Feb 2007, 01:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •