| | |
Inserting .swf file
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jan 2007
Posts: 4
Reputation:
Solved Threads: 0
greetings to you all!
I want to insert a flash object in my code.and i get validation errors.
what is the best way of doing things.here is the code and below it the errors. pliz let me know how i can correct it.
and these are the errors that i get
Error 1 Validation (XHTML 1.0 Transitional): Empty elements such as 'param' must end with />.
Error 2 Validation (XHTML 1.0 Transitional): Element 'embed' is not supported.
thanks labelle
I want to insert a flash object in my code.and i get validation errors.
what is the best way of doing things.here is the code and below it the errors. pliz let me know how i can correct it.
<objectwidth="200"height="200"> <paramname="movie"value="flash/filename.swf"> <embedsrc="flash/filename.swf"width="200"height="200"> </embed> </object>
and these are the errors that i get
Error 1 Validation (XHTML 1.0 Transitional): Empty elements such as 'param' must end with />.
Error 2 Validation (XHTML 1.0 Transitional): Element 'embed' is not supported.
thanks labelle
bleuh inserting .swf files is such a tricky thing to make browser safe. I find that using the folllowing code that i think dreamweaver gave me is the best iv found! although i have not had much experiance with this at all, i have had some. Below is the code:
What this does is uses one script for embedding the swf for one type of browser, and in the <noscript> section which would be activated is another script, for the alternative browsers. Just edit in your own preferences, and it should work. Hope this hepls!!
Max.
ASP.NET Syntax (Toggle Plain Text)
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="<a rel="nofollow" class="t" href="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" target="_blank">http://fpdownload.macromedia.com/pub...ersion=8,0,0,0</a>" width="550" height="400" align="middle"> <param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="videos/hdsd mov.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><param name="LOOP" value="false"><embed src="videos/hdsd mov.swf" width="550" height="400" loop="false" align="middle" quality="high" bgcolor="#ffffff" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="<a rel="nofollow" class="t" href="http://www.macromedia.com/go/getflashplayer" target="_blank">http://www.macromedia.com/go/getflashplayer</a>" /> </object>
What this does is uses one script for embedding the swf for one type of browser, and in the <noscript> section which would be activated is another script, for the alternative browsers. Just edit in your own preferences, and it should work. Hope this hepls!!
Max.
Ill solve somebody's thread someday! xD
•
•
Join Date: Jan 2007
Posts: 4
Reputation:
Solved Threads: 0
Thanx a lot for yr reply. and it did help me.
one validation error is out now but i still have one. the element embed is not supported. so which one is supported.
I am developing the site for these browsers: xhtml 1.0 Transitional(Netscape 7, Opera 7, Internet Explorer 6). here is the exact error that i get.
Validation (XHTML 1.0 Transitional): Element 'embed' is not supported.
Thanx a lot
one validation error is out now but i still have one. the element embed is not supported. so which one is supported.
I am developing the site for these browsers: xhtml 1.0 Transitional(Netscape 7, Opera 7, Internet Explorer 6). here is the exact error that i get.
Validation (XHTML 1.0 Transitional): Element 'embed' is not supported.
Thanx a lot
•
•
•
•
bleuh inserting .swf files is such a tricky thing to make browser safe. I find that using the folllowing code that i think dreamweaver gave me is the best iv found! although i have not had much experiance with this at all, i have had some. Below is the code:
ASP.NET Syntax (Toggle Plain Text)
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="<a rel="nofollow" class="t" href="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" target="_blank">http://fpdownload.macromedia.com/pub...ersion=8,0,0,0</a>" width="550" height="400" align="middle"> <param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="videos/hdsd mov.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><param name="LOOP" value="false"><embed src="videos/hdsd mov.swf" width="550" height="400" loop="false" align="middle" quality="high" bgcolor="#ffffff" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="<a rel="nofollow" class="t" href="http://www.macromedia.com/go/getflashplayer" target="_blank">http://www.macromedia.com/go/getflashplayer</a>" /> </object>
What this does is uses one script for embedding the swf for one type of browser, and in the <noscript> section which would be activated is another script, for the alternative browsers. Just edit in your own preferences, and it should work. Hope this hepls!!
Max.
•
•
Join Date: Jan 2007
Posts: 5
Reputation:
Solved Threads: 0
or else you can use the FREE flash control from:
http://www.flash-control.net/
its FREE!
i am using the same control for my entire project!
regards,
Ammar.
http://www.flash-control.net/
its FREE!
i am using the same control for my entire project!
regards,
Ammar.
•
•
Join Date: Oct 2009
Posts: 1
Reputation:
Solved Threads: 0
hi there,
i have downloaded flash control and used it in my visual studio 2005 but its not working.
i tried a lot of time, but is not showing up anything when i am running up my application..
and the oher way of using the flash by writing code too is not working here in my system, showing no error message, but still not working..
please help..
regards
darshan
<EMAIL SNIPPED>
i have downloaded flash control and used it in my visual studio 2005 but its not working.
i tried a lot of time, but is not showing up anything when i am running up my application..
and the oher way of using the flash by writing code too is not working here in my system, showing no error message, but still not working..
please help..
regards
darshan
<EMAIL SNIPPED>
Last edited by peter_budo; 28 Days Ago at 10:40 am. Reason: Keet On The Site - Do not post asking for an answer to be sent to you via email or PM.
![]() |
Similar Threads
- how to create swf file in vb6 from bmp imgs in directory and wav file (Visual Basic 4 / 5 / 6)
- mask layer in swf file? (PHP)
Other Threads in the ASP.NET Forum
- Previous Thread: DropdownList DataBinding
- Next Thread: problem with sending email
| Thread Tools | Search this Thread |
.net 2.0 3.5 activexcontrol advice ajax alltypeofvideos asp asp.net bc30451 bottomasp.net browser businesslogiclayer button c# c#gridviewcolumn checkbox class click commonfunctions compatible confirmationcodegeneration content contenttype countryselector courier css dataaccesslayer database datagrid datagridview datagridviewcheckbox datalist deadlock development dgv dropdownlist dropdownmenu edit expose flash flv formatdecimal forms formview gridview homeedition iframe iis javascript jquery list listbox login menu microsoft mono mouse mssql multistepregistration nameisnotdeclared news numerical objects order panelmasterpagebuttoncontrols problem radio ratings rotatepage save schoolproject search security serializesmo.table silverlight smartcard sql sql-server sqlserver2005 suse textbox tracking unauthorized validation vb.net video videos virtualdirectory vista visual-studio visualstudio vs2008 web webarchitecture webdevelopemnt webservice wizard xml youareanotmemberofthedebuggerusers





