Plz help me

Wana create custom flash player using asp.net 2.0

Page 1 of 1

4 Replies - 781 Views - Last Post: 19 September 2008 - 08:06 PM Rate Topic: -----

#1 sajidsrqureshi  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 26-August 08

Plz help me

Posted 26 August 2008 - 04:16 AM

hi,
I wana create one activex control in asp.net 2.0 . then add this activex into our project.

now our concern is :

whenever i pass the .swf from the code behind that activex is called & show the .swf file. & stereaming is also done
Is This A Good Question/Topic? 0
  • +

Replies To: Plz help me

#2 Jayman  Icon User is offline

  • Student of Life
  • member icon

Reputation: 418
  • View blog
  • Posts: 9,532
  • Joined: 26-December 05

Re: Plz help me

Posted 26 August 2008 - 01:29 PM

What have you tried so far?

Are you having trouble getting started or do you have a specific problem?
Was This Post Helpful? 0
  • +
  • -

#3 sajidsrqureshi  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 26-August 08

Re: Plz help me

Posted 27 August 2008 - 04:00 AM

View Postjayman9, on 26 Aug, 2008 - 01:29 PM, said:

What have you tried so far?

Are you having trouble getting started or do you have a specific problem?



Hi, THanx for ur reply.


I have very complicated query.

first i a m a asp.net developer. we create one web site in which we use swf . simple swf file without movies. only contents present in the swf file.

now my concern is when we run the project then swf files get copied into temporary internet files. i wana avoid this.

for this i simply wana one activex control in windows based application & wana add into web project. whenever we wana pass the swf file then that activex control show the swf file.
this is possible or not. i also want that swf not copy into the temp folder.

plz reply soon
Was This Post Helpful? 0
  • +
  • -

#4 dlkirk03  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 36
  • Joined: 12-September 08

Re: Plz help me

Posted 16 September 2008 - 12:16 PM

Create an FLV file of the video you want to post and then Load a player (here is a link to one http://www.download....4-10729016.html ). Set the player up to run the FLV file (You can leave the player up or turn it off but you can use some kind of code to change the file link). The player will be saved to the user’s temporary internet files but the FLV will not. I have never tried this in a SWF page but I have done it on an html page and it worked wonderfully. I posted the code below to show you how I did it. Announcement1 is the name of the FLV file I used. Hope this helps.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- include flashembed -->
<script type="text/javascript" src="flashembed.js"></script>

<script>
/*
 * window.onload event occurs after all HTML elements have been loaded
 * this is a good place to setup your Flash elements
 */
window.onload = function() {  
   
	/*
	 * flashembed places Flowplayer into HTML element 
	 * whose id="example" (see below this script tag)
	 */
	flashembed("Announcement1", 
   
	  /*
	   * second argument supplies standard Flash parameters.
	   * basically these are all you want to modify
	   * but you can see full list here
	   */
	  {
		 src:'FlowPlayerLight.swf',
		 width:400,  
		 height:300,
		 bgcolor:'#ffffff'
	  },
		
	  /*
	   * third argument is Flowplayer specific configuration
	   * full list of options is given here
	   */
	  {config: {   
		 videoFile: 'Announcement1.flv',
		 initialScale: 'scale', 
		 useNativeFullScreen: true
			
		 // supply more options here by separating them with commas
	  }} 
   );
}
</script>




<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>DOWDCO Intranet Announcement1</title>
<style type="text/css">
<!--
.style1 {font-size: xx-large}
.style2 {font-size: large}
.style19 {font-family: Arial; font-style: italic; font-size: 18px;}
.style22 {color: #0099FF}
.style23 {	color: #009900;
	font-size: 25px;
}
.style27 {	font-size: 25px;
	font-family: Arial;
	font-style: italic;
	font-weight: bold;
}
.style28 {color: #009900}
.style32 {font-size: 25px}
body {
	background-color: #EBEEF2;
}
-->
</style>
</head>

<body>
<!-- this DIV is where your Flowplayer will be placed. it can be anywhere -->
<table width="1000" border="0">
		  <tr>
			<td width="400"><div id="Announcement1"></div></td>
			<td width="400" align="center"><a href="Announcement1.pdf"><img src="PDF_red.jpg" width="144" height="141" /><br />
			  Download
			  Announcement PDF Version</a></td>
		  </tr>
		</table></td>
		<td height="23"></td>
	  </tr>
	</table>
	
	</table>


</body>

</html>




Was This Post Helpful? 0
  • +
  • -

#5 indrora  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 3
  • View blog
  • Posts: 100
  • Joined: 25-July 08

Re: Plz help me

Posted 19 September 2008 - 08:06 PM

Coming from the side of a classic Flash Developer

... There's no reason for a custom ActiveX Control. aX is now _depreciated_ -- not even microsoft supports them. Its all through .NET and some special handlers. also, ActiveX would break your operability with everything that isnt Win32, IE <=6 and XP or older.

As for having Flash object, there's already code for that. I'd check "embed Flash Video In HTML" on Google, or at that pull out a copy of DreamWeaver (or FrontPage or Expression Web or just GooOOooOOgle "embed flash video in HTML"

and "save to temp folder" -- What do you mean? do you not want the flash video cached? because there's no way around that.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1