Hi Ryan, Can you go ahead and file this as a bug so it is tracked, I'll try to take a look at it later this week.
On Tue, Jun 22, 2010 at 3:59 PM, Ryan M <[email protected]> wrote: > Well, this import issue is starting to look more like a bug. The Unhandled > IOErrorEvent popup doesn't appear when stage is set to normal on the import > tag. When stage is set to late it appears on every refresh. That's one > issue. > > Second one is creating an instance of the class contained in the imported > library file. First, here is the library file called 'import_library.lzx'. > > <?xml version="1.0" encoding="UTF-8"?> > <library> > <class name="helloT"> > <text text="Hello World" fgcolor="0xffffff" fontstyle="bold" fontsize="14" > /> > </class> > </library> > > Next, the actual lzx file that imports it named 'import_test.lzx'. > > <?xml version="1.0" encoding="UTF-8"?> > <canvas width="100%" height="100%" title="Import Test"> > <import name="lib" href="import_library.lzx" stage="late" /> > <view name="container" width="500" height="400" bgcolor="blue"> > <simplelayout axis="y" spacing="5" /> > <button name="add" text="Add Hello"> > <handler name="onclick"> > new lz.helloT(parent); > </handler> > </button> > </view> > </canvas> > > Using the two files above, you should get the flash debugger pop-up. Also, > when you click the button it will tell you instantiation was attempted on a > non constructor. However, if you replace the import_test.lzx code with this > code it will work fine. All I did was add an actual tag for the class > contained in the library file. > > <?xml version="1.0" encoding="UTF-8"?> > <canvas width="100%" height="100%" title="Import Test"> > <import name="lib" href="import_library.lzx" stage="late" /> > <view name="container" width="500" height="400" bgcolor="blue"> > <simplelayout axis="y" spacing="5" /> > <button name="add" text="Add Hello"> > <handler name="onclick"> > new lz.helloT(parent); > </handler> > </button> > <helloT /> > </view> > </canvas> > > The reason I am posting this instead of submitting a JIRA ticket is in the > hopes that this really isn't an error and I'm just doing it incorrectly. > > > On 6/22/2010 3:38 PM, Ryan M wrote: > >> Well, unfortunately the compile times are still extremely slow for swf 9 >> and 10 in 4.8.0. Compile time for swf 8 isn't as bad. There's also an >> interesting flash popup saying: >> >> Error #2044: Unhandled IOErrorEvent:. text=Error #2124: Loaded file is an >> unknown type. >> >> which appears to be triggered by the import statement. It seems to be >> coming from the proxied variable as I was able to make the popup go away by >> removing 'proxied="false" from the import statement in 4.7.2. Unfortunately, >> that doesn't do the trick in 4.8.0. You happen to know if there is anything >> I can try to get rid of that pop up. It loads in the built-in debugger, not >> the Laszlo debugger. Also, any other suggestions on compile time would be >> appreciated. >> >> -- Henry Minsky Software Architect [email protected]
