Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Desktop, Mobile and non-browser Environments > FlashLite / Portable Devices Development

Reply
 
Thread Tools Rate Thread Display Modes
Old 01-29-2006, 03:27 AM   #1
taboo
Registered User
 
Join Date: Jan 2006
Posts: 2
Default flashlite movie actionscript

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.
taboo is offline   Reply With Quote
Old 01-29-2006, 04:06 PM   #2
sfire2112
Registered User
 
Join Date: Nov 2005
Posts: 9
Default

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.
sfire2112 is offline   Reply With Quote
Old 01-30-2006, 04:08 AM   #3
taboo
Registered User
 
Join Date: Jan 2006
Posts: 2
Default

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~
taboo 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

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


All times are GMT. The time now is 08:08 PM.


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