User Tag List

Page 1 of 4 1 2 3 ... LastLast
Results 1 to 10 of 37

Thread: Hi-score PHP/mysql in Flash. Question

  1. #1
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleInstall Creator Pro

    Join Date
    Sep 2008
    Location
    Melbourne, Australia
    Posts
    227
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Hi-score PHP/mysql in Flash. Question

    I'm ready to add a hi-score table that uploads to a website using mysql, for a little game. I turned to the old tutorial on the tutorial page again since I'm not all up on PHP and some of the required events in mmf2.

    But then I realised it needs a few extentions that may not be compatible with the flash export.

    Is there a tutorial available that could explain a good setup for Falsh?

  2. #2
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Hi-score PHP/mysql in Flash. Question

    You can use the Get object in Flash with much the same theory as the older PHP/SQL tutorials - note that (I think) you can only access PHP scripts in the same domain as where the Flash file is placed, but otherwise the process is the same.

    Which object does the tutorial you're looking as use? If it's Live Receiver, then the actions are virtually the same - if it's Moosock, replace all the HTTP request gubbins with just a simple "Download from [this URL]" action.

  3. #3
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleInstall Creator Pro

    Join Date
    Sep 2008
    Location
    Melbourne, Australia
    Posts
    227
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Hi-score PHP/mysql in Flash. Question

    Thank you for that, David. Yes Jamie just mentioned Get object in click chat too, I hadn't used the object before and it sounds very useful.

    The tutorial asks for Live reciever, String Tokenizer, URL Encoder and String Parser 2.

    Get object covers Live reciever and I'm guessing URL encoder.
    String Parser 2 should be covered by the String Parser included.

    Shweet!

  4. #4
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    UrbanMonk's Avatar
    Join Date
    May 2008
    Location
    Southern U.S.A.
    Posts
    847
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Hi-score PHP/mysql in Flash. Question

    Quote Originally Posted by DavidN
    ...note that (I think) you can only access PHP scripts in the same domain as where the Flash file is placed, but otherwise the process is the same.
    Read this:

    http://www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html

    I haven't tried it yet, but it seems that you can just upload a policy file to the same domain as you swf that allows it to access domains outside of it's own.


    The file is named "crossdomain.xml" and has this formatting:

    Code:
    <?xml version="1.0"?>
    <!DOCTYPE cross-domain-policy 
      SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
    <cross-domain-policy>
      <allow-access-from domain="example.com" />
    </cross-domain-policy>
    Just upload it to the root of the domain the swf is hosted from.

  5. #5
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleInstall Creator Pro

    Join Date
    Sep 2008
    Location
    Melbourne, Australia
    Posts
    227
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Hi-score PHP/mysql in Flash. Question

    Oh I see so it's the flash file that has the issue there, I was thinking it was facebook.

    Cheers for that info!

  6. #6
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    Tiles's Avatar
    Join Date
    Jun 2006
    Posts
    1,359
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Hi-score PHP/mysql in Flash. Question

    Dumb question, where can i find this "old" tutorial that is mentioned here?

  7. #7
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleInstall Creator Pro

    Join Date
    Sep 2008
    Location
    Melbourne, Australia
    Posts
    227
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Hi-score PHP/mysql in Flash. Question

    find it here: http://www.clickteam.com/website/usa/tutorials
    Under "Advanced tutorials" called "Online Scores using PHP/mySQL"

  8. #8
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    Tiles's Avatar
    Join Date
    Jun 2006
    Posts
    1,359
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Hi-score PHP/mysql in Flash. Question

    Thanks

  9. #9
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Hi-score PHP/mysql in Flash. Question

    That's an interesting find, UrbanMonk... if that works for people with the right access to their own webservers, then it would mean you could have one central high score/save table for your game and then distribute it around Flash sites like mad

  10. #10
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleInstall Creator Pro

    Join Date
    Sep 2008
    Location
    Melbourne, Australia
    Posts
    227
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Hi-score PHP/mysql in Flash. Question

    Quote Originally Posted by DavidN
    That's an interesting find, UrbanMonk... if that works for people with the right access to their own webservers, then it would mean you could have one central high score/save table for your game and then distribute it around Flash sites like mad
    Oh yes, just very much on my wish list!

Page 1 of 4 1 2 3 ... LastLast

Similar Threads

  1. php mysql and flash
    By brett in forum SWF/Flash Export Module Version 2.0
    Replies: 0
    Last Post: 16th October 2012, 05:38 PM
  2. Strange problem with Hi-score (exe vs flash)
    By Hristos in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 20th February 2012, 05:33 PM
  3. [Extension Request] MySQL flash
    By NeoMonkey in forum SWF/Flash Export Module Version 2.0
    Replies: 6
    Last Post: 9th August 2011, 06:34 AM
  4. Hi-score and mysql database
    By videogiochi in forum Multimedia Fusion 2 - Technical Support
    Replies: 16
    Last Post: 14th July 2010, 04:10 PM
  5. Flash game high score
    By hemantam in forum SWF/Flash Export Module Version 2.0
    Replies: 10
    Last Post: 20th April 2010, 01:38 PM

Posting Permissions

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