Re: [Flashcoders] Textarea

2008-09-26 Thread David Rogers

Two suggestions:

1) It's a bit extreme but in the end I think it would work.  Use the  
BitmapData Class to collect the image data, then use it to add  
additional transparent pixels to the left or right making the total  
width of the image the same width of your text field.  You then must  
use something like the PNGEncoder class to save it as a PNG and save  
it to a server using AMFPHP.  Make sure your .htmlText references this  
file directory and file name. Tthe transparent pixels should push the  
text below the image.


Here is the link to the PNGEncoder class:

http://www.5etdemi.com/blog/archives/2006/12/as3-png-encoder-faster-better/

2) You could do all that but I would be more inclined to have the text  
field and picture be separate and have textfield's .y and .height  
properties adjust dynamically to the bitmap data of the dynamic image.




On Sep 26, 2008, at 8:56 AM, Lehr, Theodore M (N-SGIS) wrote:


I have a textarea that I am filling with an image followed by text - I
want the text to appear under the image but I can not figure out how  
to
get a hard return in after the image - I could do a bunch of br/'s  
but

it will be dynamic so there is no telling how big the image will be -
any ideas?

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Textarea

2008-09-26 Thread Lehr, Theodore M (N-SGIS)
1 sounds a little more involved than I want to get... 2 was my first
approach, but I end up with a (vertically speaking) very small scrolling
textfield - and it just does not look good - so my goal was to mimic a
div with an overflow of auto where the whole thing (image and text)
scrolls

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David
Rogers
Sent: Friday, September 26, 2008 10:27 AM
To: Flash Coders List
Subject: Re: [Flashcoders] Textarea

Two suggestions:

1) It's a bit extreme but in the end I think it would work.  Use the  
BitmapData Class to collect the image data, then use it to add  
additional transparent pixels to the left or right making the total  
width of the image the same width of your text field.  You then must  
use something like the PNGEncoder class to save it as a PNG and save  
it to a server using AMFPHP.  Make sure your .htmlText references this  
file directory and file name. Tthe transparent pixels should push the  
text below the image.

Here is the link to the PNGEncoder class:

http://www.5etdemi.com/blog/archives/2006/12/as3-png-encoder-faster-bett
er/

2) You could do all that but I would be more inclined to have the text  
field and picture be separate and have textfield's .y and .height  
properties adjust dynamically to the bitmap data of the dynamic image.



On Sep 26, 2008, at 8:56 AM, Lehr, Theodore M (N-SGIS) wrote:

 I have a textarea that I am filling with an image followed by text - I
 want the text to appear under the image but I can not figure out how  
 to
 get a hard return in after the image - I could do a bunch of br/'s  
 but
 it will be dynamic so there is no telling how big the image will be -
 any ideas?

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Textarea

2008-09-26 Thread sebastian
If both the text and the image need to scroll, put both of them in a MC 
that is itself scrollable and remove the scrolling from the nested text 
field.


Lehr, Theodore M (N-SGIS) wrote:

1 sounds a little more involved than I want to get... 2 was my first
approach, but I end up with a (vertically speaking) very small scrolling
textfield - and it just does not look good - so my goal was to mimic a
div with an overflow of auto where the whole thing (image and text)
scrolls

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David
Rogers
Sent: Friday, September 26, 2008 10:27 AM
To: Flash Coders List
Subject: Re: [Flashcoders] Textarea

Two suggestions:

1) It's a bit extreme but in the end I think it would work.  Use the  
BitmapData Class to collect the image data, then use it to add  
additional transparent pixels to the left or right making the total  
width of the image the same width of your text field.  You then must  
use something like the PNGEncoder class to save it as a PNG and save  
it to a server using AMFPHP.  Make sure your .htmlText references this  
file directory and file name. Tthe transparent pixels should push the  
text below the image.


Here is the link to the PNGEncoder class:

http://www.5etdemi.com/blog/archives/2006/12/as3-png-encoder-faster-bett
er/

2) You could do all that but I would be more inclined to have the text  
field and picture be separate and have textfield's .y and .height  
properties adjust dynamically to the bitmap data of the dynamic image.




On Sep 26, 2008, at 8:56 AM, Lehr, Theodore M (N-SGIS) wrote:


I have a textarea that I am filling with an image followed by text - I
want the text to appear under the image but I can not figure out how  
to
get a hard return in after the image - I could do a bunch of br/'s  
but

it will be dynamic so there is no telling how big the image will be -
any ideas?

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] TextArea class properties

2008-09-09 Thread Merrill, Jason
Have you tried selectable = false?

Jason Merrill 
Bank of America 
Enterprise Technology  Global Risk LLD 
Instructional Technology  Media

Join the Bank of America Flash Platform Developer Community 

Are you a Bank of America associate interested in innovative learning
ideas and technologies?
Check out our internal  Innovative Learning Blog  subscribe. 


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] TextArea class properties

2008-09-09 Thread Lehr, Theodore M (N-SGIS)
Yeah - didn't seem to affect anything


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: Tuesday, September 09, 2008 12:06 PM
To: Flash Coders List
Subject: RE: [Flashcoders] TextArea class properties

Have you tried selectable = false?

Jason Merrill 
Bank of America 
Enterprise Technology  Global Risk LLD 
Instructional Technology  Media

Join the Bank of America Flash Platform Developer Community 

Are you a Bank of America associate interested in innovative learning
ideas and technologies?
Check out our internal  Innovative Learning Blog  subscribe. 


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] TextArea class properties

2008-09-09 Thread eric e. dolecki
Sounds like its a focus UI thing. You may need to turn that bit off.
Eric

On Tue, Sep 9, 2008 at 12:09 PM, Lehr, Theodore M (N-SGIS) 
[EMAIL PROTECTED] wrote:

 Yeah - didn't seem to affect anything


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
 Jason
 Sent: Tuesday, September 09, 2008 12:06 PM
 To: Flash Coders List
 Subject: RE: [Flashcoders] TextArea class properties

 Have you tried selectable = false?

 Jason Merrill
 Bank of America
 Enterprise Technology  Global Risk LLD
 Instructional Technology  Media

 Join the Bank of America Flash Platform Developer Community

 Are you a Bank of America associate interested in innovative learning
 ideas and technologies?
 Check out our internal  Innovative Learning Blog  subscribe.


 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] TextArea class properties

2008-09-09 Thread Jon Bradley

On Sep 9, 2008, at 12:05 PM, Merrill, Jason wrote:


Have you tried selectable = false?


I think it might be:

textAreaInstance.enabled = false;

Getting rid of the focus rect is generally a separate issue though,  
but when the component 'enabled' property is set to false, the focus  
rect shouldn't show.


- jon


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] TextArea class properties

2008-09-09 Thread Lehr, Theodore M (N-SGIS)
Beauty - this works - but it is graying out my text - how can I maintain
the same text color when it is disabled... is there a style that is
applicable?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jon
Bradley
Sent: Tuesday, September 09, 2008 12:35 PM
To: Flash Coders List
Subject: Re: [Flashcoders] TextArea class properties

On Sep 9, 2008, at 12:05 PM, Merrill, Jason wrote:

 Have you tried selectable = false?

I think it might be:

textAreaInstance.enabled = false;

Getting rid of the focus rect is generally a separate issue though,  
but when the component 'enabled' property is set to false, the focus  
rect shouldn't show.

- jon


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] TextArea class properties

2008-09-09 Thread Ian Thomas
Try the style 'disabledColor'.
The docs are here:
http://livedocs.adobe.com/flex/3/langref/mx/controls/TextArea.html

Ian

On Tue, Sep 9, 2008 at 5:41 PM, Lehr, Theodore M (N-SGIS) 
[EMAIL PROTECTED] wrote:

 Beauty - this works - but it is graying out my text - how can I maintain
 the same text color when it is disabled... is there a style that is
 applicable?

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Jon
 Bradley
 Sent: Tuesday, September 09, 2008 12:35 PM
 To: Flash Coders List
 Subject: Re: [Flashcoders] TextArea class properties

 On Sep 9, 2008, at 12:05 PM, Merrill, Jason wrote:

  Have you tried selectable = false?

 I think it might be:

 textAreaInstance.enabled = false;

 Getting rid of the focus rect is generally a separate issue though,
 but when the component 'enabled' property is set to false, the focus
 rect shouldn't show.

 - jon


 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] TextArea class properties

2008-09-09 Thread eric e. dolecki
Sounds like you need to disable the focusRect thing in addition to
.selectable = false;

On Tue, Sep 9, 2008 at 12:41 PM, Lehr, Theodore M (N-SGIS) 
[EMAIL PROTECTED] wrote:

 Beauty - this works - but it is graying out my text - how can I maintain
 the same text color when it is disabled... is there a style that is
 applicable?

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Jon
 Bradley
 Sent: Tuesday, September 09, 2008 12:35 PM
 To: Flash Coders List
 Subject: Re: [Flashcoders] TextArea class properties

 On Sep 9, 2008, at 12:05 PM, Merrill, Jason wrote:

  Have you tried selectable = false?

 I think it might be:

 textAreaInstance.enabled = false;

 Getting rid of the focus rect is generally a separate issue though,
 but when the component 'enabled' property is set to false, the focus
 rect shouldn't show.

 - jon


 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] TextArea class properties

2008-09-09 Thread Lehr, Theodore M (N-SGIS)
Beauty - thanks all

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ian
Thomas
Sent: Tuesday, September 09, 2008 12:48 PM
To: Flash Coders List
Subject: Re: [Flashcoders] TextArea class properties

Try the style 'disabledColor'.
The docs are here:
http://livedocs.adobe.com/flex/3/langref/mx/controls/TextArea.html

Ian

On Tue, Sep 9, 2008 at 5:41 PM, Lehr, Theodore M (N-SGIS) 
[EMAIL PROTECTED] wrote:

 Beauty - this works - but it is graying out my text - how can I
maintain
 the same text color when it is disabled... is there a style that is
 applicable?

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Jon
 Bradley
 Sent: Tuesday, September 09, 2008 12:35 PM
 To: Flash Coders List
 Subject: Re: [Flashcoders] TextArea class properties

 On Sep 9, 2008, at 12:05 PM, Merrill, Jason wrote:

  Have you tried selectable = false?

 I think it might be:

 textAreaInstance.enabled = false;

 Getting rid of the focus rect is generally a separate issue though,
 but when the component 'enabled' property is set to false, the focus
 rect shouldn't show.

 - jon


 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] textarea and transparent background

2008-09-05 Thread Cor
Try textArea.setStyle(backgroundColor,0x00cc);

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Lehr,
Theodore M (N-SGIS)
Sent: vrijdag 5 september 2008 17:08
To: Flash Coders List
Subject: [Flashcoders] textarea and transparent background

I am changing the background color of a textarea via:

textArea.setStyle(backgroundColor,0xcc);

What I am wondering is if I can make it transparent?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] textarea and transparent background

2008-09-05 Thread Lehr, Theodore M (N-SGIS)
Thanks for the suggestion, but no dice

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Cor
Sent: Friday, September 05, 2008 11:15 AM
To: 'Flash Coders List'
Subject: RE: [Flashcoders] textarea and transparent background

Try textArea.setStyle(backgroundColor,0x00cc);

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Lehr,
Theodore M (N-SGIS)
Sent: vrijdag 5 september 2008 17:08
To: Flash Coders List
Subject: [Flashcoders] textarea and transparent background

I am changing the background color of a textarea via:

textArea.setStyle(backgroundColor,0xcc);

What I am wondering is if I can make it transparent?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] textarea and transparent background

2008-09-05 Thread Glen Pike

Hi,

   I am thinking that if you don't set a style, your text area will be 
transparent.  Although you might be able to specify none or 
transparent as a style - check the doc's for styling the component.


   Glen

Lehr, Theodore M (N-SGIS) wrote:

I am changing the background color of a textarea via:

textArea.setStyle(backgroundColor,0xcc);

What I am wondering is if I can make it transparent?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


  


--

Glen Pike
01326 218440
www.glenpike.co.uk http://www.glenpike.co.uk

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] textarea and transparent background

2008-09-05 Thread Lehr, Theodore M (N-SGIS)
Thanks- it seems to be white by default - I'll try your suggestions -
I've been searching the docs and the web...

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Glen
Pike
Sent: Friday, September 05, 2008 11:23 AM
To: Flash Coders List
Subject: Re: [Flashcoders] textarea and transparent background

Hi,

I am thinking that if you don't set a style, your text area will be 
transparent.  Although you might be able to specify none or 
transparent as a style - check the doc's for styling the component.

Glen

Lehr, Theodore M (N-SGIS) wrote:
 I am changing the background color of a textarea via:

 textArea.setStyle(backgroundColor,0xcc);

 What I am wondering is if I can make it transparent?
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


   

-- 

Glen Pike
01326 218440
www.glenpike.co.uk http://www.glenpike.co.uk

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] textarea and transparent background

2008-09-05 Thread Lehr, Theodore M (N-SGIS)
Thanks - finally found it in the docs:

// Give all TextArea components transparent backgrounds.
_global.styles.TextArea.backgroundColor = undefined;

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Lehr,
Theodore M (N-SGIS)
Sent: Friday, September 05, 2008 11:35 AM
To: Flash Coders List
Subject: RE: [Flashcoders] textarea and transparent background

Thanks- it seems to be white by default - I'll try your suggestions -
I've been searching the docs and the web...

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Glen
Pike
Sent: Friday, September 05, 2008 11:23 AM
To: Flash Coders List
Subject: Re: [Flashcoders] textarea and transparent background

Hi,

I am thinking that if you don't set a style, your text area will be 
transparent.  Although you might be able to specify none or 
transparent as a style - check the doc's for styling the component.

Glen

Lehr, Theodore M (N-SGIS) wrote:
 I am changing the background color of a textarea via:

 textArea.setStyle(backgroundColor,0xcc);

 What I am wondering is if I can make it transparent?
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


   

-- 

Glen Pike
01326 218440
www.glenpike.co.uk http://www.glenpike.co.uk

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] textArea doesn't scroll far enough

2007-05-24 Thread Muzak
try calling invalidate on the component instance after setting/changing the 
text:

UIObject.invalidate()
http://livedocs.macromedia.com/flash/8/main/4199.html

regards,
Muzak

- Original Message - 
From: Allandt Bik-Elliott (Receptacle) [EMAIL PROTECTED]
To: flashcoders flashcoders@chattyfig.figleaf.com
Sent: Thursday, May 24, 2007 6:30 PM
Subject: [Flashcoders] textArea doesn't scroll far enough


 gah - not my day today

 i've got my textArea loading up a bunch of text from a string, from  an array 
 loaded from an xml file (erk), but the scrollbars 
 for the  component don't scroll far enough (either the bar or the arrows) -  
 i've dragged down the text with my cursor and the 
 extra lines are there.

 does anyone with any experience of using these components know of any  reason 
 this might happen?


___
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] textArea doesn't scroll far enough

2007-05-24 Thread David Ngo
I've run into this issue before as well. My (hackish) work-around was to
create an empty MovieClip right after the text, set its alpha to 0, set its
height to like, 50 or some arbitrary number to force the scrollbars to
scroll beyond the text. Very hackish and not the best solution, but I had to
get it working right then and there so


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Allandt
Bik-Elliott (Receptacle)
Sent: Thursday, May 24, 2007 12:30 PM
To: flashcoders
Subject: [Flashcoders] textArea doesn't scroll far enough

gah - not my day today

i've got my textArea loading up a bunch of text from a string, from  
an array loaded from an xml file (erk), but the scrollbars for the  
component don't scroll far enough (either the bar or the arrows) -  
i've dragged down the text with my cursor and the extra lines are there.

does anyone with any experience of using these components know of any  
reason this might happen?
___
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] textArea doesn't scroll far enough

2007-05-24 Thread Allandt Bik-Elliott (Receptacle)
yeh i've had to do something a bit hackish - a bunch of br / tags  
at the end of my script


it's not pretty but it is working

i tried that .invalidate() method but it didn't seem to do anything

thanks for the input, guys



On 24 May 2007, at 18:44, David Ngo wrote:

I've run into this issue before as well. My (hackish) work-around  
was to
create an empty MovieClip right after the text, set its alpha to 0,  
set its

height to like, 50 or some arbitrary number to force the scrollbars to
scroll beyond the text. Very hackish and not the best solution, but  
I had to

get it working right then and there so


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

Bik-Elliott (Receptacle)
Sent: Thursday, May 24, 2007 12:30 PM
To: flashcoders
Subject: [Flashcoders] textArea doesn't scroll far enough

gah - not my day today

i've got my textArea loading up a bunch of text from a string, from
an array loaded from an xml file (erk), but the scrollbars for the
component don't scroll far enough (either the bar or the arrows) -
i've dragged down the text with my cursor and the extra lines are  
there.


does anyone with any experience of using these components know of any
reason this might happen?
___
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] textArea doesn't scroll far enough

2007-05-24 Thread Marc Hoffman

I've just added a couple of line breaks to the xml text:

myTextField.htmlText = theXmlText + BRBRBR;

Hackish, but easy to implement.

At 10:44 AM 5/24/2007, you wrote:

I've run into this issue before as well. My (hackish) work-around was to
create an empty MovieClip right after the text, set its alpha to 0, set its
height to like, 50 or some arbitrary number to force the scrollbars to
scroll beyond the text. Very hackish and not the best solution, but I had to
get it working right then and there so


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Allandt
Bik-Elliott (Receptacle)
Sent: Thursday, May 24, 2007 12:30 PM
To: flashcoders
Subject: [Flashcoders] textArea doesn't scroll far enough

gah - not my day today

i've got my textArea loading up a bunch of text from a string, from
an array loaded from an xml file (erk), but the scrollbars for the
component don't scroll far enough (either the bar or the arrows) -
i've dragged down the text with my cursor and the extra lines are there.

does anyone with any experience of using these components know of any
reason this might happen?
___
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] textArea doesn't scroll far enough

2007-05-24 Thread nelson ramirez

my solution?
I don't use the crappy v2 components.
Adobe V2 components = the devil.

Believe me when i say it will be time well spent to create or find your own
solution.



On 5/24/07, Marc Hoffman [EMAIL PROTECTED] wrote:


I've just added a couple of line breaks to the xml text:

myTextField.htmlText = theXmlText + BRBRBR;

Hackish, but easy to implement.

At 10:44 AM 5/24/2007, you wrote:
I've run into this issue before as well. My (hackish) work-around was to
create an empty MovieClip right after the text, set its alpha to 0, set
its
height to like, 50 or some arbitrary number to force the scrollbars to
scroll beyond the text. Very hackish and not the best solution, but I had
to
get it working right then and there so


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Allandt
Bik-Elliott (Receptacle)
Sent: Thursday, May 24, 2007 12:30 PM
To: flashcoders
Subject: [Flashcoders] textArea doesn't scroll far enough

gah - not my day today

i've got my textArea loading up a bunch of text from a string, from
an array loaded from an xml file (erk), but the scrollbars for the
component don't scroll far enough (either the bar or the arrows) -
i've dragged down the text with my cursor and the extra lines are there.

does anyone with any experience of using these components know of any
reason this might happen?
___
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] TextArea Component (Flash 8)

2006-12-15 Thread Merrill, Jason
Have they increased the puny amount of HTML that is allowed in Flash?

Nope, unfortunately.

I've been down the exact same road - what I have learned is using the
TextFormat object, while not perfect, will save you a lot of headaches.
Searching through strings - what a pain, and a major performance issue I
would think. Good thing about the TextFormat object is you can use
asfunction for your hyperlinks, so you can have text link to an
actionscript function, or to external URLs.

Jason Merrill
Bank of America 
Learning  Organizational Effectiveness
 
 
 
 
 
 
___
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] TEXTAREA COMPONENT PROBLEM - has a green keyline whenselected :/

2006-09-27 Thread Ryan Potter
Try this:

this.myTextArea.drawFocus = null; 
this.myTextArea.focusTextField = null; 



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Matt Muller
Sent: Wednesday, September 27, 2006 9:22 AM
To: Flashcoders mailing list
Subject: [Flashcoders] TEXTAREA COMPONENT PROBLEM - has a green keyline
whenselected :/

Im loading some leagcy swfs - flash 7, into flash 8, there is a textarea
component that only has this behaviour when its loaded through a movieclip.
It has a green keyline when selected, When it loses focus it loses the
keyline, Im trying stuff like

import mx.styles.CSSStyleDeclaration;
_global.styles.TextArea = new CSSStyleDeclaration();
_global.styles.TextArea.setStyle(focusColor, null);
_global.styles.TextArea.setStyle(borderColor, none);

but none of this is working, can anyone shed some light on a solution?

Thanks

MaTT
___
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] TEXTAREA COMPONENT PROBLEM - has a green keyline whenselected :/

2006-09-27 Thread Matt Muller

it works, thanks so much :)

On 9/27/06, Ryan Potter [EMAIL PROTECTED] wrote:


Try this:

this.myTextArea.drawFocus = null;
this.myTextArea.focusTextField = null;



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Matt
Muller
Sent: Wednesday, September 27, 2006 9:22 AM
To: Flashcoders mailing list
Subject: [Flashcoders] TEXTAREA COMPONENT PROBLEM - has a green keyline
whenselected :/

Im loading some leagcy swfs - flash 7, into flash 8, there is a textarea
component that only has this behaviour when its loaded through a
movieclip.
It has a green keyline when selected, When it loses focus it loses the
keyline, Im trying stuff like

import mx.styles.CSSStyleDeclaration;
_global.styles.TextArea = new CSSStyleDeclaration();
_global.styles.TextArea.setStyle(focusColor, null);
_global.styles.TextArea.setStyle(borderColor, none);

but none of this is working, can anyone shed some light on a solution?

Thanks

MaTT
___
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] TextArea and TextInput differences in creation, why?

2006-09-12 Thread Robert Chyko
Gotta have the components in the library

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Stephen
Matthews
Sent: Tuesday, September 12, 2006 11:24 AM
To: Flashcoders mailing list
Subject: [Flashcoders] TextArea and TextInput differences in creation,
why?


Hi,
If I use this code below without having a TextArea  TextInput  
component in my library the TextArea component creation fails.

import mx.controls.TextArea;
import mx.controls.TextInput;

clip.createClassObject( TextInput, newname, depth );
clip.createClassObject( TextArea, newname2, depth2 );

However if I put a TextArea component into the library everything  
works fine.

Surely they should work consistently?

The ideal for me would be to just import the Classes for both of  
these in my Class and that's it.

Please let me know if I am being stupid. Cheers =D.

Steve
___
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] TextArea and TextInput differences in creation, why?

2006-09-12 Thread Stephen Matthews

Hi Robert,
I only have TextArea in my Library and everything works.
Maybe TextArea  contains everything TextInput needs to exist.

I just looked at the classes for both and they are quite different, I  
don't have time to drill down through all the dependencies and  
inheritance, but I imagine this is the reason.


Sorry I should have looked before.

Cheers
Steve


On 12 Sep 2006, at 16:32, Robert Chyko wrote:


Gotta have the components in the library

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

Matthews
Sent: Tuesday, September 12, 2006 11:24 AM
To: Flashcoders mailing list
Subject: [Flashcoders] TextArea and TextInput differences in creation,
why?


Hi,
If I use this code below without having a TextArea  TextInput
component in my library the TextArea component creation fails.

import mx.controls.TextArea;
import mx.controls.TextInput;

clip.createClassObject( TextInput, newname, depth );
clip.createClassObject( TextArea, newname2, depth2 );

However if I put a TextArea component into the library everything
works fine.

Surely they should work consistently?

The ideal for me would be to just import the Classes for both of
these in my Class and that's it.

Please let me know if I am being stupid. Cheers =D.

Steve
___
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] textArea background colour

2006-03-09 Thread Judah
Hi Simon,

textinput.setStyle(backgroundColor, transparent);
textinput.setStyle(borderStyle, none);

Judah

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Simon Lord
Sent: Tuesday, March 07, 2006 6:03 PM
To: Flashcoders mailing list
Subject: [Flashcoders] textArea background colour

How can I remove the border and background fill of a textArea component?
___
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] textArea background colour

2006-03-08 Thread Julius - XK

textAreaGuy.borderStyle = none;  //should do the trick..
textAreaGuy.border_mc._visible = false; //should do the trick for the 
backgroundColor fill..


Hope this helps ya :)





- Original Message - 
From: Simon Lord [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Tuesday, March 07, 2006 7:03 PM
Subject: [Flashcoders] textArea background colour



How can I remove the border and background fill of a textArea component?
___
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] TextArea - Impossible requests?

2005-11-15 Thread Chris Wilson
For the first problem, how about adding a number of blank lines to the end
of the news story so the total number of lines is a multiple of the
TextArea's visible page size to allow a full scroll?

-Chris

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Miles
Thompson
Sent: Tuesday, November 15, 2005 9:56 AM
To: Flashcoders mailing list
Subject: [Flashcoders] TextArea - Impossible requests?

Dear All,

I'm working on a daily news site - headlines display on left, and when 
one clicks on a given headline the story loads on the right. I'm using the 
UI TextArea component to display the story.

All is well, but as usual, customer has tossed a couple of curves.

1. When there is only a fragment of the story left to display, say 15 
additional lines for example, and the reader scrolls down, the TextArea 
scrolls only 15 lines. What the customer wants is a full scroll so that the 
next line appears at the top of the story, with white space below.

2. At customer's request NextPage and PrevPage buttons were added to the 
movie to scroll the TextArea; they've been programmed to turn on and off, 
etc. in response to .scroll, .maxscroll and .vPosition information provided 
by the TextArea. Now the customer does not want the ScrollBar to show at 
all, but to use these buttons only.

Relating to 1. - Can one force a full scroll, say 28 lines, when there are 
only 15 lines remaining? I've tried resetting .maxscool, forcing .vPosition 
to an unrealistic values, incrementing .scroll in a loop. Nope, Have not 
been able to do it. Has anyone, or do I revert to the MX control?

Relating to 2. Is there a property to set somewhere which will permanently 
hide the scroll bar? I've not been able to find one, but possibly someone 
knows a hidden or undocumented property. (Cripes, this is a ridiculous 
question! Let's roll everything back to Flash 3!)

Sorry to be asking these questions. When we moved to MX 2004 thought I had 
the solution to my text problems by the tail. Now it's turning and biting.

Regards - Miles Thompson


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] TextArea - Impossible requests?

2005-11-15 Thread Muzak
And since you don't need the scrollbars, use a normal TextField instead of a 
TextArea.

regards,
Muzak

- Original Message - 
From: Chris Wilson [EMAIL PROTECTED]
To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com
Sent: Tuesday, November 15, 2005 4:09 PM
Subject: RE: [Flashcoders] TextArea - Impossible requests?


 For the first problem, how about adding a number of blank lines to the end
 of the news story so the total number of lines is a multiple of the
 TextArea's visible page size to allow a full scroll?

 -Chris

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Miles
 Thompson
 Sent: Tuesday, November 15, 2005 9:56 AM
 To: Flashcoders mailing list
 Subject: [Flashcoders] TextArea - Impossible requests?

 Dear All,

 I'm working on a daily news site - headlines display on left, and when
 one clicks on a given headline the story loads on the right. I'm using the
 UI TextArea component to display the story.

 All is well, but as usual, customer has tossed a couple of curves.

 1. When there is only a fragment of the story left to display, say 15
 additional lines for example, and the reader scrolls down, the TextArea
 scrolls only 15 lines. What the customer wants is a full scroll so that the
 next line appears at the top of the story, with white space below.

 2. At customer's request NextPage and PrevPage buttons were added to the
 movie to scroll the TextArea; they've been programmed to turn on and off,
 etc. in response to .scroll, .maxscroll and .vPosition information provided
 by the TextArea. Now the customer does not want the ScrollBar to show at
 all, but to use these buttons only.

 Relating to 1. - Can one force a full scroll, say 28 lines, when there are
 only 15 lines remaining? I've tried resetting .maxscool, forcing .vPosition
 to an unrealistic values, incrementing .scroll in a loop. Nope, Have not
 been able to do it. Has anyone, or do I revert to the MX control?

 Relating to 2. Is there a property to set somewhere which will permanently
 hide the scroll bar? I've not been able to find one, but possibly someone
 knows a hidden or undocumented property. (Cripes, this is a ridiculous
 question! Let's roll everything back to Flash 3!)

 Sorry to be asking these questions. When we moved to MX 2004 thought I had
 the solution to my text problems by the tail. Now it's turning and biting.

 Regards - Miles Thompson



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] TextArea - Impossible requests?

2005-11-15 Thread Miles Thompson

Muzak,

Is that the TextInput component, or something else? I didn't see that it 
had an .html property.


Did I neglect to include something when I installed Flash? Or is TextArea 
an MX control?


Regards - Miles

At 11:22 AM 11/15/2005, you wrote:
And since you don't need the scrollbars, use a normal TextField instead of 
a TextArea.


regards,
Muzak

- Original Message -
From: Chris Wilson [EMAIL PROTECTED]
To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com
Sent: Tuesday, November 15, 2005 4:09 PM
Subject: RE: [Flashcoders] TextArea - Impossible requests?


 For the first problem, how about adding a number of blank lines to the end
 of the news story so the total number of lines is a multiple of the
 TextArea's visible page size to allow a full scroll?

 -Chris

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Miles
 Thompson
 Sent: Tuesday, November 15, 2005 9:56 AM
 To: Flashcoders mailing list
 Subject: [Flashcoders] TextArea - Impossible requests?

 Dear All,

 I'm working on a daily news site - headlines display on left, and when
 one clicks on a given headline the story loads on the right. I'm using the
 UI TextArea component to display the story.

 All is well, but as usual, customer has tossed a couple of curves.

 1. When there is only a fragment of the story left to display, say 15
 additional lines for example, and the reader scrolls down, the TextArea
 scrolls only 15 lines. What the customer wants is a full scroll so that the
 next line appears at the top of the story, with white space below.

 2. At customer's request NextPage and PrevPage buttons were added to the
 movie to scroll the TextArea; they've been programmed to turn on and off,
 etc. in response to .scroll, .maxscroll and .vPosition information provided
 by the TextArea. Now the customer does not want the ScrollBar to show at
 all, but to use these buttons only.

 Relating to 1. - Can one force a full scroll, say 28 lines, when there are
 only 15 lines remaining? I've tried resetting .maxscool, forcing .vPosition
 to an unrealistic values, incrementing .scroll in a loop. Nope, Have not
 been able to do it. Has anyone, or do I revert to the MX control?

 Relating to 2. Is there a property to set somewhere which will permanently
 hide the scroll bar? I've not been able to find one, but possibly someone
 knows a hidden or undocumented property. (Cripes, this is a ridiculous
 question! Let's roll everything back to Flash 3!)

 Sorry to be asking these questions. When we moved to MX 2004 thought I had
 the solution to my text problems by the tail. Now it's turning and biting.

 Regards - Miles Thompson



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] TextArea BUG!! HELP

2005-11-09 Thread Andreas Rønning

txtDescription.text = textHtml;
should be
txtDescription.htmlText = textHtml;

- Andreas


Bruno Mosconi wrote:


I'm preceding a simple task here, insert HTML content in a TextArea
component including a simple Button component and a MC.



First, I've imported TextArea and Button comps to my library.

Put TextArea at Stage and name it as txtDescription.

Next step, write down some code:



[CODE]

txtDescription.html = true;



var textHtml = ;

textHtml += test line..BR/;

textHtml += img src=\Button\ id=\button_mc\br/;

textHtml += test line..BR/;

textHtml += img src=\ball\ id=\ball_mc\;



txtDescription.text = textHtml;

_lavel0.txtDescription.label.button_mc.label = Test;

trace(_lavel0.txtDescription.label.button_mc.label);

[/CODE]



It was supposed to work fine, but a b very strange BUG /b came along...



See odd result and source file here:

a href=http://www.ultrafactor.com.br/flash_bug/Button_in_TextArea_test.swf
Meet the BUG! /a

a href=http://www.ultrafactor.com.br/flash_bug/Button_in_TextArea_test.fla
Source Code Here /a

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] TextArea BUG!! HELP

2005-11-09 Thread Bruno Mosconi
Sadly TextArea Component does not have htmlText attribute, only text.

If you try:
txtDescription.htmlText = textHtml;

TextArea will show blank.

Thanks anyway,
Bruno

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andreas
Rønning
Sent: quarta-feira, 9 de novembro de 2005 13:32
To: Flashcoders mailing list
Subject: Re: [Flashcoders] TextArea BUG!! HELP

txtDescription.text = textHtml;
should be
txtDescription.htmlText = textHtml;

- Andreas


Bruno Mosconi wrote:

I'm preceding a simple task here, insert HTML content in a TextArea
component including a simple Button component and a MC.

 

First, I've imported TextArea and Button comps to my library.

Put TextArea at Stage and name it as txtDescription.

Next step, write down some code:

 

[CODE]

txtDescription.html = true;

 

var textHtml = ;

textHtml += test line..BR/;

textHtml += img src=\Button\ id=\button_mc\br/;

textHtml += test line..BR/;

textHtml += img src=\ball\ id=\ball_mc\;

 

txtDescription.text = textHtml;

_lavel0.txtDescription.label.button_mc.label = Test;

trace(_lavel0.txtDescription.label.button_mc.label);

[/CODE]

 

It was supposed to work fine, but a b very strange BUG /b came along...

 

See odd result and source file here:

a
href=http://www.ultrafactor.com.br/flash_bug/Button_in_TextArea_test.swf
Meet the BUG! /a

a
href=http://www.ultrafactor.com.br/flash_bug/Button_in_TextArea_test.fla
Source Code Here /a

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] TextArea BUG!! HELP

2005-11-09 Thread Michael Stuhr

Bruno Mosconi schrieb:

Sadly TextArea Component does not have htmlText attribute, only text.

If you try:
txtDescription.htmlText = textHtml;

TextArea will show blank.



put the button inside another mc should give expected results. and btw: isn't 
there a bug with img/ at the very end of html inside textFields ??


micha
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] TextArea BUG!! HELP

2005-11-09 Thread Bruno Mosconi
Ok, but how do I refer to button's instance to change dynamically its label?

Btw, I've found a FIX at:
http://flashant.org/index.php?m=200412#239
Looks like lots of people are addressing the same BUG unusual ways.

But buttons LABEL stills blank!! Do you have any additional tip?

Thanks,
Bruno Mosconi


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Michael
Stuhr
Sent: quarta-feira, 9 de novembro de 2005 17:25
To: Flashcoders mailing list
Subject: Re: [Flashcoders] TextArea BUG!! HELP

Bruno Mosconi schrieb:
 Sadly TextArea Component does not have htmlText attribute, only text.
 
 If you try:
 txtDescription.htmlText = textHtml;
 
 TextArea will show blank.
 

put the button inside another mc should give expected results. and btw:
isn't 
there a bug with img/ at the very end of html inside textFields ??

micha
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] TextArea BUG!! HELP

2005-11-09 Thread Michael Stuhr

Bruno Mosconi schrieb:

Ok, but how do I refer to button's instance to change dynamically its label?

Btw, I've found a FIX at:
http://flashant.org/index.php?m=200412#239
Looks like lots of people are addressing the same BUG unusual ways.





this.createTextField(textField_txt, 10, 0, 0, 100, 200);
textField_txt.wordWrap = true;
textField_txt.html = true;
textField_txt.htmlText = Here's an interesting animation: img src='animation' 
id='animation_mc'Here's an interesting animation: ;

textField_txt.animation_mc.playing = true;
textField_txt.animation_mc.onPress = function () {
if (!this.playing) {
this.play();
} else {
this.stop();
}
this.playing = !this.playing;
}
// animation_mc is the linkage id of an animated MC in your library.

hth



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] TextArea BUG!! HELP = Can't Change Button's Label

2005-11-09 Thread Bruno Mosconi
The MC trick worked fine, but button's label can't be changed at all!

Take a look at this test code:

txtDescription.html = true;

var textHtml = ;
textHtml += test line..BR/;
textHtml += img src=\bt\ id=\button_mc\/br/;
textHtml += test line..BR/;
textHtml += img src=\ball\ id=\ball_mc\/;

txtDescription.text = textHtml;
txtDescription.doLater(this, setlabels);

tbt.label = Test Button;
//trace(tbt.label);

function setlabels()
{
_level0.txtDescription.label.button_mc.but.label = Test Button;
_level0.txtDescription.label.button_mc.but.invalidate();
trace(_level0.txtDescription.label.button_mc.but.label);
_level0.txtDescription.invalidate();
}

The STRAGE BUG here is that TRACE returns the new label value: Test
Button, but in TextArea my button stills w/ its default value: Button!

Take a look:
http://www.ultrafactor.com.br/flash_bug/Button_in_TextArea_test.fla
http://www.ultrafactor.com.br/flash_bug/Button_in_TextArea_test.swf




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Michael
Stuhr
Sent: quarta-feira, 9 de novembro de 2005 17:25
To: Flashcoders mailing list
Subject: Re: [Flashcoders] TextArea BUG!! HELP

Bruno Mosconi schrieb:
 Sadly TextArea Component does not have htmlText attribute, only text.
 
 If you try:
 txtDescription.htmlText = textHtml;
 
 TextArea will show blank.
 

put the button inside another mc should give expected results. and btw:
isn't 
there a bug with img/ at the very end of html inside textFields ??

micha
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] TextArea BUG!! HELP

2005-11-09 Thread Michael Stuhr

Bruno Mosconi schrieb:

Micha, thanks for the help

Your MC trick worked fine, but button's label can't be changed at all!

Take a look at this test code:



txtDescription.html = true;

textHtml += test line..BR/;
textHtml += img src=\button_mc\ id=\button\sfvdfbybfbfbbr/;
textHtml += test line..BR/;
textHtml += img src=\ball\ id=\ball_mc\kjzhhgvhkgvjhjkhv;

txtDescription.text = textHtml;

this.onEnterFrame = function () {
trace(txtDescription.label.button.butt.label = FOO);
delete this.onEnterFrame
}

// this will do the trick

micha
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] TextArea BUG!! HELP

2005-11-09 Thread Bruno Mosconi
YES!! You did IT!

Why in hell we need this trick?? Invalidade(); function is supposed to
redraw the component, isn't it?

N1 got any idea??

Thanks Micha!! Again...


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Michael
Stuhr
Sent: quarta-feira, 9 de novembro de 2005 18:31
To: Flashcoders mailing list
Subject: Re: [Flashcoders] TextArea BUG!! HELP

Bruno Mosconi schrieb:
 Micha, thanks for the help
 
 Your MC trick worked fine, but button's label can't be changed at all!
 
 Take a look at this test code:
 

txtDescription.html = true;

textHtml += test line..BR/;
textHtml += img src=\button_mc\ id=\button\sfvdfbybfbfbbr/;
textHtml += test line..BR/;
textHtml += img src=\ball\ id=\ball_mc\kjzhhgvhkgvjhjkhv;

txtDescription.text = textHtml;

this.onEnterFrame = function () {
trace(txtDescription.label.button.butt.label = FOO);
delete this.onEnterFrame
}

// this will do the trick

micha
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders