OZONE Asylum
Forums
Multimedia/Animation
Variables from input text
This page's ID:
11223
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
I've been playing around with creating motion with ActionScript that is dependent on numbers entered by a user. Apparently there is some rule that I don't know about and I haven't been able to find anything that explains it. For instance, lets say I have a field that asks for a velocity and is named velX. Why can't I just put that straight into the movement function like: [code] if (object._x < 350) { object._x += velX; } else { stop (); } [/code] I've noticed that I have to do "something" with that variable, even something as simple as multiplying by 1 just to get it to work. Whats the trick here that I am missing? [url=http://www.krets.net] [img]http://www.krets.net/sigs/smallkrets.gif[/img] [/url]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »