View Full Version : asp movement
DMX
July 24th, 2002, 06:34 AM
Help [list]
I need to be able to move a movie clip with asp (actionscript)
heeeeeeeeeeeeeellllllllllllllllpppppppppppp!!!!!!! !!!!:o
jsk
July 24th, 2002, 09:27 AM
Declare the vars with asp in host page (or call an asp page as the target of a loadVariablesNum() command), then use enterFrame to manipulate _x and _y.
pom
July 24th, 2002, 10:07 AM
Wait a sec. Are you talking about Actionscript, Flash script language, or ASP, Microsoft DB communication language. because it's quite different.
pom :asian:
DMX
July 24th, 2002, 01:14 PM
actionscript 4 flash ok.:rambo:
DMX
July 24th, 2002, 01:15 PM
I DONT GET IT EXPLAIN IT IN IN BABY LANGUAGE.
pom
July 25th, 2002, 03:19 AM
Well, there are tutes on this site, and Kirupa tries his very best to explain it as simply as he possibly can... But here's my explanation anyway:
Your scene can be described as a cartesian I-don't-know-how-it's-called, with an x and an y axis. The x go right, the y go down. There, an object will have 2 interesting properties: _x and _y, which are its position on each axis.
The interesting thing is that you can modify these properties with actionscript. So writing on that object:
onClipEvent(enterFrame)
{
_x=_x+2;
}will make that object's _x position increase by 2 on every new frame. It's moving. I can't explain it better!
pom :asian:
DMX
July 28th, 2002, 07:55 AM
Tank u ilyaslamasse=)
lostinbeta
July 28th, 2002, 04:14 PM
can't you also use:
onClipEvent(enterFrame)
{
_x+=2;
}
? That is how I have been doing it, but if it is wrong it is better that I find out early in the game.
DMX
July 30th, 2002, 02:49 AM
that is possible.:)
lostinbeta
July 30th, 2002, 02:51 AM
Ok Good, because it works for me, and I just wasn't sure if this method could cause conflicts with code in the future. It is good to know that it is just another way to write it (and a much more simpler one if you ask me).
pom
July 30th, 2002, 06:56 AM
I see that you changed your footer :P Looks nice!
And concerning the other syntax, not conflict at all :) http://www.kirupa.com/developer/actionscript/as_tricks.asp section increment/decrement
pom :asian:
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.