Thanks. One last question on this. I have no problem defining how to put a
component in the same directory and using MyComp="*", but if I want to put it
in a sub directory, MyComp="MyComponents" is not working. The MyComponents
directory is now at the same level as the main app. Any ideas?
Thanks
Hank
On 6/23/06, Matt
Horn <[EMAIL PROTECTED]>
wrote:
You can use anything when
you define a namespace. You need to match
whatever you use in your mxml
tags; for example, if you name it fred,
then you reference the ButtonComp
control with a "fred" prefix:
<?xml
version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:Fred="*">
<Fred:ButtonComp
id="b1" click="sumTotal()"/>
</mx:Application>
In
this case, the file ButtonComp.mxml is in the same directory as the
app
that references it. The entire file can consist of something as
simple
as:
<mx:Button xmlns:mx=" http://www.adobe.com/2006/mxml"/>
hth,
matt
horn
flex docs
> -----Original Message-----
> From: [email protected]
>
[mailto:[email protected]] On
Behalf Of hank williams
> Sent: Friday, June 23, 2006 10:19 AM
>
To: [email protected]
>
Subject: Re: [Junk E-Mail - LOW] [flexcoders] Another simple
> flex
newbie question
>
> Ok, so in looking at the docs, to include a
directory you
> use xmlns:MyComp="*"
>
> This should as I
understand it include everything from the
> main app
directory.
>
> Is MyComp a reserved word that is the holder of
the directory
> path, or could you use other words here instead of
MyComp.
>
> Thanks
> Hank
>
>
> On
6/23/06, Shannon Hicks <[EMAIL PROTECTED]>
wrote:
>
> You want to use
MXML components...
>
>
> http://livedocs.macromedia.com/labs/1/flex20beta3/wwhelp/wwhim
>
pl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=Part1_Ge
tStarted.html >
<http://livedocs.macromedia.com/labs/1/flex20beta3/wwhelp/wwhi
>
mpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=Part1_G
etStarted.html>
>
>
You can pass in data when the component is called, and
> even have
bendable and/or functions that return
values/objects.
>
>
Shan
>
> ________________________________
>
> From: [email protected]
>
[mailto:[email protected]] On
Behalf Of hank williams
> Sent:
Friday, June 23, 2006 8:10 AM
>
To: [email protected]
>
Subject: [Junk E-Mail - LOW] [flexcoders] Another
> simple flex newbie
question
>
>
>
>
>
How do you modularize
MXML.
>
> In actionscript we
import classes, and each class
> represents some conceptual chunk, but
I am not sure what the
> equivalent is in MXML.
>
> I have been looking at
lots of code examples, but they
> are all small. This has been very
helpful in learning how
> APIs work, but I am on the edge of my two
day project feeling
> bloated and unmodular.
>
> I am sure, lots of
people will say the answer is
> cairngorm, but for right now I want to
learn MXML "raw"
> before adding another layer on top of
it.
>
> Thanks
>
Hank
>
>
>
>
--
> No virus found in this
incoming message.
> Checked by AVG
Free Edition.
> Version: 7.1.394 /
Virus Database: 268.9.2/372 -
> Release Date:
6/21/2006
>
>
>
>
>
>
>
--
> No virus found in this
outgoing message.
> Checked by AVG
Free Edition.
> Version: 7.1.394 /
Virus Database: 268.9.2/372 -
> Release Date:
6/21/2006
>
>
>
>
>
------------------------
Yahoo! Groups Sponsor --------------------~-->
Something is new at
Yahoo! Groups. Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/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/