Hi,

calling a function in the root that would instantiate the symbol is not
going to work, neither is using reflection to get classes by name. The issue
you are dealing with is that by default flash will only let you attach
clips to a clip from the library from whence it came.
I'll try to whip up a sample up of the runtime share hack.

greetz
JC

On Tue, Sep 22, 2009 at 2:08 PM, jonathan howe <jonathangh...@gmail.com>wrote:

> Totally forget in AS2, but maybe research getDefinitionByName() - it can
> retrieve a class based on a classname string -  and maybe there are some
> comments about AS2 vs. AS3
>
> -jonathan
>
>
>
> On Tue, Sep 22, 2009 at 2:54 AM, Hans Wichman <
> j.c.wich...@objectpainters.com> wrote:
>
> > Hi,
> >
> > I don't remember the exact details, but if I remember correctly there are
> 2
> > ways:
> > 1.
> > let the child attach the clip at the root, copy its bitmap data and use
> > that
> > to create a clip in its own root, but this will result in static bitmaps
> > only
> >
> > 2.
> > -declare an empty clip with linkage id in the root and export it for
> > runtime
> > sharing
> > -in the child import the clip from the parent for runtime sharing
> > It was one of those hacks, but it's been a long time, so I'm not sure I
> got
> > the steps all right, I might have those files somewhere.
> >
> > Hope that helps!
> > Hans
> > On Tue, Sep 22, 2009 at 5:50 AM, Andrew Sinning <and...@learningware.com
> > >wrote:
> >
> > > How would one instantiate a symbol instance linked to the parent
> movie's
> > > library?
> > >
> > > E.g., there's an asset in top most movie's library called "Asset".  The
> > > presentation engine is a separate swf that gets loaded into the top
> most
> > > movie.  From within this movie, using AS2, I need to create an instance
> > of
> > > Asset.
> > >
> > > The child swf uses _lockRoot.
> > >
> > > Thanks!
> > > _______________________________________________
> > > Flashcoders mailing list
> > > Flashcoders@chattyfig.figleaf.com
> > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > >
> > _______________________________________________
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
>
>
>
> --
> -jonathan howe
>  _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to