Forum Games Multiple Frames

Discussion relating to game development with Flash

Multiple Frames

Postby Teonnyn » May 30th, 2010, 4:44 pm

How possible is it to handle multiple frames?
I want to do something fairly basic:
One frame is the game splash screen / login
Second frame is the "choose a start location / room" window.
Third would be actual gameplay, with stats that the player has chosen from the website being used.
(Speaking of, need to know if mySQL can be used here - I have my own DB that I want to pull info from)

Can/Should the external .as file be used when using multiple frames for a game?
Teonnyn
 
Posts: 9
Joined: May 30th, 2010, 4:37 pm

Re: Multiple Frames

Postby Benjaminsen » May 31st, 2010, 8:55 pm

Hi Teonnyn

For that setup the easiest thing would be to make a static class with an reference to the PlayerIO client object so you can access it from every frame. If you need help set it up just reply here and I'll make an example.

For database I suggest you take a look at http://playerio.com/features/bigdb/
Benjaminsen
.IO
 
Posts: 1444
Joined: January 12th, 2010, 11:54 am
Location: Denmark

Re: Multiple Frames

Postby Teonnyn » June 1st, 2010, 12:40 am

An example would be great, although I'm finally getting the hang of Actionscript 3 and setting up a layout.

BigDB would work, except I still need to save data back to my own tables. From my understanding thus far I can load some XML in that would import, then at the end when they exit out (if they do) have the program save it back to another PHP file.

Edit:

Perhaps if I use BigDB in case they don't log out properly?
Teonnyn
 
Posts: 9
Joined: May 30th, 2010, 4:37 pm

Re: Multiple Frames

Postby Benjaminsen » August 16th, 2010, 1:28 pm

Just a quick followup.

There is now an example of how to use BigDB in the Development Package. Even better; there is a video tutorial that helps you get started with it.

Lastly you have the option to store data on your own servers using the Multiplayer WebRequest API

/Chris
Benjaminsen
.IO
 
Posts: 1444
Joined: January 12th, 2010, 11:54 am
Location: Denmark

Re: Multiple Frames

Postby asdarty12 » February 16th, 2022, 3:42 pm

Benjaminsen wrote:Just a quick followup.

There is now an example of how to use BigDB in the Development Package. Even better; there is a video tutorial that helps you get started with it.

Lastly you have the option to store data on your own servers using the Multiplayer WebRequest API
/Chris

https://apksab.com/assault-bots-mod-apk/
asdarty12
 
Posts: 24
Joined: February 16th, 2022, 2:19 pm


Return to Games