From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Magnus Askenbäck
Sent: 12 April 2006 14:13
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Text editor - Selection trouble.
Tack Johan, that worked like a charm! =)
.m
Johan Karlsson wrote:
If I remember correctly using on
I did this a long time ago, and as others have said, you need to use
an onMouseDown. You will still lose your selection however.. I ended
up storing the selection begin and end an using that to set the
selection again after I applied the style.
Mike
On Apr 12, 2006, at 8:46 AM, Magnus As
äck
Sent: 12 April 2006 14:13
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Text editor - Selection trouble.
Tack Johan, that worked like a charm! =)
.m
Johan Karlsson wrote:
>If I remember correctly using onRelease or even onPress is to late and
>the selection is already
That´s right, because once you hitted the button, the selection is the
button.
You need to store the start/end index somewere and then, on the button,
use that indexes instead of the Selection functions.
An easy way could be to assign into an onEnterFrame a function that checks
if the selec
]
[mailto:[EMAIL PROTECTED] Behalf Of Magnus
Askenbäck
Sent: den 12 april 2006 14:47
To: Flashcoders mailing list
Subject: [Flashcoders] Text editor - Selection trouble.
Hi all,
I'm trying to build a quite simple text editor in f8 and are currently
having some problems with the Selecton clas
if memory serves, this exact thing is covered in Sam Wan's book on OO
programming in actionscript
its quite an old book, and the code is AS1, but for what you're doing
I think it might just get you where you wanna go...
url for the booko:http://www.wheelmaker.org/
On 4/12/06, Magnus Askenbäck <[
2006 14:47
To: Flashcoders mailing list
Subject: [Flashcoders] Text editor - Selection trouble.
Hi all,
I'm trying to build a quite simple text editor in f8 and are currently
having some problems with the Selecton class.
If anyone can give me some pointers it would be much apreciated.
Probl
Hi all,
I'm trying to build a quite simple text editor in f8 and are currently
having some problems with the Selecton class.
If anyone can give me some pointers it would be much apreciated.
Problem is that whenever I try to use my buttons I loose focus of the
textField and the Selection doesn'
8 matches
Mail list logo