Help fixing code

  • 18 years ago

    I cannot get this file to work all the time in C#.  Sometimes the first clip plays and sometimes nothing at all works


    private void PlayFlash()
    {
     String testFiles = Directory.GetCurrentDirectory();
     testFiles = String.Concat(testFiles, @"\flash.html");    
     axShockwaveFlash1.LoadMovie(0, testFiles);
     axShockwaveFlash1.Loop = false;


    do
    {
     axShockwaveFlash1.Play();
     axShockwaveFlash1.StopPlay();
    }        
    while (axShockwaveFlash1.IsPlaying() != false);
    if (axShockwaveFlash1.IsPlaying() == false)
    {
     axShockwaveFlash1.SuspendLayout();
     this.axShockwaveFlash1.Enabled = false;
    }
    }

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“It works on my machine.” - Anonymous