Be a Supporter!

upload flash game with multiple swf

  • 528 Views
  • 11 Replies
New Topic Respond to this Topic
nisitGamesStudio
nisitGamesStudio
  • Member since: Feb. 22, 2013
  • Offline.
Forum Stats
Member
Level 01
Blank Slate
upload flash game with multiple swf 2013-02-22 20:34:36 Reply

I just wonder if it possible to submit a flash game that requires multiple swfs files.

MSGhero
MSGhero
  • Member since: Dec. 15, 2010
  • Offline.
Forum Stats
Supporter
Level 16
Game Developer
Response to upload flash game with multiple swf 2013-02-22 20:36:49 Reply

At 2/22/13 08:34 PM, nisitGamesStudio wrote: I just wonder if it possible to submit a flash game that requires multiple swfs files.

You would need a single swf that loads the other ones in somehow. If you can host the files, you can use the loader class to grab the swfs.

nisitGamesStudio
nisitGamesStudio
  • Member since: Feb. 22, 2013
  • Offline.
Forum Stats
Member
Level 01
Blank Slate
Response to upload flash game with multiple swf 2013-02-22 20:41:49 Reply

Thank you for your extremely quick reply
doesn't doing that violate the term that we cannot link to the external site? or are we allowed to do? if we are, that would be great.

suppose that if we can, what is the exact domain of our submit game (eg url such as www.newgrounds.com), so that I can set my crossdomain.xml in my server site.
Thank you in advance for your kindly reply

nisitGamesStudio
nisitGamesStudio
  • Member since: Feb. 22, 2013
  • Offline.
Forum Stats
Member
Level 01
Blank Slate
Response to upload flash game with multiple swf 2013-02-22 20:43:36 Reply

At 2/22/13 08:41 PM, nisitGamesStudio wrote: Thank you for your extremely quick reply
doesn't doing that violate the term that we cannot link to the external site? or are we allowed to do? if we are, that would be great.

suppose that if we can, what is the exact domain of our submit game (eg url such as www.newgrounds.com), so that I can set my crossdomain.xml in my server site.
Thank you in advance for your kindly reply

just extra info the word I "cannot link to external site" I meant load content info from external site

egg82
egg82
  • Member since: Jun. 24, 2006
  • Online!
Forum Stats
Supporter
Level 05
Game Developer
Response to upload flash game with multiple swf 2013-02-22 21:05:34 Reply

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
	<site-control permitted-cross-domain-policies="all" />
	<allow-access-from domain="*" to-ports="80, 443" />
</cross-domain-policy>

that allows access from every ip to ports 80 and 443.
be aware of security risks with all of this.


Programming stuffs (tutorials and extras)
PM me (instead of MintPaw) if you're confuzzled.
thank Skaren for the sig :P

BBS Signature
nisitGamesStudio
nisitGamesStudio
  • Member since: Feb. 22, 2013
  • Offline.
Forum Stats
Member
Level 01
Blank Slate
Response to upload flash game with multiple swf 2013-02-22 21:12:18 Reply

At 2/22/13 09:05 PM, egg82 wrote: <?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<site-control permitted-cross-domain-policies="all" />
<a llow-access-from domain="*" to-ports="80, 443" />
</cross-domain-policy>

that allows access from every ip to ports 80 and 443.
be aware of security risks with all of this.

Thank you for your kind guide, but
My original question was "Are we actually allow to publish a game to newground that load other extra file from external site?" << will this one violate the term of newgrounds account usage.

And I don't want to permit every domain by setting to "all" so i want to know the specific domain that I can put it on.

Thank you very much for your kind answer, by the way

4urentertainment
4urentertainment
  • Member since: Aug. 1, 2008
  • Offline.
Forum Stats
Moderator
Level 13
Game Developer
Response to upload flash game with multiple swf 2013-02-22 21:17:17 Reply

At 2/22/13 09:12 PM, nisitGamesStudio wrote: My original question was "Are we actually allow to publish a game to newground that load other extra file from external site?" << will this one violate the term of newgrounds account usage.

Its not against the rules. Lots of games do this, especially the multiplayer ones.

egg82
egg82
  • Member since: Jun. 24, 2006
  • Online!
Forum Stats
Supporter
Level 05
Game Developer
Response to upload flash game with multiple swf 2013-02-22 21:26:49 Reply

At 2/22/13 09:12 PM, nisitGamesStudio wrote: My original question was "Are we actually allow to publish a game to newground that load other extra file from external site?" << will this one violate the term of newgrounds account usage.

oh, I wasn't quite sure what you were asking so I took a shot.

4ur's right, it's not against anything that i'm aware of. Just watch your bandwidth, because it's going to skyrocket when you get thousands of people viewing your game.


Programming stuffs (tutorials and extras)
PM me (instead of MintPaw) if you're confuzzled.
thank Skaren for the sig :P

BBS Signature
szamajstudio
szamajstudio
  • Member since: Dec. 31, 2012
  • Offline.
Forum Stats
Member
Level 01
Blank Slate
Response to upload flash game with multiple swf 2013-07-10 14:24:37 Reply

At 2/22/13 08:34 PM, nisitGamesStudio wrote: I just wonder if it possible to submit a flash game that requires multiple swfs files.

Hey, I wonder, do you manage to solve your problem? I have many URL's in my game, that are executed local (editing each url, by add to it domain prefix would kill me). Now i'm struggling the same problem, how to allow execute local files on my server from Newgrounds loader? I know i shoul change default domain, so local url's will know to load with proper prefix. Help!

kkots
kkots
  • Member since: Apr. 16, 2013
  • Offline.
Forum Stats
Supporter
Level 10
Blank Slate
Response to upload flash game with multiple swf 2013-07-10 22:45:39 Reply

You know how to concatenate strings?
Just use Ctrl+F in the code and replace URLRequest with CustomFunc.

function CustomFunc(str:String):URLRequest{
  return new URLRequest("http://www.example.com/"+str);
}

What this does, is replacing URLRequest("resource1.wav") with CustomFunc("resource1.wav") and CustomFunc is some sort of a mdified URLRequest, if you could say that. Quick, easy and dirty code-patching, I know.


BBS Signature
szamajstudio
szamajstudio
  • Member since: Dec. 31, 2012
  • Offline.
Forum Stats
Member
Level 01
Blank Slate
Response to upload flash game with multiple swf 2013-07-11 06:10:13 Reply

At 7/10/13 10:45 PM, kkots wrote: Just use Ctrl+F in the code and replace URLRequest with CustomFunc.

function CustomFunc(str:String):URLRequest{
return new URLRequest("http://www.example.com/"+str);
}

Wow, if this will work it would be great, thanks! I will post results.

szamajstudio
szamajstudio
  • Member since: Dec. 31, 2012
  • Offline.
Forum Stats
Member
Level 01
Blank Slate
Response to upload flash game with multiple swf 2013-07-11 08:33:49 Reply

Wait a sec, you mean I must replace every "URLRequest" to this pre defined string (modify each link)? Or I can modify URLRequest Class so every link will run with domain prefix (just one function)?