# Calling Fileference.browse from javascript

**URL:** <https://forum.kirupa.com/t/calling-fileference-browse-from-javascript/281960>\
**Category:** flash\
**Created:** [February 16, 2009, 6:58am UTC](https://forum.kirupa.com/t/calling-fileference-browse-from-javascript/281960 "2009-02-16T06:58:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sparkdemon](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@sparkdemon](https://forum.kirupa.com/u/sparkdemon)\
**Post date:** [February 16, 2009, 6:58am UTC](https://forum.kirupa.com/t/calling-fileference-browse-from-javascript/281960/1 "2009-02-16T06:58:17Z")

</div>

hi

i am trying to trigger Filereference browse method from javascript. but am failing cause flash gives error saying you cant do this sort of thing without user interaction. then i tried calling a button’s dispatch Event to frcing mouse event on the internal button from javascript… still no use. is there anyway to get around it ? cause later i plan to upload binary data from flash with a button in javascript. if this keeps blocking i wont be able to ☹ any solutions )
