[Flashcoders] Loader Mouse Event

2012-06-11 Thread Ted Lehr
So I have a Loader that is loading an image: var Img:Loader = new Loader(); var urlReq:URLRequest = new URLRequest(http://www.someurl.com;); img.load(urlReq); and I am trying: img.addEventListener(MouseEvent.ROLL_OVER,x); this does not seem to work - does that make sense? and if so,

Re: [Flashcoders] Loader Mouse Event

2012-06-11 Thread Kerry Thompson
I've never tried to get a mouse event on a loader. Do you have a progress bar? I would add a MouseEvent listener to the progress bar, not the loader itself. If that doesn't work, add a movie clip with a 0 alpha on top of the loader, and attach the mouse listener to that. You could use a standard

RE: [Flashcoders] Loader Mouse Event

2012-06-11 Thread Ted Lehr
Thanks - I ended up putting a sprite over the image and giving that the listener... Ted -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com on behalf of Kerry Thompson Sent: Mon 6/11/2012 1:32 PM To: Flash Coders List Subject: Re: [Flashcoders] Loader Mouse Event I've

Re: [Flashcoders] Loader Mouse Event

2012-06-11 Thread tom rhodes
um, instead of putting things over, why not put your loader IN a sprite instead, or if you're loading an image make a bitmap and stick that in a sprite. seems odd to me to have mouse events on something placed over something else, what happens if you want to move the image? you have to move the

Re: [Flashcoders] Loader Mouse Event

2012-06-11 Thread David Hunter
There must be something else going wrong with your code. This works fine for me, you can paste it straight into a new project and test it: import flash.net.URLRequest; import flash.display.Loader; import flash.events.MouseEvent; var url:String =

Re: [Flashcoders] Loader Mouse Event

2012-06-11 Thread Karl DeSaulniers
Maybe load the image into a empty MC and put the rollover on the MC? Best, Karl On Jun 11, 2012, at 12:32 PM, Kerry Thompson wrote: I've never tried to get a mouse event on a loader. Do you have a progress bar? I would add a MouseEvent listener to the progress bar, not the loader itself. If