Henry Minsky | 1 May 2008 04:42

Re: what is __LZUserClassPlacementObject, and who is looking up a class for that tag?

Oh  I see what is happening, in NodeModel.java; the fake-out placement node is a tag whose constructor stuffs the placement
value into the parent class.

Hmm, well this ought to work in swf9 as well, but something
seems to not work when I just use a function per the UserClass.lzs code:

ConstructorMap.__LZUserClassPlacementObject = function __LZUserClassPlacementObject ( parent , placement ){
    parent.defaultplacement = placement;
};

Maybe I better try using a real class instead of a constructor function.



On Wed, Apr 30, 2008 at 10:35 PM, Henry Minsky <hminsky <at> laszlosystems.com> wrote:
In swf9 running the lzpix app, I get these warnings printed to the debugger:

[trace] Error:  Class for tag  __LZUserClassPlacementObject  has not been defined yet function Function() {}
[trace] Error:  Class for tag  __LZUserClassPlacementObject  has not been defined yet function Function() {}
[trace] setShowHandCursor not currently implemented in swf9.
[trace] Error:  Class for tag  __LZUserClassPlacementObject  has not been defined yet function Function() {}

Anyone know what is trying to look these up ? I see there is something in UserClass.lzs which defines
an entry in the constructormap, which won't be present in swf9, but who is actually looking this up at runtime?


--
Henry Minsky
Software Architect
hminsky <at> laszlosystems.com




--
Henry Minsky
Software Architect
hminsky <at> laszlosystems.com

P T Withington | 1 May 2008 14:11
Picon
Favicon
Gravatar

Re: what is __LZUserClassPlacementObject, and who is looking up a class for that tag?

You have conditionalized the check in makeChild to require that tags  
be implemented by Class objects, not Function.  Is this a strict  
requirement in AS3?  Is Class not a subclass of Function?

Maybe this is the way we want to go.  If so, yes, you will have to  
make this kludge a class.  We ought to unify the test in makeChild so  
that you can't accidentally write a non-class tag implementation in  
the sloppier run times...

On 2008-04-30, at 22:42 EDT, Henry Minsky wrote:

> Oh  I see what is happening, in NodeModel.java; the fake-out  
> placement node
> is a tag whose constructor stuffs the placement
> value into the parent class.
>
> Hmm, well this ought to work in swf9 as well, but something
> seems to not work when I just use a function per the UserClass.lzs  
> code:
>
> ConstructorMap.__LZUserClassPlacementObject = function
> __LZUserClassPlacementObject ( parent , placement ){
>    parent.defaultplacement = placement;
> };
>
> Maybe I better try using a real class instead of a constructor  
> function.
>
>
>
> On Wed, Apr 30, 2008 at 10:35 PM, Henry Minsky <hminsky <at> laszlosystems.com 
> >
> wrote:
>
>> In swf9 running the lzpix app, I get these warnings printed to the
>> debugger:
>>
>> [trace] Error:  Class for tag  __LZUserClassPlacementObject  has  
>> not been
>> defined yet function Function() {}
>> [trace] Error:  Class for tag  __LZUserClassPlacementObject  has  
>> not been
>> defined yet function Function() {}
>> [trace] setShowHandCursor not currently implemented in swf9.
>> [trace] Error:  Class for tag  __LZUserClassPlacementObject  has  
>> not been
>> defined yet function Function() {}
>>
>> Anyone know what is trying to look these up ? I see there is  
>> something in
>> UserClass.lzs which defines
>> an entry in the constructormap, which won't be present in swf9, but  
>> who is
>> actually looking this up at runtime?
>>
>>
>> --
>> Henry Minsky
>> Software Architect
>> hminsky <at> laszlosystems.com
>>
>>
>
>
> -- 
> Henry Minsky
> Software Architect
> hminsky <at> laszlosystems.com


Gmane