The Enchanted Cave 2
Delve into a strange cave with a seemingly endless supply of treasure, strategically choos
4.39 / 5.00 38,635 ViewsGhostbusters B.I.P.
COMPLETE edition of the interactive "choose next panel" comic
4.09 / 5.00 15,161 ViewsHey, I'm sort of new to Newgrounds and to ActionScript I know how to tween and use the Tools, but the Actionscript has me confused. I've looked up a few Actionscript Tutorials, and noticed a problem every time I try to post this script:
http://i36.tinypic.com/1hyoie.png
Or any script with a ClipEvent in it.
I've tried adding it to the frame on the main Timeline, or to the Timeline of the Movie Clip I have individually. In the window below I tried putting it in both and got the same Error:
http://i36.tinypic.com/2vs40mh.png
I'm using Flash 8 and I'm trying to make a small, and pretty simple game.
Just read the error.
Clip events are not permitted in movie clip instances
You wrote your code on the timeline.
Making a movieclip == highlight a drawing, F8, MovieClip option, OK.
Click on that MC, open the Actions window, paste your code.
Ctrl+Enter
Uhmm, Do you have the actionscript on the MovieClip?
And just in case, the equivalent of
onClipEvent(enterFrame){
for the timeline is
this.onEnterFrame = function(){
I would recommend writing your code on the timeline rather than in the movieclip, so if you ever move on to ActionScript 3.0 in the future, you won't get boggled, since it does not allow code inside movieclips.
I put the code in the Movie Clip(Not on the Main Timeline) and the error still comes up.
At 7/22/08 07:17 AM, Pookeh wrote: I put the code in the Movie Clip(Not on the Main Timeline) and the error still comes up.
did you put it 'on' the movieclip, or 'in' it, if you went inside the movieclip, and put it on a frame inside the clip then you are just doing the same thing again basicly, you have to click on the movieclip (to highlight it, not go inside of it) and put it on the actions then so its 'on' the clip rather than 'in' it
I tried what you said and it didn't come up with the error anymore, but it says the class or interface cannot be loaded. I think I might be able to figure it out from there though. Thanks!