Also not an AS3 expert, but I think Danny is wrong. The super function is necessary to call the parent constructor. I believe that the problem is related to what Petro said about labelClass being outside of the AbstractMarker class. I would also consider subclassing showTitle and adding a trace to see if the value is correct in the DateMarker version. If so, then someone the two labelClass variables aren't the same actual variable which would be weird :)

Danny Kodicek wrote:
 Not an AS3 expert by any means, but my first thought is that the error is
here:

  public class DateMarker extends AbstractMarker
  {
    public function DateMarker ()
    {
      super();
      labelClass = "date"
    }
  }

I'm not sure, but the super() function looks out of place here. You're
already invoking the AbstractMarker constructor by creating a subclass, so
it should work by itself. I suspect that calling super() there has messed
with your scope somehow.

Feel free to shoot me down.
Danny

_______________________________________________
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

Reply via email to