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: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of jpc14_99
Sent: Tuesday, July 25, 2006 2:47 PM
To: [email protected]
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




__,_._,___

Reply via email to