Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 06-27-2010, 04:57 AM   #1
undecillion
Registered User
 
Join Date: Jun 2010
Posts: 9
Default [AS2] onClipEvent help

First off, I'm new at making games, and whenever I try putting in a code that involves onClipEvent it says that clip events are only permitted for movie clip instances, is there something I'm missing here? I convert all my object to movie clip symbols and I check export for action script and export in frame one. yet apparently my symbols aren't movie clips...

what do I need to do to make my symbols movie clip instances?
undecillion is offline   Reply With Quote
Old 06-27-2010, 07:55 AM   #2
tacos
Grrrrrrrrreat!
 
tacos's Avatar
 
Join Date: Apr 2007
Location: Montréal, Québec
Posts: 5,473
Default

You're maybe setting the code on a frame action rather than on the clip itself.
What does the actions window's title say? Actions - Frame or Actions - Movie Clip?
__________________
WHO I WAS...
BANDS OF THE 80's
tacos is offline   Reply With Quote
Old 06-29-2010, 02:55 AM   #3
undecillion
Registered User
 
Join Date: Jun 2010
Posts: 9
Default

it says actions - frame
is that what's wrong?

if so, how would I go about changing that?
undecillion is offline   Reply With Quote
Old 06-29-2010, 03:32 AM   #4
tacos
Grrrrrrrrreat!
 
tacos's Avatar
 
Join Date: Apr 2007
Location: Montréal, Québec
Posts: 5,473
Default

When you use a frame action, you would reference the targeted movie clip by it's instance name, and use something like...

ActionScript Code:
some_mc.onEnterFrame = function(){     // Your code here... };

If you're setting the code on the mc itself, then right-clicking that mc on stage and hitting Actions, should open up the Actions - Movie Clip window, which is where you should be typing your script...

ActionScript Code:
onClipEvent(enterFrame){     // Your code here... }
__________________
WHO I WAS...
BANDS OF THE 80's
tacos is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:32 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.