A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Export Drawing Canvas to XML

  1. #1
    In Need Of Inspiration
    Join Date
    Jul 2003
    Location
    northern ireland
    Posts
    30

    Export Drawing Canvas to XML

    hi guys,

    i'm looking at making a drawing canvas with limited images (about 5 images, which can be used 1 or more times).

    I haven't started coding yet, but is there a way to make a "bucket" of items, that can be dragged on to a canvas within a range of "x,y's" , and when I hit a button the flash generates an XML file that can be exported a server side page e.g. ASP.NET, PHP etc?

    basically i would want say

    <xml>
    <canvas>
    <image type="image1" x="45" y="50" />
    </canvas>

    to be generated if image1 was dragged on to the canvas at position X: 45, y:50.


    any help much appreciated!

  2. #2
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    use a LoadVars object (in Flash) to send the _x and _y properties
    of your objects to a server side script that writes the xml file.

    i have attached a Flash 8 file and a PHP file
    Attached Files Attached Files

  3. #3
    In Need Of Inspiration
    Join Date
    Jul 2003
    Location
    northern ireland
    Posts
    30
    thanks i've read the php and xml and have a fair idea how it all links together - i've no flash installed on this machine, have to wait to get a cd drive - this is a netbook!!!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center