Ok I’m still working on my loaded swf which is an infinite menu.
I’ve been informed that globalToLocal is what I need (I want the code in the loaded swf to refer to its own (local) x/y cordinates not the main stage 9global0 cordinates). From what I’ve read it seems like this method should solve my problems… however I can’t really find a good explanation of how to use it anywhere. It isnt very intuitive - at least for me. I’ve search these forums, did a google, and have looked it up in the AS dictionary… to no avail.
here is what I’ve got:
onClipEvent(load) {
loadMovie("infiniteRES.swf",_root.pages.containerRES);
//something here involving point = new object() ???
//point.x = _root._xmouse; ???
//point.y = _root._ymouse; ???
_root.pages.containerRES.globalToLocal(??);
}
I’m not very clear on this point object it says to use in the as dictionary… also do I want to perform globalToLocal on the container MC or the loaded swf directly? and why in the AS dictionary does it do this:
_root.MCtoGetMethod.globalToLocal(point) - it directs it at point? but is targeted to the MC I want??
For the life of me I cant find a clear explanation of this method… some help on this would be great.
oh and here is the code on the infinite MC inside the loaded swf:
onClipEvent (load)
{
xcenter=125;
speed=1/10;
}
onClipEvent (enterFrame)
{
if (_root._xmouse < 33 | _root._xmouse > 218 | _root._ymouse < 18 | _root._ymouse > 62) speed=0;
else speed=1/10;
var distance=_root._xmouse-xcenter;
_x-=(distance*speed);
if (_x > 0) _x=-893;
if (_x < -893) _x=0;
}
peace