Skip to main content
September 29, 2010
Question

asdoc issues with TLF text

  • September 29, 2010
  • 1 reply
  • 596 views

I'm having some issues with an unwanted class being included into my asdocs and have managed to isolate the cause to including TLF text in an swc.

The project is as3 only.

I am exporting an swc (assets.swc) from Flash CS5, which has a class (UserInterface) which contains a TLF textfield.

I am then adding assets.swc to my library path and using the UserInterface class within my application.

When I generate asdocs (see settings below) from my source all works well however I have an unwanted class included.

The class being included is in the top level package and is named along the lines of _7a743e26a97ed6a4a722a566cf5666c0a2a8db86575c71ff5221eeeea60c45c8_mx_core_FlexModuleFactory (the checksum part of the name varies).

From what I can tell this class handles RSL loading for the TLF. In flash I have tried setting textLayout.swc to be merged into code with no change in asdoc output (release swf shows additional filesize so it is merging).

Any help avoiding this would be much appreciated (changing to classic text is a solution though not really what I'm looking for).

The ant call to asdoc is included below

<exec executable="${asdoc.exe}" failonerror="true">
     <arg value="-doc-sources=${source_path.main}"/>
     <arg value="-library-path+=libs"/>
     <arg value="-left-frameset-width=350"/>
     <arg value="-window-title='${title}'"/>
     <arg value="-output=${asdocs_outputfolder}"/>
     <arg value="-examples-path=./examples"/>
</exec>

This topic has been closed for replies.

1 reply

Bill_Sahlas
Participating Frequently
September 29, 2010

You could try using the actual "Flex Ant Tasks" asdoc task

http://help.adobe.com/en_US/flex/using/WSda78ed3a750d6b8f4ce729f5121efe6ca1b-8000.html

Example

The following example defines two targets, doc and clean. The doc target generates ASDoc for the Spark and MX button classes. The clean target deletes all the files generated by the doc
target.

<?xml version="1.0" encoding="utf-8"?> 
<project name="ASDoc Builder" basedir="."> 
    <property name="FLEX_HOME" value="C:/p4/flex/flex/sdk"/> 
    <property name="OUTPUT_DIR" value="C:/temp/ant/asdoc"/> 
    <taskdef resource="flexTasks.tasks" classpath="${FLEX_HOME}/ant/lib/flexTasks.jar" /> 
    <target name="doc"> 
        <asdoc output="${OUTPUT_DIR}" lenient="true" failonerror="true"> 
            <doc-sources 
                path-element="${FLEX_HOME}/frameworks/projects/spark/src/spark/components/Button.as"/> 
            <doc-sources 
                path-element="${FLEX_HOME}/frameworks/projects/framework/src/mx/controls/Button.as"/> 
        </asdoc> 
    </target> 
    <target name="clean"> 
        <delete includeEmptyDirs="true"> 
            <fileset dir="${OUTPUT_DIR}" includes="**/*"/> 
        </delete> 
    </target> 
</project>