Flasher Archive

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


Subject: FLASH: setting data sources from an url passed to a template file.....
From: \"Buck\" at Ford Motor
Date: Thu, 17 Jun 1999 17:47:59 +0100

Just in case anyone else was wondering about the solution of passing a
variable to the parameter setting for the data source, here is how we
finally got it to work....

Original Problem:

1. (1) Flash (.swt) file
2. have different data sources (or, multiple tables within the same dB)
3. pass that data source via an HTML hyperlink

In it's most simple form you would set the data source under:
[Frame Properties --> Command:Set Environment -->Parameters:(path to either
text file or CGI that points to data source)]

example: htp://someHost.com/subdirectory/generator/filename.cgi
* 'filename.cgi' returns name, value pair data

But, what if I had multiple tables in dB coming from 'filename.cgi'? What
than?

Solution:
htp://someHost.com/subdirectory/generator/filename.cgi?table={variableName}
!! the trick is to put the variable at the end of the path string in
FLASH -- {variableName}!!

Than in my hyperlink I just have to hard code what (or, take from a FORM
submit) table the user wants.

hyperlink:

<a href="http://someHost.com/sub/HTML/generic.swt?variableName=XyZ">XyZ</a>
or,

<a href="http://someHost.com/sub/HTML/generic.swt?variableName=AbC">AbC</a>

In our real world test here, we are using it to build an interactive FLASH
page that shows vehicle brand attributes. So, in my example above we request
from the dB either Ford, Mercury, Mazda etc....

Just an FYI.....

- Buck


------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-manageratshocker [dot] com. Problems to: owneratshocker [dot] com
N.B. Email address must be the same as the one you used to subscribe.
For info on digest mode send: info flasher to list-manageratshocker [dot] com


Replies
  RE: FLASH: Database and Flash question, Wilson Leftwich

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