Newgrounds.com — Everything, By Everyone.

Checking login status…

USERNAME:

PASSWORD:

Logging in…

Logged in as:
.
Logging out…
Inbox My Account Log Out


Forum Topic: Highscore testing/help

(139 views • 10 replies)

This topic is 1 page long.

<< < > >>
None

Snubby

Reply To Post Reply & Quote

Posted at: 11/17/07 11:38 AM

Snubby FAB LEVEL 20

Sign-Up: 12/04/04

Posts: 3,140

I'm trying to program a highscore board for my new game, but for some reason it only works when I test it locally or in the same folder as my game on the internet, even though I'm using an absolute URL. My highscore send/receive php pages are on my website, and when I load/send variables from the from the flash I use http://www.snubbyland.com/......, so it should work right? but it doesn't.

the game

please try hitting the "Leader Board" button the main menu, and if it actually works just post how long it took to connect. but i don't think it will work :(

any help?


None

Snubby

Reply To Post Reply & Quote

Posted at: 11/17/07 11:47 AM

Snubby FAB LEVEL 20

Sign-Up: 12/04/04

Posts: 3,140

http://www.snubbyland.com/highscores/The _Worlds_Hardest_Game.swf

That is a link to when it works, but thats only cuz its on my website.


None

chillyphilly

Reply To Post Reply & Quote

Posted at: 11/17/07 11:55 AM

chillyphilly LIGHT LEVEL 24

Sign-Up: 08/25/05

Posts: 698

Hey Snubbz ;)

Nah man, the first link didn't work for me :S
I'm not sure whats wrong with it, sorry i can't help but yeah, it didn't load the scores at all.
The second link was fine.

-------------------------| Website | 101 Signs Collab | NG Audio Portal Flash |------------------------

BBS Signature

None

sickstick

Reply To Post Reply & Quote

Posted at: 11/17/07 11:56 AM

sickstick DARK LEVEL 18

Sign-Up: 02/09/06

Posts: 696

Took about a second and I have a low connection.

Wii Arcade Game Collab: Make a Game for a New Collection of Mini Games made for the Wii Opera Browser!

BBS Signature

None

Snubby

Reply To Post Reply & Quote

Posted at: 11/17/07 11:59 AM

Snubby FAB LEVEL 20

Sign-Up: 12/04/04

Posts: 3,140

At 11/17/07 11:56 AM, sickstick wrote: Took about a second and I have a low connection.

the first link? cuz ive been trying all day and i cant get anything..

i think the problem might be that the made it so it has to be in the same folder, cuz otherwise i could send post data to any random website and screw shit up.


None

Tree-SkyLark-BCE

Reply To Post Reply & Quote

Posted at: 11/17/07 12:14 PM

Tree-SkyLark-BCE LIGHT LEVEL 28

Sign-Up: 08/06/05

Posts: 195

What version of ActionScript are you using? Also, what method are you using? If you are using AS3, there are security issues with which you will have to deal.

BBS Signature

None

Snubby

Reply To Post Reply & Quote

Posted at: 11/17/07 12:24 PM

Snubby FAB LEVEL 20

Sign-Up: 12/04/04

Posts: 3,140

At 11/17/07 12:14 PM, Tree-SkyLark-BCE wrote: What version of ActionScript are you using? Also, what method are you using? If you are using AS3, there are security issues with which you will have to deal.

AS 2.0, and I'm using loadVariablesNum. I'm not going to post my code cuz thats a security risk for me, but I know I'm using the function right since it works on my site.

maybe this is why you dont see any in-flash highscore boards on newgrounds? :\


None

Jindo

Reply To Post Reply & Quote

Posted at: 11/17/07 12:29 PM

Jindo LIGHT LEVEL 22

Sign-Up: 08/30/05

Posts: 1,784

I'm still waiting for the scores to load on the first working link D:.

Nice game though, challenging, but I've definitely played harder ;).


None

Tree-SkyLark-BCE

Reply To Post Reply & Quote

Posted at: 11/17/07 12:45 PM

Tree-SkyLark-BCE LIGHT LEVEL 28

Sign-Up: 08/06/05

Posts: 195

Consult the following link:
http://kb.adobe.com/selfservice/viewCont ent.do?externalId=tn_16520&sliceId=1

It provides two methods that allow for access of data across different domains. You may be able to adapt one to your situation. I would imagine something similar to the second method may be possible.

BBS Signature

None

Snubby

Reply To Post Reply & Quote

Posted at: 11/17/07 01:31 PM

Snubby FAB LEVEL 20

Sign-Up: 12/04/04

Posts: 3,140

At 11/17/07 12:45 PM, Tree-SkyLark-BCE wrote: It provides two methods that allow for access of data across different domains. You may be able to adapt one to your situation. I would imagine something similar to the second method may be possible.

Oh shit! Thanks man, that's perfect. <3

At 11/17/07 12:29 PM, Jindo wrote: Nice game though, challenging, but I've definitely played harder ;).

theres going to be 50 levels, will get harder and harder.


None

Snubby

Reply To Post Reply & Quote

Posted at: 11/17/07 01:35 PM

Snubby FAB LEVEL 20

Sign-Up: 12/04/04

Posts: 3,140

ah ha! "For example, a loadVariables action in Main.swf pointing directly to myData.txt would not retrieve the variable, because the files are in two different domains (yourFlashDomain.com and yourDataDomain.com)."

yeah ill try to figure it out from there. thanks again.


All times are Eastern Daylight Time (GMT -4) | Current Time: 12:06 AM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!