|
Nope, same error. Im sure its a namespace problem. And yes,
u can use "" (nothing) as a namespace. Usually i use the whole package path as
namespace:
<com.package:panel
xmlns:mx="http://www.macromedia.com/2003/mxml" xmlns:com.package="com.package.*">
</com.package:panel> Greetz Erik From: JesterXL [mailto:[EMAIL PROTECTED] Sent: donderdag 7 april 2005 17:16 To: [email protected] Subject: Re: [flexcoders] ActionScript Components That doesn't look like the correct way to do a
namespace; I'm still learning the freedom of syntax, so bare with me. It
appears your colliding your namespace with the mx one. Instead, make your
own; where you have xmlns="erik.extend" I changed it to
xmlns:ew="erik.extend".
Try that.
<ew:panel xmlns:mx="http://www.macromedia.com/2003/mxml" xmlns:ew="erik.extend.*">
<mx:Button label="yellow" /> </ew:panel> ----- Original Message -----
From: Erik Westra
Sent: Thursday, April 07, 2005 11:03 AM
Subject: RE: [flexcoders] ActionScript Components Well, flex is whining about subclassing mxml components
wich have children with other mxml components containing
children:
The component
mx.controls.Button may not be used as a child of erik.extend.panel because the
erik.extend.panel is a container with internal children.
[panel.mxml]
<mx:Panel xmlns:mx="http://www.macromedia.com/2003/mxml">
<mx:Button label="crazy" /> </mx:Panel> [panelSub.mxml]
<panel xmlns:mx="http://www.macromedia.com/2003/mxml"
xmlns="erik.extend.*">
<mx:Button label="yellow" /> </panel> Greetz
Erik
From: JesterXL [mailto:[EMAIL PROTECTED] Sent: donderdag 7 april 2005 16:48 To: [email protected] Subject: Re: [flexcoders] ActionScript Components Can you be more specific? I don't have any
problems sub-classes my MXML components.
----- Original Message -----
From: Erik Westra
Sent: Thursday, April 07, 2005 5:42 AM
Subject: RE: [flexcoders] ActionScript Components A good reason to make pure actionscript components is that
they can be subclassed.
When u create an mxml component, u cant extends a custom
mxml component wich has children.
Greetz Erik From: Gordon Smith [mailto:[EMAIL PROTECTED] Sent: donderdag 7 april 2005 9:04 To: '[email protected]' Subject: RE: [flexcoders] ActionScript Components It is
essentially a matter of preference. There are no performance differences that I
know of.
I
generally recommend creating components in MXML because it makes several
things easier, such as creating internal subcomponents, laying them out, and
assigning event handlers to them. For example, if I was creating a
LoginPanel, I would certainly do it in MXML.
Can
you explain what is "a bit messy" about MXML components?
-
Gordon
Yahoo! Groups Links
|
Title: Message
- Re: [flexcoders] ActionScript Components Erik Westra
- Re: [flexcoders] ActionScript Components Matthew Shirey
- RE: [flexcoders] ActionScript Components Stephen Gilson

