FWIW, I adjusted Lizhi’s bat scripts to a shell script to run the test on my 
Mac:

#set FLEX_HOME=d:/sdk/flexjs7
FLEX_HOME=/FlexSDK/FlexJSNightly
MXMLC_PATH="$FLEX_HOME/js/bin/mxmlc"
EXTERN_PATH="$FLEX_HOME/js/libs/js.swc"
main=TestBitmapDraw
# main=TestHungryHero
# main=TestByteArrayVSArray
# main=Main
# main=Test3

ARGS='-remove-circulars'
#ARGS='-debug=true -remove-circulars'
#ARGS='-remove-circulars -js-compiler-option="--compilation_level 
WHITESPACE_ONLY"'
$MXMLC_PATH $ARGS -external-library-path="$EXTERN_PATH" 
-compiler.source-path=../src src/$main.as -define=CONFIG::as_only,false 
-define=CONFIG::js_only,true

I checked the project out of Github, so I think it’s current.

If I’m understanding Lizhi correctly, the code should be run with the code 
commented out. When I do that, it compiles correctly, but I get a runtime error 
in the browser.

Th error is from here:
draw(tf,bmd);

Which calls TextField.__draw() with a null Matrix. This causes a runtime error 
in renderText() because it’s expecting a non-null Matrix.

Again, this seems to be a bug in Lizhi’s code.

BTW, it’s much easier to see the problem in Chrome than Firefox because Chrome 
breaks at the error and shows the call stack.

Lizhi, if I’m missing something, please include that screenshot so we can 
understand.

On May 22, 2016, at 8:12 AM, Alex Harui <aha...@adobe.com> wrote:

> 
> 
> On 5/21/16, 3:25 PM, "Andy Dufilie" <andy.dufi...@gmail.com> wrote:
> 
>> Copying and pasting error messages may help. Screenshots may help as well.
> 
> Exactly.  No need to write more words.  Just copy and paste console output
> or link to screenshots of runtime errors.  And link to small test cases.
> Especially on weekends, if I only have a few minutes to spare, if you can
> save me time, I'll probably save you time by having an informed thought.
> If I need to spend those few minutes trying to create your scenario, I
> will likely run out of time.
> 
> -Alex
> 

Reply via email to