Ok so im trying to make the UDK | DevelopmentKitGemsCreatingAMouseInterface interface work with my GFxMovie of AS2,
the thing looks simple an external call that leads to the GFxClass but i have a problem the function
import flash.external.ExternalInterface;
// Hide normal "Windows" pointer.
Mouse.hide();
var mouseListener:Object = new Object();
trace(" FROM Movie i begin to play");
mouseListener.onMouseMove = function() {
// Set the cursor instance position to the mouse position.
multipurposemouse._x = _root._xmouse;
multipurposemouse._y = _root._ymouse;
trace(" FROM Movie updating mouse position");
// Pass Unrealscript the new mouse coordinates
ExternalInterface.call("UpdateMousePosition", _root._xmouse, _root._ymouse);
updateAfterEvent();
};
multipurposemouse.addListener(mouseListener);
does not get called at all,
i place it here on the mouse symbol actions but ExternalInterface.call(“UpdateMousePosition”, _root._xmouse, _root._ymouse); gets called every frame, and that’s expensive
onClipEvent(enterFrame){
import flash.external.ExternalInterface;
Mouse.hide(); this._x=_root._xmouse; this._y=_root._ymouse;
ExternalInterface.call("UpdateMousePosition", _root._xmouse, _root._ymouse);
}
1 questions are, is there any way to make the first function work in actions?
2 second is there any function in the symbol actions like a begin frame or something ( so that gets called the very first ), in the mouse symbol, like OnClipEvent( begin ) ?
thanks in advance.