User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11

Thread: Trying to refresh a high score list

  1. #1
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    mobichan's Avatar
    Join Date
    Oct 2007
    Location
    Buffalo, NY
    Posts
    3,310
    Mentioned
    28 Post(s)
    Tagged
    0 Thread(s)

    Trying to refresh a high score list

    So, I have 2 swf's embedded in an html page. One is a game window and the other is a high score table. I have the game writing high score data to my server. And I have a refresh button on the high score table swf that fetches the data from the server.

    The problem is that I can't seem to get the high score swf to refresh when I press its "refresh" button. It is definitely trying to fetch the data, but when I post a new high score, I would expect to be able to refresh the list within 10 seconds of posting. The weird thing is if I run the swf as an exe, it retreives the data instantly after posting. It is just the swf embedded in the page that seems to not work correctly.

    Any idea what might be happening?

  2. #2
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Trying to refresh a high score list

    Do the highscores work (without refreshing)?

    I'm assuming there's a problem converting to flash - I'm also assuming you're using the get object. Do you have a crossdomain.xml file?

  3. #3
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    mobichan's Avatar
    Join Date
    Oct 2007
    Location
    Buffalo, NY
    Posts
    3,310
    Mentioned
    28 Post(s)
    Tagged
    0 Thread(s)

    Re: Trying to refresh a high score list

    First off, the high score swf does retrieve the high scores when it is first loaded. And the game swf does upload new scores to the server through a php script (from Jeff's tutorial). Both use the Get object. The problem comes from trying to get and display any new scores that are uploaded to the server after the initial get. But like I said, I can run a debug or exe version of the high score table and it will receive scores from the server if I have them running while playing the game in a browser. Only the high score table IN the browser is having issues.

    As for xml, this is a simple html page that has 2 swf's embedded in it. Nothing fancier than that.

  4. #4
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Trying to refresh a high score list

    You may need a crossdomain.xml

  5. #5
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    mobichan's Avatar
    Join Date
    Oct 2007
    Location
    Buffalo, NY
    Posts
    3,310
    Mentioned
    28 Post(s)
    Tagged
    0 Thread(s)

    Re: Trying to refresh a high score list

    What does that mean exactly? I have never worked with xml before.

  6. #6
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Trying to refresh a high score list

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

    http://stackoverflow.com/questions/213251/can-someone-post-a-well-formed-crossdomain-xml-sample

    Those should help.

  7. #7
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    mobichan's Avatar
    Join Date
    Oct 2007
    Location
    Buffalo, NY
    Posts
    3,310
    Mentioned
    28 Post(s)
    Tagged
    0 Thread(s)

    Re: Trying to refresh a high score list

    Thanks RickyRombo. I'll see if this is the issue. Although I don't think this is it, since everything exists on a single website in a single directory. IE, both swf's sit in the same directory as the php script.

  8. #8
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    mobichan's Avatar
    Join Date
    Oct 2007
    Location
    Buffalo, NY
    Posts
    3,310
    Mentioned
    28 Post(s)
    Tagged
    0 Thread(s)

    Re: Trying to refresh a high score list

    After looking into this a little, I can see it is all way over my head. It is funny that no one else seems to have posted any issues when dealing with Flash and high score tables.

    Any chance anyone can provide an example xml file that would make this as painless as possible? Or simply explain what is going wrong with the get object and the db?

  9. #9
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Trying to refresh a high score list

    If they're in the same directory, the xml won't help. This is strange...

    If you want, shoot me a pm with the mfa and I can try and isolate it, it may be a bug!

  10. #10
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    mobichan's Avatar
    Join Date
    Oct 2007
    Location
    Buffalo, NY
    Posts
    3,310
    Mentioned
    28 Post(s)
    Tagged
    0 Thread(s)

    Re: Trying to refresh a high score list

    Seems it ended up being human error on my part. I defined the swf incorrectly in the hmtl I embed it in. Seems to work like a charm. Thanks for the help RickyRombo.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. High Score bug perhaps?
    By ChrisStreet in forum Android Export Module Version 2.0
    Replies: 2
    Last Post: 24th April 2013, 02:02 PM
  2. High Score Help!!!!!
    By Mostafa in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 22nd January 2013, 10:30 PM
  3. High score?
    By KLiK-iT in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 2nd March 2012, 12:18 AM
  4. need help with a high score.
    By vincent in forum Multimedia Fusion 2 - Technical Support
    Replies: 13
    Last Post: 22nd July 2009, 07:45 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
  •