Hi Boon,
  Can't remember where I got this solution - definitely not mine - but
here's how to create a MovieClip-derived class that doesn't need an
associated library symbol:
--------------
class net.something.MyButton extends MovieClip
{
    static var symbolName:String = "__Packages.net.something.MyButton ";
    static var symbolOwner:Function = MyButton;

    public function MyButton()
    {
    }

    static var symbolLinked=Object.registerClass(symbolName, symbolOwner);
}
--------------
To create it, use attachMovie:

import net.something.MyButton;

var button:MyButton=MyButton(myTimeline.attachMovie(MyButton.symbolName,

"somRandomButton",getNextHighestDepth()));

HTH,
  Ian



On 11/23/05, Boon Chew <[EMAIL PROTECTED]> wrote:
>
>
> Hi all, is there a way to create a Button class that
> is entirely done in an AS2.0 class, with no
> association to any symbol in the library.
>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to