[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swftools-common] Get position of text

From: filip sound
Subject: Re: [Swftools-common] Get position of text
Date: Tue, 15 Dec 2009 12:05:56 +0100

highlighting using the text selection does not work reliable since the selection is gone after certain focus changes, rotations or the clip, whatever.
you can put anything above the text using addChild and the position of the text (textsnapshot works).
i did all you want to do long before - so it definitely is possible ... tho, I stick to an older release. 0.9 had too many flaws concerning the internal structure of the generated swf.


On Tue, Dec 15, 2009 at 10:22 AM, DannyT <address@hidden> wrote:
I've tried searching the archives and found similar posts but often these are outdated and refer to next releases.

We are creating a tool that will present swfs from uploaded PDFs however we need to identify certain words/characters (product numbers) within the generated swf, then position a button over top of these to perform various tasks (add to basket, bookmark whatever).

I can find and highlight the text using loader.content["textSnapshot"] as TextSnapshot; but is it possible to position something on top of the highlighted text or do I need to hook into some of the other tools such as swfdump for this?

Apologies if this has been covered before, happy to be pointed in the right direction.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]