MouseEvent3D.Click does not count as user interaction according to flash

Software: Away3D 4.x

Avatar
FlyOn, Jr. Member
Posted: 07 December 2011 01:55 PM   Total Posts: 36

I want to open a file browsing window after clicking on some object.

The MouseEvent3D.Click event is triggered, but when I call

var file:FileReference = new FileReference();
... 
file.browse(...) 

in the event listener function, flash tells me:

Error #2176: Certain actions, such as those that display a pop-up window, may only be invoked upon user interaction, for example by a mouse click or button press. 

In other words, the way mouseEvent3D events are handled now makes them not pass the ‘user interaction’ test of flash

I guess this comment in ObjectContainer3D is right? smile

override public function dispatchEvent(event Event) : Boolean
{
 
// maybe not the best way to fake bubbling?
 
var ret Boolean =  super.dispatchEvent(event);
 ... 
   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X