EachFloor vs. EachItem?
On Wed, May 20, 2009 at 7:56 AM, Mendelsohn, Michael <
[email protected]> wrote:
> Hi list...
>
> Seemingly simple, but why do I get an Implicit coercion error 1067 when
> instancing this:
> var ceilingApparatus:EachItem= new FloorItem();
>
> and, this error too:
> var ceilingApparatus:FloorItem = new FloorItem();
> // undefined
> trace(ceilingApparatus["init"]);
>
> package NewBuildingDirectory{
> import flash.display.MovieClip;
> public class EachFloor extends MovieClip{
> function EachFloor(){
> }
> public function init(whichFrame:int):void{
> gotoAndStop(whichFrame);
> }
> }
> }
>
> package NewBuildingDirectory{
> public class FloorItem extends EachFloor{
> function FloorItem(){
> }
> }
> }
>
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders