I have such a function in actionscript3
private function uploadFile(event:MouseEvent):void { var uploader:URLRequest = new URLRequest(serverUploadFile); localFile.upload(uploader); }
how can i call this function from javascript?
THX
In AS3 Use ExternalInterface to add a javascript callback.
ExternalInterface.addCallback("uploadFile", null, uploadFile);
More here
Use ExternalInterface
Source: https://habr.com/ru/post/1721887/More articles:ΠΡΠΊΠ»ΡΡΠΈΡΡ Π°ΡΡΠΈΠ±ΡΡΡ entity bean ΠΈΠ· Π·Π°ΠΏΡΠΎΡΠ° Π½Π° ΡΠΏΡΡΠΈΠΉ ΡΠ΅ΠΆΠΈΠΌ? - javaReading blocks from ext3 file system? - linuxHow to verify that a session object contains a specific key / value record - javano line break in long html link? - htmlFind rows of elements in an array efficiently? - performanceVBA ontime cancels schedule - excel-vbaFinding out how a developer processes abandoned field projects - brownfieldΠ Π΅ΠΊΠΎΠΌΠ΅Π½Π΄ΡΠ΅ΠΌΡΠ΅ ΡΠ°ΠΌΠΊΠΈ Java Π΄Π»Ρ Google App Engine? - java403 Browser Behavior Forbidden Error - standardsNested databases in CouchDB - couchdbAll Articles