685

File uploader in flash

import flash.net.FileReference; var listener:Object = new Object(); listener.onSelect = function(fisierSelectat:FileReference):Void { fisierSelectat.upload("upload.php");};var imageFile:FileReference = new FileReference();imageFile.addListener(listener); cauta.onPress = function (event:Object):Void { imageFile.browse([{description: "Image Files", extension: "*.jpg;*.gif;*.png"}]);}>> asa un script lucreaza, numai ca atunci cand selectez un fisier automat se realizeaza functia upload(), eu insa am nevoie ca aceasta sa se realizeze atunci cand apas un buton "trimite" de exemplu. Am comentat randul:// fisierSelectat.upload("upload.php");si am introdus butonului "trimite":on (release) {selectedFile.upload("upload.php");}si nu merge :((( , sa ma lamureasca cineva ca nu inteleg
0