|
-
Nov 2nd, 2004, 07:37 AM
#1
[Flash] Moving an object [Resolved]
I've created a MovieClip object with the instance name MC1. In the frame I place it in, I've also got two buttons, one pointing up and one pointing down.
What ActionScript do I need to make MC1 move up and down?
You can imagine this to be just like the scrolling textareas you may have seen in several flash applications.
Last edited by mendhak; Nov 8th, 2004 at 07:41 AM.
-
Nov 2nd, 2004, 08:33 AM
#2
Frenzied Member
Changing the value of MC1._y will do the trick!
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
-
Nov 4th, 2004, 10:03 AM
#3
Hmm... I will try this tomorrow, first thing.
Their documentation isn't very intuitive, btw. Am I missing some sort of a reference or resource? Any websites you flashers (ha!) use?
-
Nov 4th, 2004, 10:04 AM
#4
Oh, what about setting limits? I wouldn't want _y to increase or decrease beyond a certain value. I don't suppose there are If statements in ActionScript.
-
Nov 4th, 2004, 10:56 AM
#5
Frenzied Member
There are 
if{
etc.
}
Also, in Flash MX (2004) the actionscripting is much more powerfull (autocomplete etc).
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
-
Nov 6th, 2004, 01:17 AM
#6
ActionScript 2.0 has many features that Java has. You have if statements, objects, functions, ect.. All sorts of good stuff.
If you don't want it to increase beyond a certain amount, just use an if statement to check the current y and see if that is your limit. It might move quite fast, though; if you just have it go up through scripting alone and not frame by frame unless you add in a delay but I'm not sure of your exact situation.
-
Nov 8th, 2004, 07:41 AM
#7
Jop, kas, thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|