Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Javascript File Dialog to Flash File?

Posted on 2004-04-21
3
Medium Priority
?
218 Views
Last Modified: 2010-05-18
Ok I know there have been a lot of questions about how to show a file dialog box from your flash file and then upload it to a server. I have a question with a bit of a twist on that. Say I didn’t want to upload a file all the way to the server. Could I use the method of opening a javascript file dialog and then have the file the user selects passed directly into my flash file that’s running in the user’s browser?

For example the user presses a button in my flash file and I use a getUrl call inside actionscript to launch a javascript method that transparently opens a file dialog box. The user then selects a file but instead of having the javascript send the file back up to the server right away it sends the file to the flash file so the flash file can add it to an object before deciding when and if to send it up to the server.

Does anyone know what the linkage between the javascript and flash file would look like? I’m not a big javascript guy so I need some help. Also, to start off with it’s acceptable for this to work on only IE.

Thanks,
R. Sparrow
0
Comment
Question by:rsparrow
3 Comments
 
LVL 3

Accepted Solution

by:
mixart earned 2000 total points
ID: 10885926
Unfortunately it's not quite that simple...

Here are some links that may be able to help. As far as I know these are the only two solutions I know of and they're very messy...

http://www.impulsedigital.com/idio/idio-v1/
http://www.yamago.net/components/
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.
Suggested Courses

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question