# Typeerror: error #1010

**URL:** <https://forum.kirupa.com/t/typeerror-error-1010/319387>\
**Category:** flash\
**Created:** [February 18, 2011, 3:46pm UTC](https://forum.kirupa.com/t/typeerror-error-1010/319387 "2011-02-18T15:46:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![phoenixalia](https://avatars.discourse-cdn.com/v4/letter/p/df788c/32.png) [@phoenixalia](https://forum.kirupa.com/u/phoenixalia)\
**Post date:** [February 18, 2011, 3:46pm UTC](https://forum.kirupa.com/t/typeerror-error-1010/319387/1 "2011-02-18T15:46:05Z")

</div>

Yes, I know there are many threads regarding this but I don’t know anything about actionscript but I need this script urgently for a project I just started flash. I’m new here. 🙂

What the title says. I get this error:

TypeError: Error #1010: A term is undefined and has no properties.  
at card3\_fla::MainTimeline/frame1()[card3\_fla.MainTimeline::frame1:4]

Flash CS5, actionscript 3.  
This is the code in which I get the error:

```auto
import com.greensock.*;
import com.greensock.easing.*;
var opened : Boolean = false;
**card_mc.page1_mc.stop();**
card_mc.page1_mc.addEventListener(MouseEvent.CLICK,turnPage);
TweenLite.to(card_mc,4,{x:400, rotationZ:-5, ease:Strong.easeInOut});
function turnPage(e:MouseEvent):void{
 if(!opened){
  opened = true;
  addEventListener(Event.ENTER_FRAME, openCard);
  TweenLite.to(card_mc.page1_mc,2,{rotationY:180, ease:Strong.easeOut});
 }
 else{
  opened = false;
  addEventListener(Event.ENTER_FRAME, closeCard);
  TweenLite.to(card_mc.page1_mc,2,{rotationY:0, ease:Strong.easeOut});
 }
}
function openCard(e:Event):void{
 if(card_mc.page1_mc.rotationY > 90){
  card_mc.page1_mc.gotoAndStop(2);
 }
}
function closeCard(e:Event):void{
 if(card_mc.page1_mc.rotationY < 90){
  card_mc.page1_mc.gotoAndStop(1);
 }
}

```

I used the debugger cuz it said in many threads to use it and when I do it points at line 4. The one which I’ve made bold.  
I don’t think its a problem with greensock…but help would really be appreciated. =) Thank you.
