Possessed
12-01-2003, 02:45 PM
I have a button in the root, with an actionscript to put a menu into a specific place on the stage, note the menu is outside the stage and then it directs to the co-ords. This is the script;
on (rollOver) {
_root.Menu._x += (387-_root.Block._x)*.42;
_root.Menu._y += (187-_root.Block._y)*.42;
};
on (rollOut) {
_root.Block._x += (-117.5-_root.Block._x)*.42;
_root.Block._y += (-317.5-_root.Block._y)*.42;
};
HOWEVER, it only pluses the co-ords on rollover to the current co-ords, then minuses the second set of co-ords on roll out. This gives a bizzare un-uniform positioning of the menu. I don't know how to configure load and unload so I don't know how to make it just 'appear' on screen, although that would be good. Basically I want the menu to appear in the centre of the stage on roll over then go off the stage on roll out.
All help is gratified =).
on (rollOver) {
_root.Menu._x += (387-_root.Block._x)*.42;
_root.Menu._y += (187-_root.Block._y)*.42;
};
on (rollOut) {
_root.Block._x += (-117.5-_root.Block._x)*.42;
_root.Block._y += (-317.5-_root.Block._y)*.42;
};
HOWEVER, it only pluses the co-ords on rollover to the current co-ords, then minuses the second set of co-ords on roll out. This gives a bizzare un-uniform positioning of the menu. I don't know how to configure load and unload so I don't know how to make it just 'appear' on screen, although that would be good. Basically I want the menu to appear in the centre of the stage on roll over then go off the stage on roll out.
All help is gratified =).