Browse button with flash

hello,

I’m making a small back-end system, and I would like to know if it’s possible to integrate a browse button…

I did already soms “research”…

I pass a var from flash to javascript

//***FLASH

_root.hitme_mc.onRelease = function()
{fscommand(“filechooser”, “”)}

//*** JAVASCRIPT

function myFlash_DoFSCommand(command, args) {
if(command==“filechooser”)
{
alert(“test”);
}

That’s a part already works :slight_smile:

Now, I’ve found how to select a file on your disc…

<form>
<input id=“realfile”
type=“file”
style=“position:absolute;visibility:visible;”
onchange=“document.getElementById
(‘dummyfile’).value=this.value”>
<input id=“dummyfile” type=“text”>
</form>

With this you select a file and the path will appear as a string in the textfield.

Now the thing I want is to call the function, when I click a button in Flash, that chooses a file and passing the string back to flash, to put it there in a textfield. But how do you call that function???

Maybe this thread belongs in Client side programming, sorry…

Grtz