Hello folks!
I am trying to remove a movieclip from my main timeline but it is not working. you click a button that is in a movieclip that is dynamically added to the stage and it is supposed to remove a movieclip from the main stage. I added a trace to see if it was grabbing the right movieclip and it is. The error message that I am getting is:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
package MarketingQuestionaire
{
import flash.display.MovieClip;
import flash.display.DisplayObject;
import flash.display.DisplayObjectContainer;
import fl.motion.MotionEvent;
import fl.transitions.Tween;
import fl.transitions.easing.;
import fl.transitions.TweenEvent;
import flash.events.EventDispatcher;
import flash.events.;
import fl.transitions.;
import fl.transitions.easing.;
import MarketingQuestionaire.*;
public class changeSlideWithNav extends MovieClip
{
public function changeSlideWithNav()
{
this.parent.removeChild(slideCounter.mySlide[0]);
}
}
}
Your help would be great.