Sign UpSign Up   Sign InSign In Welcome Guest,
Live ChatLive Chat

replace a sprite in swf, more question.

Last post 07-19-2010, 12:00 PM by shahzad.latif. 2 replies.
Sort Posts: Previous Next
  •  07-17-2010, 12:47 PM 249159

    replace a sprite in swf, more question. .NET

    Attachment: Present (inaccessible)

    Hi,
    I have read the post:
    http://www.aspose.com/community/forums/thread/199042/change-a-sprite-in-swf.aspx
    It works fine in some situation.
    But if the new sprite include another sprite 's reference, it will fail.
    In the sample code in above link,it use the following code to insert the object to destination swf,
    if (flashObject != null && flashObject.Type != BaseObjectType.DefineSprite)
    {
    ....
     flash2.Objects.Insert(targetIndex++, flashObject);
    }
    so,definesprite object would not  be inserted.
    I try to edit this line as : if (flashObject != null ) //&& flashObject.Type != BaseObjectType.DefineSprite), but got another kind of error

    For example, I want to replace one of sprite in swf file A with  file B's sprite. ( The attachment swf file is sample of B.)
    if I using sprite 14 in B , it is ok, because the shape13 and bitmap 12 is inserted, but if using the sprite 18, a "keynotfoundexception" thrown,because sprite 17 is not included..

    Would you pleae tell me how can I resolve the problem?
    Thanks a lot.

     
  •  07-18-2010, 4:37 PM 249167 in reply to 249159

    Re: replace a sprite in swf, more question.

    Hi,

    We're investigating your requirement at our end in detail and you'll be updated with the results the earliest possible.

    We're sorry for the inconvenience.
    Regards,

    Shahzad Latif
    Support Developer
    Aspose Sialkot Team
    About Us
    Contact Us
     
  •  07-19-2010, 12:00 PM 249327 in reply to 249167

    Re: replace a sprite in swf, more question.

    Hi,

    I would really appreciate if you could share the sample project along with the input SWF files with us, so we could test the issue and reproduce it at our end. This will help us understand the issue properly.

    We're sorry for the inconvenience and appreciate your cooperation.
    Regards,

    Shahzad Latif
    Support Developer
    Aspose Sialkot Team
    About Us
    Contact Us
     
View as RSS news feed in XML