importing flash .swf to aspx sites

Last post 12-18-2007 7:50 AM by vikrant.soni. 7 replies.

Sort Posts:

  • importing flash .swf to aspx sites

    12-05-2004, 4:28 PM
    • Loading...
    • Ninja12
    • Joined on 12-01-2004, 5:25 PM
    • Posts 28
    Hi everyone,

    Is it possible to import Flash .swf files to .aspx sites? If it is, what is the best way to do this?
    I want to add some flash elements to my asp site. The site has a lot of asp elements which I obviously want to keep, but I also want to enhance the graphic part of the site with flash animations. Thanks a lot for your comments.
    What we do in life, echoes in eternity.
  • Re: importing flash .swf to aspx sites

    12-05-2004, 6:06 PM
    • Loading...
    • pickyh3d
    • Joined on 09-17-2002, 10:19 AM
    • Virginia
    • Posts 1,955
    They can coexist. Just dump the Flash object tags (in the HTML!) where ever they are needed.
    Picky
  • Re: importing flash .swf to aspx sites

    12-05-2004, 7:28 PM
    • Loading...
    • Optik
    • Joined on 04-01-2003, 9:21 AM
    • USA
    • Posts 1,096
    Yea, just add them to the html like you would do with any other page.
    In this world there are 10 types of people, those that know binary and those who don't.
  • Re: importing flash .swf to aspx sites

    12-05-2004, 10:13 PM
    • Loading...
    • Ninja12
    • Joined on 12-01-2004, 5:25 PM
    • Posts 28
    How do I add them? They obviously can't be imported in Visual Web Developer that I am working with right now.
    What we do in life, echoes in eternity.
  • Re: importing flash .swf to aspx sites

    03-01-2007, 4:01 PM
    • Loading...
    • mayuresh_s
    • Joined on 02-05-2007, 10:42 PM
    • USA
    • Posts 28

    I have a repeater control, in which I have to show two types of illustrations(images). One with extension .JPG and other with extension .SWF (flash file)

    I am using custom built classes and binding to the repeater. I wanted to know what ASP.net server control should i bind it to inside the repeater, since I have to dynamically decide whether its a JPG or SWF file. I cant use <asp:Image> control as it does not display.

    the SWF files. 

     

    Thanks in advance 

  • Datagrid / Repeater with .JPG or .SWF File

    03-01-2007, 4:04 PM
    • Loading...
    • mayuresh_s
    • Joined on 02-05-2007, 10:42 PM
    • USA
    • Posts 28

    I have a repeater control, in which I have to show two types of illustrations(images). One with extension .JPG and other with extension .SWF (flash file)

    I am using custom built classes and binding to the repeater. I wanted to know what ASP.net server control should i bind it to inside the repeater, since I have to dynamically decide whether its a JPG or SWF file. I cant use <asp:Image> control as it does not display.

    the SWF files. 

     

    Thanks in advance 

  • Datagrid / Repeater with .JPG or .SWF File

    03-01-2007, 4:04 PM
    • Loading...
    • mayuresh_s
    • Joined on 02-05-2007, 10:42 PM
    • USA
    • Posts 28

    I have a repeater control, in which I have to show two types of illustrations(images). One with extension .JPG and other with extension .SWF (flash file)

    I am using custom built classes and binding to the repeater. I wanted to know what ASP.net server control should i bind it to inside the repeater, since I have to dynamically decide whether its a JPG or SWF file. I cant use <asp:Image> control as it does not display.

    the SWF files. 

     

    Thanks in advance
  • Re: Datagrid / Repeater with .JPG or .SWF File

    12-18-2007, 7:50 AM
    • Loading...
    • vikrant.soni
    • Joined on 11-19-2007, 7:36 AM
    • Mumbai
    • Posts 22

    try this Code for display Swf and Image in gridView

     

      Protected Sub grdAds1_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles grdAds1.RowDataBound

            If e.Row.RowType = DataControlRowType.DataRow Then
                If e.Row.DataItem("extension") = ".swf" Then
                    Dim litNew As New Literal
                    litNew.ID = "litDisp" & e.Row.DataItem("intCreativeId")
                    litNew.Text = "<div id='divDisp_" & e.Row.DataItem("intCreativeId") & "' /><script type=text/javascript>writeflash('" & e.Row.DataItem("ImgUrl") & "','divDisp_" & e.Row.DataItem("intCreativeId") & "','" & e.Row.DataItem("width") & "','" & e.Row.DataItem("height") & "')</script>" & vbNewLine & _
                                   "<br/><a href='AdsPreview.htm?ext=" & e.Row.DataItem("extension") & " &imId=" & e.Row.DataItem("ImgUrl") & "' onclick='javascript:return Preview_PopWin(this.href,1,width=600,height=600,resizable=0,scrollbars=0,toolbar=0,status=1);'>Preview</a>"

                    e.Row.Controls(0).Controls.Add(litNew)
                Else
                    Dim imgNew As New Image
                    imgNew.ID = "imgDisp" & e.Row.DataItem("intCreativeId")
                   imgNew.ImageUrl = e.Row.DataItem("ImgUrl")
                   imgNew.Width = New WebControls.Unit(e.Row.DataItem("width").ToString)
                   imgNew.Width = "150"
                    imgNew.Height = "150"
                   e.Row.Controls(0).Controls.Add(imgNew)
                          End If
            End If

        End Sub

     

    regards

    virkant... 

Page 1 of 1 (8 items)
Microsoft Communities
Page view counter