filereference

Simulating user event

不羁岁月 提交于 2020-02-06 19:05:36
问题 I have a web page with a file swf and an HTML button: when I click the button I want to save (download to my disk) the current image my swf file is showing (it is a sort of image gallery). It perfectly works when the button is inside my swf but it fails when -through ExternalInterface- I call from JavaScript the method that saves the image. I verified the JS-AS communication (it's ok) and I know that FileReference.save() only works when triggered by a user event. Probably, the click on an

Simulating user event

夙愿已清 提交于 2020-02-06 19:05:30
问题 I have a web page with a file swf and an HTML button: when I click the button I want to save (download to my disk) the current image my swf file is showing (it is a sort of image gallery). It perfectly works when the button is inside my swf but it fails when -through ExternalInterface- I call from JavaScript the method that saves the image. I verified the JS-AS communication (it's ok) and I know that FileReference.save() only works when triggered by a user event. Probably, the click on an

Simulating user event

筅森魡賤 提交于 2020-02-06 19:05:10
问题 I have a web page with a file swf and an HTML button: when I click the button I want to save (download to my disk) the current image my swf file is showing (it is a sort of image gallery). It perfectly works when the button is inside my swf but it fails when -through ExternalInterface- I call from JavaScript the method that saves the image. I verified the JS-AS communication (it's ok) and I know that FileReference.save() only works when triggered by a user event. Probably, the click on an

as3 Air for Android downloading and saving remote files

不羁岁月 提交于 2020-01-31 18:13:06
问题 The Code below downloads an mp3 to your phone from a server using as3 Air For Android. I want to use these files later in the app so I have the following question: How can I make it so the files save to a particular folder in the android app rather than a box opening for the user to choose a location? import flash.net.FileReference; /// It can be an mp3,jpg, png, etc... just change the url /// and the extension name. nice huh? var yourFileLocation = "http://YourWeb.com/YourSong.mp3"; var

Local XSL reference within XML-File

泄露秘密 提交于 2020-01-02 08:45:15
问题 First a short task description: There is an XML file which references a xsl stylesheet which is within a *.dll. The beginning of this XML looks as follows: <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type='text/xsl' href='res://name_xsl.dll/frameset.xsl'?> This xml file can be opened and displayed as an HTML within Internet Explorer and only IE. (The xsl transform the xml to html) As you can see it references the win32 system folder , in which the dll file is saved. Referencing

TYPO3 ConnectionPool find a file after the uid of the file reference and update data

血红的双手。 提交于 2019-12-25 01:45:09
问题 The concept is that, after a successfull save of my object, it should update a text in the database (With a Hook). Lets call the field ' succText '. The table i would like to access is the sys_file but i only get the sys_file_reference id when i save the object. So i thought i could use the ConnectionPool to select the sys_file row of this file reference and then insert the data on the field ' succText '. I tried this: public function processDatamap_preProcessFieldArray(array &$fieldArray,

AS3 FileReference.save() works when testing locally but not in the browser

浪尽此生 提交于 2019-12-24 12:51:33
问题 I have created a painting app and when the user want's to save his drawing he simply hits the save button and a dialog pops up - or should do. When testing locally on dev machine it's no problem but whenever the app is loaded in a browser it won't work. Even if I load the local SWF file in a browser it won't work. The following code is what I use to save the file and as said it works fine locally but whenever it goes into a browser it dosen't.The save dialog simply never pops up. Any

Image Upload progress using URLLoader AS3

荒凉一梦 提交于 2019-12-21 09:33:55
问题 I am developing image uploader in Flash. I use FileReference.browse to browse image then resize this image to 1000 x 1000 px, if the image is very big and then upload to server. I want to show progressbar for the image upload progress. I am usinng URLLoader to send binary data of the resized images, but ProgressEvent on URLLoader doesn't work the way it is supposed to work. It is fired only after the image is completed uploaded instead of showing intermediate progress. ProgressEvent on

Flex's FileReference.save() can only be called in a user event handler — how can I get around this?

非 Y 不嫁゛ 提交于 2019-12-17 10:59:22
问题 I need to call FileReference.save() after a web service call has completed, but this method has a restriction: "In Flash Player, you can only call this method successfully in response to a user event (for example, in an event handler for a mouse click or keypress event). Otherwise, calling this method results in Flash Player throwing an Error exception." (from the documentation here) This restriction is a bit vague. Does it mean that I can only call the FileReference.save() method from within

FileReference vs File?

爷,独闯天下 提交于 2019-12-14 02:16:29
问题 I want to make a Flash app in which the user can load and save files from and to their local hard drive. While I've often done this in AIR apps using the File and FileStream classes, I haven't done so before in an SWF. From what I know the FileReference class is used for this, although it seems to have some restrictions due to security risks. I'd like to know what the main differences are between using the FileReference class and using the File and FileStream classes to load and save files.