Uploading via flash (flash, JavaScript, php)

I’m building this flash site for my course project.

The site will have users signing up/creating accounts etc through php/mySQL. Now in the registration page, I want the users to be able to upload thier picture.

So this means that I need to have a “browse” button in the movie, once pressed you then get your local folders to select the image you want to upload.

Ok so i’ve done a search here, google and everywhere…nothing. They all talk about uploading via an html page. Thats easy! But I need it to be directly from within the flash movie. It’s just the flash/broweser communication (using JavaScript) that I’m finding hard.

I have attached an example that I found. It does what I need but for the life of me I just cant understand whats going on here. So I want to do this from scratch and not use this example!!! I know stupid but i wanna learn :slight_smile:

So to all you JavaScript legends out there, please have a look at this to see what I mean :wink: :thumb: :beer:

We can even make a deal and i’ll help with ur stuff! Yes??? :pleased:

So far I haven’t found a javascript example that works with Mozilla, I would suggest using that component :slight_smile:

Can’t be bothered to look at the download, here’s 2 links (in case you weren’t refering to these):


and
http://www.impulsedigital.com/idio/idio-v1/

Unfortunatly that one doesn’t work with Mozilla, not sure why. When is flash going to make their own browse file component? I don’t understand why they don’t offer it.

thanks guys

http://www.yamago.net/components/ is the example i’m refering to.

Digital this component uses javascript and it works fine in mozilla, well i think anyway! Havent tested it with mac IE or nat but apperently it works there too.

Thing is the javascript here involves alot of things that i dont need and i just cant manage to tailor it to my needs…thats why im gonna still try cracking this on my own…another problem ofcourse is that I need to make sure it will work well with most browsers, just like this component…I’ll let you guys know how it goes

When is flash going to make their own browse file component?

Never, for security reasons!
You can now browse files from the Flash IDE with this new file something jsfl api (FLfile ) that came with Ellipsis / 7.2 tho… link: http://www.eyezberg.com/Breaking_News_from_the_Flash_World/General_Flash_News/Flash_Updater!/