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 10-28-2005, 09:52 PM   #1
Um Design
Registered User
 
Join Date: Oct 2005
Posts: 5
Default Flash Lite 1.1

Yesterday I have tried 100 times to insert script to move, lets say to move one circle, I have named circle "Hero". This is the script for Flash 8:

Code:
_root.onEnterFrame = function ()  
{  	
moveHero(5);  
}  
function moveHero(speed)  
{  	
//check if key is down  
if( Key.isDown(Key.UP))  
{  	
_root.hero._y -=speed;  
}
else if( Key.isDown(Key.LEFT))  
{  	
_root.hero._x -=speed;  
}  
else if( Key.isDown(Key.DOWN))  
{  	
_root.hero._y +=speed;  
}  
else if( Key.isDown(Key.RIGHT))  
{  	
_root.hero._x +=speed;  
}  
}
Now, the question is how to insert code (Actionscript), I mean how to replace this actionscript that my cirlcle (Hero) move in Flash Lite 1.1.?

Thanks in advance
Um Design is offline   Reply With Quote
Old 12-02-2005, 04:57 AM   #2
imodejon
Registered User
 
Join Date: Dec 2005
Posts: 5
Question different

you are using the wrong code for Flash Lite ( i believe). You need to check your codes with this link to make it work. Also, left doesnt work unless its "soft Key"
http://www.scottjanousek.com/downloa...l_onesheet.pdf
imodejon 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
Optimizing Flash Web Sites for Search Engines rockcoastmedia General Chat 20 03-29-2009 10:31 PM
Review: Book - Flash Applications for Mobile Devices nathanpdaniel Product Review Requests 3 06-12-2007 01:52 PM
A rollupwindow for flash lite 2.1 kribba FlashLite / Portable Devices Development 0 04-06-2007 02:40 PM
Some Flash Video Converter Tools Compare terry117 Detention 7 05-18-2006 03:08 AM
[Q] Do we need those forums??? CyanBlue General Chat 59 07-27-2004 12:13 PM


All times are GMT. The time now is 05:51 AM.


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.