How to check Width of animation

F-IN-BOX for Delphi / Builder C++ / VCL
predi
Posts: 1
Joined: Tue Jan 24, 2006 2:03 pm

How to check Width of animation

Postby predi » Tue Jan 24, 2006 2:06 pm

Hello,

how can I check the width of a playing animation inside the TFlashComponent?

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Re: How to check Width of animation

Postby Softanics » Tue Jan 24, 2006 2:12 pm

Thank you for your question.

predi wrote:how can I check the width of a playing animation inside the TFlashComponent?


If there are borders when playing a movie, try to use the Scale property. If you want to extract width of a movie from a SWF, you should unpack SWF header. You can find SWF specification in the Internet.
Best regards, Artem A. Razin,
F-IN-BOX support
Ask your question here: http://www.f-in-box.com/support.html

Pete
Posts: 16
Joined: Fri Sep 30, 2005 10:54 am

Postby Pete » Fri Feb 09, 2007 2:54 pm

Hi

I needed to do the same thing and I found some example code on how to get the width and height from the header

http://www.delphipages.com/news/detaildocs.cfm?ID=46

hopes this helps

Pete

Pete
Posts: 16
Joined: Fri Sep 30, 2005 10:54 am

Postby Pete » Fri Feb 09, 2007 4:18 pm

Spoke too soon. The posted code only works with uncompressed swf files,

But I found this:
http://www.delphiflash.com/library-info-from-swf.php
which works for both.

Pete


Return to “Delphi / Builder / VCL Edition”

Who is online

Users browsing this forum: No registered users and 8 guests

cron