Welcome to Dream.In.Code
Getting Help is Easy!

Join 132,359 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,185 people online right now. Registration is fast and FREE... Join Now!




Plz help me

 
Reply to this topicStart new topic

Plz help me, Wana create custom flash player using asp.net 2.0

sajidsrqureshi
post 26 Aug, 2008 - 03:16 AM
Post #1


New D.I.C Head

*
Joined: 26 Aug, 2008
Posts: 2

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
User is offlineProfile CardPM

Go to the top of the page

Jayman
post 26 Aug, 2008 - 12:29 PM
Post #2


Student of Life

Group Icon
Joined: 26 Dec, 2005
Posts: 6,839



Thanked 38 times

Dream Kudos: 500

Expert In: C#, VB.NET, Java

My Contributions


What have you tried so far?

Are you having trouble getting started or do you have a specific problem?
User is offlineProfile CardPM

Go to the top of the page

sajidsrqureshi
post 27 Aug, 2008 - 03:00 AM
Post #3


New D.I.C Head

*
Joined: 26 Aug, 2008
Posts: 2

QUOTE(jayman9 @ 26 Aug, 2008 - 01:29 PM) *

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
User is offlineProfile CardPM

Go to the top of the page

dlkirk03
post 16 Sep, 2008 - 11:16 AM
Post #4


New D.I.C Head

*
Joined: 12 Sep, 2008
Posts: 23


My Contributions


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.com/SWF-FLV-Player/300...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.


CODE

<!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>


User is offlineProfile CardPM

Go to the top of the page

indrora
post 19 Sep, 2008 - 07:06 PM
Post #5


D.I.C Head

Group Icon
Joined: 25 Jul, 2008
Posts: 52



Dream Kudos: 25
My Contributions


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.
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/22/08 04:26AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month