Where did you find that Stats class? Do you have the source code for it?  Or
a .swc library file for it?

If you have the source code and you want to compile it into that package,
there is actually no way to easily compile actionscript into a separate
package right now, via
the LPS compiler.

If you define a class and compile it with our compiler, it will always
emit an as3 class definition into the default package.



The way to do use that class in the net.hires.debug package, I think ,would
be for you to build  it as a .swc library file, using the
flex 'compc' command, and then put that .swc file into the WEB-INF/flexlib
directory. That way, our compiler will be able to link against it when
compiling
your app.



On Wed, Mar 10, 2010 at 1:51 AM, ason <[email protected]> wrote:

> Hi all,
>
> I am trying to execute Flash's Stats on an OpenLaszlo app.
> But the code does not work.
>
> I must say that I dont know if this works or not.
> Just a test.
>
> But any ideas?
>
> <?xml version="1.0" encoding="UTF-8"?>
> <canvas proxied="false" bgcolor="0xeeeeee">
>    <view>
>      <switch>
>        <when property="$as3">
>          <passthrough>
>            import flash.display.*;
>            import net.hires.debug.*;
>          </passthrough>
>        </when>
>      </switch>
>      <handler name="oninit"><![CDATA[
>        var vr = this.getMCRef();
>        vr.addChild(new Stats());
>     ]]></handler>
>    </view>
> </canvas>
>
>
> minamotonoason(ason)
> Japanese OpenLaszlo User
>



-- 
Henry Minsky
Software Architect
[email protected]

Reply via email to