Create HTML5-Based Mobile-Friendly Interactive Images and Maps
FLDraw Interactive Floor Plan Software  >  Developer Guide  >  Form Mode

Form Mode

If you want to use the editor plugin in your Windows application, you can use the Shockwave Flash Object control to load the SWF file in your application,
also you need to set the value of the formMode FlashVar parameter to true, this tells the Flash object to send the List, New, Read and Write requests to
your application instead of sending them to a remote HTTP server.

When you receive a request in your application you need to generate a response, encode the response string in a URL-encoded format, and send it back to
the Flash object.
(For more information about the List, New, Read and Write requests see Implementing Server-side Script)

 
Flash uses a specific XML format for sending requests:

List:

<invoke name="request" returntype="xml">
   <arguments>
      <string>L</string>
      <string>valPlanPath</string>
   </arguments>
</invoke>

New:

<invoke name="request" returntype="xml">
   <arguments>
      <string>N</string>
   </arguments>
</invoke>

Read:

<invoke name="request" returntype="xml">
   <arguments>
      <string>R</string>
      <string>valPlanPath</string>
      <string>valPlanName</string>
   </arguments>
</invoke>

Write:

<invoke name="request" returntype="xml">
   <arguments>
      <string>W</string>
      <string>valPlanPath</string>
      <string>valPlanName</string>
      <string>valSaveAs</string>
      <string>valReplace</string>
      <string>valPlanSource</string>
   </arguments>
</invoke>
 

And your response should be like:

<invoke name="response">
   <arguments>
      <string>Response String (URL-encoded)</string>
   </arguments>
</invoke>
 
 

For example when you have a New request:

<invoke name="request" returntype="xml"><arguments><string>N</string></arguments></invoke>


you need to return a response string like this:
<invoke name="response"><arguments><string>%3Csuggest%3E%3Bfile1%3C%2Fsuggest%3E</string></arguments></invoke>

(%3Csuggest%3E%3Bfile1%3C%2Fsuggest%3E = URL-ENCODED OF (<suggest>;file1</suggest>))