Hittest

Hi everybody!
(Hi, dr. Nick!),

I have a little question for you all. I’m using AS to let the user use his arrow keys (up & down). My code is working but I want a system that if the MC with the text in it hits something, it will stop moving so that the text cannot go “outside” the .fla…

[font=Courier New][size=2][color=#000080]if[/color] ([color=#000080]this[/color], [color=#000080]hitTest/color) {
[color=#0000ff] this._x = -1000;[/color]
} [color=#000080]else[/color] {
[color=#0000ff] [/color] [color=#008000]this._x = location+i++;[/color]
}

This code comes from a tutorial from kirupa.com and I think I’ll need something like that.

Thx!
vectorboy.be
[/size][/font]