Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP variable read by flash

Status
Not open for further replies.

JoeMcGarvey

Programmer
Oct 31, 2002
47
US
Hi,
Is there a way to have a flash movie read a variable from the ASP page it is embedded in?

I have an ASP variable called "color". This is a hex color value. I want the flash movie to change the color of a box to this value.

I am sure this has probably been posted before, but the Keyword Search is down on Tek-Tips.

Thanks in advance!!
 
Joe, I haven't worked with ASP, but I can tell you how Flash takes a variable from HTML. You think that can help?

anyway, here it is:
Code:
<OBJECT classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot;
 codebase=&quot;[URL unfurl="true"]http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0&quot;[/URL]
 WIDTH=80% HEIGHT=95% id=&quot;r5&quot; ALIGN=&quot;center&quot;>
 <PARAM NAME=movie VALUE=&quot;roulette.swf[red]?gameURL=http://127.0.01/servlet/Servlet&selfURL=roulette.html[/red]&quot;> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#000000><PARAM NAME=scale VALUE=exactfit> <EMBED src=&quot;roulette.swf[red]?gameURL=http://127.0.0.1/servlet/Servlet&selfURL=roulette.html[/red]&quot; quality=high bgcolor=#000000  WIDTH=80% HEIGHT=95% NAME=&quot;r5&quot; ALIGN=&quot;center&quot; SCALE=exactfit
 TYPE=&quot;application/x-shockwave-flash&quot; PLUGINSPAGE=&quot;[URL unfurl="true"]http://www.macromedia.com/go/getflashplayer&quot;></EMBED>[/URL]
</OBJECT>

Code:
gameURL
and
Code:
selfURL
are two variables that I can use in Flash after i declare them in the first frame like this:
Code:
var gameURL;
var selfURL;
Diana.
icq: 111872918
 
oops. the formatting didn't work, it didn't make it red.

disregard the [red] [/red] inside the code, please. Assume that what's between them is actually red :) Diana.
icq: 111872918
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top