IT Community - Software Programming, Web Development and Technical Support

JavaScript to include flash file in asp.net

This is a discussion on JavaScript to include flash file in asp.net within the ASP and ASP.NET Programming forums, part of the Web Development category; Hi, JavaScript to include flash content in asp.net.......


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > ASP and ASP.NET Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 02-22-2008, 11:16 PM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Smile JavaScript to include flash file in asp.net

Hi,
JavaScript to include flash content in asp.net....
__________________
The KINGMAKER
Makes Every Thing Possible

Stuffs (My Blog)
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 02-22-2008, 11:23 PM
poornima poornima is offline
D-Web Sr.Programmer
 
Join Date: Dec 2007
Posts: 189
poornima is on a distinguished road
Smile Re: JavaScript to include flash file in asp.net

hi,
I found the way to include flash file in asp.net.We can do this by <embed>,<object>tag also.But it s not suitable in some cases.So we can go for creating flashObject through Js and include the file inside Div.

<script type="text/javascript" src="flashobject.js"></script>

<div id="flashcontent">
This text is replaced by the Flash movie.
</div>

<script type="text/javascript">
var fo = new FlashObject("movie.swf", "mymovie", "200", "100", "7", "#336699");
fo.write("flashcontent");
</script>

In the Above script,
movie.swf-->Flash file to be played
mymovie--->Id for SWF
200-------->Width
100-------->Height
7---------->Version
#336699--->BgColor
fo.write("flashcontent");--->flashcontent is the div id.Using fo we are writing the flash file with above mentioned properties inside a div
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-27-2008, 02:11 AM
rrrajesh84in rrrajesh84in is offline
D-Web Master
 
Join Date: Mar 2007
Posts: 399
rrrajesh84in is on a distinguished road
Default Re: JavaScript to include flash file in asp.net

hi

In the above script i got an error in "FlashObject". what to do?
__________________
.....................................
''''''
Rajesh''''''
Ants. . . . . . Like me
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 03-10-2008, 03:20 AM
poornima poornima is offline
D-Web Sr.Programmer
 
Join Date: Dec 2007
Posts: 189
poornima is on a distinguished road
Smile Re: JavaScript to include flash file in asp.net

Hi,

Have u included the flashobject.js file in ur page?
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Javascript and Flash Anand Flash Actionscript Programming 4 03-15-2008 03:22 AM
How to refresh an include js file every 10 seconds? kingmaker HTML, CSS and Javascript Coding Techniques 1 11-28-2007 11:12 PM
Can I include JavaScript code from external JS files, rather than embedding all my sc Pvinothkumar HTML, CSS and Javascript Coding Techniques 0 09-13-2007 04:49 AM
How to include file from different server Arun PHP Programming 1 07-12-2007 05:04 AM
Flash file uploader aramesh Flash Actionscript Programming 6 03-28-2007 06:10 AM


All times are GMT -7. The time now is 06:36 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0