Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > General > Gaming and Game Development

Reply
 
Thread Tools Rate Thread Display Modes
Old 07-17-2010, 01:55 PM   #1
Marinclaric
Member
 
Join Date: Jul 2010
Posts: 94
Default [AS3] Making the game update without replacing it.

I have absolutely no clue how to make a game update while on a web page without taking it off and putting the new one on. But I know it's possible.

Can someone get me started in the right direction with this? It would be much apreciated.

Just throw me a link, or if it is simple you can try to explain it to me.
Marinclaric is offline   Reply With Quote
Old 07-17-2010, 02:13 PM   #2
antago
Senior Member
 
Join Date: Dec 2007
Posts: 196
Default

Making a game update? Explain exactly what are you attempting to update.
antago is offline   Reply With Quote
Old 07-17-2010, 02:25 PM   #3
Marinclaric
Member
 
Join Date: Jul 2010
Posts: 94
Default

Im not sure, i want to make my game update able. so that I may be able to do that at a later date.

But i dont know the limitations could you explain?
Marinclaric is offline   Reply With Quote
Old 07-17-2010, 02:26 PM   #4
tadster
tadster
 
tadster's Avatar
 
Join Date: Feb 2009
Location: Texas
Posts: 2,111
Default

update how?
You want to change the graphics of the game?
Or just some variables?
Or the code?
__________________
www.actiontad.com - ActionScript and JavaScript sitting in a tree...
tadster is offline   Reply With Quote
Old 07-17-2010, 02:30 PM   #5
Marinclaric
Member
 
Join Date: Jul 2010
Posts: 94
Default

all three...haha
Marinclaric is offline   Reply With Quote
Old 07-17-2010, 02:36 PM   #6
tadster
tadster
 
tadster's Avatar
 
Join Date: Feb 2009
Location: Texas
Posts: 2,111
Default

ok, you can't do all three without actually recompiling the swf....well.... you can, but if you set your program up right.

You can use a database.
Have the swf read from the database to know what images to display/load
and what data to show. So your swf would be built around loading info from a database, and never have to change itself, just retreve what it should do.

Now, if what you mean is that you want users to be able to get the lastest update you uploaded without having to clear their cache, you want your server to always load up a fresh file of the .swf, in case you change it. then it's simple.

Append a unique number to the end of the call for your swf:

Code:
var randomTime = newDate().getTime()*Math.random();

<object.........  src="myswf.swf?randomTime">
</object>
With something like that, your server will always serve up a fresh version of your swf.
__________________
www.actiontad.com - ActionScript and JavaScript sitting in a tree...
tadster is offline   Reply With Quote
Old 07-17-2010, 02:40 PM   #7
Marinclaric
Member
 
Join Date: Jul 2010
Posts: 94
Default

is it possible to update without a server?
Marinclaric is offline   Reply With Quote
Old 07-17-2010, 02:58 PM   #8
tadster
tadster
 
tadster's Avatar
 
Join Date: Feb 2009
Location: Texas
Posts: 2,111
Default

that's how it gets on the website in the first place.
__________________
www.actiontad.com - ActionScript and JavaScript sitting in a tree...
tadster is offline   Reply With Quote
Old 07-17-2010, 05:23 PM   #9
Marinclaric
Member
 
Join Date: Jul 2010
Posts: 94
Default

my problem is that I want to put my game on albinoblacksheep but be able to update it while it is on that site.
Marinclaric is offline   Reply With Quote
Old 07-17-2010, 06:47 PM   #10
antago
Senior Member
 
Join Date: Dec 2007
Posts: 196
Default

That would be up to albinosheep to permit you to feed a file from your server.
antago is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:08 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.