swftools-common
[Top][All Lists]
Advanced

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

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







reply via email to

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