public void GetSwfFileDimensions(string fileServerPath,  out int width, out int height)
 {
     var file = new SWFFile(fileServerPath);
     width = file.FrameWidth / 20;
     height = file.FrameHeight / 20;
     /*
     var parser = new FlashHeaderReader(fileServerPath);
     width = parser.Width;
     height = parser.Height;*/
 }
Example #2
0
        public void OpenSWF(String path)
        {
            unloadMovie();

            if (System.IO.File.Exists(path))
            {
                SWFFile swfFile = new SWFFile(path);

                defaultSWFWidth = swfFile.FrameWidth / 20;
                defaultSWFHeight = swfFile.FrameHeight / 20;

                swfFile.Close();

                fileNameLabel.Text = System.IO.Path.GetFileName(path);
                file = path;
                setupView();
                MoviePath = path;

                IsSWFPlaying = true;
            }
            else
            {
                file = "";
                fileNameLabel.Text = "";
                ErrorManager.ShowInfo(LocaleHelper.GetString("Info.FileExists"));
            }
        }