Flasher Archive

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


Subject: Re: FLASH: waiting for LOAD VARIABLE results
From: Wolf Luecker
Date: Sun, 20 Feb 2000 20:16:45 GMT

Hi,

sorry for butting in on this thread. I'm relatively new to this list
(although not to Flash) and I might have missed earlier posts on the
same subject.

Helen, I've banged my head against this sort of thing a few times and
I still haven't found a really safe and elegant way of telling
whether Flash has received a bit of data or not. Branden's solution
(checking for one certain variable that is always returned) is the
one I use, too, so I can only suggest a couple of little things to
safeguard that your code is correct.

In the 'if' loop I actually use the 'Length' expression, as in
If (Length(varx) > 0)
Goto labelx and Play
That seems to be the safest one for me. Also, make sure you're not
checking for the string literal "0" but for the expression 0 or
'false'. And finally, assuming that your button with the 'load
variables' action also moves the movie on to Frame 2, maybe Flash is
too slow to register the first action and never manages to load the
vars before moving to Frame 2. Maybe put a frame in between those two
actions? (this is a far shot, I must admit)

Just my thoughts,

Wolf.

At 10:53 am -0500 20/2/00, Helen Triolo wrote:
>Branden Hall wrote:
>>
>> Well, somehow you must have had the code, or the middleware file set up
>> incorrectly, because a two frame loop is exactly what is needed.
>>
>> The way the actual load process would work is as follows:
>> Frame 1: The load variables action. Make sure that you are loading the
>> variables to the target/level you want. Its automatically set to level 1
>> even though most often want the variables to load to level 0.
>>
>> Frame 2: A simple if statement. Pick a variable that you will always be
>> getting back from your middleware, say, max. Then you would do the
>> following if statement:
>> if (max ne "")
>> Goto frame 4 and Play
>> end if
>>
>> Frame 3: Just a goto action:
>> Goto frame 2 and Play
>>
>> Thats it!
>
>Thanks, Branden, for the quick reply, but still no go for me. Frame 1's
>only action is stop, but it has a button that on release does a load
>variables("bla.asp",0,vars=POST). Frame 2 has a if "varx ne "" goto
>labelx. Frame 3 has a goto 2 and play (I had a goto previous frame first
>and then changed it to see if that was the problem but it didn't help).
>When I execute, I never get to the labelx frame. But if I skip over
>frames 2 and 3 by putting a goto and play labelx after the load
>variables in frame 1, then labelx gets executed and I see that varx has
>been loaded and displays correctly. Still baffled... Maybe Henri will
>have better luck.
>
>Thanks,
>Helen

flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and The Flash Film Festival
"The World’s Premier Flash Solutions Conference and Expo"
March 27-29, Nob Hill Masonic Center, San Francisco, California

-Register before Feb 25 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  Re: FLASH: waiting for LOAD VARIABLE res, Helen Triolo

Replies
  FLASH: waiting for LOAD VARIABLE results, Henri Cujass
  Re: FLASH: waiting for LOAD VARIABLE res, Helen Triolo
  Re: FLASH: waiting for LOAD VARIABLE res, Branden Hall
  Re: FLASH: waiting for LOAD VARIABLE res, Helen Triolo

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