1 Reply Latest reply: May 3, 2014 12:27 PM by Rob Dillon RSS

    Istance movieclip

    Luis1977 Community Member

      i have 3 moviclip on stage:

       

      corn1

      corn2

      corn3

       

      and this call function:

       

      border1.addEventListener( MouseEvent.CLICK, addcorn(1) );

       

      public function addcorn(ncorn) {

       

                return function(event:MouseEvent):void {

               

                var corn = "corn"+ncorn;

                corn.x=10;

                corn.y=21;

       

                 };

      }

       

      AND THIS ERROR!!!:

      Property instanceName not found on String and there is no default value!

       

      WHY?????