Update
Made a small update. Mainly to make it more user-friendly.
Sample page here
Download the files here
Changes: - Split it up and made almost all the actionscript external to keep the FLA clean for users to put their own content in there however they like to.
- Added a function for simplicity called fs_posit(). Copy the sample in edit_me.as
- fs_posit accepts 5 variables:
- Y-position; X-position; target; X-offset(optional); Y-offset(optional)
- Y-position is a vertical position. Accepts the values "top", "center" and "bottom".
- X-position is a horizontal position. Accepts the values "left", "center" and "right".
- target is the name of the instance you want to position.
- X-offset offsets the position by whatever amount you specify (negative values offset to the left, positive to the right). Accepts pixel values or percentages of the total screen width (percentages must be written as Strings. i.e. in quotation marks).
- Y-offset offsets the position by whatever amount you specify (negative values offset upwards, positive downwards). Accepts pixel values or percentages of the total screen width (percentages must be written as Strings. i.e. in quotation marks).
- originalheight and originalwidth variables must be set to your movie's stage height and width, even though the movie will resize in your browser. Necessary for script calculations.
- Positions will now update while resizing the browser window in Firefox.
- If you have any other code you want to run when the browser is resized, place it within the resizer() function in edit_me.as
Any questions?
Still accepting feature requests.
__________________
Subtlety is my middle name... and first and last in case you didn't get the point.
Last edited by LeadMagnet; 16-04-2008 at 09:27 PM.
|