Skip to main content
daveystewart
Participant
July 25, 2010
Question

Execute a (JSFL) file from Dreamweaver

  • July 25, 2010
  • 1 reply
  • 1733 views

I'm looking to do my JSFL (Flash API) editing in Dreamweaver, but it would be really useful to run the currently-editing file in the same way that you press F12 to preview in browser.

To run JSFL files, all you need to do is to double-click it in the Explorer - what would be the best way to achieve this from the DW editing environment?

Is there some kind of shell execute from within the DW API?

If not, can I first call a C++ extension, pass in the path, and run it from there?

Or is there another way?

Lastly, I'll also want to map the command to a shortcut key (so commands would be perfect I presume).

Many thanks,

Dave

This topic has been closed for replies.

1 reply

Randy Edmunds
Adobe Employee
Adobe Employee
July 26, 2010

Dave,

I'm looking to do my JSFL (Flash API) editing in Dreamweaver, but it would be really useful to run the currently-editing file in the same way that you press F12 to preview in browser.

I think that you need to add JSFL to the file extensions recognized by DW. This TechNote epxlins how to do that:

http://kb2.adobe.com/cps/164/tn_16410.html

Also, if you are running DW CS4 or later, then try using Live View.

HTH,

Randy

daveystewart
Participant
July 26, 2010

Thanks for the reply Randy.

Yeah, I did that earlier. It shows up in the New Document menu, but is still just a plain text file when opened. This was the XML I used in MMDocumentTypes.xml:

<documenttype id="JSFL" internaltype="Text" winfileextension="jsfl" macfileextension="jsfl" file="Default.jsfl" writebyteordermark="false">
    <TITLE>
        JSFL
    </TITLE>
    <description>
        Flash JSFL File
    </description>
</documenttype>

I need to make it behave (color coding and autocomplete) like JavaScript if possible! Any ideas how to do that?

Cheers,

Dave

Randy Edmunds
Adobe Employee
Adobe Employee
July 26, 2010

Yeah, I did that earlier. It shows up in the New Document menu, but is still just a plain text file when opened. This was the XML I used in MMDocumentTypes.xml...

Go back and re-read the TechNote. You also need to update Extensions.txt.

Randy