# Flash into ASP code

**URL:** https://forum.kirupa.com/t/flash-into-asp-code/162605
**Category:** flash
**Created:** [September 14, 2005, 5:47pm UTC](https://forum.kirupa.com/t/flash-into-asp-code/162605 "2005-09-14T17:47:24Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Maro](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@Maro](https://forum.kirupa.com/u/Maro)
#### Post date: [September 14, 2005, 5:47pm UTC](https://forum.kirupa.com/t/flash-into-asp-code/162605/1 "2005-09-14T17:47:24Z")

</div>

Hi,

I have 5 flash movie and I want to integrate them into my asp page. depending on the QueryString I have to display the associated movie

The problem is each time I save my asp file the value of the movie change and when I transfer I have an error with my ASP

this is my code

\<object classid=“clsid:D27CDB6E-AE6D-11CF-96B8-444553540000”  
id=“obj1” codebase=“[http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0](http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0)” border=“0” width=“165” height=“190”\>  
\<param name=“movie”

value = “\<%if RequestVal=“STA” then  
response.write(”…/…/Flash/RequestVals/1.swf")  
elseif RequestVal=“ACI” then  
response.write("…/…/Flash/RequestVals/2.swf")  
elseif RequestVal=“BET” then  
response.write("…/…/Flash/RequestVals/3.swf")  
elseif RequestVal=“BOI” then  
response.write("…/…/Flash/RequestVals/4.swf")  
else response.write("…/…/Flash/RequestVals/5.swf") end if %\>"\>

```
&lt;param name="quality" value="High"&gt;
&lt;embed src="&lt;%if RequestVal="STA" then 
  response.write("../../Flash/RequestVals/1.swf")
      elseif RequestVal="ACI" then 
       response.write("../../Flash/RequestVals/2.swf")
      elseif RequestVal="BET" then 
       response.write("../../Flash/RequestVals/3.swf")
      elseif RequestVal="BOI" then 
       response.write("../../Flash/RequestVals/4.swf")
else 
 response.write("../../Flash/RequestVals/5.swf")

end if %&gt;"&gt;

pluginspage="[http://www.macromedia.com/go/getflashplayer](http://www.macromedia.com/go/getflashplayer)" 
type="application/x-shockwave-flash" name="obj1" width="165" height="190" quality="High"&gt;
&lt;/object&gt;

```

each time I save my file I have all the value on one line

This code work fine with a JPG image and with the source of the flash movie

aNy help please

Thanks
