mouseX position problem in container loaded .swf
Hi All,
Maybe looking at me in the face but I am having trouble tracing mouseX position.
I have an intro .swf that plays and once finished creates a container and loads main movie in that container.
In the main movie I have an infinite menu where the speed is controlled by mouseX.
Standalone the main movie works perfectly but as soon as I load into container I lose the mouseX.
Below is 'some' of the code that sits in Main movie.
addEventListener(Event.ENTER_FRAME, moveGallery);.........
function moveGallery(e:Event):void {
var speed:Number = -(0.02 * (startpage_nav_mc.mouseX - centerX));..........
I tried adding stage.addEventListener(Event.ENTER_FRAME, moveGallery) to see if that helped follow mouse once loaded into container. Nothing happened!!
Thanks in Advance for any thoughts.
Chris