Option 3 also works like this ;-) without giving the namespace a
reference:

<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml";>

           <AddSale xmlns="panels.status.*" />

</mx:Application>

Just thought I'd provide yet another way. But may I add that Dustin's
examples are better to use, I merely wanted to demonstrate an alternative.

Andrew Spaulding
www.flexdaddy.info



--- In flexcoders@yahoogroups.com, "Mercer, Dustin"
<[EMAIL PROTECTED]> wrote:
> You have to set the namespace property (xmlns:xxx) on either the app or
> the instantiated control.  I.E.
> 
>  
> 
> Option 1:
> 
>  
> 
> <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml";
> xmlns:addsale="panels.status.*">
> 
>             <addsale:AddSale />
> 
> </mx:Application>
> 
>  
> 
> Option 2
> 
>  
> 
> <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml";>
> 
>             <addsale:AddSale xmlns="panels.status.*" />
> 
> </mx:Application>
> 
>  
> 
>  
> 
> Either one of those solutions should work :-)  If you need more
> explanation, let me know.  
> 
>  
> 
> Dustin Mercer
> 
>   _____  
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Jeremy Rottman
> Sent: Thursday, September 01, 2005 1:07 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Including files.
> 
>  
> 
> I am not sure where to begin. My app structure is folder based start
> with index.mxml/application.cfm on the top teir. Then I move into
> folders that I can panels within the panel folder I have several
> folders broken up in to the different app requirements. The question I
> have is, what is the best way to use custom components, as I plan to
> develope each panel as seperate custom components. 
> 
> So if I wanted to include the page Add Sale that was in the following
> heirarchy, how would I do it. Would I use soemthing like this
> </panels/status/addSale> to use it as a custom component?
> 
> --Folder Heirachy--
> 
> Root
>     /Panels
>           /Status
>                 /addSale.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 
> 
>  
> 
> *      Visit your group "flexcoders
> <http://groups.yahoo.com/group/flexcoders> " on the web.
>         
> *      To unsubscribe from this group, send an email to:
>        [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]> 
>         
> *      Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service <http://docs.yahoo.com/info/terms/> . 
> 
>  
> 
>   _____




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/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/
 


Reply via email to