Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
| Subject: | RE: FLASH: database connection? |
| From: | Mike S. Krischker |
| Date: | Thu, 2 Dec 1999 21:48:29 GMT |
John,
This was very enlightening. Thanks for taking the
time to explain.
Mike
> -----Original Message-----
> From: owner
> Croteau
> Sent: Thursday, December 02, 1999 10:06 PM
> To: flasher
> Subject: Re: FLASH: database connection?
>
>
> Hi Michael,
>
> I want to clarify how Flash communicates with a server side page a bit.
> By understanding the mechanism a bit better, may help keep you out of
> trouble or adapt code better.
>
> > ASP DOES NOT HAVE TO OUTPUT THE RESULTS IN A TEXT FIELD.
> This is true.
>
> > ASP can just send the variables back directly to flash
> An ASP (or other server side page0 does not send pages to Flash, what it
> does is write to itself (repsonse.write is one way). But since this
> write is not displayed on an HTML page and is unseen, this is sometime a
> difficult concept to understand because the page (or some other object)
> is writing to the page on the server unseen in Flash or HTML.
>
> The next step is that Flash uses a Load Variable command that reads what
> is on the 'text' page. Flash has no idea that a page is ASP, Cold Fusion
> or a .txt file. It sees what is written on that page. Unlike a text page
> the code on a server side page is not actually on the page that Flash
> sees it is just instructions which can process information, communicate
> with a server or even write to itself.
>
> Normally, you need to put your Load Variables command in a loop for 2
> reasons.
> 1) Web communication may not be immediate.
> 2) Before a server side page writes info to itself it may first have to
> make calculations or communicate with other devices such as a database.
>
> > as lonng as
> > it sends them back in the
> > "variable1=value1&variable=value2&variable3=value3" etc etc format.
> > if ASP this would typically be acomplished with a RESPONSE.WRITE.
> Correct Flash can only interpret info in the correct variable pair
> format.
>
> > There is NO need to write the results to a text field ...flash
> loads the ASP
> > with the LOAD VARIABLES command, the ASP gets the results and
> response.write's
> > them in the correct format and this send the variables back to
> flash - all in
> > one go :o)
> Very true.
>
> Don't get confused by the command:
> Load Variables("http://FlashBible.com/data.asp",0,vars=POST)
>
> The above is two completely different independent commands combined in
> the same statement.
> 1) Load Variables which reads a page.
> 2) The Send Variables option (vars=POST) which sends variables that a
> server side page may be able to receive. It does not write to the page,
> the server side page must be setup to read that info.
>
> --
> Coming Soon Flash 4 Web Animation F/X and Design
> http://www.amazon.com/exec/obidos/ASIN/1576105555/flashcentral
> ----------- -----------------------
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Streaming Media WEST '99 Conference & Exhibition
"The Worlds largest Internet Audio & Video Event"
December 7 - 9, San Jose Convention Center, California
Reserve your space today at http://www.streamingmedia.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email help
Replies
Re: FLASH: database connection?, John Croteau
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]

