Sign In  Sign Up Live-Chat

End Tag!

Last post 05-15-2008, 2:42 AM by msfaiz. 4 replies.
Sort Posts: Previous Next
  •  05-14-2008, 3:57 AM 126849

    End Tag!

    Hi Aspose.Flash team!
    In Aspose.Flash i don't see the EndTag class. InAspose.Flash.Actions there's an End class. Is it the EndTag class? I can't cast the End class to BaseObject to add to DefineSprite object or FlashContainer object. Please tell me which class is EndTag class! thanks a lot!

     
  •  05-14-2008, 7:55 AM 126909 in reply to 126849

    Re: End Tag!

    EndTag inserted automatically at the end of SWF file so you don't need to insert or read it.

    End class used for actions only.

    Alexey Zhilin
    Lead Developer
    Aspose Tyumen Team
    About Us
    Contact Us
     
  •  05-14-2008, 10:00 PM 127067 in reply to 126909

    Re: End Tag!

    I have a piece of code:
    ....................
    FlashContainer Input = new FlashContainer("gif.swf");
    FlashContainer Ouput = new FlashContainer();
    ArrayList Objects = Input.Objects;
    Ouput.Add(Objects);
    Ouput.Write("page.swf");
    There's an exception: "Error creating flash movie."
    After that i added 2 lines of code:

    FlashContainer Input = new FlashContainer("gif.swf");
    FlashContainer Ouput = new FlashContainer();
    Ouput.Identifier = Input.Identifier;
    Ouput.FrameSize = Input.FrameSize;

    ArrayList Objects = Input.Objects;
    Ouput.Add(Objects);
    Ouput.Write("page.swf");

    the page.swf file created but it's not the same as the gif.swf file.
    Please explain why and show me how to create the page.swf file the same as the gif file.

    Best Regards,
     
  •  05-15-2008, 2:26 AM 127105 in reply to 127067

    Re: End Tag!

    Attachment: Present (inaccessible)

    Dear ht_it,

    Thanks for considering Aspose.Flash

    I found, the following code works fine with Aspose.Flash 1.5.2.0. You can download it from this link.

    http://www.aspose.com/community/files/51/file-format-components/aspose.flash/default.aspx

    We will fix it for other versions as soon as possible.

    Please see the source and output swf files in the attachment.

    //Works 1.5.2.0

    FlashContainer Input = new FlashContainer("c:\\source.swf");

    FlashContainer Ouput = new FlashContainer();

    ArrayList Objects = Input.Objects;

    //Added by me

    Ouput.FrameSize = Input.FrameSize;

    Ouput.FrameRate = Input.FrameRate;

    Ouput.Add(Objects);

    Ouput.Write("c:\\page.swf");


    Many Thanks and Kind Regards,

    Shakeel Faiz
    Support Engineer
    Aspose Tyumen Team
     
  •  05-15-2008, 2:42 AM 127107 in reply to 127067

    Re: End Tag!

    Attachment: Present (inaccessible)

    With futher investigation, I found out that other swfs work on latest version 1.5.8.0 too. I have attached them.

    It means there is some problem with your source swf file and the one I used as a source earlier.

    gif.swf

    source.swf

    Anyway, we will investigate it and fix it as soon as possible.


    Many Thanks and Kind Regards,

    Shakeel Faiz
    Support Engineer
    Aspose Tyumen Team
     
View as RSS news feed in XML