OwnerOfSuccuby Wrote:I do not know what to do if some MovieClipObject with some script in it leaves stage on the new frame. Then compiler try to use that object one mor e time but can not so he write warnings about it. The same for objects with event listeners - i do not know how to stop them when main stage goes to another frame with out them.
stage.removeEventListener(Event.THING, function);
if(MovieClip(this.parent)!=null){
your embedded code
}
this.addEventListener(Event.ENTER_FRAME,fT)
function fT(e:Event){
if(MovieClip(this.parent)!=null){
trace("I am in");
}
else {
trace("removing");
this.removeEventListener(Event.ENTER_FRAME,fT);
}
}
( if(MovieClip(this.parent)!=null))
BlueLight Wrote:Well if your my CS teacher he will tell you that he hates scripts because they lack a compiler.
inkhryptedQuery Wrote:BlueLight Wrote:Well if your my CS teacher he will tell you that he hates scripts because they lack a compiler.
Haha : D
So .. Your CS teacher also has a grey beard I take it : ]
Zeus Kabob Wrote:Wait, does he hate Bash?
BlueLight Wrote:Zeus Kabob Wrote:Wait, does he hate Bash?
We only had a couple of conversations on the topic.
He didn't rant but he kinda listed off the trouble with java script that he was having. For instances it would suddenly stop working for not good reason, which related to the fact that it's very open and assumes you know what your doing at every moment. Is the var A getting keyboard here? Well what happens if you treat var A as a number and not a person? *EXPLOSION!*
Users browsing this forum: Majestic-12 [Bot]