Alright, after doing some digging I found that this is actually caused by an internal problem with flash. When you click outside of the flash program, not only does the window lose focus but the stage looses focus of itself as well. Therefore, no events will fire until the STAGE is clicked again. Any of the objects that maybe clicked in the View3D will not restore the focus to the stage.
A quick and dirty way to fix this is just to set the stage.focus = stage in a function that happens every frame. On Feb 15, 1:02 pm, Reinorvak <[email protected]> wrote: > No, the problem still persists. It might have something to do with a > view render call or something after I've removed and given back focus > to the Flash application. I really have no clue as to whats causes > this, but thanks for trying. > > On Feb 15, 12:23 pm, Peter Kapelyan <[email protected]> wrote: > > > Don't know if this will help or if it is your solution, but can you try this > > on your view: > > > view.mouseZeroMove = true; > > > -Pete > > > On Mon, Feb 15, 2010 at 11:46 AM, Reinorvak > > <[email protected]>wrote: > > > > I just ran into an interesting error with some of the MouseEvents3D. > > > Currently, I have some MouseEvent3D's attached to my View3D. These are > > > used in a form of picking to determine which object on the screen is > > > selected. It works fine and objects can be selected. To further > > > define, I do not use a form of picking, I let the MouseEvent3D > > > determine what is being clicked and use the event.object to further > > > define its pick. > > > > However, my problem is that when I remove the focus from the Flash > > > application, the MouseEvents3D that are sent into the picking function > > > have the event.object as null. Which records as no object being hit in > > > the scene when in fact I happen to be clicking on an object. > > > > The interesting thing is, the picking will not work at all through-out > > > the flash problem even if I have focus and move the camera around the > > > scene, but the picking will return if I physically move the flash > > > application on screen. > > > > If anyone has any ideas on whats causing this or suggestions for > > > further help, anything would be appreciated. > > > > Rein > > > -- > > ___________________ > > > Actionscript 3.0 Flash 3D Graphics Engine > > > HTTP://AWAY3D.COM > >
