flash

Cairngorm SequenceTask + URLLoader throws SecurityError because of missing user interaction

寵の児 提交于 2019-12-24 01:00:01
问题 I am trying to get an application to upload multiple client side generated images (not files, hence I can't use FileReference), while displaying the progress of the upload. This has proved to be way harder than it should be. I am using Cairngorm Task library to perform the following steps on an image generated on the client: Generate a BitmapData object drawing the contents of an area of the stage Encode the image as a JPEG asynchronously, as to show a progress bar (see http://dgrigg.com/blog

Is there a way of uploading an image using AJAX/jQuery without the use of Flash or iframes?

谁说胖子不能爱 提交于 2019-12-24 00:55:19
问题 Also trying to avoid any use of plugins, (apart from jQuery of course, whether you would call that a plugin or not). I have a large system already and don't really want to load it with loads of plugins. Of course, if I need too I'll be looking for something very light weight. 回答1: I dont think so. Even if some of the well known javaScript image upload plugin use iFrame under the hood. 回答2: Try this, http://www.9lessons.info/2011/08/ajax-image-upload-without-refreshing.html 来源: https:/

Microphone detection Actionscript 3

戏子无情 提交于 2019-12-24 00:52:56
问题 I'm having a few problems detecting whether a microphone is detected or not. I'm running the function Microphone.getMicrophone() and that should return null if there is no microphone attached, or if the user has clicked Deny on the security panel, right? The problem I'm facing is, on some computers where there is no microphone installed, Microphone.getMicrophone() still traces out as [object Microphone] . So say for example the user doesn't have a microphone, and clicks allow in the security

ActionScript 2 vs ActionScript 3 performance

天涯浪子 提交于 2019-12-24 00:47:34
问题 Any benchmarks of Integer, Array, Function, Class, etc, performance in these 2 languages (compilers)? Comparisons would also be helpful. 回答1: Since AS3 runs in a different virtual machine (AVM2) than AS2 (AVM) there have been made significant performance improvements with the introduction of AS3. In general, opcode executed by AVM2 runs about 10x faster than similar opcode running in the old AVM. This of course does not mean that everything in AS3 is 10x times faster than with AS2. With the

Prevent Flash Player fault in WebView, as is done by the Android Browser

假装没事ソ 提交于 2019-12-24 00:45:09
问题 I'm loading .swf files into a WebView directly using webView.loadUrl("http://whatever.com/file.swf"); . It works perfectly in the vast majority of cases. When loading a few specific swf files on certain devices, though, shortly after the Flash media begins to be displayed, my app closes with a Signal 11 fault caused by the Flash Player plugin. Example LogCat dump here . No Exception is thrown. The same thing happens if I load those files into the xScope browser . When loading them into

Subtract (mask away?) a path by a circle shape

最后都变了- 提交于 2019-12-24 00:45:02
问题 I'm drawing a path in Flex using Spark:Path. I want to subtract a circle shape from this path, as in the following image: (The path is black and wide) Any ideas? I tried creating a mask using a Shape object but couldn't quite manage to create a mask that has a circular hole in it. 回答1: Found it. No masks involved. I took the Path and wrapped a Group around it: <s:Group blendMode="layer"> <s:Path id="connector" ... /> <s:Ellipse id="hole" blendMode="erase"> I set the blendMode to "layer" and

Flash Player 9 vs Flash Player 10 with FLEX 3, ?_method=PUT/DELETE not working?

最后都变了- 提交于 2019-12-24 00:44:13
问题 I have a FLEX 3 frontend that worked fine in FlashPlayer 9. But now that I've upgraded to FlashPlayer10, the ?_method=PUT/DELETE hack is not working anymore. All those requests show up as a POST on the backend now. I did some reading and it sounds like I need to use as3httpclientlib AND run a socket policy server to give access to port 80 (or any other port) in order to use as3httpclientlib. So my question is: are you freakin kidding me? How is it that, in earlier versions of Flex/flash

how to make flash object fullscreen in HTML?

一个人想着一个人 提交于 2019-12-24 00:36:01
问题 how can I make a flashobject to display in fullscreen in HTML? (without having the flash source) 回答1: You can't do this from outside of Flash. Fullscreen mode is triggered by setting the fullScreen property of stage: stage.displayState = "fullScreen"; Without being able to do this you can't use the fullscreen player. One option for you might be to create a wrapper SWF that loads in your existing content, opens into fullscreen mode, then scales your existing content to the full screen size by

flask模板应用-消息闪现(flash()) --

心已入冬 提交于 2019-12-24 00:26:12
消息闪现 flask提供了一个非常有用的flash()函数,它可以用来“闪现”需要提示给用户的消息,比如当用户登录成功后显示“欢迎回来!”。在视图函数调用flash()函数,传入消息内容,flash()函数把消息存储在session中,我们需要在模板中使用全局函数get_flashed_messages()获取消息并将它显示出来。 通过flash()函数发送的消息会存储在session对象中,所以我们需要为程序设置秘钥。可以通过app.secret_key属性或配置变量SECRET_KEY设置。 你可以在任意视图函数中调用flash()函数发送消息。例如: just_flash视图中,通过flash()函数发送一条消息,然后重定向到index视图。 @app.route('/flash') def just_flash(): flash('I am flash, who is looking for me?') return redirect(url_for('watchlist')) flask提供了get_flashed_message()函数用来在模板里获取消息,因为程序的每一个页面都有可能需要显示消息,我们把获取并显示消息的代码放到基模板中content块的上面,这样就可以在页面主体内容上面显示消息 在base.html模板中加入处理闪现消息的函数:

Android Kudan - Extending ARActivity will stop working system camera torch (Flash light)

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-24 00:15:31
问题 I am working on kudan SDK for building 3D Model Augment Reality Object with Marker, all are perfectly works fine,but when i build Camera torch on same ARActivity will stop working flash light, even it will stop working system flash torch (On/off torch from system widgets) if in case i will extends Activity not ARActivity works perfectly fine. Throw Run-time Exception when extends ARActivity 02-08 10:15:32.631 7592-7592/techno.example.com.agumentation W/System.err: android.hardware.camera2