| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Jan 2006
Posts: 2
|
hi, im by all standards not great with flash, but as luck would have it, im stuck having to do a mobile flash game, using flashlite of course.
im trying to add some actionscript into the movie so that this graphic moves constantly. and for that an onClipEvent(enterFrame) is usually used. But in this case flash 8 doesnt accept as this are of flash 5 standards. I've heard of the usage of functions but im not sure how it works, any help? I know what are the codes going into the function, but not how the function itself works from the moment the movie loads.Any help is appreciated , thanks. |
|
|
|
|
|
#2 |
|
Registered User
Join Date: Nov 2005
Posts: 9
|
Try some of these on the main timeline:
If you want something to act as soon as the movie loads: //enter your movieclip movieclip_mc.onEnterFrame = function() { your actions; } or //select the root time line. _root.onEnterFrame = function() { your actions; } If you want to call a function, try this..... function makeItMove() { _root.onEnterFrame = function() { your actions; } } // then call it like this... say you put it on a button... myButton_btn.onRelease = function() { makeItMove(); } Don't know if this helps, i'm sure there are plenty of other suggestions out there. I've only been scripting for a few months. Good Luck. |
|
|
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Jan 2006
Posts: 2
|
thank you very much for your reply fire, i'll try it out, and then get back to you , have a good feeling about it too since i was searching around found some similar codes. Thanks again and have a great day~
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Multiple External Movie Loading and Stacking | Saed | ActionScript 1.0 (and below) | 6 | 10-13-2005 03:52 AM |
| Using ActionScript function from external movie | mars21 | Components | 0 | 01-26-2005 12:40 PM |
| Loaded movie actionscript question... | irene | ActionScript 1.0 (and below) | 3 | 12-14-2004 08:50 AM |
| Timing and actionscript | fgf | ActionScript 1.0 (and below) | 0 | 07-25-2003 09:22 AM |
| load movie and "the" buttons | srlem | ActionScript 1.0 (and below) | 2 | 11-28-2002 05:08 PM |