[prev in list] [next in list] [prev in thread] [next in thread] 

List:       swftools-common
Subject:    Re: [Swftools-common] Question about textSnapshot
From:       Matthias Kramm <kramm () quiss ! org>
Date:       2007-09-08 18:39:09
Message-ID: 20070908183909.GB12426 () quiss ! org
[Download RAW message or body]

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






[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic