:confused;
Hi,
I developed a Application which comprises of Flash MX 2004 and ASP.net
Application. When i running application in IE with this address
http://localhost/Application/flash.html it works fine but when i am putting it
on clients server with his server ip address
like http://198.168.1.110/Application/flash.html it doesn't work properly
As expalined in the macromedia live doc i have declared the gatewayUrl
parameter in the html param tag.
works with localhost but not with the ip address.Some can help me fast
BramvdBroek - 10 Mar 2005 16:18 GMT
Hi,
If you declared the gatewayUrl correctly it should work fine, your flash
declaration should look something like:
<OBJECT id="signin"
codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
rsion=7,0,0,0"
height="600" width="770" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
VIEWASTEXT>
<PARAM NAME="Src" VALUE="default.swf">
<PARAM NAME=FlashVars VALUE="gatewayUrl=http://<asp:Literal id="litHTTP_HOST"
runat="server" />/gateway.aspx">
<EMBED
src="default.swf"
quality="high"
bgcolor="#FFFFFF"
WIDTH="770"
HEIGHT="600"
NAME="signin"
ALIGN=""
TYPE="application/x-shockwave-<BR>flash"
FlashVars="gatewayUrl=http://<asp:Literal id="litHTTP_HOST2" runat="server"
/>/gateway.aspx"
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
</EMBED>
</OBJECT>
Whereas : <asp:Literal id="litHTTP_HOST" runat="server" /> and <asp:Literal
id="litHTTP_HOST2" runat="server" /> are two literals I fill in my codebehind
with the servervariable HTTP_HOST to make the aspx file suitable for all
webservers...
Kind regards,
Bram