Your code looks good to me. Mighty weird but it just might be the case intrinsic classes like Rectangle cannot be extended.
http://www.kirupa.com/developer/oop2/AS2OOPClassStructure8.htm -mL http://knowledge.lapasa.net -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Jim Kremens Sent: Thursday, October 26, 2006 12:40 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] There is no method with the name 'super' Seems weird, as your code looks ok. If it's any comfort, 'super()' is called automatically, whether you explicitly call it or not... If you want to override methods of Rectangle, just override them in your new class. Jim Kremens On 10/26/06, Hans Wichman <[EMAIL PROTECTED]> wrote: > > Hi, > there is no constructor Rectangle() in Rectangle.as, only function > Rectangle( x : Number, y : Number, w : Number, h : Number ); > > so you cannot call it. You could call super(0,0,0,0); > > greetz > JC > > > On 10/26/06, Quinten [ :: MediaMonks :: ] <[EMAIL PROTECTED]> wrote: > > > > I have 2 classes: 'Tester' wich extends a linked movie on the stage. And > > RectangleExtender wich is called in Tester > > > > class Tester extends MovieClip > > { > > public function Tester() > > { > > var objRectangleExtender:RectangleExtender = new > > RectangleExtender(); > > } > > } > > > > and: > > > > import flash.geom.Rectangle; > > > > class RectangleExtender extends Rectangle > > { > > public function RectangleExtender() > > { > > super(); > > } > > } > > > > Everything works fine until i put actionscript on a frame. (just a > > simple stop(); on the first frame) > > > > then i get this error: > > > > **Error** H:\temp\SuperFoutmelding\RectangleExtender.as: Line 7: There > > is no method with the name 'super'. > > super(); > > > > Total ActionScript Errors: 1 Reported Errors: 1 > > > > > > I really have no idea why flash suddenly throws this error. does anyone > > has experience with this kind of error? > > > > I put the source files here: > > http://stuff.mediamonks.net/quinten/SuperError.rar > > > > just remove the stop() command in the 'mcLinker' movieclip and you will > > see that it works fine. > > > > -- > > regards, > > > > Quinten > > > > ======================================\\ > > Quinten Beek ; Game Monk > > MediaMonks BV ; Interactive Art > > Schapenkamp 2 | 1211 PA, Hilversum > > The Netherlands | Europe > > email : [EMAIL PROTECTED] > > internet address : http://www.mediamonks.com > > ============================================|| > > * Member of the Creative Brotherhood. > > ============================================|| > > * Please quote all replies in correspondence. > > ============================================|| > > > > _______________________________________________ > > Flashcoders@chattyfig.figleaf.com > > To change your subscription options or search the archive: > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > Brought to you by Fig Leaf Software > > Premier Authorized Adobe Consulting and Training > > http://www.figleaf.com > > http://training.figleaf.com > > > _______________________________________________ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > -- Jim Kremens _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com