OK where to begin,
Flash 8
i know the answer to this riddle is very simple… yet b/c i have been staring it blank in the face for so long i can’t seem to get a grasp on it. I would be very grateful to anyone that can have a look.
I am trying to get the content_mc to be absolute middle of the landscape._y if they change the browser size i need it to always be visible. The main reason for this is for those that are viewing a widescreen i.e 1280 x 800. i have two arguments presently…
Everything seems to be working fine except for the last function that should be comparing the two variables ( “contyh” and “contyw” ) i need the last function to find the lower number of the two and apply that to content._y
Both functions for the two seperate variables first find the answer based on screen size, if the number for either is less than 131 it applies the number 130 to them. If either is greater than 131, it applies the number found. This is so that the content does not go to high and thus lose visibility.
// Content Y
var contyh = Number;
var contyw = Number;
function contentcontyh()
{
if ((Landscape._height / 2) + 100 > 129)
{
contyh = (Landscape._height / 2) + 100;
}
else if ((Landscape._height / 2) + 100 < 129)
{
contyh = 130;
}
}
function contentcontyw()
{
if ((Stage.height / 2) - 200 > 129)
{
contyw = (Stage.height / 2) - 200;
}
else if ((Stage.height / 2) - 200 < 129)
{
contyw = 130;
}
}
function contentmovey()
{
contentcontyw();
contentcontyh();
if (contyh < 131 && contyw < 131)
{
Content._y = 130;
}
else if (contyh > contyw)
{
Content._y = contyh;
}
else (contyw < contyh)
{
Content._y = contyw;
}
}
I might have complicated things more in my description than needed, i apologies for that, my head is in a bit of a tailspin right now.
Here is a link to a folder with all need files…
Thanks to all for looking,
Martha