all groups > flash actionscript > october 2005 >
You're in the

flash actionscript

group:

clearing actionscript


Re: clearing actionscript Dave Mennenoh
10/19/2005 5:03:49 PM
flash actionscript:
Well, on frame 1, you stuck an onEnterFrame function onto your aboutUs movie
clip. It doesn't matter that this code is not present in frame 2 - the
aboutUs clip has its enterFrame set until you remove it - you can use delete
aboutUs.onEnterFrame to remove it.

--
Dave -
www.blurredistinction.com/director
www.macromedia.com/go/team

clearing actionscript cre8ive1974
10/19/2005 9:27:45 PM
is there a way to clear action script from a movie. I have some code on frame
1 of a movie. on frame 2 of the movie I do not have this code, but the movie
still executes the code.

this is an example of my code.

stop();

aboutUs.onEnterFrame = function() {
if (aboutUs.hitAreaMenuAboutUs.hitTest(_root._xmouse, _root._ymouse, true) ==
true) {
aboutUs.nextFrame();
aboutUs.hitAreaMenuAboutUs.nextFrame();
aboutUs.aboutMenu.nextFrame();
} else {
aboutUs.prevFrame();
aboutUs.hitAreaMenuAboutUs.prevFrame();
aboutUs.aboutMenu.prevFrame();
}
};


any help?

thanks!
D

Re: clearing actionscript DJ Sick Nick
10/19/2005 10:07:13 PM
This is the easyest way... reply soon if this doesn't help...

delete the movie clip and copy->paste the image.

I would think that would work, or if there's an animation, put the action
script (not the stop (); action) in the movie clip itself using onClipEvent
(enterFrame) method. Like this:

onClipEvent (enterFrame) {
if (aboutUs.hitAreaMenuAboutUs.hitTest(_root._xmouse, _root._ymouse, true) ==
true) {
aboutUs.nextFrame();
aboutUs.hitAreaMenuAboutUs.nextFrame();
aboutUs.aboutMenu.nextFrame();
} else {
aboutUs.prevFrame();
aboutUs.hitAreaMenuAboutUs.prevFrame();
aboutUs.aboutMenu.prevFrame();
}
}

there! ok... yah... that should work.
-Nick Debergue :)
Re: clearing actionscript Equan
10/20/2005 1:55:34 AM
put on the next frame
AddThis Social Bookmark Button