Forum GameFS Can't load items when loader swf is in a browser...

Discussion and help relating to the PlayerIO game asset hosting and CDN solution, GameFS.

Can't load items when loader swf is in a browser...

Postby markloika » January 18th, 2011, 7:26 pm

I have a small SWF hosted on GameFS that contains an advertisement, and I load in that small swf in my game (so I can change the ads after the game is released). When I'm testing the game locally using FlashDevelop the small swf loads fine. When I put the game swf on my server and access the game from there it is unable to load the small swf. In FireFox it says "read cdn.playerio.com" for a long time, and then that goes away and nothing has been loaded. The swf that's being loaded is only 1.5kb, it should load nearly instantly (and does when testing locally). I tried putting Security.allowDomain("*") and Security.allowInsecureDomain("*"), but that didn't help.

I'm ready to show this game to a client as soon as the advertisement swf can successfully load, so all help is appreciated.
markloika
 
Posts: 76
Joined: July 8th, 2010, 3:46 am

Re: Can't load items when loader swf is in a browser...

Postby Benjaminsen » January 18th, 2011, 7:41 pm

Can you post the url to the SWF to me in private or here?

[Edit]
I just realized that you are likely using relative paths something that will not work with the CDN.
See http://playerio.com/documentation/gamefs/
Benjaminsen
.IO
 
Posts: 1444
Joined: January 12th, 2010, 11:54 am
Location: Denmark

Re: Can't load items when loader swf is in a browser...

Postby markloika » January 18th, 2011, 7:44 pm

I sent you a PM. Thanks

Edit: Thanks for the link, I wasn't using the GetURL method before, I'll try that now.
markloika
 
Posts: 76
Joined: July 8th, 2010, 3:46 am

Re: Can't load items when loader swf is in a browser...

Postby batiali » March 2nd, 2011, 6:50 pm

Hello, I have the same issue and I can't solve the problem and I do use geturl method. :)
It works on local, when I load it to my site, kacayaparsin.net, I can't load the picture from gamefs.
Help, please :)
batiali
 
Posts: 29
Joined: August 11th, 2010, 2:53 pm

Re: Can't load items when loader swf is in a browser...

Postby batiali » March 8th, 2011, 11:16 am

Hello,
Sorry for the double post but it's been 6 days and GDC is over already :D
Please help :)
batiali
 
Posts: 29
Joined: August 11th, 2010, 2:53 pm

Re: Can't load items when loader swf is in a browser...

Postby flexcool354 » March 13th, 2011, 2:52 pm

It's probably some cross domain policies
flexcool354
 
Posts: 35
Joined: September 26th, 2010, 5:31 pm

Re: Can't load items when loader swf is in a browser...

Postby Benjaminsen » March 14th, 2011, 6:18 pm

Guys, show me your files so I can see what error it throws!
Benjaminsen
.IO
 
Posts: 1444
Joined: January 12th, 2010, 11:54 am
Location: Denmark

Re: Can't load items when loader swf is in a browser...

Postby batiali » March 14th, 2011, 7:04 pm

I pm'ed you the site already Ben
Anyway, it's www.kacayaparsin.net
I hope you can help
batiali
 
Posts: 29
Joined: August 11th, 2010, 2:53 pm

Re: Can't load items when loader swf is in a browser...

Postby Benjaminsen » March 14th, 2011, 7:25 pm

The flash file throws the following error:
Image

To fix it you must pass a loader context with checkPolicyFile=true to your loader.

IE
Code: Select all
...
var loaderContext:LoaderContext = new LoaderContext();
loaderContext.checkPolicyFile = true;
loader.load([Your Request], loaderContext);


Or simply
Code: Select all
loader.load([Your Request],new LoaderContext(true))
Benjaminsen
.IO
 
Posts: 1444
Joined: January 12th, 2010, 11:54 am
Location: Denmark

Re: Can't load items when loader swf is in a browser...

Postby batiali » March 14th, 2011, 7:47 pm

Oh, thanks a lot!
batiali
 
Posts: 29
Joined: August 11th, 2010, 2:53 pm


Return to GameFS



cron