A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Score Publish

  1. #1
    Junior Member
    Join Date
    Dec 2013
    Posts
    22

    Score Publish

    So i am new to exporting anything out of flash, and i want to publish my score. but i have no php knowelege. can someone help me with that or point me to an easy tutorial on how to do it?

  2. #2
    Junior Member
    Join Date
    Dec 2013
    Posts
    22
    i forgot to mention its as3

  3. #3
    Senior Member
    Join Date
    Nov 2001
    Posts
    1,145
    Flash can work like an html form. You make a form submission to php by using POST, php gets the submission (just like an html form sent it), does whatever and sends response back to flash (general terms for what happens).

    Here's some generic code from adobe. If you search for the code used in it like URLVariables, you'll find plenty of tutorials, info, etc.

    Code:
    package {
        import flash.display.Sprite;
        import flash.net.navigateToURL;
        import flash.net.URLRequest;
        import flash.net.URLVariables;
    
        public class URLVariablesExample extends Sprite {
    
            public function URLVariablesExample() {
                var url:String = "http://www.[yourDomain].com/application.jsp";
                var request:URLRequest = new URLRequest(url);
                var variables:URLVariables = new URLVariables();
                variables.exampleSessionId = new Date().getTime();
                variables.exampleUserLabel = "guest";
                request.data = variables;
                navigateToURL(request);
            }
        }
    }
    http://help.adobe.com/en_US/FlashPla...Variables.html

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