[Laszlo-dev] isSubclassOf [Was: Detecting classes]
Henry Minsky
henry.minsky at gmail.com
Mon Jan 18 09:35:12 PST 2010
I bet that would work. Maybe each interstitial could reference it's super
class by name
in it's constructor or something.
var mysuper = $lzsc$mixin$LzFormatter$LzView;
I dunno if their compiler would optimize that away if it's not referenced.
At one point
I was making a list of all the LFC classes, but once we started using the
'lz' table
I didn't need to do that anymore.
On Mon, Jan 18, 2010 at 12:24 PM, P T Withington <ptw at pobox.com> wrote:
> On 2010-01-18, at 12:12, Henry Minsky wrote:
>
> >> ReferenceError: Error #1065: Variable $lzsc$mixin$LzFormatter$LzView is
> >> not defined.
> >>
> >> Which is whacky. The definition of lz.text is:
> >>
> >> dynamic class LzText extends $lzsc$mixin$LzFormatter$LzView {
> >>
> >> I think the flex compiler is being too clever and not defining the
> >> interstitial class in the linked application since there are no direct
> >> references to it. Maybe it would be better if we just defined our own
> >> internal class property to support isSubclassOf in as3.
> >>
> >
> > Yeah I remember I had that problem with the swf9 kernel,there were LFC
> > classes which would not actually be linked in unless you referenced them
> > someplace. I forget how we solved that. I guess the 'lz' table gets a
> > reference to every user visible class now.
>
> I guess I could make each mixin reference every interstitial that uses it?
>
>
--
Henry Minsky
Software Architect
hminsky at laszlosystems.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20100118/49e2e26f/attachment-0001.html
More information about the Laszlo-dev
mailing list