jagdeepjain / sfapi

Automatically exported from code.google.com/p/sfapi
0 stars 0 forks source link

Click doesn't launch File Browse dialog on clicking the button where the FileReference.browse() method is called #11

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Have a Flex application with a button and in the click event handler 
call FileReference class "browse" method.

What is the expected output? What do you see instead?
1. Expected Behaviour: On clicking the browse button, the File Browse 
dialog should be popped up for user to select files.
2. Actual Behaviour: The file browser dialog is not popped up and there 
were no error messages observed.

What version of the product are you using? On what operating system?
sfapi 0.2.6, On Windows XP

Please provide any additional information below.
Flex API FileReference->browse() method documentation says:

In Flash Player 10 and Flash Player 9 Update 5, you can only call this 
method successfully in response to a user event (for example, in an event 
handler for a mouse click or keypress event). Otherwise, calling this 
method results in Flash Player throwing an Error exception.

Is this could be the reason for the above issue ??? Are we not simulating 
a user event in the Click simulation ?

Original issue reported on code.google.com by sar...@gmail.com on 22 Dec 2009 at 6:57

GoogleCodeExporter commented 8 years ago
Any solution or work around found to over come this issue? Please do reply....

Original comment by jaggu.s...@gmail.com on 29 Sep 2011 at 4:43