Click here to Skip to main content
15,900,681 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi !

I have 10 .flv Files. I want to Run it on Click Event one by one.

Presently I can Run by making 10 .aspx File. But it is lenthy.

So I want to Run it through Link Buttons From Same Page.

Presently I am using to Run One .flv file from .aspx Page as
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="342" height="339" id="FLVPlayer">
								  <param name="movie" value="FLVPlayer_Progressive.swf" />
								  <param name="salign" value="lt" />
								  <param name="quality" value="high" />
								  <param name="scale" value="noscale" />
								  <param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Halo_Skin_3&streamName=asaram_babu&autoPlay=false&autoRewind=false" />
								  <embed src="FLVPlayer_Progressive.swf" flashvars="&MM_ComponentVersion=1&skinName=Halo_Skin_3&streamName=asaram_babu&autoPlay=false&autoRewind=false" quality="high" scale="noscale" width="342" height="339" name="FLVPlayer" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />                    
			</object>


If I use 10 div, I think page will become Heavy. All 10 .flv will be loaded on Page Load.
Posted
Updated 21-Apr-12 7:23am
v2

1 solution

There can be multiple ways to overcome what you plan to do.

One of it:
1. Put 10 div tags - 1 each for 1 flv file object tag.
2. Set display has hidden for all the divs to start with.
3. Put a dropdown at the top with the list of 10 flv files
4. On select of a particular value form dropdown, set display of corresponding div is visible.

One of the other options could be, to make the object tags on the fly of item selected and display it.
 
Share this answer
 
Comments
LebneizTech 21-Apr-12 22:05pm    
If I use 10 div, I think page will become Heavy. All 10 .flv will be loaded on Page Load.
Sandeep Mewara 22-Apr-12 3:57am    
Well, if the amount of HTML code worries you, I gave second option to make the object tag on the fly and embed it!
LebneizTech 22-Apr-12 12:16pm    
Would you please write the appropriate Code.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900