Forum ‹ GameFS ‹ Can't load items when loader swf is in a browser...
10 posts
• Page 1 of 1
Can't load items when loader swf is in a browser...
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.
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
- Paid Member
- Posts: 73
- Joined: July 8th, 2010, 3:46 am
Re: Can't load items when loader swf is in a browser...
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/
[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/
Have more questions? Join us at #player.io on the freenode irc network. Making something cool with Player.IO? I would love to talk! My Skype handle is q-rious
-

Benjaminsen - .IO
- Posts: 808
- Joined: January 12th, 2010, 11:54 am
- Location: Denmark
Re: Can't load items when loader swf is in a browser...
I sent you a PM. Thanks
Edit: Thanks for the link, I wasn't using the GetURL method before, I'll try that now.
Edit: Thanks for the link, I wasn't using the GetURL method before, I'll try that now.
- markloika
- Paid Member
- Posts: 73
- Joined: July 8th, 2010, 3:46 am
Re: Can't load items when loader swf is in a browser...
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
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...
Hello,
Sorry for the double post but it's been 6 days and GDC is over already
Please help
Sorry for the double post but it's been 6 days and GDC is over already
Please help
- batiali
- Posts: 29
- Joined: August 11th, 2010, 2:53 pm
Re: Can't load items when loader swf is in a browser...
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...
Guys, show me your files so I can see what error it throws!
Have more questions? Join us at #player.io on the freenode irc network. Making something cool with Player.IO? I would love to talk! My Skype handle is q-rious
-

Benjaminsen - .IO
- Posts: 808
- Joined: January 12th, 2010, 11:54 am
- Location: Denmark
- batiali
- Posts: 29
- Joined: August 11th, 2010, 2:53 pm
Re: Can't load items when loader swf is in a browser...
The flash file throws the following error:

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

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))
Have more questions? Join us at #player.io on the freenode irc network. Making something cool with Player.IO? I would love to talk! My Skype handle is q-rious
-

Benjaminsen - .IO
- Posts: 808
- Joined: January 12th, 2010, 11:54 am
- Location: Denmark
Re: Can't load items when loader swf is in a browser...
Oh, thanks a lot!
- batiali
- Posts: 29
- Joined: August 11th, 2010, 2:53 pm
10 posts
• Page 1 of 1