apache-flex

Turning an ImageSnapshot into an Image in Flex

╄→гoц情女王★ 提交于 2019-12-21 05:37:05
问题 Using Flex 3, I would like to take an image snapshot such as this: var logoSnapshot:ImageSnapshot = ImageSnapshot.captureImage(logoContainer); and turn it into something that the Image class can use. I see that there is a property called "data", that holds a byteArray, so I guess my question is: How do I take an image that gets stored as a byteArray and convert it to something the Image class can use to display? 回答1: Simpler implementation that should work: var bm : Bitmap = new Bitmap

Streaming webcam video in Flash using MP4 encoding

孤街浪徒 提交于 2019-12-21 05:35:12
问题 One of the features of the Flash app I'm working on is to be able to stream a webcam to others. We're just using the built-in webcam support in Flash and sending it through FMS. We've had some people ask for higher quality video, but we're already using the highest quality setting we can in Flash (setting quality to 100%). My understanding is that in the newer flash players they added support for MPEG-4 encoding for the videos. I created a simple test Flex app to try and compare the video

How do I attach camera to Spark.components.VideoDisplay

时光总嘲笑我的痴心妄想 提交于 2019-12-21 05:28:09
问题 I'm using Flash Builder and created a spark-application Flex project that will stream video from the local camera. If I use mx.controls.VideoDisplay ; there is no problem since it has attachCamera(camera) method. But Spark's VideoDisplay component does not have that method. I know I can use mx controls inside a Spark app but I want to know: What is the real difference between spark.components.VideoDisplay and mx.controls.VideoDisplay ? How do I attach camera to spark.components.VideoDisplay ?

SQLite - Creating encrypted databases. How the…?

孤街浪徒 提交于 2019-12-21 05:04:16
问题 How can I create an encrypted SQLite database that actually stays encrypted or that I can open afterwards. I used SQLite2009 Pro Enterprise Manager that "can" create encrypted databases, but after typing in the encryption key they are no longer openable. I used SQLiteManager from SQLabs to create an encrypted database and while this one can be opened afterwards, this can be done from any SQLite management tool or code without requiring the key I entered. So, how the heck can you create an

Voice Echo Problem

微笑、不失礼 提交于 2019-12-21 04:57:06
问题 I'm trying to build a video chat program using Adobe Flex but there is a giant problem with echos. If the participants arn't using headsets, everything they say echos. Worse, they can actually create positive feedback loop of echos that won't end until the mics are muted. Has anyone found a solution for this on the Flex/Flash platform? My software is using the Speex codec and I've done my best to eliminate all buffering (i.e. it's a live stream and I set the buffer length to 0). The loop back

What does the “@” do?

你说的曾经没有我的故事 提交于 2019-12-21 04:51:33
问题 Sometimes I see in a project im working at, the following: text="@{myVar}" What does that @ do? Edit: text is a property in, for example, a TextArea component. 回答1: The @ symbol is used for two way binding. Traditional binding is only one way. So, you have something like this in ActionScript: [Bindable] public var myValue:String = 'test'; And this in MXML <s:TextInput id="myInput" text="{myValue}" /> myValue is the source, and the text property on the myInput is the destination. When the

Flex: implementing classic curry function in actionscript?

做~自己de王妃 提交于 2019-12-21 04:27:47
问题 What's the best way to implement a classic curry function in actionscript with a nice syntax? I've tried: Function.prototype.curry = function() { return "helloWorld"; } trace((function():void {}).curry()); ...approach but that didn't work. I guess I'm stuck with a ugly approach such as: FunctionUtils.curry(fp, ... args) ??? 回答1: I must admit I've never understood the difference between "curry" and "partial". I use the following function to do more or less what you want to do: package { public

How do I make Flex file upload work on firefox and safari?

瘦欲@ 提交于 2019-12-21 04:22:13
问题 I have a flex app that uploads files to a server. The server requires authentication to be able to upload. In IE the upload works fine. However in FF and Safari, it does not upload. I have seen people all over with this same problem but no answers. Don't fail me now stackoverflowers. 回答1: I found this question while trying to find the answer myself. The solution was rather simple. Based on the flash player bug that others have linked, and the comments on that page, I decided to append session

What's all this business about Flash, Flex, Adobe Air, Java FX and Silverlight?

半世苍凉 提交于 2019-12-21 04:11:25
问题 What's all this business about Flash, Flex, Adobe Air, Java FX and Silverlight? Why would I choose one over the other? and what happened to Java Applets and ActiveX controls? Oh, and where does AJAX fit in to all this? and is Laszlo relevant? Afteredit (in response to some "d'uh" type answers): the question is a bit tongue-in-cheek. I know about the various RIA technologies. I am, however, interested in the StackOverflow community's opinion about each - particularly why you would use one over

Compiling with Flex4 SDK

心不动则不痛 提交于 2019-12-21 02:57:11
问题 I'm trying to compile an existing Flex3 project with the Flex4 SDK. I'm getting this error: Warning: This compilation unit did not have a factoryClass specified in Frame metadata to load the configured runtime shared libraries. To compile without runtime shared libraries either set the -static-link-runtime-shared-libraries option to true or remove the -runtime-shared-libraries option. The resulting file is roughly the same as my old Flex3 compiled .swf file. Playing the resulting .swf file in