Typeerror: error #1010

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. :slight_smile:

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:

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.