2 Replies Latest reply on Apr 17, 2006 2:03 PM by jhutchdublin


      can we include javascript file in flash not in html file . we always have to place script tag in html file can't we include directly
      in flash is there any some way?
        • 1. Re: flash/javascript
          Wolf_van_Ween Level 1
          Of course you can include javascript into flash, inside a // comment.
          No, sorry, just joking. I had a crazy day.

          The short answer is you can't.

          The long answer is you could feed pieces of javascript as strings from Flash to a special javascript function that executes it inside the browser. But why would you want to do that? For obfuscating?
          • 2. Re: flash/javascript
            jhutchdublin Level 1
            Why would you want to use JavaScript when Flash has it's own language very close to JavaScript called ActionScript -- if you know JavaScript, ActionScript is easy to figure out. The syntax is pretty much the same -- just keywords are different. Both are based on ECMA-Script