|
||
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,
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 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>)) |
||
Copyright © 2010-2016 FLDraw.com. All Rights Reserved. |