IT Community - Software Programming, Web Development and Technical Support

Dynamic changing Flash content

This is a discussion on Dynamic changing Flash content within the ASP and ASP.NET Programming forums, part of the Web Development category; Can anyone tell me, How to change the flash content using the dropdown without postback?...


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 08-21-2007, 05:07 AM
SaravananJ SaravananJ is offline
D-Web Programmer
 
Join Date: Aug 2007
Posts: 79
SaravananJ is on a distinguished road
Question Dynamically changing Flash content

Can anyone tell me, How to change the flash content using the dropdown without postback?

Last edited by SaravananJ : 08-21-2007 at 05:16 AM.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-21-2007, 05:24 AM
gplogesh gplogesh is offline
D-Web Trainee
 
Join Date: Aug 2007
Posts: 4
gplogesh is on a distinguished road
Default Re: Dynamic changing Flash content

Hi SaravananJ,

Add a dropdown control which is used to control the flash content and the empty div tag for writing the flash content as follows

<asp:dropdownlist id="flashDropdown" runat="server"
onChange="javascript:ChangeFlashContent();">
<asp:ListItem Text="Movie 1" Value="[Flash file path]"/>
<asp:ListItem Text="Movie 2" Value="[Flash file path]"/>
</asp:dropdownlist>

<div id="divEmbedFlash"></div>

Javascript function to change the flash content based on the dropdrown selection

function ChangeFlashContent()
{
var dropDown=document.getElementById("ContestantDropdo wn");
var flashPath=dropDown.options[dropDown.selectedIndex].value;
var flashContent=document.getElementById("divEmbedFlas h");
flashContent.innerHTML="<embed src=\"”+flashPath+”\" quality=\"high\" wmode=\"transparent\" width=\"300\" height=\"400\" name=\"widget\" align=\"middle\" allowScriptAccess=\"never\" type=\"application/x-shockwave-flash\" />";
}

Thanks,
Logesh
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 08-21-2007, 05:29 AM
rrrajesh84in rrrajesh84in is offline
D-Web Master
 
Join Date: Mar 2007
Posts: 399
rrrajesh84in is on a distinguished road
Default Re: Dynamic changing Flash content

hi

s it is possible on dropDownChange event call the javascript and load the flash player dynamically inside a span/div tags
__________________
.....................................
''''''
Rajesh''''''
Ants. . . . . . Like me
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
changing dynamically vigneshgets Software Testing 1 11-12-2007 11:30 PM
Changing File Access Permissions vijayanand Operating Systems 0 09-20-2007 07:43 AM
Query about requirements changing simplesabita Software Testing 2 08-29-2007 09:58 AM
What can be done if requirements are changing continuously? devarajan.v Software Testing 1 07-19-2007 07:27 AM
Changing media playback component backgroud in flash oxygen Flash Actionscript Programming 0 07-17-2007 12:18 AM


All times are GMT -7. The time now is 01:51 PM.


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

SEO by vBSEO 3.0.0