deploying .swf file

my application has these 2 procedures:

1.

    Private Sub btnHelp_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
        Help.ShowHelp(Me, "..\CYM HELP.chm")

    End Sub

2.

    Private Sub frmLogin_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Dim pro As New System.Diagnostics.Process
        Dim proInfo As New System.Diagnostics.ProcessStartInfo("..\CYM.swf")
        pro.StartInfo = proInfo
        pro.Start()
        pro.WaitForExit()
    End Sub

when making the deployment project, within the application folder, i added "content files from CYM (Active)" which contains the help file and the .swf file.

then i built the deployment program, and installed it, when i run the exe file, it gave me error said "unhandled exception occured". when i clicked continue, the program login form came out and the program works fine, the help file appears when help button is clicked.

however the .swf file didnt run as it is expected to run before the login form appears. both the .swf file nad the help file are in same folder, dont understand what happened. please help~




Answer this question

deploying .swf file

  • jonrmorgan99

    The only other thing I can think of to look at is the location of your files after things are deployed.  The swf file may not be one level up from your app as "..\chm.swf" imples.  If that is not the case you can deploy it, attach the debugger to it and see where the unhandled exception is coming from.



  • Spence Gong

    I tried to get rid of the "content files from CYM(Active)" , simply add the help file and cym.swf into the application folder, then the help still works and the .swf still does not. dont know why........

  • Lily

    I want load Flash file (.swf) by Stream. But I not have any way to do this.
    Anyone can help me

    Thanks


  • Waylander67

    I think the problem is that you are trying to launch a file CYM.swf where the extension "swf" is not registered on the machine.  I think swf is shockwave flash but I am not familiar with how it works.  I fyou want to launch the swf file you should look into what application runs it and how you  would get theat installed/registered on the machine you are trying to install to.

    Hope that helps



  • Larry Foat

    sorry Todd, i should have mentioned this before. The unhandled exception is caused by "file not found", which means that the .swf file can not be found. However, I will redevelop the application in .net 2005 (it was developed in .net2003), I feel confused now. thx for your help, I will remember to pay attention to those points.

  • biju7630

    the shockwave is installed on both development and client machine.

    it works fun when i run it under vb.net 2005, but after i built the installation and installed on client machine ( i tried to install on development machine, the same result). it didnt work. no idea....



  • T. Carmichael

    I changed "("..\CYM.swf")" into "("CYM.swf")" , and put the help file and CYM.swf both into "\bin" folder under the project folder. now it works, thx for all the help

  • deploying .swf file