Ive just started writing a tutorial about this at the moment, im using this ant build.xml file :

<project name="MyRecordShop" default="compile" basedir=".">

        <!-- Declares references to needed directories. -->
        <property name="src.dir" location="src"/>
        <property name="build.dir" location="build"/>
<property name="logger.dir" location="D:\Work\Dev\Apps\eclipse\plugins\org.asdt.logger_0.0.8.build2\lib\flash_classes"/>
        
        <!-- Properties for the output movie -->
        <property name="width" value="500"/>
        <property name="height" value="500"/>
        <property name="framerate" value="31"/>
        <property name="bgcolor" value="FFFFFF"/>
        
        <!-- Define the MTASC ant task -->
<taskdef name="mtasc" classname="org.as2lib.ant.Mtasc" classpath="D:\Work\Dev\Flash\Tools\swf_ant_tasks\src"/>
        
        <!-- Target that uses the MTASC Ant Task. -->
        <target name="compile" description="builds sample swf">
<mtasc srcdir="${src.dir}" classpath="${src.dir}:${logger.dir}" swf="${build.dir}/${ant.project.name}.swf" main="true" header="${width}:${height}:${framerate}:${bgcolor}" trace="Log.addMessage"/>
        </target>

</project>

and this :)


class MyRecordShop
{
        public static function main():Void
        {
                TRACE("Hello World",Log.INFO);
        }
}

and i get output in the Logger. (MTASC 1.09, not 1.10)

I didnt edit Log.as at all. :)

mine already says

private var _loggerName:String = SocketLogger.LOGGER_NAME;

hope that gets you up and running...

martin

James Tarling wrote:
Thanks for your reply Bo,

I've edited Log.as so that it includes the line:
private var _loggerName:String = SocketLogger.LOGGER_NAME;

and my MTASC command line includes the following:
cp "d:\Program 
Files\eclipse\plugins\org.asdt.logger_0.0.8.build5\lib\flash_classes"
-trace Log.addMessage

And I've imported Log into my Application class, and defined an
instance of it, but still no joy.

If you have an idea of where I'm going wrong, I'd appreciate your thoughts

TIA,
J

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org


--
want to know what i think? probably not

http://relivethefuture.com/choronzon

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to