Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Data Integration / May 2006



Tip: Looking for answers? Try searching our database.

How do I set up my drag and drop questionaire to export to a XML file?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
kenpoian - 30 May 2006 21:22 GMT
How do I set up my drag and drop questionaire to export to a XML file?

I have a 70 seperate SWF files that pose a question and contain a drag and
drop rank order response of 1,2,3,4.How do I set up a XML file that receives
the responses.I don't understand how to do the Actionscript
and get my responses to connect to the XML.Please Help!Thanks!

Here's an example of my XML.

<assessment>
    <sessionid>ffae926ea290ee93c3f26669c6c04a92</sessionid>
    <request>save_progress</request>
    <question>
        <number>1</number>
        <slot_a>2</slot_a>
        <slot_b>1</slot_b>
        <slot_c>4</slot_c>
        <slot_d>3</slot_d>
    </question>
    <question>
        <number>2</number>
        <slot_a>4</slot_a>
        <slot_b>3</slot_b>
        <slot_c>2</slot_c>
        <slot_d>1</slot_d>
    </question>
    <question>
        <number>3</number>
        <slot_a>1</slot_a>
        <slot_b>2</slot_b>
        <slot_c>3</slot_c>
        <slot_d>4</slot_d>
    </question>
</assessment>
:confused;
Motion Maker - 31 May 2006 16:59 GMT
Use XML.sendAndLoad.
http://livedocs.macromedia.com/flash/8/main/00002879.html

You will need a server script to receive the XML structure and it depends on
the server scripting language how you obtain that data. Then you can either
populate a database or write to a static file or even email the XML data
received from Flash.

For a basic example, I have two links I use for students in my Flash
courses:

http://www.hosfordusa.com/ClickSystems/courses/flash/examples/XMLASP/Ex01/XMLASP
EchoEx01_Doc.php


http://www.hosfordusa.com/ClickSystems/courses/flash/examples/XMLPHP/EX01/XMLPHP
EchoEx01_Doc.php


Signature

Lon Hosford
www.lonhosford.com
May many happy bits flow your way!

How do I set up my drag and drop questionaire to export to a XML file?

I have a 70 seperate SWF files that pose a question and contain a drag and
drop rank order response of 1,2,3,4.How do I set up a XML file that receives
the responses.I don't understand how to do the Actionscript
and get my responses to connect to the XML.Please Help!Thanks!

Here's an example of my XML.

<assessment>
    <sessionid>ffae926ea290ee93c3f26669c6c04a92</sessionid>
    <request>save_progress</request>
    <question>
        <number>1</number>
        <slot_a>2</slot_a>
        <slot_b>1</slot_b>
        <slot_c>4</slot_c>
        <slot_d>3</slot_d>
    </question>
    <question>
        <number>2</number>
        <slot_a>4</slot_a>
        <slot_b>3</slot_b>
        <slot_c>2</slot_c>
        <slot_d>1</slot_d>
    </question>
    <question>
        <number>3</number>
        <slot_a>1</slot_a>
        <slot_b>2</slot_b>
        <slot_c>3</slot_c>
        <slot_d>4</slot_d>
    </question>
</assessment>
:confused;
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.