Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Re: [flasher] RE: Is there a way to check the online status froman e xe without the error dialog? |
From: | Andries van der Leij |
Date: | Mon, 12 Feb 2001 13:38:48 -0000 |
Thanks for tour reply paul. this is quite a usefull script but it is not
what I was looking for. Forgive me if I wasn't clear:
The user is ALWAYS using an exe. The whole app is a presentation with
animations, sound etcetera. I just want to add some dynamic elements to it
using a link to the internet:
My client can change the content of a "news.txt" file whenever or better:
he can add data to a "news" database recordset using a web form. every time
the user pushes the "news" button he sees the latest news content loaded
into a field. This way my client can keep (a part of) his nice CD-ROM
presentation fairly up-to-date without having to hire us to add new content
every time he thinks that's neccesary...
I want to load data into the exe from an online database or even a .txt
file. The problem with the standalone flash player is that when it gets a
command to load (variables from) an URL and the loading fails (when the user
is not online) it prompts the user with an irritating error dialog box like
you get with the online flash version that tries to load a "broken" link:
"The attempt to load "http://someserver/somefile.html" failed. "
And the user must push the OK button to get rid of this dialog box.
I want to check the online status (the user is connected to the internet at
the time that he is using the exe) WITHOUT the risk that he is prompted with
that annoying dialog box so that the projector can do one thing when he is
online and another when he isn't.
I know that there are more Flashers that had the same problem and I would be
very glad with a solution.
Thanks!
Andries van der Leij
on 2/12/01 1:56 PM, Paul Willoughby at paul_willoughbybeap [dot] co [dot] uk wrote:
> I'm not quite sure what you're trying to do (ftp from a Flash exe?? dynamic
> content from the web into an exe??), but you can check whether a user is on
> an exe version of your site rather than the online version by using the
> inbuilt _url property of a movie. If you're online, the first four
> characters of the _url variable are going to be 'http', but if you're using
> an exe it will be 'file', so:
>
> If(substring(_url, 0, 4) == "file"){
> // the user is using an exe
> }else if(substring(_url, 0, 4) == "http"){
> // the user is at your website
> }
>
> hth
>
> paul
>
>> -----Original Message-----
>> From: Andries van der Leij [andriestheMetroStation [dot] com (mailto:andriestheMetroStation [dot] com)]
>> Sent: 12 February 2001 12:34
>> To: flasher from chinwag
>> Subject: [flasher] Is there a way to check the online status
>> from an exe
>> without the error dialog?
>>
>
>>
>> I was wondering if there is a trick to check the online
>> status without the
>> dialog box from appearing...?
>>
>> you would very much help me out if you know a possible solution!!
>>
>> Thanks in advance,
>>
>> Andries van der Leij
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> The Chinwag site carries a wealth of Flash resources.
> Find useful links, suggested reading and archives at:
>
> ** http://www.chinwag.com/flasher **
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> You are subscribed to flasher as: andriestheMetroStation [dot] com
> To unsubscribe, email leave-flasher-478739Wlists [dot] chinwag [dot] com
>
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]