Hi Jason,
been experimenting.
as long you don't have typed TweenLite vars that point to a Tweenlight class and if you copy over the com.greenscok package to a seperate "LIB" folder (that you can include in your project as a second base classpath node)
the SRC folder will compile fine this way:
I used this structure to test:


+---src
|   |   Main.as
|   |
|   \---sub
|           AvailableClass.as
|
+---lib
|   |   LibClass.as
|   |
|   \---com
|       \---greensock
|           |   OverwriteManager.as
|           |   TimelineLite.as
|           |   TimelineMax.as
|           |   TweenAlign.as
|           |   TweenLite.as
|           |   TweenMax.as
|           |   TweenNano.as
|           |
|           +---plugins ....



where the Main.as class looked like this:


package
 {
        import flash.display.Sprite;
        import com.greensock.TweenLite;
        import LibClass;
        import sub.AvailableClass;
        /**
         * ...
         * @author Jason Merrill
         */


        public class Main extends Sprite
        {
                private var _mySprite:Sprite;

                private var _availableClass:AvailableClass;
                /**
                 * Constructor
                 * @param duration the duration of the animation
                 */
                public function Main(duration:Number)
                {
                       TweenLite.to(_mySprite, duration, { x:10, y:10 } );
                        TweenLite.to(this, duration, { x: -10, y: -10 } );
                        new LibClass();
                }

public function get availableClass():AvailableClass { return _availableClass; }

public function set availableClass(value:AvailableClass):void
                {
                    _availableClass = value;
                }


        }

 }


I also included a second LibClass as a test. And as long os I didn't include a variable ref like:
private var _lib:LibClass;
everything went fine, even when using the "new LibClass();"


My command line and result looked like this:

G:\tmp\jason>"E:\flex_sdk\v3.2.0.3794\bin\asdoc.exe" -doc-sources "G:\tmp\jason\src" -strict=false -warnings=false Loading configuration file E:\flex_sdk\v3.2.0.3794\frameworks\flex-config.xml
   Documentation was created in G:\dump\jason\asdoc-output\


Cheers,
Latcho




On 14-04-10 0:12, Merrill, Jason wrote:

Thanks, I've tried that all different ways substituting in
com.greensock.TweenLite - no luck.  Here is a sample class that imports
Greensock's TweenLite class which in tests I cannot get ASDoc to exclude
TweenLite.  If anyone knows how to get this class documented in ASDoc
without compiler errors, I'm all ears.

package
{
        import flash.display.Sprite;
        import com.greensock.TweenLite
        /**
         * ...
         * @author Jason Merrill
         */
        
        
        public class Main extends Sprite
        {
                private var _mySprite:Sprite;
                /**
                 * Constructor
                 * @param duration the duration of the animation
                 */             
                public function Main(duration:Number)
                {
                        TweenLite.to(_mySprite, duration, {x:10, y:10 }
);
                }
                
        }

}


Jason Merrill

Bank of  America  Global Learning
Learning&  Performance Solutions

Join the Bank of America Flash Platform Community  and visit our
Instructional Technology Design Blog
(note: these are for Bank of America employees only)



_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to