1 Reply Latest reply on Aug 21, 2006 6:50 AM by derobinson

    writing code or text in an external file

      i want to write some text or code in an external file such as (text file or something else)
      when an event in flash occurs
      like (on mouse click)
      thanks for your answer
        • 1. Re: writing code or text in an external file
          derobinson Level 1
          Its important to know whether its plain text or code that you're expecting to execute. You can use something like the loadVars method to read a plain text or XML file. You could get variables from it to use in your code. But the movie will have been compiled already, so I don't think large blocks of code are appropriate here. That having been said, you can create external AS files that are compiled into your SWF.

          Hope that helps!