Hi Jeff, >From the documentation on FileReference http://livedocs.adobe.com/flex/3/langref/flash/net/FileReference.html
browse() method --------------- "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." This note is also in the download() and save() methods. It is not in the upload() or load() methods, so you can perform loads and uploads anywhere in your code. I found your message because I am successfully uploading several files inside a Cairngorm command and was wondering if that code would be more appropriate in a business delegate. --- In [email protected], "Battershall, Jeff" <[EMAIL PROTECTED]> wrote: > > FP 10 has thrown a curve for Cairngorm apps by requiring that > FileReference.upload() and FileReference.download() methods be scoped > within a user initiated action event handler. This requires substantial > reworking of my app as I had previously implemented all my upload() and > download() calls within Cairngorm business delegates. > > I was kind of hoping to work around this by creating my command class > instances in the click event handler scope and therefore bypass this > behavior without having to re-write a bunch of logic, but so far, no > dice. It would be nice if the security implementation was smart enough > to recognize that a series of nested function calls were within the > scope of the UIA event handler. If there's a way to do that, I haven't > come up with it. > > Any input appreciated. > > Jeff Battershall > Application Architect > Dow Jones Indexes > [EMAIL PROTECTED] > (609) 520-5637 (p) > (484) 477-9900 (c) >

