apache-flex

Record h.264 video in Flash without streaming server?

无人久伴 提交于 2020-01-02 06:44:19
问题 Is it at all possible to save h.264 video from the Flash/Actionscript Camera (i.e. webcam) without needing a streaming server (like fms/wowza/red5)? Where I'm also going with this is, I'd like to take the sampleData from Microphone, and transcode it client-side so that a user can record h.264/aac (or mp3) and store it locally or remotely for easy viewing in a mp4 container.... Any tips before I re-invent the wheel or run into a roadblock? 回答1: Adobe made sure that you need a streaming server

How would I include an MXML file inline another MXML file?

佐手、 提交于 2020-01-02 04:44:29
问题 I would like to include an MXML file in my MXML file in the same way you can include an external file in AS3 using the include directive. Using the include directive brings the code from the external file into the original file at compile time placing it in the same scope. For example, Application.mxml: <Application> <source="external.mxml"/> </Application> External.mxml: <Styles/> <Declarations> <Object id="test"/> </Declarations> I need to keep this code/mxml/xml in the external file in

How to sort an ArrayCollection in Flex

戏子无情 提交于 2020-01-02 03:53:06
问题 I want to sort an Arraycollection by fieldName as ascending. Here's my code and I want to know whether it's right. Do you have any suggestions? public static function arrayCollectionSort(ar:ArrayCollection, fieldName:String, isNumeric:Boolean):void {var dataSortField:SortField = new SortField(); dataSortField.name = fieldName; dataSortField.numeric = isNumeric; var numericDataSort:Sort = new Sort(); numericDataSort.fields = [dataSortField]; arrCol.sort = numericDataSort; arrCol.refresh();}

ArrayCollection versus Vector Objects in FLEX

梦想的初衷 提交于 2020-01-02 03:51:06
问题 Can anyone tell me the applicable differences between an ArrayCollection and a Vector in flex? I'm unsure if I should be using one over the other. I saw that Vector is type safe and that makes me feel better, but are there disadvantages? public var ac:ArrayCollection = new ArrayCollection(); versus public var vec:Vector.<String> = new Vector.<String>(); Thanks. 回答1: Additionally, Vector is about 3 times faster than Array, which is about 18 times faster than ArrayCollection. rule of thumb is

Flex Messaging Security

五迷三道 提交于 2020-01-01 19:37:22
问题 I'm trying to create a module for a flex application, and I want to send notifications to clients. I've been looking at the BlazeDS messaging service to push out the notifications to clients, but I want to be able to send certain updates to certain clients. The Flex notification framework doesn't seem to allow this - if we have a field in the message with a value of the user's user id for example, any client could theoretically subscribe to all messages for any given user id, and there's no

changin the default width and height of the dropdownlist

三世轮回 提交于 2020-01-01 19:31:51
问题 i want a dropdownlist that is wide enough to accommodate the larger item in the dropdown in display area of the main control.(.i.e. dropdownlist with the functionality of MX Combobox) please guide me on this . 回答1: You should create custom DropDownList (extending original) and override dataProvider setter and measure() method. In dataProvider setter you should invoke invalidateSize() and in measure you should iterate your data provider and find the largest label (you can assign new text to

Flex 4 - Create states and add elements at runtime from actionscript

和自甴很熟 提交于 2020-01-01 19:16:31
问题 I wanna add dynamically (at runtime) new states to a container and, to this states, add different elements (like TextInput, Label etc.). This must be done from actionscript, I don't use any mxml file. I can add states and change properties or styles for different elements, but I didn't figured out how to add child elements for different states. 回答1: You'll have to manually create an instance of the State class and create overrides for it. Then add the newly created state to the states array

User Login validation and preloader in Adobe Air

社会主义新天地 提交于 2020-01-01 19:04:13
问题 I am trying to figure out ways to authenticate a user and load the application (while showing a preloader) in Adobe Air [desktop application, and not web based flex app]. This is what I have been able to achieve so far:- A window asks for login details, once validated I make the login window invisible and open an instance of the application's main window. There are 2 problems with this:- I have to open a new window (2 windows in total). It would rather look better if I was able to simply show

How to preload a file in Flex before the application initializes

我的未来我决定 提交于 2020-01-01 17:03:10
问题 Problem: An XML configuration file needs to be loaded at runtime and be ready when the application's createChildren() gets called. At the latest, because configuration values are needed to properly initialize child components. Preferably, I would like the configuration loading be complete before the application even gets created. In short, I want to do this: load configuration, then initialize the application using the loaded configuration. I created a custom preloader to help solve this. But

Adobe Native Extensions — not working?

我的未来我决定 提交于 2020-01-01 15:36:15
问题 I am trying to work with "Adobe Native Extensions" - one of the newest features released in Adobe Flash Builder 4.5. I am trying to communicate between Adobe AIR and a native C++ application on Windows 7 with the help of Adobe Native extensions. (Of course, we can do this today with NativeProcess APIs, but ANE is much more powerful) I followed the steps mentioned in the following article: http://thingsico.de/blog/tag/native-extensions/ created the sample DLL using cygwin to compile the C++