In this case you want to utilize the Stage.height minus the object height to determine its _y location, assuming the vertical registration of the object is at its top.
Hi, thanks for the response. Apologies if I'm being a little slow but Im not totally understanding what your saying. Could you be a little clearer?
Not really. What part of what I described do you not understand? ("all of it" as a response means you need to study what you have working now and learn/understand how it works).
I'm trying to study the code, but unfortunately its currently above my level of understanding. Hence my posting on this forum for some help and guidance.
I'm sorry, but you're reply didnt make sense to me, most likely because your assumption of my level of AS understanding is higher than it actually is.
Ideally I'm looking for someone to update the code to perform how I need it to, and then explain to my why they have altered the areas they have, and what these alterations has achieved. This is not because I am lazy and want the code updating with as little effort as poss - but because I find it easier to understand how something works if I can see the changes made, and understand what the changes have accomplished.
If this is something you dont have the time to do, then I completely understand and thank you for your time so far.
1 person found this helpful
_x and _y are properties of an object that define where it is located relative to the coordinate system of whatever stage/object it exists in. width and height (or _width and _height for most objects in AS2) are properties of an object that define exactly those properties, width and height. So if you take the Stage.height and subtract the object._height, you end up with a value that is the height of the object away from the bottom of the stage.
If you want to learn/understand this stuff, it is better to start simple and build your own rather than blindly copy other people's code. Put an object on a stage and adjust these various properties and see what happens to it... learn by doing.
As far as rewriting code for you, that's best done by you since you know what object you are trying to align. You can wait around and someone may do it for you, but this is so basic that you really need to deal with it yourself. If you don't already understand what makes the object align to the right, then you aren't likely to understand what makes it align to the bottom by having it handed to you. You should find some online tutorials or sign up for a class in Flash design. lynda.com offers numerous tutorials that I have heard are very good for beginners.