Go Back   CodingForums.com > :: Client side development > Flash & ActionScript

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rating: Thread Rating: 3 votes, 4.00 average.
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-06-2003, 01:50 PM   PM User | #1
Spudhead
Senior Coder

 
Spudhead's Avatar
 
Join Date: Jun 2002
Location: London, UK
Posts: 1,856
Thanks: 8
Thanked 110 Times in 109 Posts
Spudhead is on a distinguished road
passing asp data to flash

Hi,

Apologies for cross-posting in ASP and Flash forums, but I'm trying to pass some data from ASP, back to a Flash movie.

I'm aware that by calling LoadVariables() in actionscript , I can get an asp file to write out a querystring that flash will then load.

I can't do that, though, because the asp page itself needs to have something passed to it in the querystring; specifically a database record id number. Obviously I can't put this in a LoadVariables() call as it's gonna change each time the page is loaded.

I was under the impression that I could do this:

Load an asp page that gets the database row id out of the querystring, queries the database as usual, then writes out the Flash embedding html tags:

<PARAM NAME=movie VALUE="flashFile.swf?myVar1=<%=databaseField1%>&myVar2=<%=databaseField2%>">

...which flash will then automatically use to popuplate its variables.

But that doesn't appear to be working; the Flash file hangs in loading. It may well just be a syntax error, but could someone just confirm that it's possible to do what I'm trying to do, and if so where I might be doing it wrong?

Thanks.
Spudhead is offline   Reply With Quote
Old 02-07-2003, 10:42 AM   PM User | #2
Spudhead
Senior Coder

 
Spudhead's Avatar
 
Join Date: Jun 2002
Location: London, UK
Posts: 1,856
Thanks: 8
Thanked 110 Times in 109 Posts
Spudhead is on a distinguished road
Maybe I can make my request more specific - have a look here:

http://www.aspalliance.com/chrisg/t...w-santa.asp.asp

The asp page is sent a variable to use; which it then drops into the Flash by writing it directly into the html <param> tags, as part of the .swf url.

My understanding is that if you call a .swf with something in the querystring, Flash will automatically read that and turn it into variables.

It doesn't appear to be working; I'm not a Flash person and I have no idea if there's something else I need to do within the Flash file in order to get it to pick up those variables.

Can anyone point me in the right direction?
Spudhead is offline   Reply With Quote
Old 02-07-2003, 11:51 AM   PM User | #3
Mhtml
Senior Coder

 
Mhtml's Avatar
 
Join Date: Jun 2002
Location: Sydney, Australia
Posts: 3,531
Thanks: 0
Thanked 1 Time in 1 Post
Mhtml is an unknown quantity at this point
Ok well I didn't read all of your two posts, .

You can use loadvariables.
Just have 2 pages! Firstly collect the variables "databaseField1" & "databaseField2" from one page by populating a constant variable with them. Then go to the other page using the variables harvested from the previous.
__________________
Omnis mico antequam dominus Spookster!
Mhtml is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:43 AM.


Advertisement
Log in to turn off these ads.