Monster Racer Rush
Select between 5 monster racers, upgrade your monster skill and win the competition!
4.23 / 5.00 3,881 ViewsBuild and Base
Build most powerful forces, unleash hordes of monster and control your soldiers!
3.93 / 5.00 4,634 ViewsSo I have a game that loads data from a database online. I want to have an error message show up on screen if the user isn't connected to the internet (it's not going to be online, just so you don't think I'm being silly). I know you'll get an error in the output saying the URL couldn't be loaded, but I want an error actually on the stage. I have a movieClip and I have it set to spawn when you're not connected, I just need to know how to check if you're connected. Thanks in advance
see what Events are dispatched and when
i'm guessing you're running some type of fetch command.
just put a small file at the url you're linking to and if the fetch fails then display the error
At 11/5/12 08:11 PM, Max-Vador wrote: just put a small file at the url you're linking to and if the fetch fails then display the error
or use Events and listen for errors while connecting to the database.
unless the particular library you're using doesn't support that type of event. Then just have a URLLoader like Max said.
Programming stuffs (tutorials and extras)
PM me (instead of MintPaw) if you're confuzzled.
thank Skaren for the sig :P
How are people going to load your flash without internet? :/
At 11/6/12 06:08 AM, Sandremss128 wrote: How are people going to load your flash without internet? :/
They could download the SWF. It's also a case of if multiple connections to the database is needed. If a connection is made once, there's no guarantee a second connection can be opened. What if the players internet connection drops whilst playing the game?
At 11/6/12 06:08 AM, Sandremss128 wrote: How are people going to load your flash without internet? :/
:---(it's not going to be online, just so you don't think I'm being silly)