Re: button instance name?

"Laurent Cocea" <[email protected]> Thu, 11 Sep 2003 12:45:49 -0700 (PDT)
Newsgroups gmane.comp.web.ming.general
Message-ID <20030911124550.2268.h020.c009.wm@mail.canada.com.criticalpath.net>
Thanks, Wolfgang. I tried

 $large = new SWF::Sprite();
 ...<add button>
 $small = new SWF::Sprite();
 ...<add button>
 $small->nextFrame();
 $instance = $large->add($small);
 $instance->setname("small");
 $large->nextFrame();

and then I tried using _root.small._x in the main AS but it doesn't seem
to work (maybe _root.large.small._x would work but I cannot use that).
Any ideas?

BTW, I use the perl extension of ming-0.3a-dev.

-Laurent


On Thu, 11 Sep 2003 19:39:54 +0200 (CEST), Wolfgang Hamann wrote:

> >> How should I go about naming "small" so that I can call it directly
> from
> >> the main actionscript, without using somethig like
_root.large.small? 

> have you tried the
> $instance = $movieclip->add($button);
> $instance->setname("smallbutton");
> way?
> 
> Wolfgang