Can someone point me in the right direction here…

 

I have a file, index.mxml, that uses an mxml component DueDiligence.mxml in a subdirectory structure.  DueDiligence.mxml uses an mxml component StatePicker.mxml in a different sub directory structure.  I’ve discovered that I cannot uses the StatePicker component in the DueDiligence component without defining the proper namespace, however the StatePicker component sits in a parallel directory to the directory in which DueDiligence sits.  Should I scrap the sub-directory structure, or is there a better approach???  Do I just not know the proper syntax for relative namespace references???

 

/index.mxml

<?xml version="1.0" encoding="utf-8"?>

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

                                xmlns:mod="assets.mods.*"

                                xmlns:comp="assets.comps.*"

                                xmlns="*"

                                themeColor="#9DC4FD"

                                initialize="initApp()"

                                pageTitle="Corporate Security">

                ….

                <mod:DueDiligence id="mod_dd" label="Due Diligence"/>

                ….

 

 

/assets/mods/DueDiligence.mxml

<?xml version="1.0" encoding="utf-8"?>

<mx:Canvas

                                xmlns:mx="http://www.macromedia.com/2003/mxml"

                                width="100%"

                                height="100%">

                …

                <comp:StatePicker id="comp_c_state""/>

                …

 

 

/assets/comps/StatePicker.mxml

<?xml version="1.0" encoding="utf-8"?>

<mx:HBox xmlns:mx="http://www.macromedia.com/2003/mxml" width="100%" height="100%">

 

 

Getting this compilation error:

Error /corpsec/assets/mods/DueDiligence.mxml:25

The prefix "comp" for element "comp:StatePicker" is not bound.

 

 

thanks!

 

 

Jack D. Minster

Web Applications Developer

Corporate Web Applications

[EMAIL PROTECTED]

 

Playboy Enterprises, Inc.

680 N. Lake Shore Drive

Chicago, IL 60611

 



Yahoo! Groups Links

Reply via email to