Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5935377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T15:14:45+00:00 2026-05-22T15:14:45+00:00

I have a developed a application that allows users to draw simple images on

  • 0

I have a developed a application that allows users to draw simple images on a canvas. The name of the movieclip(canvas) is canvas_mc.

I need to save this drawing on the server using php. I have to convert the movieclip (canvas_mc) into png and jpeg and save it. I have successfully save it on local drive using some classes available in

http://www.flashandmath.com/advanced/smoothdraw/index.html

How can I save it on server using PHP. I have been asked to use the post method. If possible give me the code also as I just moved into programming from design 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T15:14:45+00:00Added an answer on May 22, 2026 at 3:14 pm

    Not sure about how to convert your image into data and such, but here’s a class I have lying around that you can use to transfer data to a PHP script (which can from there insert the data into a database).

    package
    {
        import flash.net.URLRequest;
        import flash.net.URLLoader;
        import flash.net.URLVariables;
        import flash.net.URLRequestMethod;
        import flash.events.Event;
    
        /**
         * @author Marty Wallace
         * @version 1.00
         */
        public class PHPData extends Object
        {
            /**
             * Sends data to a PHP script
             * @param script A URL to the PHP script
             */
            public function send(script:String, vars:URLVariables):void
            {
                var req:URLRequest = new URLRequest(script);
    
                req.data = vars;
                req.method = URLRequestMethod.POST;
    
                var loader:URLLoader = new URLLoader();
                loader.load(req);
    
                // listeners
                loader.addEventListener(Event.COMPLETE, _complete);
            }
    
            /**
             * Called when a response has been received from a PHP script
             * @param e Event.COMPLETE
             */
            private function _complete(e:Event):void
            {
                var vars:URLVariables = new URLVariables(e.target.data);
    
                var i:String;
                for(i in vars)
                {
                    trace(i + ": " + vars[i]);
                }
    
                e.target.removeEventListener(Event.COMPLETE, _complete);
            }
        }
    }
    

    Use:

    var php:PHPData = new PHPData();
    var vars:URLVariables = new URLVariables();
    
    vars.imagedata = your_image_data;
    
    php.send("your_php_script.php", vars);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have developed a simple application in GWT. After that, I generate war file
I have inherited a VB6/Access application that we have developed and sold for many
I am looking at globalizing an application that I have developed in asp.net mvc.
I have an application that was developed for Linux x86 32 bits. There are
I have a web application developed with ASP.net and C# that is running on
I have developed application for drawing some shapes (lines mostly) , now i need
I am using asp.net MVC to develop an application that will have ajax interactions.
I have to develop an application using C#.net that has to be run once
We currently have developed an application using WCF. Our clients make connections to different
I imagine there are many of you out there who have developed an application

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.