Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
| Subject: | Re: FLASH: database connection? |
| From: | mbain |
| Date: | Fri, 3 Dec 1999 07:43:49 GMT |
Thank You John :o)
Michael Bain - mbain
"(A)bort (R)etry (I)nfluence with large hammer"
IBM Global Services,Tel: 011 302 8391, Cel.Phn: 082 926 1856
------> http://www.futuredynamics.co.za/cyberbaby/babym.html
John Croteau <croteau
Please respond to flasher
To: flasher
cc: (bcc: Michael Bain/South Africa/IBM)
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
----------- -----------------------
John Croteau croteau
------------- -------------------------
FlashTek (Advanced Websites with Flash) http://www.FlashTek.com/
Flash Bible (Fast track to good Flash) http://www.FlashBible.com/
Flash Central(The Universe Starts Here) http://www.FlashCentral.com/
The Flash Tech Resource (Tech Notes) http://www.FlashCentral.com/tech/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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
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
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]

