Connecting Tech Pros Worldwide Help | Site Map

swfobject error

Member
 
Join Date: Apr 2007
Location: india
Posts: 111
#1: Jul 24 '09
hi friend

this is my code

Expand|Select|Wrap|Line Numbers
  1. <script type="text/javascript">
  2.         // <![CDATA[
  3.         var so = new SWFObject("./yoga/so_tester.swf", "sotester", "100%", "100%", "8", "#FF6600");
  4.         so.addVariable("flashVarText", "this is passed in via FlashVars for example only");
  5.         so.addParam("scale", "noscale");
  6.         so.write("flashcontent");
  7.         // ]]>
  8.     </script>
it is working fine for (open file)
file:///D:/WebSite4/swfobject/swfobject1-5/fullpage.html

if i connect to the IIS (http://localhost/TEST/FULLPAGE.HTML)
it is also working fine

asp.net code
Expand|Select|Wrap|Line Numbers
  1. filepath="file:///D:/WebSite4/swfobject/swfobject1-5/fullpage.html";
  2. Response.WriteFile(filepath);
it not working


it gives error 'You need to upgrade your Flash Player '

why?
pls help me
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#2: Jul 24 '09

re: swfobject error


Perhaps the JavaScript file has not been properly included.
Member
 
Join Date: Apr 2007
Location: india
Posts: 111
#3: 1 Week Ago

re: swfobject error


Hi
No i am include properly
pls check my code
gopan's Avatar
Member
 
Join Date: Apr 2009
Location: Kochi (COK), India
Posts: 41
#4: 1 Week Ago

re: swfobject error


Where is your asp.net code located?? is that in the same directory of the HTML??
Reply