> How would I do that?

 

Look at the Ant scripts in our open source Subversion repository.

 

> what about setting properties like "enabled = false"? Do I still put
that in the constructor method?

 

Yes.

 

- Gordon

 

________________________________

From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of dorkie dork from
dorktown
Sent: Wednesday, May 21, 2008 9:08 AM
To: [email protected]
Subject: Re: [flexcomponents]Converting an MXML component to a AS3
Component Class

 

Gordon, 
I had no idea. That's great! How would I do that? 

Here is my Ant task:

    <!-- Creates an SWC Component and exports it to the SWC directory in
the current project -->
    <target name="Export to SWC" depends="Create SWC Directory"
description="Exports SWC to specific directory">
        <echo>Exporting component to SWC directory...</echo>
        
        <compc 
            output="${swcDirectory}/${swcFile}"
            include-classes="${componentClasses}">
            <source-path path-element="${basedir}"/>
            <source-path path-element="${componentSource}"/>
            
            <namespace uri="http://www.flexcapacitor.com/2007/mxml
<http://www.flexcapacitor.com/2007/mxml> " manifest="manifest.xml"/> 
            
            <include-namespaces
uri="http://www.flexcapacitor.com/2007/mxml
<http://www.flexcapacitor.com/2007/mxml> "/>
        </compc>
    </target>

I can set styles with default.css but what about setting properties like
"enabled = false"? Do I still put that in the constructor method?

 

Reply via email to