Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: RE: FLASH: Interfacing with server
From: Paul Willoughby
Date: Mon, 13 Nov 2000 10:43:05 GMT

Hi Vikas,

One possible problem is that you are testing the value of a variable
before the ASP has had time to return it. You could try adding a 2 frame
loop after you load the ASP to check whether "success" not equal to ""
(success is a string data type I think). You keep looping round these
frames untiul there is something in the "success" variable, then go on
and test that value.
There might be other problems with the syntax (esp. scenes), but I'm not
too familiar with F5 yet.

hth

paul

Vikas wrote on 10 November 2000 >
>
> hi!
> here is the code that should display a particular scene when logon is
> a success and a different scene when login is a failure.
> ===========
> on (press, release) {
> loadVariablesNum ("http://192.168.0.96/temp/t1.asp", 0, "GET");
> if (success=="yes") {
> getURL ("http://192.168.0.96/temp/t2.asp", "_self");
> } else if (success=="no") {
> gotoAndStop ("Scene 2", 1);
> }
> }
> ==========
> Example output from the ASP file is "success=0&Username=&Password=&".
> (application/x-urlencoded) The problem is the if contruct
> does not work!
> and so nothing happens. If I provide a _else_ statement that
> will always
> be executed. What is the data type of "success" and what is
> the format i
> should call the "if" statement? Or maybe the problem is in the
> loadVariablesNum?
>
> Please help!
> Thanks!
>
> Vikas
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
November 27-29, 2000, LONDON, National Film Theatre

Produced by United Digital Artists and lynda.com
-Sponsored by Macromedia, Adobe Systems and Apple Computer
-http://www.flashforward2000.com or UK tel. +44 (0870) 751 1526
Register before November 10 and save �200
http:// www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]