if we can use Stats() , it may be a very good tool to improve the performance of OpenLaszlo apps.
I know how to use an .swc file on OpenLaszlo. Henry, you can make the .swc for Stats? -- ason 2010/3/11 Henry Minsky <[email protected]>: > OK, if you want to try it, I think making an .swc library file should work. > That is how people use the Google Maps API in SWF9/10 Laszlo apps. > > On Thu, Mar 11, 2010 at 12:30 AM, ason <[email protected]> wrote: >> >> Henry , >> >> I just found Stats on some blogs regarding ActionScript. >> >> Stats seems to be very useful, so I just tried using it on OpenLaszlo. >> Just a try. >> >> 2010/3/11 Henry Minsky <[email protected]>: >> > 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] >> > >> > >> > >> > > > > -- > Henry Minsky > Software Architect > [email protected] > > >
