Seems like the most important part is when Muzak wrote this: "Linkage properties for "RegistrationPanel" in library: class: amlak.ui.RegistrationPanel base class: flash.display.MovieClip"
I have found these two settings a little confusing. For example, creating a simple "code behind class", when I first started working with Flash, I stumbled into this format: class RegistrationPanel base class: amlak.ui.RegistrationPanel This actually seemed to work. What is the difference behind-the-scenes? In hindsight, this must be creating a duplicate class RegistrationPanel in the global namespace that inherits from the subclass of the same name, right? On Sat, Mar 22, 2008 at 6:23 AM, Muzak <[EMAIL PROTECTED]> wrote: > Works fine here: > > package amlak.ui { > > import flash.display.MovieClip; > > public class APanel extends MovieClip { > > public function APanel() { > trace("APanel ::: CONSTRUCTOR"); > } > > } > } > > package amlak.ui { > > import flash.display.MovieClip; > import amlak.ui.APanel; > > public class RegistrationPanel extends APanel { > > public function RegistrationPanel() { > trace("RegistrationPanel ::: CONSTRUCTOR"); > } > > } > } > > Linkage properties for "RegistrationPanel" in library: > > class: amlak.ui.RegistrationPanel > base class: flash.display.MovieClip > > regards, > Muzak > > ----- Original Message ----- > From: "Omar Fouad" <[EMAIL PROTECTED]> > To: "Flash Coders List" <flashcoders@chattyfig.figleaf.com> > Sent: Saturday, March 22, 2008 2:09 AM > Subject: Re: [Flashcoders] Custom MovieClip Classes > > > > Nope look at this. > > > > package amlak.ui > > { > > import flash.text.*; > > import flash.display.MovieClip; > > > > public class RegistrationPanel extends APanel { > > > > public function RegistrationPanel() { > > > > } > > > > } > > } > > > > 5000: The class 'amlak.ui.RegistrationPanel' must subclass ' > > flash.display.MovieClip' since it is linked to a library symbol of that > > type. > > > > I thought that RegistrationPanel would inherit also MovieClip since > APanal > > does. But same Error. > > > > _______________________________________________ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > -- -jonathan howe :: 404.434.2321 :: 180 High St Apt 26 Portland, ME 04101 _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders