asp.net with flash

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ulai
    New Member
    • Oct 2008
    • 15

    asp.net with flash

    Hey all,

    Could i make a web with flash visualization and code with asp.net?
  • iam_clint
    Recognized Expert Top Contributor
    • Jul 2006
    • 1207

    #2
    Can you give more detail on what exactly you are trying to accomplish?

    Comment

    • jhardman
      Recognized Expert Specialist
      • Jan 2007
      • 3405

      #3
      Originally posted by ulai
      Hey all,

      Could i make a web with flash visualization and code with asp.net?
      Yes. I love it when the questions are that easy to answer!

      Jared

      Comment

      • Plater
        Recognized Expert Expert
        • Apr 2007
        • 7872

        #4
        If you are talking about integrating the "button clicks and etc" of flash into ASP.NET backend code, you might be better off investigating Silverlight. Best I can tell it's microsoft's answer to flash and works like creating a windows Form does
        (Even though their own websites use flash)

        Comment

        • Curtis Rutland
          Recognized Expert Specialist
          • Apr 2008
          • 3264

          #5
          Where do you see flash on Silverlight.Net ?

          But yes, Silverlight is a competitor to Flash. It's a rich, client-side browser plugin. But you can use C#/VB.NET as a backend, and a "diet" version of the framework.

          Comment

          • joedeene
            Contributor
            • Jul 2008
            • 579

            #6
            Originally posted by Plater
            If you are talking about integrating the "button clicks and etc" of flash into ASP.NET backend code
            You can use flash to call javascript functions also, which asp.net supports...like on the click of a flash button call a javascript function on the asp.net html page...

            joedeene

            Comment

            • ulai
              New Member
              • Oct 2008
              • 15

              #7
              I can't see Flash in Silverlight.Net ?

              Comment

              • ulai
                New Member
                • Oct 2008
                • 15

                #8
                I have created swf as a button for used in asp.net. I have embed it to asp.net and add the function onClick().
                Code:
                <head runat="server">
                    <title>Flash--</title>          
                    <script type="text/javascript">
                        function tes() {
                            alert("test");
                        }        
                    </script>
                </head>
                <body >
                    <form id="form1" runat="server">
                		<object id="btnSrcF" style="LEFT: 488px; POSITION: absolute; TOP: 376px"
                			codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
                    		height="70" width="128" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" onclick="tes()">
                			<param name="Src" value="btnSrc.swf" />
                		</object>
                    </form>
                </body>
                But it didn't response when i click it.

                Comment

                • Curtis Rutland
                  Recognized Expert Specialist
                  • Apr 2008
                  • 3264

                  #9
                  I think you're a little confused. You're trying to set a flash object's onclick method...that's not going to work the way you want it to at all.

                  Also, you are saying you want to use asp.net, but the function you are talking about is Javascript...I think that you need to clearly explain what you are trying to do, and what the desired result is.

                  Comment

                  • joedeene
                    Contributor
                    • Jul 2008
                    • 579

                    #10
                    This might lead to being moved to another forum, but while making the button in Flash, there's a Button.onReleas e handler that is called when the button is clicked on AND then released. You can then use the getURL action to call a JavaScript function on the page it's currently on. Does this help? But then again, this has nothing to do with Asp.Net really, it's just JavaScript and/or Flash.

                    joedeene

                    Comment

                    Working...