apache-flex

Camera.setMode sets small resolution

。_饼干妹妹 提交于 2020-01-16 17:59:35
问题 I have a Lenovo tablet with Windows 8.1 with front and rear cameras. The rear camera is IMX175 and should supports 3280*2464 pixels. When I call setMode with those dimensions I never got them back (in Camera.width/height) but some lower numbers. In IE (11) I get 1280*960 In Chrome I get 1920*1440 I tried to change the frame rate to several options, set the stage.quality to StageQuality.BEST. Any help will be appreciated 回答1: There are several reasons between the cam-specifications, flash

Flex Session Handling with Java

三世轮回 提交于 2020-01-16 17:39:31
问题 I have implemented session handling in Flex Java application, But I am facing one issue in that. When I login after that I am creating new flex session by : session = FlexContext.getFlexSession(); But If I test my application in two different browser then : • IE browser : If I login my application then its giving me some session ID like (0704943129C2D91539D989EA1DB70D37). • Mozilla browser : If I login to my application at same time then its giving me a different Session ID :

Focus Manager bug in Scroller class

雨燕双飞 提交于 2020-01-16 08:27:06
问题 In the Scroller.as class line 2139 I'm getting the following error: TypeError: Error #1009: Cannot access a property or method of a null object reference. at spark.components::Scroller/focusInHandler()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\Scroller.as:2139] at flash.display::Stage/set focus() From Scroller.as /** * @private * Listens for any focusIn events from descendants */ override protected function focusInHandler(event:FocusEvent):void { super.focusInHandler(event); /

Deep Nested XML

无人久伴 提交于 2020-01-16 08:26:43
问题 I am trying to display a list of items in a datagrid from an XMLList. <Series no="1"> <file> <filenum>1</epnum> <prodnum>4V01</prodnum> <title>Series #1 - File #1</title> </file> <file> <filenum>2</epnum> <prodnum>4V02</prodnum> <title>Series #1 - File #2</title> </file> </Series> <Series no="2"> <file> <filenum>1</epnum> <prodnum>4V01</prodnum> <title>Series #2 - File #1</title> </file> <file> <filenum>2</epnum> <prodnum>4V02</prodnum> <title>Series #2 - File #2</title> </file> </Series> My

Flash Builder: 1172 Definition Could not be found

試著忘記壹切 提交于 2020-01-16 07:54:32
问题 I have an actionscript project in Flash Builder and get 1172 errors on these lines: import flash.filesystem.File; import flash.filesystem.FileMode; import flash.filesystem.FileStream; i'm comming from flash where i have to set in the publish settings that i want to compile an AIR application. I can't find an equivalent in flash builder. 回答1: In Flash Builder 4, I don't think you can create an ActionScript only AIR Project using the project setup wizard. You'll have to create an ActionScript

Combobox Dataprovider - Only gets labelField from XML not the associated ID

血红的双手。 提交于 2020-01-16 05:16:06
问题 Back again this time working with data providers. Well i been doing a bit of training with Flex, and I've searched, and i managed to get a ComboBox being populated through XML data. Its works pretty well, he gets the LabelField for each item from XML, but the ID associated to each item he doesn't get then from the XML. Code: <?xml version="1.0" encoding="utf-8"?> <mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="355" height="465" creationComplete="getPaises

How do I get a Flex AdvancedDatagrid to display just one row?

本秂侑毒 提交于 2020-01-16 05:16:05
问题 I have an AdvancedDatagrid, whose dataProvider is an ArrayCollection that contains 1 row of displayable stuff. Flex continues to display about 6 rows, the top one filled, the rest blank. I've set the rowCount="1", with no luck. 回答1: I actually ran into this issue the other day. It turns out I was setting the height of the AdvancedDataGrid to 100%, which overrides the rowCount property. If you check out the documentation, it says "If the height of the component has been explicitly set, this

Set dataprovider of buttonbar component

99封情书 提交于 2020-01-16 04:40:12
问题 I am trying to add a navigation component with a button bar in it that controls the view stack of the main application. Here is what I have so far for the main application's code: <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:comps="comps.*" minWidth="955" minHeight="600"> <fx:Declarations> <!-- Place non-visual elements (e.g., services, value objects)

How to get Flex SWFLoader unloadAndStop to unload sound also?

人走茶凉 提交于 2020-01-16 00:59:08
问题 public var swfLoader:SWFLoader = new SWFLoader(); [Embed(source="/some/file1.swf")] public var file1:Class; [Embed(source="/some/file2.swf")] public var file2:Class; then I do: swfLoader.load(file1); Later on: swfLoader.unloadAndStop(true); which unloads the video, but not the sound! So I add in SoundMixer.stopAll(); Which is ok, for a while. Later on, I do: swfLoader.load(file2); And eventually, while watching file2, file1's audio will start playing in the background over file2's audio, with

How do I exit (or suspend) a Flex 4.5 IPhone Application through code?

安稳与你 提交于 2020-01-15 23:41:33
问题 NativeApplication.nativeApplication.exit() does not seem to work on IOS and I'm in a position where if a certain error code is I'd like to either be able to shutdown and restart my applicaiton. 回答1: You are not able to shut down and then restart your application on iOS. You can quit your app, but not restart. 回答2: You can't ( as far as I know ) exit an iPad application, but you can crash it! There's other ways of going about it, but the general idea is to keep taking more memory until iOs