swftools-common
[Top][All Lists]
Advanced

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

Re: Re: [Swftools-common] Question about textSnapshot


From: Marc Hämmerle
Subject: Re: Re: [Swftools-common] Question about textSnapshot
Date: Tue, 3 Jun 2008 22:18:36 +0200

Re: [Swftools-common] Question about textSnapshot
From:   Matthias Kramm
Subject:        Re: [Swftools-common] Question about textSnapshot
Date:   Sat, 8 Sep 2007 20:39:09 +0200
User-agent:     Mutt/1.5.13 (2006-08-11)

Hi Jared,

> I generate a SWF file from a PDF containing some text rendered with a > known TrueType 1 font. I embed the font using the -f option to have a
> DEFINEFONT2 tag in the SWF file. I have modified the swf compiler to
> insert a dynamic textfield using ST_DEFINEEDITTEXT  containing one
> glyph of the embedded font and inserting it in a Sprite using
> ST_PLACEOBJECT2. I was hoping that text selection would work on that
> text even when that SWF file is loaded at run-time in another SWF
> file. It doesn't seems to be the case. " textSnapshot.findText()"
> works on the Sprite containing that static text/dynamic text field,
> but none of the text selection methods works.

Hm, why do you need a textSnapshot, if the object containing the text
is an EditText field?

How does you Actionscript performing the text selection look like?
Do you use setSelected etc. in onMouseDown/onMouseUp in order
to adjust the selection area?

Greetings

Matthias


Hi Matthias,

is there a way to convert all static text in a PDF to dynamic (editable, stylable, selectable) AS3 TextFields using pdf2swf (or swfc)? I have to select multiple passages and highlight each of them with a seperate color. Multiple selections with different colors are not possible with a simple TextSnapshot AFAIK and as far as i have tried (multiple selections work, but the last setSelectColor gets applied to the *whole* selection)..

Or do you (or anybody else) know of a possible way to do that?

Greetings

Marc







reply via email to

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