[flexcoders] Re: has anyone ever disabled selectability for a textArea?? ** SOLVED **

2006-07-31 Thread jpc14_99

 I think TextArea's textField was private in Beta 3, but it's protected
 in the final release.

That's right.  Since upgrading the solution works great.  Thanks so 
much for everyones help.


Non selectable text area:
http://www.jessewarden.com/archives/2006/07/nonselectable_t.html







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




RE: [flexcoders] Re: has anyone ever disabled selectability for a textArea??

2006-07-26 Thread Gordon Smith












I think TextArea's textField was private
in Beta 3, but it's protected in the final release.



- Gordon











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of jpc14_99
Sent: Tuesday, July 25, 2006 9:56
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: has
anyone ever disabled selectability for a textArea??











Thanks to everyone for the help. I'm still getting an
error:

Attempted access of inaccessible property textField through a 
reference with static type...

Obviously the code you guys gave me is good, so I have to assume it's 
because I'm running Beta 3 Flex. I'm upgrading in the next few days so 
I'll let you know if it works then. Thanks again.






__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






[flexcoders] Re: has anyone ever disabled selectability for a textArea??

2006-07-25 Thread jpc14_99
I already have editable = false.  That prevents user input but 
doesn't stop the I-beam on mouseover and the selectability.

--- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] 
wrote:

 On Monday 24 July 2006 23:34, JesterXL wrote:
  I thought it was TextArea.selectable = false;  Does it have that 
property?
 
 editable
 
 -- 
 Tom Chiverton
 
 
 
 This email is sent for and on behalf of Halliwells LLP.
 
 Halliwells LLP is a limited liability partnership registered in 
England and Wales under registered number OC307980 whose registered 
office address is at St James's Court Brown Street Manchester M2 
2JF.  A list of members is available for inspection at the registered 
office. Any reference to a partner in relation to Halliwells LLP 
means a member of Halliwells LLP. Regulated by the Law Society.
 
 CONFIDENTIALITY
 
 This email is intended only for the use of the addressee named 
above and may be confidential or legally privileged.  If you are not 
the addressee you must not read it and must not use any information 
contained in nor copy it nor inform any person other than Halliwells 
LLP or the addressee of its existence or contents.  If you have 
received this email in error please delete it and notify Halliwells 
LLP IT Department on 0870 365 8008.
 
 For more information about Halliwells LLP visit www.halliwells.com.







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Re: has anyone ever disabled selectability for a textArea??

2006-07-25 Thread hank williams



One way to do this would be to create a new component that inherits from textArea, but where you have overridden the event handling function(s). I would have to look to figure out what those functions are, but it shouldnt be too hard since you have the source. You really just need to find the appropriate functions and override with empty functions.
RegardsHankOn 7/25/06, jpc14_99 [EMAIL PROTECTED] wrote:
I already have editable = false.That prevents user input butdoesn't stop the I-beam on mouseover and the selectability.--- In flexcoders@yahoogroups.com, Tom Chiverton 
[EMAIL PROTECTED]wrote: On Monday 24 July 2006 23:34, JesterXL wrote:  I thought it was TextArea.selectable = false;Does it have thatproperty? editable
 -- Tom Chiverton  This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in
England and Wales under registered number OC307980 whose registeredoffice address is at St James's Court Brown Street Manchester M22JF.A list of members is available for inspection at the registeredoffice. Any reference to a partner in relation to Halliwells LLP
means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee namedabove and may be confidential or legally privileged.If you are not
the addressee you must not read it and must not use any informationcontained in nor copy it nor inform any person other than HalliwellsLLP or the addressee of its existence or contents.If you havereceived this email in error please delete it and notify Halliwells
LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com.--Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
* To unsubscribe from this group, send an email to:[EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



[flexcoders] Re: has anyone ever disabled selectability for a textArea??

2006-07-25 Thread Doug Lowder
Try this:

mx:TextArea enabled=false disabledColor=0x33 
text=Some text /


--- In flexcoders@yahoogroups.com, JClouz [EMAIL PROTECTED] wrote:

 I'm sorry to be a bother but this seems like it should be so easy 
but its driving me nuts.
 
 I want to get rid of selectability/i-beam mouseover cursor on a 
textArea field.
 
 With a Text component, you just set. myText.selectability = false.
 
 How do I do it for a textArea field?  Can it be done?  I want to 
use textArea instead of text because I need a background.
 
 Please help!!!
 
 Thanks so much.
 
 Jamie
 MKCNSC, inc.








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Re: has anyone ever disabled selectability for a textArea??

2006-07-25 Thread jpc14_99
Thanks.  That does make the textArea unselectable but unfortunately 
it also wipes out my background color and text color.  For the life 
of me I don't understand why Flex doesn't have a simple selectable 
attribute included with textArea.


--- In flexcoders@yahoogroups.com, Doug Lowder [EMAIL PROTECTED] 
wrote:

 Try this:
 
 mx:TextArea enabled=false disabledColor=0x33 
 text=Some text /
 
 
 --- In flexcoders@yahoogroups.com, JClouz jclouser@ wrote:
 
  I'm sorry to be a bother but this seems like it should be so easy 
 but its driving me nuts.
  
  I want to get rid of selectability/i-beam mouseover cursor on a 
 textArea field.
  
  With a Text component, you just set. myText.selectability = false.
  
  How do I do it for a textArea field?  Can it be done?  I want to 
 use textArea instead of text because I need a background.
  
  Please help!!!
  
  Thanks so much.
  
  Jamie
  MKCNSC, inc.
 







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: has anyone ever disabled selectability for a textArea??

2006-07-25 Thread jpc14_99
--- In flexcoders@yahoogroups.com, hank williams [EMAIL PROTECTED] 
wrote:

 One way to do this would be to create a new component that inherits 
from
 textArea, but where you have overridden the event handling function
(s). I
 would have to look to figure out what those functions are, but it 
shouldnt
 be too hard since you have the source. You really just need to find 
the
 appropriate functions and override with empty functions.
 
 Regards
 Hank
 
 On 7/25/06, jpc14_99 [EMAIL PROTECTED] wrote:
 
  I already have editable = false.  That prevents user input but
  doesn't stop the I-beam on mouseover and the selectability.
 
  --- In flexcoders@yahoogroups.com, Tom Chiverton tom.chiverton@
  wrote:
  
   On Monday 24 July 2006 23:34, JesterXL wrote:
I thought it was TextArea.selectable = false;  Does it have 
that
  property?
  
   editable
  
   --
   Tom Chiverton
  
   
  
   This email is sent for and on behalf of Halliwells LLP.
  
   Halliwells LLP is a limited liability partnership registered in
  England and Wales under registered number OC307980 whose 
registered
  office address is at St James's Court Brown Street Manchester M2
  2JF.  A list of members is available for inspection at the 
registered
  office. Any reference to a partner in relation to Halliwells LLP
  means a member of Halliwells LLP. Regulated by the Law Society.
  
   CONFIDENTIALITY
  
   This email is intended only for the use of the addressee named
  above and may be confidential or legally privileged.  If you are 
not
  the addressee you must not read it and must not use any 
information
  contained in nor copy it nor inform any person other than 
Halliwells
  LLP or the addressee of its existence or contents.  If you have
  received this email in error please delete it and notify 
Halliwells
  LLP IT Department on 0870 365 8008.
  
   For more information about Halliwells LLP visit 
www.halliwells.com.
  
 
 
 
 
 
 
  --
  Flexcoders Mailing List
  FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives: http://www.mail-archive.com/flexcoders%
40yahoogroups.com
  Yahoo! Groups Links
 
 
 
 
 
 
 







 Yahoo! Groups Sponsor ~-- 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/7EuRwD/fOaOAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: has anyone ever disabled selectability for a textArea??

2006-07-25 Thread jpc14_99
Thanks, I've never done that sort of thing before but it sounds like 
the route I may be forced to go down.  Do you think it'd involve 
overriding the 'mouseover' handler with an empty function?

Just seems absolutely bizarre why Flex wouldn't include a 
simple 'selectable' attribute with the textArea component.


--- In flexcoders@yahoogroups.com, hank williams [EMAIL PROTECTED] wrote:

 One way to do this would be to create a new component that inherits 
from
 textArea, but where you have overridden the event handling function
(s). I
 would have to look to figure out what those functions are, but it 
shouldnt
 be too hard since you have the source. You really just need to find 
the
 appropriate functions and override with empty functions.
 
 Regards
 Hank
 






 Yahoo! Groups Sponsor ~-- 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/7EuRwD/fOaOAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Re: has anyone ever disabled selectability for a textArea??

2006-07-25 Thread JesterXL
It does, but TextArea extends Sprite, not TextField.  It uses the 
UITextField via composition.  Unfortunately (or fortunately?) the textField 
variable is protected.  Additionally, the textField is selectable by 
default.  You could do:

package
{
import mx.controls.TextArea;

class MyTextArea extends TextArea
{
protected override function createChildren():void
{
super.createChildren();
textField.selectable = false;
}
}
}

And then use view:MyTextArea / instead.

- Original Message - 
From: jpc14_99 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, July 25, 2006 2:03 PM
Subject: [flexcoders] Re: has anyone ever disabled selectability for a 
textArea??


Thanks.  That does make the textArea unselectable but unfortunately
it also wipes out my background color and text color.  For the life
of me I don't understand why Flex doesn't have a simple selectable
attribute included with textArea.


--- In flexcoders@yahoogroups.com, Doug Lowder [EMAIL PROTECTED]
wrote:

 Try this:

 mx:TextArea enabled=false disabledColor=0x33
 text=Some text /


 --- In flexcoders@yahoogroups.com, JClouz jclouser@ wrote:
 
  I'm sorry to be a bother but this seems like it should be so easy
 but its driving me nuts.
 
  I want to get rid of selectability/i-beam mouseover cursor on a
 textArea field.
 
  With a Text component, you just set. myText.selectability = false.
 
  How do I do it for a textArea field?  Can it be done?  I want to
 use textArea instead of text because I need a background.
 
  Please help!!!
 
  Thanks so much.
 
  Jamie
  MKCNSC, inc.
 







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links







 Yahoo! Groups Sponsor ~-- 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/WktRrD/lOaOAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: has anyone ever disabled selectability for a textArea??

2006-07-25 Thread Doug Lowder
Can you not just set those styles?

mx:TextArea enabled=false disabledColor=0xFF text=Some 
text backgroundColor=0xC0C0C0/

Just use disabledColor instead of color in your css, mxml, or script.


--- In flexcoders@yahoogroups.com, jpc14_99 [EMAIL PROTECTED] wrote:

 Thanks.  That does make the textArea unselectable but 
unfortunately 
 it also wipes out my background color and text color.  For the 
life 
 of me I don't understand why Flex doesn't have a simple selectable 
 attribute included with textArea.
 
 
 --- In flexcoders@yahoogroups.com, Doug Lowder douglowder@ 
 wrote:
 
  Try this:
  
  mx:TextArea enabled=false disabledColor=0x33 
  text=Some text /
  
  
  --- In flexcoders@yahoogroups.com, JClouz jclouser@ wrote:
  
   I'm sorry to be a bother but this seems like it should be so 
easy 
  but its driving me nuts.
   
   I want to get rid of selectability/i-beam mouseover cursor on 
a 
  textArea field.
   
   With a Text component, you just set. myText.selectability = 
false.
   
   How do I do it for a textArea field?  Can it be done?  I want 
to 
  use textArea instead of text because I need a background.
   
   Please help!!!
   
   Thanks so much.
   
   Jamie
   MKCNSC, inc.
  
 








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: has anyone ever disabled selectability for a textArea??

2006-07-25 Thread jpc14_99

 package
 {
 import mx.controls.TextArea;
 
 class MyTextArea extends TextArea
 {
 protected override function createChildren():void
 {
 super.createChildren();
 textField.selectable = false;
 }
 }
 }
 
 And then use view:MyTextArea / instead.


Thanks.  I think I have this setup properly but now I'm getting a 

The prefix view for element view:myTextArea is not bound 
compiler error.  

Is there something I'm missing so Flex can recognize my new class?  
The class is packaged in with all of my other .as custom classes.  I 
can include it and recognize it in the Actionscript, but this view 
command doesn't seem to be working in the mxml.






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




RE: [flexcoders] Re: has anyone ever disabled selectability for a textArea??

2006-07-25 Thread Dustin Mercer












You have to add view to the xml namespaces
in the calling document. I.E. 



Say you have your MyTextArea control
sitting in a folder called components Here would be the xmlns code to
include it.



mx:Application 

 

xmlns:view=components.*
/



view:MyTextInput
/



/mx:Application











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jpc14_99
Sent: Tuesday, July 25, 2006 2:47
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: has
anyone ever disabled selectability for a textArea??












 package
 {
 import mx.controls.TextArea;
 
 class MyTextArea extends TextArea
 {
 protected override function createChildren():void
 {
 super.createChildren();
 textField.selectable = false;
 }
 }
 }
 
 And then use view:MyTextArea / instead.

Thanks. I think I have this setup properly but now I'm getting a 

The prefix view for element view:myTextArea is
not bound 
compiler error. 

Is there something I'm missing so Flex can recognize my new class? 
The class is packaged in with all of my other .as custom classes. I 
can include it and recognize it in the Actionscript, but this view 
command doesn't seem to be working in the mxml.






__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






Re: [flexcoders] Re: has anyone ever disabled selectability for a textArea??

2006-07-25 Thread JesterXL
Namespace the ho!  Think of namespaces like imports.

import mx.controls.TextArea;

That allows you to do:

var a:TextArea = new TextArea();

So do like:

view:MyClass xmlns:view=your.package.path.* /

Or, if you are going to use MyClass multiple times, but the xmlns:view stuff 
in your root tag so you only have to write it once.


- Original Message - 
From: jpc14_99 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, July 25, 2006 5:47 PM
Subject: [flexcoders] Re: has anyone ever disabled selectability for a 
textArea??



 package
 {
 import mx.controls.TextArea;

 class MyTextArea extends TextArea
 {
 protected override function createChildren():void
 {
 super.createChildren();
 textField.selectable = false;
 }
 }
 }

 And then use view:MyTextArea / instead.


Thanks.  I think I have this setup properly but now I'm getting a

The prefix view for element view:myTextArea is not bound
compiler error.

Is there something I'm missing so Flex can recognize my new class?
The class is packaged in with all of my other .as custom classes.  I
can include it and recognize it in the Actionscript, but this view
command doesn't seem to be working in the mxml.






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links







 Yahoo! Groups Sponsor ~-- 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/7EuRwD/fOaOAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Re: has anyone ever disabled selectability for a textArea??

2006-07-25 Thread Jeff Tapper
did you declare an xml namespace for it in the mxml page which calls 
it?  something like

xmlns:view=*

At 05:47 PM 7/25/2006, you wrote:


  package
  {
  import mx.controls.TextArea;
 
  class MyTextArea extends TextArea
  {
  protected override function createChildren():void
  {
  super.createChildren();
  textField.selectable = false;
  }
  }
  }
 
  And then use view:MyTextArea / instead.


Thanks.  I think I have this setup properly but now I'm getting a

The prefix view for element view:myTextArea is not bound
compiler error.

Is there something I'm missing so Flex can recognize my new class?
The class is packaged in with all of my other .as custom classes.  I
can include it and recognize it in the Actionscript, but this view
command doesn't seem to be working in the mxml.






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links








--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.1.394 / Virus Database: 268.10.4/396 - Release Date: 7/24/2006



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.1.394 / Virus Database: 268.10.4/396 - Release Date: 7/24/2006




 Yahoo! Groups Sponsor ~-- 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/WktRrD/lOaOAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Re: has anyone ever disabled selectability for a textArea??

2006-07-25 Thread jpc14_99
Thanks for all the help.  I have it recognizing my class just fine 
now.  Unfortunately I'm getting this error:

Attempted access of inaccessible property textField through a 
reference with static type...


So the class I'm using (below) isn't quite cutting it.  Any ideas for 
changes?

--

package 
{
import mx.controls.TextArea;

public class myTextArea extends TextArea 
{   
protected override function createChildren():void {
textField.selectable = false;
super.createChildren();
}
}
}  






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




RE: [flexcoders] Re: has anyone ever disabled selectability for a textArea??

2006-07-25 Thread Dustin Mercer












Out of curiosity, what is the use case to
disable selection of text? Can you just you disabled=false, or do you
want people to still type in it? Here is a working example of the code
you need though J I believe the problem with your component was you were not
calling the super.createChildren() first so the textField was not created yet
when you were trying to modify its properties. One weird thing I
noticed with this approach though is your caret is gone , but otherwise works
fine. Something else too, you should always use a default constructor and
call the super() method when extending components. This may also have
been the problem, but I didnt test enough to verify which one was the culprit.




package com.lsf.common.view.controls

{

 import
mx.controls.TextArea;



 public
class NonSelectableTextArea extends TextArea

 {

 public
function NonSelectableTextArea() : void {

 super();

 }

 

 override
protected function createChildren() : void {

  super.createChildren();

 super.textField.selectable
= false;

 }

 }

}











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jpc14_99
Sent: Tuesday, July 25, 2006 4:37
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: has
anyone ever disabled selectability for a textArea??











Thanks for all the help. I have it recognizing my
class just fine 
now. Unfortunately I'm getting this error:

Attempted access of inaccessible property textField through a 
reference with static type...

So the class I'm using (below) isn't quite cutting it. Any ideas for 
changes?

--

package 
{
import mx.controls.TextArea;

public class myTextArea extends TextArea 
{ 
protected override function createChildren():void {
textField.selectable = false;
super.createChildren();
}
}
} 






__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






[flexcoders] Re: has anyone ever disabled selectability for a textArea??

2006-07-25 Thread jpc14_99

 Out of curiosity, what is the use case to disable selection of text?

Dustin thanks so much for the assistance.  In my application I'm 
displaying text in a textArea that I don't want the user to be able to 
select.  To have the I-beam cursor popup on mouseover just looks 
wrong.  There's no user input going on into the textAreas in question.

Unfortunately I'm getting the same error with your code! :

Attempted access of inaccessible property textField through a 
reference with static type mx.controls:TextArea


It just doesn't want me getting at that textField!






 Yahoo! Groups Sponsor ~-- 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/TktRrD/gOaOAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




RE: [flexcoders] Re: has anyone ever disabled selectability for a textArea??

2006-07-25 Thread Dustin Mercer












Hmm odd, I tested it before I put
it out there. Are you running the final build of Flex or a Beta build? Did
you copy and paste the entire body of my code, or just that overrided method?
Sorry about being the little late to the game on this one too, I read up why
you wanted to do that after I had sent out that last message, made perfect
sense :). 











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jpc14_99
Sent: Tuesday, July 25, 2006 6:20
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: has
anyone ever disabled selectability for a textArea??












 Out of curiosity, what is the use case to disable selection of text?

Dustin thanks so much for the assistance. In my application I'm 
displaying text in a textArea that I don't want the user to be able to 
select. To have the I-beam cursor popup on mouseover just looks 
wrong. There's no user input going on into the textAreas in question.

Unfortunately I'm getting the same error with your code! :

Attempted access of inaccessible property textField through a 
reference with static type mx.controls:TextArea

It just doesn't want me getting at that textField!






__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






Re: [flexcoders] Re: has anyone ever disabled selectability for a textArea??

2006-07-25 Thread JesterXL
TextArea just got owned.
http://www.jessewarden.com/archives/2006/07/nonselectable_t.html


- Original Message - 
From: jpc14_99 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, July 25, 2006 7:37 PM
Subject: [flexcoders] Re: has anyone ever disabled selectability for a 
textArea??


Thanks for all the help.  I have it recognizing my class just fine
now.  Unfortunately I'm getting this error:

Attempted access of inaccessible property textField through a
reference with static type...


So the class I'm using (below) isn't quite cutting it.  Any ideas for
changes?

--

package
{
import mx.controls.TextArea;

public class myTextArea extends TextArea
{
protected override function createChildren():void {
textField.selectable = false;
super.createChildren();
}
}
}






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links







 Yahoo! Groups Sponsor ~-- 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/WktRrD/lOaOAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: has anyone ever disabled selectability for a textArea??

2006-07-25 Thread jpc14_99
Thanks to everyone for the help. I'm still getting an error:

Attempted access of inaccessible property textField through a 
reference with static type...

Obviously the code you guys gave me is good, so I have to assume it's 
because I'm running Beta 3 Flex. I'm upgrading in the next few days so 
I'll let you know if it works then. Thanks again.






 Yahoo! Groups Sponsor ~-- 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/SktRrD/hOaOAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: has anyone ever disabled selectability for a textArea??

2006-07-24 Thread jpc14_99

 I thought it was TextArea.selectable = false;  Does it have that 
property?


No, it doesn't.  I can't imagine why not.  I am using Beta3 though, was 
the property selectable added in the release version?  I didn't see it 
in any of the release notes.






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Re: has anyone ever disabled selectability for a textArea??

2006-07-24 Thread jpc14_99

 I thought it was TextArea.selectable = false;  Does it have that 
property?


No, it doesn't.  I can't imagine why not.  I am using Beta3 though, was 
the property selectable added in the release version?  I didn't see it 
in any of the release notes.





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/