Flasher Archive

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


Subject: Re: FLASH: getting variables from ASP
From: Vipin Kanwar
Date: Sun, 27 Feb 2000 05:52:58 GMT

Hi again,

Helen, the page code that i sent earlier was to show you how the html version
was done.

I have to recreate the whole application using flash.

Luckily, i found out that by modifying the "embed" and "object" tag in the
html document that hosts the flash file.. i can access the variables at load
time.

for instance .. i modified my html file that hosts the flash movie to.....

<embed src="../flash/home2.swf?Accessdesc=<%=Session("AccessDesc")%>"
quality="high" ..... etc..etc..

and the object code too:-

<param name="movie"
value="../flash/home2.swf?AccessDesc=<%=Session("AccessDesc")%>">


now, this worked just fine with my file.. and the variable (in this case
AccessDesc) was passed onto my movie.

But i guess this is not the best way to do it if i have many variables to be
passed.. which i do need later on in my web application. In that case.. i
guess i shall need to modify my code as per what you suggested.

right?!

regards
vipin kanwar



Helen Triolo wrote:

> Vipin Kanwar wrote:
> >
> > ...
> > Here is the asp page code:-
> >
> > <% Language = VBScript %>
> > <HTML> <HEAD>
> > <TITLE> Start Page </TITLE>
> > <link Rel="Stylesheet" TYPE="TEXT/CSS" HREF="styles/home.css">
> > </HEAD>
> >
> > <BODY>
> > Welcome to the assset management system, <% = Session("Fullname") %>.
> > <p>
> > You have <a href='FAQ.htm><%=Session(AccessDesc") %></a> level access to
> > the system.<br>
> > To begin, please select an option from the menu.
> >
> > </BODY>
> > </HTML>
> >
> > I want to be able to recreate this whole page in Flash using the same
> > database to fill in the fullname and the type of acess into my flash
> > text.
> >
> Vipin,
> From what I can tell, it looks like you need to have a home.asp that
> looks something like this:
>
> <% response.write("retname=" + URLEncode(Session(Fullname)) &
> "&retdesc=" + URLEncode(Session(AccessDesc))) %>
>
> and textfields retname and retdesc in the Flash file to read the values
> into.
>
> Make sure your asp file contains ONLY vbscript--if you put HTML code
> like <BODY> tags and so forth in, Flash won't receive the variables.
>
> (I'm not sure why you're using session variables for the things you're
> pulling from the database, but since that's what you had in your
> original message, I left it like that. I usually have a return
> statement that looks more like response.write("var1=" +
> rs.fields("databasevar")) etc).
>
> Regards,
> Helen
> __________________________________________________________________
> i-Technica: Innovative Internet Solutions (http://i-Technica.com)
> designerati-technica [dot] com
> 301-424-6037
>
> 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


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: getting variables from ASP, Helen Triolo

Replies
  FLASH: getting variables from ASP, Vipin Kanwar
  Re: FLASH: getting variables from ASP, Helen Triolo

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