RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow onquestion

2006-08-10 Thread Giles Taylor
I did it by getting the index in the textField, as you described, then
looping through every character in the html and counting the characters
that are not in tags. When (number of characters not in tags) == (the
index in the textfield) then you have your index in the html.
Mmm, nice!

;)

Giles

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: 09 August 2006 19:15
To: Flashcoders mailing list
Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow
onquestion

>>You have to take out all the html, amend it (using html) and then 
>>re-assign it all to the textfield.

Ok, but even doing that, you would have to use something like
Selection.getCaretIndex() to know where in the Textfield you are so you
can insert the  tag in the right place, but that wouldn't seem to
work because in the tests I did it Selection.getCaretIndex() gives you
the position in the string shown as it is in the textfield, not the HTML
code.  So the index # is way off because of the hidden HTML tags are
counted.  How would you know where in the HTML code (not in the rendered
HTML) the user placed their caret so you can insert the IMG tag?  

Jason Merrill
Bank of America
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
 

>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders- 
>>[EMAIL PROTECTED] On Behalf Of Giles Taylor
>>Sent: Wednesday, August 09, 2006 12:25 PM
>>To: Flashcoders mailing list
>>Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow
onquestion
>>
>>Yes, but you should be writing to the .htmlText property not the .text

>>property as that will then keep all the styling in place via html
code.
>>You have to take out all the html, amend it (using html) and then 
>>re-assign it all to the textfield.
>>
>>Giles
>>
>>-Original Message-
>>From: [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED] On Behalf Of
Merrill,
>>Jason
>>Sent: 09 August 2006 16:36
>>To: Flashcoders mailing list
>>Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow 
>>onquestion
>>
>>>>To insert an image you need to process the text as "text". So you
>>first
>>
>>Yes, I understand that, :) but in doing that:
>>
>>"since writing to the text property of a TextField object destroys any

>>custom formatting associated with the field (i.e. the interal style 
>>profiles), [you] have to use the TextField.replaceSel() function (p.
889
>>in Moock's ASDG for FlashMX)."
>>
>>So with your TextFormat destroyed, you've sacrificed the user's
ability
>>to continue to format the text in order to add an image.  At least, 
>>that's how I understand it.  TextFormat does not have  as an 
>>available style.
>>
>>
>>Jason Merrill
>>Bank of America
>>Learning & Organization Effectiveness - Technology Solutions
>>
>>
>>
>>
>>
>>
>>>>-Original Message-
>>>>From: [EMAIL PROTECTED] [mailto:flashcoders-

>>>>[EMAIL PROTECTED] On Behalf Of Marcelo Volmaro
>>>>Sent: Wednesday, August 09, 2006 11:02 AM
>>>>To: Flashcoders mailing list
>>>>Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow
>>onquestion
>>>>
>>>>To insert an image you need to process the text as "text". So you
>>first
>>>>need to get the html text (textfield.htmlText), insert the image
using
>>
>>>>string functions and then re-insert the text into the textfield.
>>>>
>>>>Because you know where the cursor is in the textfield "text" but not
>>in
>>>>the "html" text, you need to insert some kind of marker at the
cursor
>>>>position, and then replace that marker inside the html text with the
>>img
>>>>tag. That will do the trick.
>>>>
>>>>On Wed, 09 Aug 2006 11:09:37 -0300, Merrill, Jason 
>>>><[EMAIL PROTECTED]> wrote:
>>>>
>>>>> OK - follow me here for a fun mental exercise:
>>>>>
>>>>> I think the major issue I'm running into with this is the
TextFormat
>>
>>>>> class relies on the text field's visual formatting described by
the
>>>>> Flash Players internal style profiles.  And since the TextFormat
>>class
>>>>> does not support an  tag, I cannot use TextFormat to insert
an
>>>>> image, I have to insert the  tag as a string. AND SO since
>>writing
>>>>> to 

RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow onquestion

2006-08-09 Thread Merrill, Jason
>>You have to take out all the html, amend it (using html) and then
>>re-assign it all to the textfield.

Ok, but even doing that, you would have to use something like
Selection.getCaretIndex() to know where in the Textfield you are so you
can insert the  tag in the right place, but that wouldn't seem to
work because in the tests I did it Selection.getCaretIndex() gives you
the position in the string shown as it is in the textfield, not the HTML
code.  So the index # is way off because of the hidden HTML tags are
counted.  How would you know where in the HTML code (not in the rendered
HTML) the user placed their caret so you can insert the IMG tag?  

Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
 

>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Giles Taylor
>>Sent: Wednesday, August 09, 2006 12:25 PM
>>To: Flashcoders mailing list
>>Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow
onquestion
>>
>>Yes, but you should be writing to the .htmlText property not the .text
>>property as that will then keep all the styling in place via html
code.
>>You have to take out all the html, amend it (using html) and then
>>re-assign it all to the textfield.
>>
>>Giles
>>
>>-Original Message-
>>From: [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED] On Behalf Of
Merrill,
>>Jason
>>Sent: 09 August 2006 16:36
>>To: Flashcoders mailing list
>>Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow
>>onquestion
>>
>>>>To insert an image you need to process the text as "text". So you
>>first
>>
>>Yes, I understand that, :) but in doing that:
>>
>>"since writing to the text property of a TextField object destroys any
>>custom formatting associated with the field (i.e. the interal style
>>profiles), [you] have to use the TextField.replaceSel() function (p.
889
>>in Moock's ASDG for FlashMX)."
>>
>>So with your TextFormat destroyed, you've sacrificed the user's
ability
>>to continue to format the text in order to add an image.  At least,
>>that's how I understand it.  TextFormat does not have  as an
>>available style.
>>
>>
>>Jason Merrill
>>Bank of America
>>Learning & Organization Effectiveness - Technology Solutions
>>
>>
>>
>>
>>
>>
>>>>-Original Message-
>>>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>>>[EMAIL PROTECTED] On Behalf Of Marcelo Volmaro
>>>>Sent: Wednesday, August 09, 2006 11:02 AM
>>>>To: Flashcoders mailing list
>>>>Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow
>>onquestion
>>>>
>>>>To insert an image you need to process the text as "text". So you
>>first
>>>>need to get the html text (textfield.htmlText), insert the image
using
>>
>>>>string functions and then re-insert the text into the textfield.
>>>>
>>>>Because you know where the cursor is in the textfield "text" but not
>>in
>>>>the "html" text, you need to insert some kind of marker at the
cursor
>>>>position, and then replace that marker inside the html text with the
>>img
>>>>tag. That will do the trick.
>>>>
>>>>On Wed, 09 Aug 2006 11:09:37 -0300, Merrill, Jason
>>>><[EMAIL PROTECTED]> wrote:
>>>>
>>>>> OK - follow me here for a fun mental exercise:
>>>>>
>>>>> I think the major issue I'm running into with this is the
TextFormat
>>
>>>>> class relies on the text field's visual formatting described by
the
>>>>> Flash Players internal style profiles.  And since the TextFormat
>>class
>>>>> does not support an  tag, I cannot use TextFormat to insert
an
>>>>> image, I have to insert the  tag as a string. AND SO since
>>writing
>>>>> to the text property of a TextField object destroys any custom
>>>>> formatting associated with the field (i.e. the interal style
>>profiles),
>>>>> I have to use the TextField.replaceSel() function (p. 889 in
Moock's
>>
>>>>> ASDG for FlashMX).  AND since the replaceSel() function encodes
the
>>>>>  markup, you can't have it render the image!
>>>>>
>>>>> So it seems to be a catch-22 and I'm screwed using TextFormat and
>>

RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow onquestion

2006-08-09 Thread Giles Taylor
Yes, but you should be writing to the .htmlText property not the .text
property as that will then keep all the styling in place via html code.
You have to take out all the html, amend it (using html) and then
re-assign it all to the textfield.

Giles

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: 09 August 2006 16:36
To: Flashcoders mailing list
Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow
onquestion

>>To insert an image you need to process the text as "text". So you
first

Yes, I understand that, :) but in doing that:

"since writing to the text property of a TextField object destroys any
custom formatting associated with the field (i.e. the interal style
profiles), [you] have to use the TextField.replaceSel() function (p. 889
in Moock's ASDG for FlashMX)."

So with your TextFormat destroyed, you've sacrificed the user's ability
to continue to format the text in order to add an image.  At least,
that's how I understand it.  TextFormat does not have  as an
available style. 
 

Jason Merrill
Bank of America
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
 

>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders- 
>>[EMAIL PROTECTED] On Behalf Of Marcelo Volmaro
>>Sent: Wednesday, August 09, 2006 11:02 AM
>>To: Flashcoders mailing list
>>Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow
onquestion
>>
>>To insert an image you need to process the text as "text". So you
first
>>need to get the html text (textfield.htmlText), insert the image using

>>string functions and then re-insert the text into the textfield.
>>
>>Because you know where the cursor is in the textfield "text" but not
in
>>the "html" text, you need to insert some kind of marker at the cursor 
>>position, and then replace that marker inside the html text with the
img
>>tag. That will do the trick.
>>
>>On Wed, 09 Aug 2006 11:09:37 -0300, Merrill, Jason 
>><[EMAIL PROTECTED]> wrote:
>>
>>> OK - follow me here for a fun mental exercise:
>>>
>>> I think the major issue I'm running into with this is the TextFormat

>>> class relies on the text field's visual formatting described by the 
>>> Flash Players internal style profiles.  And since the TextFormat
class
>>> does not support an  tag, I cannot use TextFormat to insert an 
>>> image, I have to insert the  tag as a string. AND SO since
writing
>>> to the text property of a TextField object destroys any custom 
>>> formatting associated with the field (i.e. the interal style
profiles),
>>> I have to use the TextField.replaceSel() function (p. 889 in Moock's

>>> ASDG for FlashMX).  AND since the replaceSel() function encodes the 
>>>  markup, you can't have it render the image!
>>>
>>> So it seems to be a catch-22 and I'm screwed using TextFormat and
trying
>>> to let the user also add an inline image.  Unless someone knows 
>>> otherwise, I am going to have to use a movieClip container instead
of an
>>> IMG tag.  That will not be ideal, but it might fly for this project.
>>>
>>> I really wish they would make the HTML editing capabilities of Flash

>>> better, but it doesn't look like that will happen any time soon.
>>>
>>> Jason Merrill
>>> Bank of America
>>> Learning & Organization Effectiveness - Technology Solutions
>>>
>>>>> -Original Message-
>>>>> From: [EMAIL PROTECTED]
[mailto:flashcoders-
>>>>> [EMAIL PROTECTED] On Behalf Of John Grden
>>>>> Sent: Wednesday, August 09, 2006 9:04 AM
>>>>> To: Flashcoders mailing list
>>>>> Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash -
follow
>>> onquestion
>>>>>
>>>>> Sorry if you guys already covered this, but is it possible to use
>>> SWF's
>>>>> instead of bitmaps?
>>>>>
>>>>> the image tag supports loading of SWF's, and I would think you
*could*
>>>>> (meaning, I've not tried it) include onRelease method that handles
the
>>>>> removal of said SWF?
>>>>>
>>>>> On 8/9/06, Merrill, Jason <[EMAIL PROTECTED]> wrote:
>>>>>>
>>>>>> >>I would have thought (i.e. I've not tried it) that once the
image
>>> is
>>>>>> in
>>>>>> >>the textfield that users could just select/delete it a

RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow onquestion

2006-08-09 Thread Merrill, Jason
>>To insert an image you need to process the text as "text". So you
first

Yes, I understand that, :) but in doing that:

"since writing to the text property of a TextField object destroys any
custom formatting associated with the field (i.e. the interal style
profiles), [you] have to use the TextField.replaceSel() function (p. 889
in Moock's ASDG for FlashMX)."

So with your TextFormat destroyed, you've sacrificed the user's ability
to continue to format the text in order to add an image.  At least,
that's how I understand it.  TextFormat does not have  as an
available style. 
 

Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
 

>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Marcelo Volmaro
>>Sent: Wednesday, August 09, 2006 11:02 AM
>>To: Flashcoders mailing list
>>Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow
onquestion
>>
>>To insert an image you need to process the text as "text". So you
first
>>need to get the html text (textfield.htmlText), insert the image using
>>string functions and then re-insert the text into the textfield.
>>
>>Because you know where the cursor is in the textfield "text" but not
in
>>the "html" text, you need to insert some kind of marker at the cursor
>>position, and then replace that marker inside the html text with the
img
>>tag. That will do the trick.
>>
>>On Wed, 09 Aug 2006 11:09:37 -0300, Merrill, Jason
>><[EMAIL PROTECTED]> wrote:
>>
>>> OK - follow me here for a fun mental exercise:
>>>
>>> I think the major issue I'm running into with this is the TextFormat
>>> class relies on the text field's visual formatting described by the
>>> Flash Players internal style profiles.  And since the TextFormat
class
>>> does not support an  tag, I cannot use TextFormat to insert an
>>> image, I have to insert the  tag as a string. AND SO since
writing
>>> to the text property of a TextField object destroys any custom
>>> formatting associated with the field (i.e. the interal style
profiles),
>>> I have to use the TextField.replaceSel() function (p. 889 in Moock's
>>> ASDG for FlashMX).  AND since the replaceSel() function encodes the
>>>  markup, you can't have it render the image!
>>>
>>> So it seems to be a catch-22 and I'm screwed using TextFormat and
trying
>>> to let the user also add an inline image.  Unless someone knows
>>> otherwise, I am going to have to use a movieClip container instead
of an
>>> IMG tag.  That will not be ideal, but it might fly for this project.
>>>
>>> I really wish they would make the HTML editing capabilities of Flash
>>> better, but it doesn't look like that will happen any time soon.
>>>
>>> Jason Merrill
>>> Bank of America
>>> Learning & Organization Effectiveness - Technology Solutions
>>>
>>>>> -Original Message-
>>>>> From: [EMAIL PROTECTED]
[mailto:flashcoders-
>>>>> [EMAIL PROTECTED] On Behalf Of John Grden
>>>>> Sent: Wednesday, August 09, 2006 9:04 AM
>>>>> To: Flashcoders mailing list
>>>>> Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash -
follow
>>> onquestion
>>>>>
>>>>> Sorry if you guys already covered this, but is it possible to use
>>> SWF's
>>>>> instead of bitmaps?
>>>>>
>>>>> the image tag supports loading of SWF's, and I would think you
*could*
>>>>> (meaning, I've not tried it) include onRelease method that handles
the
>>>>> removal of said SWF?
>>>>>
>>>>> On 8/9/06, Merrill, Jason <[EMAIL PROTECTED]> wrote:
>>>>>>
>>>>>> >>I would have thought (i.e. I've not tried it) that once the
image
>>> is
>>>>>> in
>>>>>> >>the textfield that users could just select/delete it as though
it
>>>>>> where
>>>>>> >>just another piece of text???
>>>>>>
>>>>>> Nope - well, kind of, that's only partially true.  You cannot
select
>>> the
>>>>>> picture itself, but if you select the space character where the
>>> image
>>>>>> tag is "invisibly" located and delete that, the IMG tag gets
deleted
>>> as
>>>>>> w

Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow onquestion

2006-08-09 Thread Marcelo Volmaro
To insert an image you need to process the text as "text". So you first  
need to get the html text (textfield.htmlText), insert the image using  
string functions and then re-insert the text into the textfield.


Because you know where the cursor is in the textfield "text" but not in  
the "html" text, you need to insert some kind of marker at the cursor  
position, and then replace that marker inside the html text with the img  
tag. That will do the trick.


On Wed, 09 Aug 2006 11:09:37 -0300, Merrill, Jason  
<[EMAIL PROTECTED]> wrote:



OK - follow me here for a fun mental exercise:

I think the major issue I'm running into with this is the TextFormat
class relies on the text field's visual formatting described by the
Flash Players internal style profiles.  And since the TextFormat class
does not support an  tag, I cannot use TextFormat to insert an
image, I have to insert the  tag as a string. AND SO since writing
to the text property of a TextField object destroys any custom
formatting associated with the field (i.e. the interal style profiles),
I have to use the TextField.replaceSel() function (p. 889 in Moock's
ASDG for FlashMX).  AND since the replaceSel() function encodes the
 markup, you can't have it render the image!

So it seems to be a catch-22 and I'm screwed using TextFormat and trying
to let the user also add an inline image.  Unless someone knows
otherwise, I am going to have to use a movieClip container instead of an
IMG tag.  That will not be ideal, but it might fly for this project.

I really wish they would make the HTML editing capabilities of Flash
better, but it doesn't look like that will happen any time soon.

Jason Merrill
Bank of America
Learning & Organization Effectiveness - Technology Solutions


-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of John Grden
Sent: Wednesday, August 09, 2006 9:04 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow

onquestion


Sorry if you guys already covered this, but is it possible to use

SWF's

instead of bitmaps?

the image tag supports loading of SWF's, and I would think you *could*
(meaning, I've not tried it) include onRelease method that handles the
removal of said SWF?

On 8/9/06, Merrill, Jason <[EMAIL PROTECTED]> wrote:


>>I would have thought (i.e. I've not tried it) that once the image

is

in
>>the textfield that users could just select/delete it as though it
where
>>just another piece of text???

Nope - well, kind of, that's only partially true.  You cannot select

the

picture itself, but if you select the space character where the

image

tag is "invisibly" located and delete that, the IMG tag gets deleted

as

well, thus removing the picture.  So you can do it, but it's not
intuitive to the user on how to find that space and do that,

especially

if they forgot where they put it.  But it would be really nice if it
were true that you could select the picture directly.  Unless

someone

knows otherwise, but this is what appears to be the case in my

tests.


Jason Merrill
Bank of America
Learning & Organization Effectiveness - Technology Solutions






>>-Original Message-
>>From: [EMAIL PROTECTED]

[mailto:flashcoders-

>>[EMAIL PROTECTED] On Behalf Of Giles Taylor
>>Sent: Wednesday, August 09, 2006 4:28 AM
>>To: Flashcoders mailing list
>>Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash -

follow

onquestion
>>
>>I would have thought (i.e. I've not tried it) that once the image

is

in
>>the textfield that users could just select/delete it as though it
where
>>just another piece of text???
>>
>>Giles
>>
>>-Original Message-
>>From: [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED] On Behalf Of
Merrill,
>>Jason
>>Sent: 08 August 2006 17:38
>>To: Flashcoders mailing list
>>Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash -

follow

>>onquestion
>>
>>>>You could scan through the textfield.htmlText value (i.e. the

code)

>>and
>>>>relate the selection index in the rendered output to the actual
index
>>in
>>>>the code, then insert your image code in the textfield.htmlText.
>>>>I have done this previously (for a different reason) by just

running

>>two
>>>>counters as I looped through each character in the code, one

counter

>>>>counts every character and the other ignores characters that are
part
>>of
>>>>a tag.
>>>>
>>
>>Thanks Giles. That is what I was trying to avoid, especially since

I

>>need to give the user editing capability - so they can add and

remove

>>

RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow onquestion

2006-08-09 Thread Giles Taylor
I know you are trying to avoid it, but I think the only way to go is to
get those counters counting and insert the raw code into the textfields
htmlText property.

And, yes it really does suck!! (don't get me started on superscript and
subscript ;)

Giles

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: 09 August 2006 15:10
To: Flashcoders mailing list
Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow
onquestion

OK - follow me here for a fun mental exercise:

I think the major issue I'm running into with this is the TextFormat
class relies on the text field's visual formatting described by the
Flash Players internal style profiles.  And since the TextFormat class
does not support an  tag, I cannot use TextFormat to insert an
image, I have to insert the  tag as a string. AND SO since writing
to the text property of a TextField object destroys any custom
formatting associated with the field (i.e. the interal style profiles),
I have to use the TextField.replaceSel() function (p. 889 in Moock's
ASDG for FlashMX).  AND since the replaceSel() function encodes the
 markup, you can't have it render the image!

So it seems to be a catch-22 and I'm screwed using TextFormat and trying
to let the user also add an inline image.  Unless someone knows
otherwise, I am going to have to use a movieClip container instead of an
IMG tag.  That will not be ideal, but it might fly for this project.  

I really wish they would make the HTML editing capabilities of Flash
better, but it doesn't look like that will happen any time soon. 

Jason Merrill
Bank of America
Learning & Organization Effectiveness - Technology Solutions
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow onquestion

2006-08-09 Thread Merrill, Jason
OK - follow me here for a fun mental exercise:

I think the major issue I'm running into with this is the TextFormat
class relies on the text field's visual formatting described by the
Flash Players internal style profiles.  And since the TextFormat class
does not support an  tag, I cannot use TextFormat to insert an
image, I have to insert the  tag as a string. AND SO since writing
to the text property of a TextField object destroys any custom
formatting associated with the field (i.e. the interal style profiles),
I have to use the TextField.replaceSel() function (p. 889 in Moock's
ASDG for FlashMX).  AND since the replaceSel() function encodes the
 markup, you can't have it render the image!

So it seems to be a catch-22 and I'm screwed using TextFormat and trying
to let the user also add an inline image.  Unless someone knows
otherwise, I am going to have to use a movieClip container instead of an
IMG tag.  That will not be ideal, but it might fly for this project.  

I really wish they would make the HTML editing capabilities of Flash
better, but it doesn't look like that will happen any time soon. 

Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
 

>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of John Grden
>>Sent: Wednesday, August 09, 2006 9:04 AM
>>To: Flashcoders mailing list
>>Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow
onquestion
>>
>>Sorry if you guys already covered this, but is it possible to use
SWF's
>>instead of bitmaps?
>>
>>the image tag supports loading of SWF's, and I would think you *could*
>>(meaning, I've not tried it) include onRelease method that handles the
>>removal of said SWF?
>>
>>On 8/9/06, Merrill, Jason <[EMAIL PROTECTED]> wrote:
>>>
>>> >>I would have thought (i.e. I've not tried it) that once the image
is
>>> in
>>> >>the textfield that users could just select/delete it as though it
>>> where
>>> >>just another piece of text???
>>>
>>> Nope - well, kind of, that's only partially true.  You cannot select
the
>>> picture itself, but if you select the space character where the
image
>>> tag is "invisibly" located and delete that, the IMG tag gets deleted
as
>>> well, thus removing the picture.  So you can do it, but it's not
>>> intuitive to the user on how to find that space and do that,
especially
>>> if they forgot where they put it.  But it would be really nice if it
>>> were true that you could select the picture directly.  Unless
someone
>>> knows otherwise, but this is what appears to be the case in my
tests.
>>>
>>> Jason Merrill
>>> Bank of America
>>> Learning & Organization Effectiveness - Technology Solutions
>>>
>>>
>>>
>>>
>>>
>>>
>>> >>-Original Message-
>>> >>From: [EMAIL PROTECTED]
[mailto:flashcoders-
>>> >>[EMAIL PROTECTED] On Behalf Of Giles Taylor
>>> >>Sent: Wednesday, August 09, 2006 4:28 AM
>>> >>To: Flashcoders mailing list
>>> >>Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash -
follow
>>> onquestion
>>> >>
>>> >>I would have thought (i.e. I've not tried it) that once the image
is
>>> in
>>> >>the textfield that users could just select/delete it as though it
>>> where
>>> >>just another piece of text???
>>> >>
>>> >>Giles
>>> >>
>>> >>-Original Message-
>>> >>From: [EMAIL PROTECTED]
>>> >>[mailto:[EMAIL PROTECTED] On Behalf Of
>>> Merrill,
>>> >>Jason
>>> >>Sent: 08 August 2006 17:38
>>> >>To: Flashcoders mailing list
>>> >>Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash -
follow
>>> >>onquestion
>>> >>
>>> >>>>You could scan through the textfield.htmlText value (i.e. the
code)
>>> >>and
>>> >>>>relate the selection index in the rendered output to the actual
>>> index
>>> >>in
>>> >>>>the code, then insert your image code in the textfield.htmlText.
>>> >>>>I have done this previously (for a different reason) by just
running
>>> >>two
>>> >>>>counters as I looped through each character in the code, one
counter
>>> >>>>counts

Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow onquestion

2006-08-09 Thread Marcelo Volmaro
You can use any image type that can be loaded by flash. If you use src="test.swf"> the player will load the swf file as an image. Also as i  
mentioned previously, you can use  and the  
player will show that library item (that of course must be a movieclip  
with a linkage id).


If that movieclip is a "component", the player will attach that component  
into the textarea.


On Wed, 09 Aug 2006 10:27:36 -0300, Merrill, Jason  
<[EMAIL PROTECTED]> wrote:



No, the end user will not have capabilities to create .swfs.  They are
going to be inserting images.  Even still, how would you insert a .swf
with an IMG tag?  I haven't heard of that before. Good to know if you
can.

Jason Merrill
Bank of America
Learning & Organization Effectiveness - Technology Solutions


-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of John Grden
Sent: Wednesday, August 09, 2006 9:04 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow

onquestion


Sorry if you guys already covered this, but is it possible to use

SWF's

instead of bitmaps?

the image tag supports loading of SWF's, and I would think you *could*
(meaning, I've not tried it) include onRelease method that handles the
removal of said SWF?

On 8/9/06, Merrill, Jason <[EMAIL PROTECTED]> wrote:


>>I would have thought (i.e. I've not tried it) that once the image

is

in
>>the textfield that users could just select/delete it as though it
where
>>just another piece of text???

Nope - well, kind of, that's only partially true.  You cannot select

the

picture itself, but if you select the space character where the

image

tag is "invisibly" located and delete that, the IMG tag gets deleted

as

well, thus removing the picture.  So you can do it, but it's not
intuitive to the user on how to find that space and do that,

especially

if they forgot where they put it.  But it would be really nice if it
were true that you could select the picture directly.  Unless

someone

knows otherwise, but this is what appears to be the case in my

tests.


Jason Merrill
Bank of America
Learning & Organization Effectiveness - Technology Solutions






>>-Original Message-
>>From: [EMAIL PROTECTED]

[mailto:flashcoders-

>>[EMAIL PROTECTED] On Behalf Of Giles Taylor
>>Sent: Wednesday, August 09, 2006 4:28 AM
>>To: Flashcoders mailing list
>>Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash -

follow

onquestion
>>
>>I would have thought (i.e. I've not tried it) that once the image

is

in
>>the textfield that users could just select/delete it as though it
where
>>just another piece of text???
>>
>>Giles
>>
>>-----Original Message-
>>From: [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED] On Behalf Of
Merrill,
>>Jason
>>Sent: 08 August 2006 17:38
>>To: Flashcoders mailing list
>>Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash -

follow

>>onquestion
>>
>>>>You could scan through the textfield.htmlText value (i.e. the

code)

>>and
>>>>relate the selection index in the rendered output to the actual
index
>>in
>>>>the code, then insert your image code in the textfield.htmlText.
>>>>I have done this previously (for a different reason) by just

running

>>two
>>>>counters as I looped through each character in the code, one

counter

>>>>counts every character and the other ignores characters that are
part
>>of
>>>>a tag.
>>>>
>>
>>Thanks Giles. That is what I was trying to avoid, especially since

I

>>need to give the user editing capability - so they can add and

remove

>>the tag at any time when editing the text.  Could get messy real

quick

>>and be bug-prone.  I think I might opt instead for keeping images

out

of
>>the HTML altogether, and just use a MovieClip they load content

into

and
>>position.  It won't allow the text to wrap around the image, but

oh

>>well.
>>
>>Thanks for the many responses!
>>
>>Jason Merrill
>>Bank of America
>>Learning & Organization Effectiveness - Technology Solutions
>>
>>
>>
>>
>>
>>
>>>>-Original Message-
>>>>From: [EMAIL PROTECTED]

[mailto:flashcoders-

>>>>[EMAIL PROTECTED] On Behalf Of Giles Taylor
>>>>Sent: Tuesday, August 08, 2006 4:41 AM
>>>>To: Flashcoders mailing list
>>>>Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash -

follow

>>onquestion
>>>>
>>>>I think that replaceSel() acts on the rendered output 

Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow onquestion

2006-08-09 Thread julien castelain

hi, maybe i'm OT here but, if you had an mc in the library that had
the 'export for actionscript' setting enabled it can be used in an
HTML file like an image  see
http://nwebb.co.uk/nw_htmlsite/index.php?page=browse_tutorial&tutorial=imagesxml1&part=1

maybe you could use that approach?
cheers

On 8/9/06, Marcelo Volmaro <[EMAIL PROTECTED]> wrote:

In the editor i made, i place the image as a movieclip container that
loads the actual image. Then, i simply attached rollover-rollout events to
make the image "editable"...


On Wed, 09 Aug 2006 09:53:42 -0300, Merrill, Jason
<[EMAIL PROTECTED]> wrote:

>>> I would have thought (i.e. I've not tried it) that once the image is
> in
>>> the textfield that users could just select/delete it as though it
> where
>>> just another piece of text???
>
> Nope - well, kind of, that's only partially true.  You cannot select the
> picture itself, but if you select the space character where the image
> tag is "invisibly" located and delete that, the IMG tag gets deleted as
> well, thus removing the picture.  So you can do it, but it's not
> intuitive to the user on how to find that space and do that, especially
> if they forgot where they put it.  But it would be really nice if it
> were true that you could select the picture directly.  Unless someone
> knows otherwise, but this is what appears to be the case in my tests.
>
> Jason Merrill
> Bank of America
> Learning & Organization Effectiveness - Technology Solutions
>
>>> -Original Message-
>>> From: [EMAIL PROTECTED] [mailto:flashcoders-
>>> [EMAIL PROTECTED] On Behalf Of Giles Taylor
>>> Sent: Wednesday, August 09, 2006 4:28 AM
>>> To: Flashcoders mailing list
>>> Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow
> onquestion
>>>
>>> I would have thought (i.e. I've not tried it) that once the image is
> in
>>> the textfield that users could just select/delete it as though it
> where
>>> just another piece of text???
>>>
>>> Giles
>>>
>>> -Original Message-
>>> From: [EMAIL PROTECTED]
>>> [mailto:[EMAIL PROTECTED] On Behalf Of
> Merrill,
>>> Jason
>>> Sent: 08 August 2006 17:38
>>> To: Flashcoders mailing list
>>> Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow
>>> onquestion
>>>
>>>>> You could scan through the textfield.htmlText value (i.e. the code)
>>> and
>>>>> relate the selection index in the rendered output to the actual
> index
>>> in
>>>>> the code, then insert your image code in the textfield.htmlText.
>>>>> I have done this previously (for a different reason) by just running
>>> two
>>>>> counters as I looped through each character in the code, one counter
>>>>> counts every character and the other ignores characters that are
> part
>>> of
>>>>> a tag.
>>>>>
>>>
>>> Thanks Giles. That is what I was trying to avoid, especially since I
>>> need to give the user editing capability - so they can add and remove
>>> the tag at any time when editing the text.  Could get messy real quick
>>> and be bug-prone.  I think I might opt instead for keeping images out
> of
>>> the HTML altogether, and just use a MovieClip they load content into
> and
>>> position.  It won't allow the text to wrap around the image, but oh
>>> well.
>>>
>>> Thanks for the many responses!
>>>
>>> Jason Merrill
>>> Bank of America
>>> Learning & Organization Effectiveness - Technology Solutions
>>>
>>>
>>>
>>>
>>>
>>>
>>>>> -Original Message-
>>>>> From: [EMAIL PROTECTED] [mailto:flashcoders-
>>>>> [EMAIL PROTECTED] On Behalf Of Giles Taylor
>>>>> Sent: Tuesday, August 08, 2006 4:41 AM
>>>>> To: Flashcoders mailing list
>>>>> Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow
>>> onquestion
>>>>>
>>>>> I think that replaceSel() acts on the rendered output rather than
> the
>>>>> code, so it thinks that you want to actually display the text that
> you
>>>
>>>>> entered rather than adding it to the code (hope that makes sense!)
>>>>>
>>>>> You could scan through the textfield.htmlText value (i.e. the code)
>>> and
>>>>> relate the se

Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow onquestion

2006-08-09 Thread Marcelo Volmaro
In the editor i made, i place the image as a movieclip container that  
loads the actual image. Then, i simply attached rollover-rollout events to  
make the image "editable"...



On Wed, 09 Aug 2006 09:53:42 -0300, Merrill, Jason  
<[EMAIL PROTECTED]> wrote:



I would have thought (i.e. I've not tried it) that once the image is

in

the textfield that users could just select/delete it as though it

where

just another piece of text???


Nope - well, kind of, that's only partially true.  You cannot select the
picture itself, but if you select the space character where the image
tag is "invisibly" located and delete that, the IMG tag gets deleted as
well, thus removing the picture.  So you can do it, but it's not
intuitive to the user on how to find that space and do that, especially
if they forgot where they put it.  But it would be really nice if it
were true that you could select the picture directly.  Unless someone
knows otherwise, but this is what appears to be the case in my tests.

Jason Merrill
Bank of America
Learning & Organization Effectiveness - Technology Solutions


-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Giles Taylor
Sent: Wednesday, August 09, 2006 4:28 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow

onquestion


I would have thought (i.e. I've not tried it) that once the image is

in

the textfield that users could just select/delete it as though it

where

just another piece of text???

Giles

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of

Merrill,

Jason
Sent: 08 August 2006 17:38
To: Flashcoders mailing list
Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow
onquestion


You could scan through the textfield.htmlText value (i.e. the code)

and

relate the selection index in the rendered output to the actual

index

in

the code, then insert your image code in the textfield.htmlText.
I have done this previously (for a different reason) by just running

two

counters as I looped through each character in the code, one counter
counts every character and the other ignores characters that are

part

of

a tag.



Thanks Giles. That is what I was trying to avoid, especially since I
need to give the user editing capability - so they can add and remove
the tag at any time when editing the text.  Could get messy real quick
and be bug-prone.  I think I might opt instead for keeping images out

of

the HTML altogether, and just use a MovieClip they load content into

and

position.  It won't allow the text to wrap around the image, but oh
well.

Thanks for the many responses!

Jason Merrill
Bank of America
Learning & Organization Effectiveness - Technology Solutions







-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Giles Taylor
Sent: Tuesday, August 08, 2006 4:41 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow

onquestion


I think that replaceSel() acts on the rendered output rather than

the

code, so it thinks that you want to actually display the text that

you



entered rather than adding it to the code (hope that makes sense!)

You could scan through the textfield.htmlText value (i.e. the code)

and

relate the selection index in the rendered output to the actual

index

in

the code, then insert your image code in the textfield.htmlText.
I have done this previously (for a different reason) by just running

two

counters as I looped through each character in the code, one counter
counts every character and the other ignores characters that are

part

of

a tag.

Bit of a pain, but I hope it helps,
Giles

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of

Merrill,

Jason
Sent: 07 August 2006 23:25
To: Flashcoders mailing list
Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow
onquestion

Oh, and to follow up with some further information:

It seems to only encode those HTML entities when I use
TextField.replaceSel().  If I just add the  tag string on to

the

htmltext field value, it works:

//works:
test_txt.htmlText += "";

//fails - shows literal text, and encodes entities:
test_txt.replaceSel("");

Am I left with splitting the string in two, inserting the  tag,

and

re-assembling the string?  Or is there a way to get replaceSel() to

work

with HTML tags?

Thanks,

Jason Merrill
Bank of America
Learning & Organization Effectiveness - Technology Solutions







-Original Message-
From: [EMAIL PROTECTED]

[mailto:flashcoders-



[EMAIL PROTECTED] On Behalf Of Merrill, Jason
Sent: Monday, August 07, 2006 5:55 PM
To: Flashcoders mailing list
Subject: [Flashcoders] WSIWYG HTML text editor in Flash - follow

on

question


Getting back to this question 

RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow onquestion

2006-08-09 Thread Merrill, Jason
No, the end user will not have capabilities to create .swfs.  They are
going to be inserting images.  Even still, how would you insert a .swf
with an IMG tag?  I haven't heard of that before. Good to know if you
can.  

Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
 

>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of John Grden
>>Sent: Wednesday, August 09, 2006 9:04 AM
>>To: Flashcoders mailing list
>>Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow
onquestion
>>
>>Sorry if you guys already covered this, but is it possible to use
SWF's
>>instead of bitmaps?
>>
>>the image tag supports loading of SWF's, and I would think you *could*
>>(meaning, I've not tried it) include onRelease method that handles the
>>removal of said SWF?
>>
>>On 8/9/06, Merrill, Jason <[EMAIL PROTECTED]> wrote:
>>>
>>> >>I would have thought (i.e. I've not tried it) that once the image
is
>>> in
>>> >>the textfield that users could just select/delete it as though it
>>> where
>>> >>just another piece of text???
>>>
>>> Nope - well, kind of, that's only partially true.  You cannot select
the
>>> picture itself, but if you select the space character where the
image
>>> tag is "invisibly" located and delete that, the IMG tag gets deleted
as
>>> well, thus removing the picture.  So you can do it, but it's not
>>> intuitive to the user on how to find that space and do that,
especially
>>> if they forgot where they put it.  But it would be really nice if it
>>> were true that you could select the picture directly.  Unless
someone
>>> knows otherwise, but this is what appears to be the case in my
tests.
>>>
>>> Jason Merrill
>>> Bank of America
>>> Learning & Organization Effectiveness - Technology Solutions
>>>
>>>
>>>
>>>
>>>
>>>
>>> >>-Original Message-
>>> >>From: [EMAIL PROTECTED]
[mailto:flashcoders-
>>> >>[EMAIL PROTECTED] On Behalf Of Giles Taylor
>>> >>Sent: Wednesday, August 09, 2006 4:28 AM
>>> >>To: Flashcoders mailing list
>>> >>Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash -
follow
>>> onquestion
>>> >>
>>> >>I would have thought (i.e. I've not tried it) that once the image
is
>>> in
>>> >>the textfield that users could just select/delete it as though it
>>> where
>>> >>just another piece of text???
>>> >>
>>> >>Giles
>>> >>
>>> >>-Original Message-
>>> >>From: [EMAIL PROTECTED]
>>> >>[mailto:[EMAIL PROTECTED] On Behalf Of
>>> Merrill,
>>> >>Jason
>>> >>Sent: 08 August 2006 17:38
>>> >>To: Flashcoders mailing list
>>> >>Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash -
follow
>>> >>onquestion
>>> >>
>>> >>>>You could scan through the textfield.htmlText value (i.e. the
code)
>>> >>and
>>> >>>>relate the selection index in the rendered output to the actual
>>> index
>>> >>in
>>> >>>>the code, then insert your image code in the textfield.htmlText.
>>> >>>>I have done this previously (for a different reason) by just
running
>>> >>two
>>> >>>>counters as I looped through each character in the code, one
counter
>>> >>>>counts every character and the other ignores characters that are
>>> part
>>> >>of
>>> >>>>a tag.
>>> >>>>
>>> >>
>>> >>Thanks Giles. That is what I was trying to avoid, especially since
I
>>> >>need to give the user editing capability - so they can add and
remove
>>> >>the tag at any time when editing the text.  Could get messy real
quick
>>> >>and be bug-prone.  I think I might opt instead for keeping images
out
>>> of
>>> >>the HTML altogether, and just use a MovieClip they load content
into
>>> and
>>> >>position.  It won't allow the text to wrap around the image, but
oh
>>> >>well.
>>> >>
>>> >>Thanks for the many responses!
>>> >>
>>> >>Jason Merri

Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow onquestion

2006-08-09 Thread John Grden

Sorry if you guys already covered this, but is it possible to use SWF's
instead of bitmaps?

the image tag supports loading of SWF's, and I would think you *could*
(meaning, I've not tried it) include onRelease method that handles the
removal of said SWF?

On 8/9/06, Merrill, Jason <[EMAIL PROTECTED]> wrote:


>>I would have thought (i.e. I've not tried it) that once the image is
in
>>the textfield that users could just select/delete it as though it
where
>>just another piece of text???

Nope - well, kind of, that's only partially true.  You cannot select the
picture itself, but if you select the space character where the image
tag is "invisibly" located and delete that, the IMG tag gets deleted as
well, thus removing the picture.  So you can do it, but it's not
intuitive to the user on how to find that space and do that, especially
if they forgot where they put it.  But it would be really nice if it
were true that you could select the picture directly.  Unless someone
knows otherwise, but this is what appears to be the case in my tests.

Jason Merrill
Bank of America
Learning & Organization Effectiveness - Technology Solutions






>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Giles Taylor
>>Sent: Wednesday, August 09, 2006 4:28 AM
>>To: Flashcoders mailing list
>>Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow
onquestion
>>
>>I would have thought (i.e. I've not tried it) that once the image is
in
>>the textfield that users could just select/delete it as though it
where
>>just another piece of text???
>>
>>Giles
>>
>>-Original Message-
>>From: [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED] On Behalf Of
Merrill,
>>Jason
>>Sent: 08 August 2006 17:38
>>To: Flashcoders mailing list
>>Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow
>>onquestion
>>
>>>>You could scan through the textfield.htmlText value (i.e. the code)
>>and
>>>>relate the selection index in the rendered output to the actual
index
>>in
>>>>the code, then insert your image code in the textfield.htmlText.
>>>>I have done this previously (for a different reason) by just running
>>two
>>>>counters as I looped through each character in the code, one counter
>>>>counts every character and the other ignores characters that are
part
>>of
>>>>a tag.
>>>>
>>
>>Thanks Giles. That is what I was trying to avoid, especially since I
>>need to give the user editing capability - so they can add and remove
>>the tag at any time when editing the text.  Could get messy real quick
>>and be bug-prone.  I think I might opt instead for keeping images out
of
>>the HTML altogether, and just use a MovieClip they load content into
and
>>position.  It won't allow the text to wrap around the image, but oh
>>well.
>>
>>Thanks for the many responses!
>>
>>Jason Merrill
>>Bank of America
>>Learning & Organization Effectiveness - Technology Solutions
>>
>>
>>
>>
>>
>>
>>>>-Original Message-
>>>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>>>[EMAIL PROTECTED] On Behalf Of Giles Taylor
>>>>Sent: Tuesday, August 08, 2006 4:41 AM
>>>>To: Flashcoders mailing list
>>>>Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow
>>onquestion
>>>>
>>>>I think that replaceSel() acts on the rendered output rather than
the
>>>>code, so it thinks that you want to actually display the text that
you
>>
>>>>entered rather than adding it to the code (hope that makes sense!)
>>>>
>>>>You could scan through the textfield.htmlText value (i.e. the code)
>>and
>>>>relate the selection index in the rendered output to the actual
index
>>in
>>>>the code, then insert your image code in the textfield.htmlText.
>>>>I have done this previously (for a different reason) by just running
>>two
>>>>counters as I looped through each character in the code, one counter
>>>>counts every character and the other ignores characters that are
part
>>of
>>>>a tag.
>>>>
>>>>Bit of a pain, but I hope it helps,
>>>>Giles
>>>>
>>>>-Original Message-
>>>>From: [EMAIL PROTECTED]
>>>>[mailto:[EMAIL PROTECTED] On Behalf Of
>>Merrill,
>>>>Jason
>>>>Sent: 07 August 2006 23:25
>>&g

RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow onquestion

2006-08-09 Thread Merrill, Jason
>>I would have thought (i.e. I've not tried it) that once the image is
in
>>the textfield that users could just select/delete it as though it
where
>>just another piece of text???

Nope - well, kind of, that's only partially true.  You cannot select the
picture itself, but if you select the space character where the image
tag is "invisibly" located and delete that, the IMG tag gets deleted as
well, thus removing the picture.  So you can do it, but it's not
intuitive to the user on how to find that space and do that, especially
if they forgot where they put it.  But it would be really nice if it
were true that you could select the picture directly.  Unless someone
knows otherwise, but this is what appears to be the case in my tests.  

Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
 

>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Giles Taylor
>>Sent: Wednesday, August 09, 2006 4:28 AM
>>To: Flashcoders mailing list
>>Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow
onquestion
>>
>>I would have thought (i.e. I've not tried it) that once the image is
in
>>the textfield that users could just select/delete it as though it
where
>>just another piece of text???
>>
>>Giles
>>
>>-Original Message-
>>From: [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED] On Behalf Of
Merrill,
>>Jason
>>Sent: 08 August 2006 17:38
>>To: Flashcoders mailing list
>>Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow
>>onquestion
>>
>>>>You could scan through the textfield.htmlText value (i.e. the code)
>>and
>>>>relate the selection index in the rendered output to the actual
index
>>in
>>>>the code, then insert your image code in the textfield.htmlText.
>>>>I have done this previously (for a different reason) by just running
>>two
>>>>counters as I looped through each character in the code, one counter
>>>>counts every character and the other ignores characters that are
part
>>of
>>>>a tag.
>>>>
>>
>>Thanks Giles. That is what I was trying to avoid, especially since I
>>need to give the user editing capability - so they can add and remove
>>the tag at any time when editing the text.  Could get messy real quick
>>and be bug-prone.  I think I might opt instead for keeping images out
of
>>the HTML altogether, and just use a MovieClip they load content into
and
>>position.  It won't allow the text to wrap around the image, but oh
>>well.
>>
>>Thanks for the many responses!
>>
>>Jason Merrill
>>Bank of America
>>Learning & Organization Effectiveness - Technology Solutions
>>
>>
>>
>>
>>
>>
>>>>-Original Message-
>>>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>>>[EMAIL PROTECTED] On Behalf Of Giles Taylor
>>>>Sent: Tuesday, August 08, 2006 4:41 AM
>>>>To: Flashcoders mailing list
>>>>Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow
>>onquestion
>>>>
>>>>I think that replaceSel() acts on the rendered output rather than
the
>>>>code, so it thinks that you want to actually display the text that
you
>>
>>>>entered rather than adding it to the code (hope that makes sense!)
>>>>
>>>>You could scan through the textfield.htmlText value (i.e. the code)
>>and
>>>>relate the selection index in the rendered output to the actual
index
>>in
>>>>the code, then insert your image code in the textfield.htmlText.
>>>>I have done this previously (for a different reason) by just running
>>two
>>>>counters as I looped through each character in the code, one counter
>>>>counts every character and the other ignores characters that are
part
>>of
>>>>a tag.
>>>>
>>>>Bit of a pain, but I hope it helps,
>>>>Giles
>>>>
>>>>-Original Message-
>>>>From: [EMAIL PROTECTED]
>>>>[mailto:[EMAIL PROTECTED] On Behalf Of
>>Merrill,
>>>>Jason
>>>>Sent: 07 August 2006 23:25
>>>>To: Flashcoders mailing list
>>>>Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow
>>>>onquestion
>>>>
>>>>Oh, and to follow up with some further information:
>>>>
>>>>It seems to only encode those HTML entities when I use
>&

RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow onquestion

2006-08-09 Thread Giles Taylor
I would have thought (i.e. I've not tried it) that once the image is in
the textfield that users could just select/delete it as though it where
just another piece of text???

Giles

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: 08 August 2006 17:38
To: Flashcoders mailing list
Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow
onquestion

>>You could scan through the textfield.htmlText value (i.e. the code)
and
>>relate the selection index in the rendered output to the actual index
in
>>the code, then insert your image code in the textfield.htmlText.
>>I have done this previously (for a different reason) by just running
two
>>counters as I looped through each character in the code, one counter 
>>counts every character and the other ignores characters that are part
of
>>a tag.
>>

Thanks Giles. That is what I was trying to avoid, especially since I
need to give the user editing capability - so they can add and remove
the tag at any time when editing the text.  Could get messy real quick
and be bug-prone.  I think I might opt instead for keeping images out of
the HTML altogether, and just use a MovieClip they load content into and
position.  It won't allow the text to wrap around the image, but oh
well. 

Thanks for the many responses!

Jason Merrill
Bank of America
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
 

>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders- 
>>[EMAIL PROTECTED] On Behalf Of Giles Taylor
>>Sent: Tuesday, August 08, 2006 4:41 AM
>>To: Flashcoders mailing list
>>Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow
onquestion
>>
>>I think that replaceSel() acts on the rendered output rather than the 
>>code, so it thinks that you want to actually display the text that you

>>entered rather than adding it to the code (hope that makes sense!)
>>
>>You could scan through the textfield.htmlText value (i.e. the code)
and
>>relate the selection index in the rendered output to the actual index
in
>>the code, then insert your image code in the textfield.htmlText.
>>I have done this previously (for a different reason) by just running
two
>>counters as I looped through each character in the code, one counter 
>>counts every character and the other ignores characters that are part
of
>>a tag.
>>
>>Bit of a pain, but I hope it helps,
>>Giles
>>
>>-Original Message-----
>>From: [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED] On Behalf Of
Merrill,
>>Jason
>>Sent: 07 August 2006 23:25
>>To: Flashcoders mailing list
>>Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow 
>>onquestion
>>
>>Oh, and to follow up with some further information:
>>
>>It seems to only encode those HTML entities when I use 
>>TextField.replaceSel().  If I just add the  tag string on to the 
>>htmltext field value, it works:
>>
>>//works:
>>test_txt.htmlText += ">height=\"120\" />";
>>
>>//fails - shows literal text, and encodes entities:
>>test_txt.replaceSel(">height=\"120\" />");
>>
>>Am I left with splitting the string in two, inserting the  tag,
and
>>re-assembling the string?  Or is there a way to get replaceSel() to
work
>>with HTML tags?
>>
>>Thanks,
>>
>>Jason Merrill
>>Bank of America
>>Learning & Organization Effectiveness - Technology Solutions
>>
>>
>>
>>
>>
>>
>>>>-Original Message-
>>>>From: [EMAIL PROTECTED] [mailto:flashcoders-

>>>>[EMAIL PROTECTED] On Behalf Of Merrill, Jason
>>>>Sent: Monday, August 07, 2006 5:55 PM
>>>>To: Flashcoders mailing list
>>>>Subject: [Flashcoders] WSIWYG HTML text editor in Flash - follow on
>>question
>>>>
>>>>Getting back to this question I had back on Aug 1, thanks for the
>>ideas.
>>>>I've built a basic HTML text editor in Flash using the TextFormat
>>class.
>>>>Since I need to save the resulting HTML string back to a database,
it
>>>>works great.
>>>>
>>>>However, now I need to insert images into the HTML - which isn't 
>>>>supported by the TextFormat class.  So I was thinking I could just 
>>>>insert an img tag string into the textField using 
>>>>TextField.replaceSel(), like this:
>>>>
>>>>test_txt.replaceSel(">>>height=\"120\" />");
>>>>
>>>>So that p

Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow on question

2006-08-08 Thread John Grden

yeah I'm afraid I've not been following along closely enough, not sure what
replaceSel() does or how it does it, but sounds like you're on top of it ;)

let me know how it finaly works out,
JG

On 8/8/06, Merrill, Jason <[EMAIL PROTECTED]> wrote:


John,

Thanks - yes, that class works, thanks for the link.  But unfortunately,
it appears it is the Textfield.replaceSel() function which encodes it
upon display - so I would have to then parse through the textfield and
find the encoded string, then decode it using that class, and put it
back in the textfield - what a hassle! Is there another method to insert
HTML tags into a textField besides replaceSel() which won't encode it?

At this point, especially since I need to be able to allow the user to
remove the tag as well, I think I'm just better off keeping the image
separate from the HTML in a movieClip.  Would seem to be much easier and
less bug-prone.

Thanks for  the link though, I'm sure I can use than class in the
future.  I added it to my package library.

Jason Merrill
Bank of America
Learning & Organization Effectiveness - Technology Solutions






>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of John Grden
>>Sent: Tuesday, August 08, 2006 3:35 PM
>>To: Flashcoders mailing list
>>Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow
on question
>>
>>http://mirror1.cvsdude.com/trac/osflash/red5/browser/java/server/trunk
/swf/
>>DEV_Source/classes/com/blitzagency/data/DecodeHTML.as
>>
>>This is what I use for that Jason, hope that helps
>>
>>JG


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
[  JPG  ]
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow on question

2006-08-08 Thread Merrill, Jason
John,

Thanks - yes, that class works, thanks for the link.  But unfortunately,
it appears it is the Textfield.replaceSel() function which encodes it
upon display - so I would have to then parse through the textfield and
find the encoded string, then decode it using that class, and put it
back in the textfield - what a hassle! Is there another method to insert
HTML tags into a textField besides replaceSel() which won't encode it? 

At this point, especially since I need to be able to allow the user to
remove the tag as well, I think I'm just better off keeping the image
separate from the HTML in a movieClip.  Would seem to be much easier and
less bug-prone. 

Thanks for  the link though, I'm sure I can use than class in the
future.  I added it to my package library.

Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
 

>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of John Grden
>>Sent: Tuesday, August 08, 2006 3:35 PM
>>To: Flashcoders mailing list
>>Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow
on question
>>
>>http://mirror1.cvsdude.com/trac/osflash/red5/browser/java/server/trunk
/swf/
>>DEV_Source/classes/com/blitzagency/data/DecodeHTML.as
>>
>>This is what I use for that Jason, hope that helps
>>
>>JG


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow on question

2006-08-08 Thread John Grden

http://mirror1.cvsdude.com/trac/osflash/red5/browser/java/server/trunk/swf/DEV_Source/classes/com/blitzagency/data/DecodeHTML.as

This is what I use for that Jason, hope that helps

JG

On 8/8/06, Merrill, Jason <[EMAIL PROTECTED]> wrote:


>>have you tried using the unescape function?.something like this:
>>
>>test_txt.replaceSel(unescape(">height=\"120\" />"));

That doesn't seem to work. Still shows as:

<img src="mountains.jpg" width="350"
height="120" />

Thanks though.



Jason Merrill
Bank of America
Learning & Organization Effectiveness - Technology Solutions






>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of John VanHorn
>>Sent: Monday, August 07, 2006 8:43 PM
>>To: Flashcoders mailing list
>>Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow
on question
>>
>>
>>On 8/7/06, Merrill, Jason <[EMAIL PROTECTED]> wrote:
>>>
>>> Oh, and to follow up with some further information:
>>>
>>> It seems to only encode those HTML entities when I use
>>> TextField.replaceSel().  If I just add the  tag string on to
the
>>> htmltext field value, it works:
>>>
>>> //works:
>>> test_txt.htmlText += ">> height=\"120\" />";
>>>
>>> //fails - shows literal text, and encodes entities:
>>> test_txt.replaceSel(">> height=\"120\" />");
>>>
>>> Am I left with splitting the string in two, inserting the  tag,
and
>>> re-assembling the string?  Or is there a way to get replaceSel() to
work
>>> with HTML tags?
>>>
>>> Thanks,
>>>
>>> Jason Merrill
>>> Bank of America
>>> Learning & Organization Effectiveness - Technology Solutions
>>>
>>>
>>>
>>___
>>Flashcoders@chattyfig.figleaf.com
>>To change your subscription options or search the archive:
>>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>>Brought to you by Fig Leaf Software
>>Premier Authorized Adobe Consulting and Training
>>http://www.figleaf.com
>>http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
[  JPG  ]
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow onquestion

2006-08-08 Thread Merrill, Jason
>>You could scan through the textfield.htmlText value (i.e. the code)
and
>>relate the selection index in the rendered output to the actual index
in
>>the code, then insert your image code in the textfield.htmlText.
>>I have done this previously (for a different reason) by just running
two
>>counters as I looped through each character in the code, one counter
>>counts every character and the other ignores characters that are part
of
>>a tag.
>>

Thanks Giles. That is what I was trying to avoid, especially since I
need to give the user editing capability - so they can add and remove
the tag at any time when editing the text.  Could get messy real quick
and be bug-prone.  I think I might opt instead for keeping images out of
the HTML altogether, and just use a MovieClip they load content into and
position.  It won't allow the text to wrap around the image, but oh
well. 

Thanks for the many responses!

Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
 

>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Giles Taylor
>>Sent: Tuesday, August 08, 2006 4:41 AM
>>To: Flashcoders mailing list
>>Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow
onquestion
>>
>>I think that replaceSel() acts on the rendered output rather than the
>>code, so it thinks that you want to actually display the text that you
>>entered rather than adding it to the code (hope that makes sense!)
>>
>>You could scan through the textfield.htmlText value (i.e. the code)
and
>>relate the selection index in the rendered output to the actual index
in
>>the code, then insert your image code in the textfield.htmlText.
>>I have done this previously (for a different reason) by just running
two
>>counters as I looped through each character in the code, one counter
>>counts every character and the other ignores characters that are part
of
>>a tag.
>>
>>Bit of a pain, but I hope it helps,
>>Giles
>>
>>-----Original Message-
>>From: [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED] On Behalf Of
Merrill,
>>Jason
>>Sent: 07 August 2006 23:25
>>To: Flashcoders mailing list
>>Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow
>>onquestion
>>
>>Oh, and to follow up with some further information:
>>
>>It seems to only encode those HTML entities when I use
>>TextField.replaceSel().  If I just add the  tag string on to the
>>htmltext field value, it works:
>>
>>//works:
>>test_txt.htmlText += ">height=\"120\" />";
>>
>>//fails - shows literal text, and encodes entities:
>>test_txt.replaceSel(">height=\"120\" />");
>>
>>Am I left with splitting the string in two, inserting the  tag,
and
>>re-assembling the string?  Or is there a way to get replaceSel() to
work
>>with HTML tags?
>>
>>Thanks,
>>
>>Jason Merrill
>>Bank of America
>>Learning & Organization Effectiveness - Technology Solutions
>>
>>
>>
>>
>>
>>
>>>>-Original Message-
>>>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>>>[EMAIL PROTECTED] On Behalf Of Merrill, Jason
>>>>Sent: Monday, August 07, 2006 5:55 PM
>>>>To: Flashcoders mailing list
>>>>Subject: [Flashcoders] WSIWYG HTML text editor in Flash - follow on
>>question
>>>>
>>>>Getting back to this question I had back on Aug 1, thanks for the
>>ideas.
>>>>I've built a basic HTML text editor in Flash using the TextFormat
>>class.
>>>>Since I need to save the resulting HTML string back to a database,
it
>>>>works great.
>>>>
>>>>However, now I need to insert images into the HTML - which isn't
>>>>supported by the TextFormat class.  So I was thinking I could just
>>>>insert an img tag string into the textField using
>>>>TextField.replaceSel(), like this:
>>>>
>>>>test_txt.replaceSel(">>>height=\"120\" />");
>>>>
>>>>So that part works fine, but when I re-render the textField, the
image
>>
>>>>does not show (doesn't render as HTML), it shows the literal >>>scr=...etc. characters in the textField (even though it is an HTML
>>>>textfield).  I thought maybe I needed to re-render the textfield, so
I
>>
>>>>left the frame and then jumped back to it, and it still shows the
>>>>literal HTM

RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow on question

2006-08-08 Thread Merrill, Jason
>>have you tried using the unescape function?.something like this:
>>
>>test_txt.replaceSel(unescape(">height=\"120\" />"));

That doesn't seem to work. Still shows as: 

<img src="mountains.jpg" width="350"
height="120" />

Thanks though.



Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
 

>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of John VanHorn
>>Sent: Monday, August 07, 2006 8:43 PM
>>To: Flashcoders mailing list
>>Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow
on question
>>
>>
>>On 8/7/06, Merrill, Jason <[EMAIL PROTECTED]> wrote:
>>>
>>> Oh, and to follow up with some further information:
>>>
>>> It seems to only encode those HTML entities when I use
>>> TextField.replaceSel().  If I just add the  tag string on to
the
>>> htmltext field value, it works:
>>>
>>> //works:
>>> test_txt.htmlText += ">> height=\"120\" />";
>>>
>>> //fails - shows literal text, and encodes entities:
>>> test_txt.replaceSel(">> height=\"120\" />");
>>>
>>> Am I left with splitting the string in two, inserting the  tag,
and
>>> re-assembling the string?  Or is there a way to get replaceSel() to
work
>>> with HTML tags?
>>>
>>> Thanks,
>>>
>>> Jason Merrill
>>> Bank of America
>>> Learning & Organization Effectiveness - Technology Solutions
>>>
>>>
>>>
>>___
>>Flashcoders@chattyfig.figleaf.com
>>To change your subscription options or search the archive:
>>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>>Brought to you by Fig Leaf Software
>>Premier Authorized Adobe Consulting and Training
>>http://www.figleaf.com
>>http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow onquestion

2006-08-08 Thread John Grden

sure thing Jason, I've got the light version here, so if you don't get it
through the proper channels soon enough, just let me know

On 8/8/06, Merrill, Jason <[EMAIL PROTECTED]> wrote:


Thanks John.

Hmmm... yeah, I'm always leery when using third party stuff - b/c it may
seem to work great at first, but then the boss wants more features that
the product doesn't have. Or there are some unknown limitations.  I
might just roll my own - I have something going already.  Plus, if it
says Flash 8 required, I'm thinking even if I write him, it's gonna be
Flash 8 required.  I have to support Flash 7 unfortunately. But I'll
still check into this further.

Another problem:  I tried downloading a demo from them, but even after I
registered, I was never e-mailed a password, and it's been 45 minutes
now.  :(   I tried to re-register, but it said my e-mail address was
already in their database.  So I tried getting a password reminder sent
to me, but that never arrived either and that was 20 minutes ago.

>>The author is very responsive, you should email him directly.  I'm
sure he
>>has some solutions.

I bcc:'ed him on this - thanks for the tip.

Jason Merrill
Bank of America
Learning & Organization Effectiveness - Technology Solutions






>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of John Grden
>>Sent: Tuesday, August 08, 2006 9:43 AM
>>To: Flashcoders mailing list
>>Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow
onquestion
>>
>>that's a good question:
>>
>>"To allow easy server file browsing and direct upload of images (flash
>>player 8 required) the component has built-in FileBrowser. php/Apache
and
>>.NET files needed for backend are included"
>>
>>The author is very responsive, you should email him directly.  I'm
sure he
>>has some solutions.
>>
>>On 8/8/06, Merrill, Jason <[EMAIL PROTECTED]> wrote:
>>
>>--
>>[  JPG  ]
>>___
>>Flashcoders@chattyfig.figleaf.com
>>To change your subscription options or search the archive:
>>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>>Brought to you by Fig Leaf Software
>>Premier Authorized Adobe Consulting and Training
>>http://www.figleaf.com
>>http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
[  JPG  ]
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow onquestion

2006-08-08 Thread Merrill, Jason
Thanks John.  

Hmmm... yeah, I'm always leery when using third party stuff - b/c it may
seem to work great at first, but then the boss wants more features that
the product doesn't have. Or there are some unknown limitations.  I
might just roll my own - I have something going already.  Plus, if it
says Flash 8 required, I'm thinking even if I write him, it's gonna be
Flash 8 required.  I have to support Flash 7 unfortunately. But I'll
still check into this further.  

Another problem:  I tried downloading a demo from them, but even after I
registered, I was never e-mailed a password, and it's been 45 minutes
now.  :(   I tried to re-register, but it said my e-mail address was
already in their database.  So I tried getting a password reminder sent
to me, but that never arrived either and that was 20 minutes ago.  

>>The author is very responsive, you should email him directly.  I'm
sure he
>>has some solutions.

I bcc:'ed him on this - thanks for the tip.

Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
 

>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of John Grden
>>Sent: Tuesday, August 08, 2006 9:43 AM
>>To: Flashcoders mailing list
>>Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow
onquestion
>>
>>that's a good question:
>>
>>"To allow easy server file browsing and direct upload of images (flash
>>player 8 required) the component has built-in FileBrowser. php/Apache
and
>>.NET files needed for backend are included"
>>
>>The author is very responsive, you should email him directly.  I'm
sure he
>>has some solutions.
>>
>>On 8/8/06, Merrill, Jason <[EMAIL PROTECTED]> wrote:
>>
>>--
>>[  JPG  ]
>>___
>>Flashcoders@chattyfig.figleaf.com
>>To change your subscription options or search the archive:
>>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>>Brought to you by Fig Leaf Software
>>Premier Authorized Adobe Consulting and Training
>>http://www.figleaf.com
>>http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow onquestion

2006-08-08 Thread John Grden

that's a good question:

"To allow easy server file browsing and direct upload of images (flash
player 8 required) the component has built-in FileBrowser. php/Apache and
.NET files needed for backend are included"

The author is very responsive, you should email him directly.  I'm sure he
has some solutions.

On 8/8/06, Merrill, Jason <[EMAIL PROTECTED]> wrote:

--
[  JPG  ]
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow onquestion

2006-08-08 Thread Merrill, Jason
>>that's not true, it works in Flash 7 just fine - I JUST tried it and I
know
>>that I've read that in the docs somewhere as well.

How does the filebrowsing work with this component in the Flash 7
player?  Does it not use the file browsing capabilities of Flash 8 and
uses Javascript in an HTML window instead? Or does it rely on something
like PHP?

Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
 

>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of John Grden
>>Sent: Tuesday, August 08, 2006 8:41 AM
>>To: Flashcoders mailing list
>>Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow
onquestion
>>
>>that's not true, it works in Flash 7 just fine - I JUST tried it and I
know
>>that I've read that in the docs somewhere as well.
>>
>>On 8/8/06, Merrill, Jason <[EMAIL PROTECTED]> wrote:
>>>
>>> Sorry, this is going back in the thread, but I originally said it
had to
>>> be Flash 7.  This tool requires Flash 8 according to the site.
Looks
>>> like a great tool though, thanks!
>>>
>>> Jason Merrill
>>> Bank of America
>>> Learning & Organization Effectiveness - Technology Solutions
>>>
>>>
>>>
>>>
>>>
>>>
>>> >>-----Original Message-
>>> >>From: [EMAIL PROTECTED]
[mailto:flashcoders-
>>> >>[EMAIL PROTECTED] On Behalf Of John Grden
>>> >>Sent: Tuesday, August 08, 2006 8:28 AM
>>> >>To: Flashcoders mailing list
>>> >>Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash -
follow
>>> onquestion
>>> >>
>>> >>I know I'm late to the game on this, but maybe this might save you
>>> time?
>>> >>
>>> >>http://www.flashtexteditor.com/in.php
>>> >>
>>> >>I just used it on a site, and it worked perfectly.  It couldn't
have
>>> been a
>>> >>better use of time/money ;)
>>> >>
>>> >>hth,
>>> >>
>>> >>jpg
>>> >>
>>> >>On 8/8/06, Giles Taylor <[EMAIL PROTECTED]> wrote:
>>> >>>
>>> >>> I think that replaceSel() acts on the rendered output rather
than
>>> the
>>> >>> code, so it thinks that you want to actually display the text
that
>>> you
>>> >>> entered rather than adding it to the code (hope that makes
sense!)
>>> >>>
>>> >>> You could scan through the textfield.htmlText value (i.e. the
code)
>>> and
>>> >>> relate the selection index in the rendered output to the actual
>>> index in
>>> >>> the code, then insert your image code in the textfield.htmlText.
>>> >>> I have done this previously (for a different reason) by just
running
>>> two
>>> >>> counters as I looped through each character in the code, one
counter
>>> >>> counts every character and the other ignores characters that are
>>> part of
>>> >>> a tag.
>>> >>>
>>> >>> Bit of a pain, but I hope it helps,
>>> >>> Giles
>>> >>>
>>> >>> -Original Message-
>>> >>> From: [EMAIL PROTECTED]
>>> >>> [mailto:[EMAIL PROTECTED] On Behalf Of
>>> Merrill,
>>> >>> Jason
>>> >>> Sent: 07 August 2006 23:25
>>> >>> To: Flashcoders mailing list
>>> >>> Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash -
follow
>>> >>> onquestion
>>> >>>
>>> >>> Oh, and to follow up with some further information:
>>> >>>
>>> >>> It seems to only encode those HTML entities when I use
>>> >>> TextField.replaceSel().  If I just add the  tag string on
to
>>> the
>>> >>> htmltext field value, it works:
>>> >>>
>>> >>> //works:
>>> >>> test_txt.htmlText += ">> >>> height=\"120\" />";
>>> >>>
>>> >>> //fails - shows literal text, and encodes entities:
>>> >>> test_txt.replaceSel(">> >>> height=\"120\" />");
>>> >>>
>>> >>> Am I left with splitting the string in two, inserti

RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow onquestion

2006-08-08 Thread Merrill, Jason
Well that's cool then!  This is the kind of tool I was looking for.
Thanks!

Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
 

>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of John Grden
>>Sent: Tuesday, August 08, 2006 8:41 AM
>>To: Flashcoders mailing list
>>Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow
onquestion
>>
>>that's not true, it works in Flash 7 just fine - I JUST tried it and I
know
>>that I've read that in the docs somewhere as well.
>>
>>On 8/8/06, Merrill, Jason <[EMAIL PROTECTED]> wrote:
>>>
>>> Sorry, this is going back in the thread, but I originally said it
had to
>>> be Flash 7.  This tool requires Flash 8 according to the site.
Looks
>>> like a great tool though, thanks!
>>>
>>> Jason Merrill
>>> Bank of America
>>> Learning & Organization Effectiveness - Technology Solutions
>>>
>>>
>>>
>>>
>>>
>>>
>>> >>-----Original Message-
>>> >>From: [EMAIL PROTECTED]
[mailto:flashcoders-
>>> >>[EMAIL PROTECTED] On Behalf Of John Grden
>>> >>Sent: Tuesday, August 08, 2006 8:28 AM
>>> >>To: Flashcoders mailing list
>>> >>Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash -
follow
>>> onquestion
>>> >>
>>> >>I know I'm late to the game on this, but maybe this might save you
>>> time?
>>> >>
>>> >>http://www.flashtexteditor.com/in.php
>>> >>
>>> >>I just used it on a site, and it worked perfectly.  It couldn't
have
>>> been a
>>> >>better use of time/money ;)
>>> >>
>>> >>hth,
>>> >>
>>> >>jpg
>>> >>
>>> >>On 8/8/06, Giles Taylor <[EMAIL PROTECTED]> wrote:
>>> >>>
>>> >>> I think that replaceSel() acts on the rendered output rather
than
>>> the
>>> >>> code, so it thinks that you want to actually display the text
that
>>> you
>>> >>> entered rather than adding it to the code (hope that makes
sense!)
>>> >>>
>>> >>> You could scan through the textfield.htmlText value (i.e. the
code)
>>> and
>>> >>> relate the selection index in the rendered output to the actual
>>> index in
>>> >>> the code, then insert your image code in the textfield.htmlText.
>>> >>> I have done this previously (for a different reason) by just
running
>>> two
>>> >>> counters as I looped through each character in the code, one
counter
>>> >>> counts every character and the other ignores characters that are
>>> part of
>>> >>> a tag.
>>> >>>
>>> >>> Bit of a pain, but I hope it helps,
>>> >>> Giles
>>> >>>
>>> >>> -Original Message-
>>> >>> From: [EMAIL PROTECTED]
>>> >>> [mailto:[EMAIL PROTECTED] On Behalf Of
>>> Merrill,
>>> >>> Jason
>>> >>> Sent: 07 August 2006 23:25
>>> >>> To: Flashcoders mailing list
>>> >>> Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash -
follow
>>> >>> onquestion
>>> >>>
>>> >>> Oh, and to follow up with some further information:
>>> >>>
>>> >>> It seems to only encode those HTML entities when I use
>>> >>> TextField.replaceSel().  If I just add the  tag string on
to
>>> the
>>> >>> htmltext field value, it works:
>>> >>>
>>> >>> //works:
>>> >>> test_txt.htmlText += ">> >>> height=\"120\" />";
>>> >>>
>>> >>> //fails - shows literal text, and encodes entities:
>>> >>> test_txt.replaceSel(">> >>> height=\"120\" />");
>>> >>>
>>> >>> Am I left with splitting the string in two, inserting the 
tag,
>>> and
>>> >>> re-assembling the string?  Or is there a way to get replaceSel()
to
>>> work
>>> >>> with HTML tags?
>>> >>>
>>> >>> Thanks,
>>> >>>
>>> >>> Jas

Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow onquestion

2006-08-08 Thread John Grden

that's not true, it works in Flash 7 just fine - I JUST tried it and I know
that I've read that in the docs somewhere as well.

On 8/8/06, Merrill, Jason <[EMAIL PROTECTED]> wrote:


Sorry, this is going back in the thread, but I originally said it had to
be Flash 7.  This tool requires Flash 8 according to the site.  Looks
like a great tool though, thanks!

Jason Merrill
Bank of America
Learning & Organization Effectiveness - Technology Solutions






>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of John Grden
>>Sent: Tuesday, August 08, 2006 8:28 AM
>>To: Flashcoders mailing list
>>Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow
onquestion
>>
>>I know I'm late to the game on this, but maybe this might save you
time?
>>
>>http://www.flashtexteditor.com/in.php
>>
>>I just used it on a site, and it worked perfectly.  It couldn't have
been a
>>better use of time/money ;)
>>
>>hth,
>>
>>jpg
>>
>>On 8/8/06, Giles Taylor <[EMAIL PROTECTED]> wrote:
>>>
>>> I think that replaceSel() acts on the rendered output rather than
the
>>> code, so it thinks that you want to actually display the text that
you
>>> entered rather than adding it to the code (hope that makes sense!)
>>>
>>> You could scan through the textfield.htmlText value (i.e. the code)
and
>>> relate the selection index in the rendered output to the actual
index in
>>> the code, then insert your image code in the textfield.htmlText.
>>> I have done this previously (for a different reason) by just running
two
>>> counters as I looped through each character in the code, one counter
>>> counts every character and the other ignores characters that are
part of
>>> a tag.
>>>
>>> Bit of a pain, but I hope it helps,
>>> Giles
>>>
>>> -Original Message-
>>> From: [EMAIL PROTECTED]
>>> [mailto:[EMAIL PROTECTED] On Behalf Of
Merrill,
>>> Jason
>>> Sent: 07 August 2006 23:25
>>> To: Flashcoders mailing list
>>> Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow
>>> onquestion
>>>
>>> Oh, and to follow up with some further information:
>>>
>>> It seems to only encode those HTML entities when I use
>>> TextField.replaceSel().  If I just add the  tag string on to
the
>>> htmltext field value, it works:
>>>
>>> //works:
>>> test_txt.htmlText += ">> height=\"120\" />";
>>>
>>> //fails - shows literal text, and encodes entities:
>>> test_txt.replaceSel(">> height=\"120\" />");
>>>
>>> Am I left with splitting the string in two, inserting the  tag,
and
>>> re-assembling the string?  Or is there a way to get replaceSel() to
work
>>> with HTML tags?
>>>
>>> Thanks,
>>>
>>> Jason Merrill
>>> Bank of America
>>> Learning & Organization Effectiveness - Technology Solutions
>>>
>>>
>>>
>>>
>>>
>>>
>>> >>-Original Message-
>>> >>From: [EMAIL PROTECTED]
[mailto:flashcoders-
>>> >>[EMAIL PROTECTED] On Behalf Of Merrill, Jason
>>> >>Sent: Monday, August 07, 2006 5:55 PM
>>> >>To: Flashcoders mailing list
>>> >>Subject: [Flashcoders] WSIWYG HTML text editor in Flash - follow
on
>>> question
>>> >>
>>> >>Getting back to this question I had back on Aug 1, thanks for the
>>> ideas.
>>> >>I've built a basic HTML text editor in Flash using the TextFormat
>>> class.
>>> >>Since I need to save the resulting HTML string back to a database,
it
>>> >>works great.
>>> >>
>>> >>However, now I need to insert images into the HTML - which isn't
>>> >>supported by the TextFormat class.  So I was thinking I could just
>>> >>insert an img tag string into the textField using
>>> >>TextField.replaceSel(), like this:
>>> >>
>>> >>test_txt.replaceSel(">> >>height=\"120\" />");
>>> >>
>>> >>So that part works fine, but when I re-render the textField, the
image
>>>
>>> >>does not show (doesn't render as HTML), it shows the literal >> >>scr=...etc. characters in the textField (even though it is an HTML
>>> >

RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow onquestion

2006-08-08 Thread Merrill, Jason
Sorry, this is going back in the thread, but I originally said it had to
be Flash 7.  This tool requires Flash 8 according to the site.  Looks
like a great tool though, thanks!

Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
 

>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of John Grden
>>Sent: Tuesday, August 08, 2006 8:28 AM
>>To: Flashcoders mailing list
>>Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow
onquestion
>>
>>I know I'm late to the game on this, but maybe this might save you
time?
>>
>>http://www.flashtexteditor.com/in.php
>>
>>I just used it on a site, and it worked perfectly.  It couldn't have
been a
>>better use of time/money ;)
>>
>>hth,
>>
>>jpg
>>
>>On 8/8/06, Giles Taylor <[EMAIL PROTECTED]> wrote:
>>>
>>> I think that replaceSel() acts on the rendered output rather than
the
>>> code, so it thinks that you want to actually display the text that
you
>>> entered rather than adding it to the code (hope that makes sense!)
>>>
>>> You could scan through the textfield.htmlText value (i.e. the code)
and
>>> relate the selection index in the rendered output to the actual
index in
>>> the code, then insert your image code in the textfield.htmlText.
>>> I have done this previously (for a different reason) by just running
two
>>> counters as I looped through each character in the code, one counter
>>> counts every character and the other ignores characters that are
part of
>>> a tag.
>>>
>>> Bit of a pain, but I hope it helps,
>>> Giles
>>>
>>> -Original Message-
>>> From: [EMAIL PROTECTED]
>>> [mailto:[EMAIL PROTECTED] On Behalf Of
Merrill,
>>> Jason
>>> Sent: 07 August 2006 23:25
>>> To: Flashcoders mailing list
>>> Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow
>>> onquestion
>>>
>>> Oh, and to follow up with some further information:
>>>
>>> It seems to only encode those HTML entities when I use
>>> TextField.replaceSel().  If I just add the  tag string on to
the
>>> htmltext field value, it works:
>>>
>>> //works:
>>> test_txt.htmlText += ">> height=\"120\" />";
>>>
>>> //fails - shows literal text, and encodes entities:
>>> test_txt.replaceSel(">> height=\"120\" />");
>>>
>>> Am I left with splitting the string in two, inserting the  tag,
and
>>> re-assembling the string?  Or is there a way to get replaceSel() to
work
>>> with HTML tags?
>>>
>>> Thanks,
>>>
>>> Jason Merrill
>>> Bank of America
>>> Learning & Organization Effectiveness - Technology Solutions
>>>
>>>
>>>
>>>
>>>
>>>
>>> >>-Original Message-
>>> >>From: [EMAIL PROTECTED]
[mailto:flashcoders-
>>> >>[EMAIL PROTECTED] On Behalf Of Merrill, Jason
>>> >>Sent: Monday, August 07, 2006 5:55 PM
>>> >>To: Flashcoders mailing list
>>> >>Subject: [Flashcoders] WSIWYG HTML text editor in Flash - follow
on
>>> question
>>> >>
>>> >>Getting back to this question I had back on Aug 1, thanks for the
>>> ideas.
>>> >>I've built a basic HTML text editor in Flash using the TextFormat
>>> class.
>>> >>Since I need to save the resulting HTML string back to a database,
it
>>> >>works great.
>>> >>
>>> >>However, now I need to insert images into the HTML - which isn't
>>> >>supported by the TextFormat class.  So I was thinking I could just
>>> >>insert an img tag string into the textField using
>>> >>TextField.replaceSel(), like this:
>>> >>
>>> >>test_txt.replaceSel(">> >>height=\"120\" />");
>>> >>
>>> >>So that part works fine, but when I re-render the textField, the
image
>>>
>>> >>does not show (doesn't render as HTML), it shows the literal >> >>scr=...etc. characters in the textField (even though it is an HTML
>>> >>textfield).  I thought maybe I needed to re-render the textfield,
so I
>>>
>>> >>left the frame and then jumped back to it, and it still shows the
>>> >

Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow onquestion

2006-08-08 Thread John Grden

I know I'm late to the game on this, but maybe this might save you time?

http://www.flashtexteditor.com/in.php

I just used it on a site, and it worked perfectly.  It couldn't have been a
better use of time/money ;)

hth,

jpg

On 8/8/06, Giles Taylor <[EMAIL PROTECTED]> wrote:


I think that replaceSel() acts on the rendered output rather than the
code, so it thinks that you want to actually display the text that you
entered rather than adding it to the code (hope that makes sense!)

You could scan through the textfield.htmlText value (i.e. the code) and
relate the selection index in the rendered output to the actual index in
the code, then insert your image code in the textfield.htmlText.
I have done this previously (for a different reason) by just running two
counters as I looped through each character in the code, one counter
counts every character and the other ignores characters that are part of
a tag.

Bit of a pain, but I hope it helps,
Giles

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: 07 August 2006 23:25
To: Flashcoders mailing list
Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow
onquestion

Oh, and to follow up with some further information:

It seems to only encode those HTML entities when I use
TextField.replaceSel().  If I just add the  tag string on to the
htmltext field value, it works:

//works:
test_txt.htmlText += "";

//fails - shows literal text, and encodes entities:
test_txt.replaceSel("");

Am I left with splitting the string in two, inserting the  tag, and
re-assembling the string?  Or is there a way to get replaceSel() to work
with HTML tags?

Thanks,

Jason Merrill
Bank of America
Learning & Organization Effectiveness - Technology Solutions






>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Merrill, Jason
>>Sent: Monday, August 07, 2006 5:55 PM
>>To: Flashcoders mailing list
>>Subject: [Flashcoders] WSIWYG HTML text editor in Flash - follow on
question
>>
>>Getting back to this question I had back on Aug 1, thanks for the
ideas.
>>I've built a basic HTML text editor in Flash using the TextFormat
class.
>>Since I need to save the resulting HTML string back to a database, it
>>works great.
>>
>>However, now I need to insert images into the HTML - which isn't
>>supported by the TextFormat class.  So I was thinking I could just
>>insert an img tag string into the textField using
>>TextField.replaceSel(), like this:
>>
>>test_txt.replaceSel(">height=\"120\" />");
>>
>>So that part works fine, but when I re-render the textField, the image

>>does not show (doesn't render as HTML), it shows the literal >scr=...etc. characters in the textField (even though it is an HTML
>>textfield).  I thought maybe I needed to re-render the textfield, so I

>>left the frame and then jumped back to it, and it still shows the
>>literal HTML.  So in testing the value of the html TextField, I found
>>the <> and \" characters I inserted have been changed to encoded
>>entities in the HTML string:
>>
>><img src="mountains.jpg" width="350"
>>height="120" />
>>
>>Why is that and how can I fix this?   It would be pretty messy to use
>>the XML object to decode those entities - why are they getting
rendered
>>that way in the first place?
>>
>>Thanks,
>>
>>
>>Jason Merrill
>>Bank of America
>>Learning & Organization Effectiveness - Technology Solutions
>>
>>
>>
>>
>>
>>
>>>>-Original Message-
>>>>From: [EMAIL PROTECTED] [mailto:flashcoders-

>>>>[EMAIL PROTECTED] On Behalf Of James Booth
>>>>Sent: Tuesday, August 01, 2006 10:43 AM
>>>>To: 'Flashcoders mailing list'
>>>>Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash?
>>>>
>>>>I just did exactly this, a couple of days ago.  I created a class
that
>>can
>>>>apply any kind of supported HTML formatting.  The idea seemed
daunting
>>at
>>>>first, but the class is relatively small.  You can assign/remove
>>textfields
>>>>that it should "watch". I don't have it here with me right now, but
>>here's
>>>>the basics:
>>>>
>>>>It doesn't use replaceText at all.
>>>>
>>>>I have a switch statement for the various textformat options (some
are
>>>>Boolean (bold, italic, etc) and some have arguments (leading, size,
>>etc).
>>

RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow onquestion

2006-08-08 Thread Giles Taylor
I think that replaceSel() acts on the rendered output rather than the
code, so it thinks that you want to actually display the text that you
entered rather than adding it to the code (hope that makes sense!)

You could scan through the textfield.htmlText value (i.e. the code) and
relate the selection index in the rendered output to the actual index in
the code, then insert your image code in the textfield.htmlText.
I have done this previously (for a different reason) by just running two
counters as I looped through each character in the code, one counter
counts every character and the other ignores characters that are part of
a tag.

Bit of a pain, but I hope it helps,
Giles

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: 07 August 2006 23:25
To: Flashcoders mailing list
Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow
onquestion

Oh, and to follow up with some further information:

It seems to only encode those HTML entities when I use
TextField.replaceSel().  If I just add the  tag string on to the
htmltext field value, it works:

//works:
test_txt.htmlText += "";

//fails - shows literal text, and encodes entities:
test_txt.replaceSel("");

Am I left with splitting the string in two, inserting the  tag, and
re-assembling the string?  Or is there a way to get replaceSel() to work
with HTML tags?

Thanks,

Jason Merrill
Bank of America
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
 

>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders- 
>>[EMAIL PROTECTED] On Behalf Of Merrill, Jason
>>Sent: Monday, August 07, 2006 5:55 PM
>>To: Flashcoders mailing list
>>Subject: [Flashcoders] WSIWYG HTML text editor in Flash - follow on
question
>>
>>Getting back to this question I had back on Aug 1, thanks for the
ideas.
>>I've built a basic HTML text editor in Flash using the TextFormat
class.
>>Since I need to save the resulting HTML string back to a database, it 
>>works great.
>>
>>However, now I need to insert images into the HTML - which isn't 
>>supported by the TextFormat class.  So I was thinking I could just 
>>insert an img tag string into the textField using 
>>TextField.replaceSel(), like this:
>>
>>test_txt.replaceSel(">height=\"120\" />");
>>
>>So that part works fine, but when I re-render the textField, the image

>>does not show (doesn't render as HTML), it shows the literal >scr=...etc. characters in the textField (even though it is an HTML 
>>textfield).  I thought maybe I needed to re-render the textfield, so I

>>left the frame and then jumped back to it, and it still shows the 
>>literal HTML.  So in testing the value of the html TextField, I found 
>>the <> and \" characters I inserted have been changed to encoded 
>>entities in the HTML string:
>>
>><img src="mountains.jpg" width="350" 
>>height="120" />
>>
>>Why is that and how can I fix this?   It would be pretty messy to use
>>the XML object to decode those entities - why are they getting
rendered
>>that way in the first place?
>>
>>Thanks,
>>
>>
>>Jason Merrill
>>Bank of America
>>Learning & Organization Effectiveness - Technology Solutions
>>
>>
>>
>>
>>
>>
>>>>-Original Message-
>>>>From: [EMAIL PROTECTED] [mailto:flashcoders-

>>>>[EMAIL PROTECTED] On Behalf Of James Booth
>>>>Sent: Tuesday, August 01, 2006 10:43 AM
>>>>To: 'Flashcoders mailing list'
>>>>Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash?
>>>>
>>>>I just did exactly this, a couple of days ago.  I created a class
that
>>can
>>>>apply any kind of supported HTML formatting.  The idea seemed
daunting
>>at
>>>>first, but the class is relatively small.  You can assign/remove
>>textfields
>>>>that it should "watch". I don't have it here with me right now, but
>>here's
>>>>the basics:
>>>>
>>>>It doesn't use replaceText at all.
>>>>
>>>>I have a switch statement for the various textformat options (some
are
>>>>Boolean (bold, italic, etc) and some have arguments (leading, size,
>>etc).
>>>>
>>>>When the textfield has focus use an interval to get the beginIndex
and
>>>>endIndex.  You can clear the interval onkillFocus.
>>>>
>>>>Then in your setFormat function
>>>>
>>>>Public function setFormat (type, 

Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow on question

2006-08-07 Thread John VanHorn

have you tried using the unescape function?.something like this:

test_txt.replaceSel(unescape(""));

On 8/7/06, Merrill, Jason <[EMAIL PROTECTED]> wrote:


Oh, and to follow up with some further information:

It seems to only encode those HTML entities when I use
TextField.replaceSel().  If I just add the  tag string on to the
htmltext field value, it works:

//works:
test_txt.htmlText += "";

//fails - shows literal text, and encodes entities:
test_txt.replaceSel("");

Am I left with splitting the string in two, inserting the  tag, and
re-assembling the string?  Or is there a way to get replaceSel() to work
with HTML tags?

Thanks,

Jason Merrill
Bank of America
Learning & Organization Effectiveness - Technology Solutions




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow on question

2006-08-07 Thread Merrill, Jason
Oh, and to follow up with some further information:

It seems to only encode those HTML entities when I use
TextField.replaceSel().  If I just add the  tag string on to the
htmltext field value, it works:

//works:
test_txt.htmlText += "";

//fails - shows literal text, and encodes entities:
test_txt.replaceSel("");

Am I left with splitting the string in two, inserting the  tag, and
re-assembling the string?  Or is there a way to get replaceSel() to work
with HTML tags?

Thanks,

Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
 

>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Merrill, Jason
>>Sent: Monday, August 07, 2006 5:55 PM
>>To: Flashcoders mailing list
>>Subject: [Flashcoders] WSIWYG HTML text editor in Flash - follow on
question
>>
>>Getting back to this question I had back on Aug 1, thanks for the
ideas.
>>I've built a basic HTML text editor in Flash using the TextFormat
class.
>>Since I need to save the resulting HTML string back to a database, it
>>works great.
>>
>>However, now I need to insert images into the HTML - which isn't
>>supported by the TextFormat class.  So I was thinking I could just
>>insert an img tag string into the textField using
>>TextField.replaceSel(), like this:
>>
>>test_txt.replaceSel(">height=\"120\" />");
>>
>>So that part works fine, but when I re-render the textField, the image
>>does not show (doesn't render as HTML), it shows the literal >scr=...etc. characters in the textField (even though it is an HTML
>>textfield).  I thought maybe I needed to re-render the textfield, so I
>>left the frame and then jumped back to it, and it still shows the
>>literal HTML.  So in testing the value of the html TextField, I found
>>the <> and \" characters I inserted have been changed to encoded
>>entities in the HTML string:
>>
>><img src="mountains.jpg" width="350"
>>height="120" />
>>
>>Why is that and how can I fix this?   It would be pretty messy to use
>>the XML object to decode those entities - why are they getting
rendered
>>that way in the first place?
>>
>>Thanks,
>>
>>
>>Jason Merrill
>>Bank of America
>>Learning & Organization Effectiveness - Technology Solutions
>>
>>
>>
>>
>>
>>
>>>>-Original Message-
>>>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>>>[EMAIL PROTECTED] On Behalf Of James Booth
>>>>Sent: Tuesday, August 01, 2006 10:43 AM
>>>>To: 'Flashcoders mailing list'
>>>>Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash?
>>>>
>>>>I just did exactly this, a couple of days ago.  I created a class
that
>>can
>>>>apply any kind of supported HTML formatting.  The idea seemed
daunting
>>at
>>>>first, but the class is relatively small.  You can assign/remove
>>textfields
>>>>that it should "watch". I don't have it here with me right now, but
>>here's
>>>>the basics:
>>>>
>>>>It doesn't use replaceText at all.
>>>>
>>>>I have a switch statement for the various textformat options (some
are
>>>>Boolean (bold, italic, etc) and some have arguments (leading, size,
>>etc).
>>>>
>>>>When the textfield has focus use an interval to get the beginIndex
and
>>>>endIndex.  You can clear the interval onkillFocus.
>>>>
>>>>Then in your setFormat function
>>>>
>>>>Public function setFormat (type, arg):Void
>>>>{
>>>>var temp_fmt:TextFormat = currentField.getTextFormat(beginIndex,
>>>>endIndex);
>>>>
>>>>switch (type)
>>>>{
>>>>case "bold":
>>>>case "italic":
>>>>case "underline":
>>>>//etc...
>>>>{
>>>>temp_fmt[type] = temp_fmt[type] == false ? true
>>:
>>>>false;
>>>>break;
>>>>}
>>>>case "leading":
>>>>case "align":
>>>>case "size":
>>>>//etc...
>>>>{
>>>>temp_fmt[type] = arg;
>>>> 

Re: [Flashcoders] WSIWYG HTML text editor in Flash?

2006-08-01 Thread Marcelo Volmaro
It was developed with that in mind, but the class itself can be used as  
standalone editor (I´m already using it for some projects). You simply set  
the content by writting to the _content property of the HTMLeditor class  
and get the content by reading that property.


Currently i don´t have the time to make a component, but it should be  
really easy to create a component from what is done.
The JS file is used to replace textareas with the html file, and the  
configuration options you see are simply passed via flashvars to the  
class, so you don´t need it to make the editor works.



On Tue, 01 Aug 2006 11:56:32 -0300, Merrill, Jason  
<[EMAIL PROTECTED]> wrote:



That seems to be a flash file specifically for HTML forms and uses a
large .js file for configuration.  Could this be loaded into a Flash
file?  I mean, I know it could, but it doesn't seem like it would work
if you did, and how would you get the end string from it?

Jason Merrill
Bank of America
Learning & Organization Effectiveness - Technology Solutions


-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Marcelo Volmaro
Sent: Tuesday, August 01, 2006 10:40 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash?

http://osflash.org/flashtextarea

On Tue, 01 Aug 2006 11:35:49 -0300, Merrill, Jason
<[EMAIL PROTECTED]> wrote:


strip them out and replace with what
you need for the corresponding styles for your site


Right, if I follow you, that's similar to what I have tried, but I

can't

get the textfield to re-render the HTML tag  - it shows the tag
literally if I use replaceText() or replaceSel().

Or how would you do it?  Have a code example?  thanks.

Jason Merrill
Bank of America
Learning & Organization Effectiveness - Technology Solutions


-Original Message-
From: [EMAIL PROTECTED]

[mailto:flashcoders-

[EMAIL PROTECTED] On Behalf Of Tom Rhodes
Sent: Tuesday, August 01, 2006 10:23 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash?

i've made some simple ones for css sites, that get their copy out

of a

db. i used textformats back in the flash 6 days, then in the

output

string, once you've applied the formatting in the "editor" text

field,

you look for the textformat tags, strip them out and replace with

what

you need for the corresponding styles for your site

with 7 and the stylesheets support maybe it's even easier than

that. I

just remember having to keep things simple in terms of editor
functionality, basically one button for each possible style

Merrill, Jason wrote:

Two related questions.  In a nutshell, trying to make a WSIWYG

HTML

text

editor for Flash 7.

Question 1:

Has anyone created an HTML text editor component or class of some

kind

in Flash?  Basically, having a textfield containing a paragraph

of

text

the user can apply bold, size, font, etc. to - I assume it would

use

something like:





textfield.replaceText(Selection.getBeginIndex(),Selection.getEndIndex(),

theNewString)

or something to that effect.

So to my second question, I was able to get the above working,

but

the

html Textfield would not apply the new HTML tags, it would show

them

literally when replaceText was used.  Initially, I set the text

with

textField.htmlText = myText and renders fine with the bolding,

but

textField.replaceText() seems to not allow the textfield to show

the

bold tags applied - it shows the literal tag.   Any ideas?

Basically, would like to create a WSIWYG HTML text editor (flash

7),

but

from what I read in the archives, it's a lot harder than it

sounds

and

maybe not even possible in Flash right now, but I don't want to

give

up

too early.  It seems that all the basic methods are available,

there

are

just some quirks to work out with the Textfield class.

Thanks,

Jason Merrill
Bank of America
Learning & Organization Effectiveness - Technology Solutions


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com






--

__

Tom Rhodes - Developer / Composer
Wheelhouse Creative Ltd, 2 Albion Place,
Hammersmith, London. W6 0QT
Tel: 020 8748 4466  Fax: 020 8748 4850
www.wheelhousecreative.co.uk
__

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://trainin

RE: [Flashcoders] WSIWYG HTML text editor in Flash?

2006-08-01 Thread Merrill, Jason
That seems to be a flash file specifically for HTML forms and uses a
large .js file for configuration.  Could this be loaded into a Flash
file?  I mean, I know it could, but it doesn't seem like it would work
if you did, and how would you get the end string from it?

Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
 

>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Marcelo Volmaro
>>Sent: Tuesday, August 01, 2006 10:40 AM
>>To: Flashcoders mailing list
>>Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash?
>>
>>http://osflash.org/flashtextarea
>>
>>On Tue, 01 Aug 2006 11:35:49 -0300, Merrill, Jason
>><[EMAIL PROTECTED]> wrote:
>>
>>>>> strip them out and replace with what
>>>>> you need for the corresponding styles for your site
>>>
>>> Right, if I follow you, that's similar to what I have tried, but I
can't
>>> get the textfield to re-render the HTML tag  - it shows the tag
>>> literally if I use replaceText() or replaceSel().
>>>
>>> Or how would you do it?  Have a code example?  thanks.
>>>
>>> Jason Merrill
>>> Bank of America
>>> Learning & Organization Effectiveness - Technology Solutions
>>>
>>>>> -----Original Message-
>>>>> From: [EMAIL PROTECTED]
[mailto:flashcoders-
>>>>> [EMAIL PROTECTED] On Behalf Of Tom Rhodes
>>>>> Sent: Tuesday, August 01, 2006 10:23 AM
>>>>> To: Flashcoders mailing list
>>>>> Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash?
>>>>>
>>>>> i've made some simple ones for css sites, that get their copy out
of a
>>>>> db. i used textformats back in the flash 6 days, then in the
output
>>>>> string, once you've applied the formatting in the "editor" text
field,
>>>>> you look for the textformat tags, strip them out and replace with
what
>>>>> you need for the corresponding styles for your site
>>>>>
>>>>> with 7 and the stylesheets support maybe it's even easier than
that. I
>>>>> just remember having to keep things simple in terms of editor
>>>>> functionality, basically one button for each possible style
>>>>>
>>>>> Merrill, Jason wrote:
>>>>>> Two related questions.  In a nutshell, trying to make a WSIWYG
HTML
>>> text
>>>>>> editor for Flash 7.
>>>>>>
>>>>>> Question 1:
>>>>>>
>>>>>> Has anyone created an HTML text editor component or class of some
>>> kind
>>>>>> in Flash?  Basically, having a textfield containing a paragraph
of
>>> text
>>>>>> the user can apply bold, size, font, etc. to - I assume it would
use
>>>>>> something like:
>>>>>>
>>>>>>
>>>
textfield.replaceText(Selection.getBeginIndex(),Selection.getEndIndex(),
>>>>>> theNewString)
>>>>>>
>>>>>> or something to that effect.
>>>>>>
>>>>>> So to my second question, I was able to get the above working,
but
>>> the
>>>>>> html Textfield would not apply the new HTML tags, it would show
them
>>>>>> literally when replaceText was used.  Initially, I set the text
with
>>>>>> textField.htmlText = myText and renders fine with the bolding,
but
>>>>>> textField.replaceText() seems to not allow the textfield to show
the
>>>>>> bold tags applied - it shows the literal tag.   Any ideas?
>>>>>>
>>>>>> Basically, would like to create a WSIWYG HTML text editor (flash
7),
>>> but
>>>>>> from what I read in the archives, it's a lot harder than it
sounds
>>> and
>>>>>> maybe not even possible in Flash right now, but I don't want to
give
>>> up
>>>>>> too early.  It seems that all the basic methods are available,
there
>>> are
>>>>>> just some quirks to work out with the Textfield class.
>>>>>>
>>>>>> Thanks,
>>>>>>
>>>>>> Jason Merrill
>>>>>> Bank of America
>>>>>> Learning & Organization Effectiveness - Technology Solutions
>>>>>>
>>>>>>
>>>>>

RE: [Flashcoders] WSIWYG HTML text editor in Flash?

2006-08-01 Thread Matthew Simpson
Jason,

We found a copy of 5 on Limewire...If you fail to find one, let me know
off-list. 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: Tuesday, August 01, 2006 10:29 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash?

Haven't DevNet Resource Kits been discontinued?  If so, how would I get
my hands on that?  If not, how would I get my hands on that?  :) Thanks.

Jason Merrill
Bank of America
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
 

>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders- 
>>[EMAIL PROTECTED] On Behalf Of Adam Colpitts
>>Sent: Tuesday, August 01, 2006 10:23 AM
>>To: Flashcoders mailing list
>>Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash?
>>
>>There is a really nice Rich Text Editor component in DRK 5... not sure
if
>>you've seen this.  It's in the Flash UI Component Set 4 Update.
>>
>>On 8/1/06, Merrill, Jason <[EMAIL PROTECTED]> wrote:
>>>
>>> Two related questions.  In a nutshell, trying to make a WSIWYG HTML
text
>>> editor for Flash 7.
>>>
>>> Question 1:
>>>
>>> Has anyone created an HTML text editor component or class of some
kind
>>> in Flash?  Basically, having a textfield containing a paragraph of
text
>>> the user can apply bold, size, font, etc. to - I assume it would use

>>> something like:
>>>
>>>
textfield.replaceText(Selection.getBeginIndex(),Selection.getEndIndex(),
>>> theNewString)
>>>
>>> or something to that effect.
>>>
>>> So to my second question, I was able to get the above working, but
the
>>> html Textfield would not apply the new HTML tags, it would show them

>>> literally when replaceText was used.  Initially, I set the text with

>>> textField.htmlText = myText and renders fine with the bolding, but
>>> textField.replaceText() seems to not allow the textfield to show the
>>> bold tags applied - it shows the literal tag.   Any ideas?
>>>
>>> Basically, would like to create a WSIWYG HTML text editor (flash 7),
but
>>> from what I read in the archives, it's a lot harder than it sounds
and
>>> maybe not even possible in Flash right now, but I don't want to give
up
>>> too early.  It seems that all the basic methods are available, there
are
>>> just some quirks to work out with the Textfield class.
>>>
>>> Thanks,
>>>
>>> Jason Merrill
>>> Bank of America
>>> Learning & Organization Effectiveness - Technology Solutions
>>>
>>>
>>> ___
>>> Flashcoders@chattyfig.figleaf.com
>>> To change your subscription options or search the archive:
>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>>
>>> Brought to you by Fig Leaf Software
>>> Premier Authorized Adobe Consulting and Training 
>>> http://www.figleaf.com http://training.figleaf.com
>>>
>>___
>>Flashcoders@chattyfig.figleaf.com
>>To change your subscription options or search the archive:
>>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>>Brought to you by Fig Leaf Software
>>Premier Authorized Adobe Consulting and Training 
>>http://www.figleaf.com http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] WSIWYG HTML text editor in Flash?

2006-08-01 Thread James Booth
I just did exactly this, a couple of days ago.  I created a class that can
apply any kind of supported HTML formatting.  The idea seemed daunting at
first, but the class is relatively small.  You can assign/remove textfields
that it should "watch". I don't have it here with me right now, but here's
the basics:

It doesn't use replaceText at all.

I have a switch statement for the various textformat options (some are
Boolean (bold, italic, etc) and some have arguments (leading, size, etc).

When the textfield has focus use an interval to get the beginIndex and
endIndex.  You can clear the interval onkillFocus.

Then in your setFormat function

Public function setFormat (type, arg):Void
{
var temp_fmt:TextFormat = currentField.getTextFormat(beginIndex,
endIndex);

switch (type)
{
case "bold":
case "italic":
case "underline":
//etc...
{
temp_fmt[type] = temp_fmt[type] == false ? true :
false;
break;
}
case "leading":
case "align":
case "size":
//etc...
{
temp_fmt[type] = arg;
break;
}
}
currentField.setTextFormat(beginIndex, endIndex, temp_fmt);
}

This should give you a head start.

- James 


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: Tuesday, August 01, 2006 10:11 AM
To: Flashcoders mailing list
Subject: [Flashcoders] WSIWYG HTML text editor in Flash?

Two related questions.  In a nutshell, trying to make a WSIWYG HTML text
editor for Flash 7.   

Question 1:

Has anyone created an HTML text editor component or class of some kind
in Flash?  Basically, having a textfield containing a paragraph of text
the user can apply bold, size, font, etc. to - I assume it would use
something like:

textfield.replaceText(Selection.getBeginIndex(),Selection.getEndIndex(),
theNewString) 

or something to that effect.  

So to my second question, I was able to get the above working, but the
html Textfield would not apply the new HTML tags, it would show them
literally when replaceText was used.  Initially, I set the text with
textField.htmlText = myText and renders fine with the bolding, but
textField.replaceText() seems to not allow the textfield to show the
bold tags applied - it shows the literal tag.   Any ideas?

Basically, would like to create a WSIWYG HTML text editor (flash 7), but
from what I read in the archives, it's a lot harder than it sounds and
maybe not even possible in Flash right now, but I don't want to give up
too early.  It seems that all the basic methods are available, there are
just some quirks to work out with the Textfield class. 

Thanks,

Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 
 
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] WSIWYG HTML text editor in Flash?

2006-08-01 Thread Marcelo Volmaro

http://osflash.org/flashtextarea

On Tue, 01 Aug 2006 11:35:49 -0300, Merrill, Jason  
<[EMAIL PROTECTED]> wrote:



strip them out and replace with what
you need for the corresponding styles for your site


Right, if I follow you, that's similar to what I have tried, but I can't
get the textfield to re-render the HTML tag  - it shows the tag
literally if I use replaceText() or replaceSel().

Or how would you do it?  Have a code example?  thanks.

Jason Merrill
Bank of America
Learning & Organization Effectiveness - Technology Solutions


-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Tom Rhodes
Sent: Tuesday, August 01, 2006 10:23 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash?

i've made some simple ones for css sites, that get their copy out of a
db. i used textformats back in the flash 6 days, then in the output
string, once you've applied the formatting in the "editor" text field,
you look for the textformat tags, strip them out and replace with what
you need for the corresponding styles for your site

with 7 and the stylesheets support maybe it's even easier than that. I
just remember having to keep things simple in terms of editor
functionality, basically one button for each possible style

Merrill, Jason wrote:

Two related questions.  In a nutshell, trying to make a WSIWYG HTML

text

editor for Flash 7.

Question 1:

Has anyone created an HTML text editor component or class of some

kind

in Flash?  Basically, having a textfield containing a paragraph of

text

the user can apply bold, size, font, etc. to - I assume it would use
something like:



textfield.replaceText(Selection.getBeginIndex(),Selection.getEndIndex(),

theNewString)

or something to that effect.

So to my second question, I was able to get the above working, but

the

html Textfield would not apply the new HTML tags, it would show them
literally when replaceText was used.  Initially, I set the text with
textField.htmlText = myText and renders fine with the bolding, but
textField.replaceText() seems to not allow the textfield to show the
bold tags applied - it shows the literal tag.   Any ideas?

Basically, would like to create a WSIWYG HTML text editor (flash 7),

but

from what I read in the archives, it's a lot harder than it sounds

and

maybe not even possible in Flash right now, but I don't want to give

up

too early.  It seems that all the basic methods are available, there

are

just some quirks to work out with the Textfield class.

Thanks,

Jason Merrill
Bank of America
Learning & Organization Effectiveness - Technology Solutions


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com






--

__

Tom Rhodes - Developer / Composer
Wheelhouse Creative Ltd, 2 Albion Place,
Hammersmith, London. W6 0QT
Tel: 020 8748 4466  Fax: 020 8748 4850
www.wheelhousecreative.co.uk
__

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




--
_
Marcelo Volmaro
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] WSIWYG HTML text editor in Flash?

2006-08-01 Thread Merrill, Jason
Ah - I gotcha - I'll try that.  I see what Tom was saying now.  Thanks
all..

Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
 

>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Giles Taylor
>>Sent: Tuesday, August 01, 2006 10:25 AM
>>To: Flashcoders mailing list
>>Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash?
>>
>>You want to be using the TextFormat class. If you use it on an
>>htmlTextField then flash does all the html coding for you; much
easier!
>>
>>Giles
>>
>>-Original Message-
>>From: [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED] On Behalf Of
Merrill,
>>Jason
>>Sent: 01 August 2006 15:11
>>To: Flashcoders mailing list
>>Subject: [Flashcoders] WSIWYG HTML text editor in Flash?
>>
>>Two related questions.  In a nutshell, trying to make a WSIWYG HTML
text
>>editor for Flash 7.
>>
>>Question 1:
>>
>>Has anyone created an HTML text editor component or class of some kind
>>in Flash?  Basically, having a textfield containing a paragraph of
text
>>the user can apply bold, size, font, etc. to - I assume it would use
>>something like:
>>
>>textfield.replaceText(Selection.getBeginIndex(),Selection.getEndIndex(
),
>>theNewString)
>>
>>or something to that effect.
>>
>>So to my second question, I was able to get the above working, but the
>>html Textfield would not apply the new HTML tags, it would show them
>>literally when replaceText was used.  Initially, I set the text with
>>textField.htmlText = myText and renders fine with the bolding, but
>>textField.replaceText() seems to not allow the textfield to show the
>>bold tags applied - it shows the literal tag.   Any ideas?
>>
>>Basically, would like to create a WSIWYG HTML text editor (flash 7),
but
>>from what I read in the archives, it's a lot harder than it sounds and
>>maybe not even possible in Flash right now, but I don't want to give
up
>>too early.  It seems that all the basic methods are available, there
are
>>just some quirks to work out with the Textfield class.
>>
>>Thanks,
>>
>>Jason Merrill
>>Bank of America
>>Learning & Organization Effectiveness - Technology Solutions
>>
>>
>>___
>>Flashcoders@chattyfig.figleaf.com
>>To change your subscription options or search the archive:
>>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>>Brought to you by Fig Leaf Software
>>Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
>>http://training.figleaf.com
>>___
>>Flashcoders@chattyfig.figleaf.com
>>To change your subscription options or search the archive:
>>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>>Brought to you by Fig Leaf Software
>>Premier Authorized Adobe Consulting and Training
>>http://www.figleaf.com
>>http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] WSIWYG HTML text editor in Flash?

2006-08-01 Thread Merrill, Jason
>> strip them out and replace with what
>>you need for the corresponding styles for your site

Right, if I follow you, that's similar to what I have tried, but I can't
get the textfield to re-render the HTML tag  - it shows the tag
literally if I use replaceText() or replaceSel().

Or how would you do it?  Have a code example?  thanks. 

Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
 

>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Tom Rhodes
>>Sent: Tuesday, August 01, 2006 10:23 AM
>>To: Flashcoders mailing list
>>Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash?
>>
>>i've made some simple ones for css sites, that get their copy out of a
>>db. i used textformats back in the flash 6 days, then in the output
>>string, once you've applied the formatting in the "editor" text field,
>>you look for the textformat tags, strip them out and replace with what
>>you need for the corresponding styles for your site
>>
>>with 7 and the stylesheets support maybe it's even easier than that. I
>>just remember having to keep things simple in terms of editor
>>functionality, basically one button for each possible style
>>
>>Merrill, Jason wrote:
>>> Two related questions.  In a nutshell, trying to make a WSIWYG HTML
text
>>> editor for Flash 7.
>>>
>>> Question 1:
>>>
>>> Has anyone created an HTML text editor component or class of some
kind
>>> in Flash?  Basically, having a textfield containing a paragraph of
text
>>> the user can apply bold, size, font, etc. to - I assume it would use
>>> something like:
>>>
>>>
textfield.replaceText(Selection.getBeginIndex(),Selection.getEndIndex(),
>>> theNewString)
>>>
>>> or something to that effect.
>>>
>>> So to my second question, I was able to get the above working, but
the
>>> html Textfield would not apply the new HTML tags, it would show them
>>> literally when replaceText was used.  Initially, I set the text with
>>> textField.htmlText = myText and renders fine with the bolding, but
>>> textField.replaceText() seems to not allow the textfield to show the
>>> bold tags applied - it shows the literal tag.   Any ideas?
>>>
>>> Basically, would like to create a WSIWYG HTML text editor (flash 7),
but
>>> from what I read in the archives, it's a lot harder than it sounds
and
>>> maybe not even possible in Flash right now, but I don't want to give
up
>>> too early.  It seems that all the basic methods are available, there
are
>>> just some quirks to work out with the Textfield class.
>>>
>>> Thanks,
>>>
>>> Jason Merrill
>>> Bank of America
>>> Learning & Organization Effectiveness - Technology Solutions
>>>
>>>
>>> ___
>>> Flashcoders@chattyfig.figleaf.com
>>> To change your subscription options or search the archive:
>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>>
>>> Brought to you by Fig Leaf Software
>>> Premier Authorized Adobe Consulting and Training
>>> http://www.figleaf.com
>>> http://training.figleaf.com
>>>
>>>
>>>
>>
>>
>>--
>>
>>__
>>
>>Tom Rhodes - Developer / Composer
>>Wheelhouse Creative Ltd, 2 Albion Place,
>>Hammersmith, London. W6 0QT
>>Tel: 020 8748 4466  Fax: 020 8748 4850
>>www.wheelhousecreative.co.uk
>>__
>>
>>___
>>Flashcoders@chattyfig.figleaf.com
>>To change your subscription options or search the archive:
>>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>>Brought to you by Fig Leaf Software
>>Premier Authorized Adobe Consulting and Training
>>http://www.figleaf.com
>>http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] WSIWYG HTML text editor in Flash?

2006-08-01 Thread Merrill, Jason
Haven't DevNet Resource Kits been discontinued?  If so, how would I get
my hands on that?  If not, how would I get my hands on that?  :) Thanks.

Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
 

>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Adam Colpitts
>>Sent: Tuesday, August 01, 2006 10:23 AM
>>To: Flashcoders mailing list
>>Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash?
>>
>>There is a really nice Rich Text Editor component in DRK 5... not sure
if
>>you've seen this.  It's in the Flash UI Component Set 4 Update.
>>
>>On 8/1/06, Merrill, Jason <[EMAIL PROTECTED]> wrote:
>>>
>>> Two related questions.  In a nutshell, trying to make a WSIWYG HTML
text
>>> editor for Flash 7.
>>>
>>> Question 1:
>>>
>>> Has anyone created an HTML text editor component or class of some
kind
>>> in Flash?  Basically, having a textfield containing a paragraph of
text
>>> the user can apply bold, size, font, etc. to - I assume it would use
>>> something like:
>>>
>>>
textfield.replaceText(Selection.getBeginIndex(),Selection.getEndIndex(),
>>> theNewString)
>>>
>>> or something to that effect.
>>>
>>> So to my second question, I was able to get the above working, but
the
>>> html Textfield would not apply the new HTML tags, it would show them
>>> literally when replaceText was used.  Initially, I set the text with
>>> textField.htmlText = myText and renders fine with the bolding, but
>>> textField.replaceText() seems to not allow the textfield to show the
>>> bold tags applied - it shows the literal tag.   Any ideas?
>>>
>>> Basically, would like to create a WSIWYG HTML text editor (flash 7),
but
>>> from what I read in the archives, it's a lot harder than it sounds
and
>>> maybe not even possible in Flash right now, but I don't want to give
up
>>> too early.  It seems that all the basic methods are available, there
are
>>> just some quirks to work out with the Textfield class.
>>>
>>> Thanks,
>>>
>>> Jason Merrill
>>> Bank of America
>>> Learning & Organization Effectiveness - Technology Solutions
>>>
>>>
>>> ___
>>> Flashcoders@chattyfig.figleaf.com
>>> To change your subscription options or search the archive:
>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>>
>>> Brought to you by Fig Leaf Software
>>> Premier Authorized Adobe Consulting and Training
>>> http://www.figleaf.com
>>> http://training.figleaf.com
>>>
>>___
>>Flashcoders@chattyfig.figleaf.com
>>To change your subscription options or search the archive:
>>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>>Brought to you by Fig Leaf Software
>>Premier Authorized Adobe Consulting and Training
>>http://www.figleaf.com
>>http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] WSIWYG HTML text editor in Flash?

2006-08-01 Thread Giles Taylor
You want to be using the TextFormat class. If you use it on an
htmlTextField then flash does all the html coding for you; much easier!

Giles

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: 01 August 2006 15:11
To: Flashcoders mailing list
Subject: [Flashcoders] WSIWYG HTML text editor in Flash?

Two related questions.  In a nutshell, trying to make a WSIWYG HTML text
editor for Flash 7.   

Question 1:

Has anyone created an HTML text editor component or class of some kind
in Flash?  Basically, having a textfield containing a paragraph of text
the user can apply bold, size, font, etc. to - I assume it would use
something like:

textfield.replaceText(Selection.getBeginIndex(),Selection.getEndIndex(),
theNewString) 

or something to that effect.  

So to my second question, I was able to get the above working, but the
html Textfield would not apply the new HTML tags, it would show them
literally when replaceText was used.  Initially, I set the text with
textField.htmlText = myText and renders fine with the bolding, but
textField.replaceText() seems to not allow the textfield to show the
bold tags applied - it shows the literal tag.   Any ideas?

Basically, would like to create a WSIWYG HTML text editor (flash 7), but
from what I read in the archives, it's a lot harder than it sounds and
maybe not even possible in Flash right now, but I don't want to give up
too early.  It seems that all the basic methods are available, there are
just some quirks to work out with the Textfield class. 

Thanks,

Jason Merrill
Bank of America
Learning & Organization Effectiveness - Technology Solutions 
 
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] WSIWYG HTML text editor in Flash?

2006-08-01 Thread Tom Rhodes
i've made some simple ones for css sites, that get their copy out of a 
db. i used textformats back in the flash 6 days, then in the output 
string, once you've applied the formatting in the "editor" text field, 
you look for the textformat tags, strip them out and replace with what 
you need for the corresponding styles for your site


with 7 and the stylesheets support maybe it's even easier than that. I 
just remember having to keep things simple in terms of editor 
functionality, basically one button for each possible style


Merrill, Jason wrote:

Two related questions.  In a nutshell, trying to make a WSIWYG HTML text
editor for Flash 7.   


Question 1:

Has anyone created an HTML text editor component or class of some kind
in Flash?  Basically, having a textfield containing a paragraph of text
the user can apply bold, size, font, etc. to - I assume it would use
something like:

textfield.replaceText(Selection.getBeginIndex(),Selection.getEndIndex(),
theNewString) 

or something to that effect.  


So to my second question, I was able to get the above working, but the
html Textfield would not apply the new HTML tags, it would show them
literally when replaceText was used.  Initially, I set the text with
textField.htmlText = myText and renders fine with the bolding, but
textField.replaceText() seems to not allow the textfield to show the
bold tags applied - it shows the literal tag.   Any ideas?

Basically, would like to create a WSIWYG HTML text editor (flash 7), but
from what I read in the archives, it's a lot harder than it sounds and
maybe not even possible in Flash right now, but I don't want to give up
too early.  It seems that all the basic methods are available, there are
just some quirks to work out with the Textfield class. 


Thanks,

Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 
 
 
___

Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


  



--

__

Tom Rhodes - Developer / Composer
Wheelhouse Creative Ltd, 2 Albion Place,
Hammersmith, London. W6 0QT
Tel: 020 8748 4466  Fax: 020 8748 4850
www.wheelhousecreative.co.uk
__

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] WSIWYG HTML text editor in Flash?

2006-08-01 Thread Adam Colpitts

There is a really nice Rich Text Editor component in DRK 5... not sure if
you've seen this.  It's in the Flash UI Component Set 4 Update.

On 8/1/06, Merrill, Jason <[EMAIL PROTECTED]> wrote:


Two related questions.  In a nutshell, trying to make a WSIWYG HTML text
editor for Flash 7.

Question 1:

Has anyone created an HTML text editor component or class of some kind
in Flash?  Basically, having a textfield containing a paragraph of text
the user can apply bold, size, font, etc. to - I assume it would use
something like:

textfield.replaceText(Selection.getBeginIndex(),Selection.getEndIndex(),
theNewString)

or something to that effect.

So to my second question, I was able to get the above working, but the
html Textfield would not apply the new HTML tags, it would show them
literally when replaceText was used.  Initially, I set the text with
textField.htmlText = myText and renders fine with the bolding, but
textField.replaceText() seems to not allow the textfield to show the
bold tags applied - it shows the literal tag.   Any ideas?

Basically, would like to create a WSIWYG HTML text editor (flash 7), but
from what I read in the archives, it's a lot harder than it sounds and
maybe not even possible in Flash right now, but I don't want to give up
too early.  It seems that all the basic methods are available, there are
just some quirks to work out with the Textfield class.

Thanks,

Jason Merrill
Bank of America
Learning & Organization Effectiveness - Technology Solutions


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com