apache-flex

Flex chart labels way too small, how to resize axis?

江枫思渺然 提交于 2019-12-25 09:26:29
问题 So I have a Flex bar chart that resizes dynamically, and if I have only a few items, the height shrinks and the horizontal axis and label shrink along with it. If the height of the chart is small enough, the label shrink down to practically nothing. How can I enforce a minimum height for the axis itself? Or even a minimum font size for the labels? I've tried setting the font size on the axis renderer and the axis label renderer and Flex still wants to resize the labels how it wants. 回答1: put

Calculate WMTS layer map extent with GeometryService

有些话、适合烂在心里 提交于 2019-12-25 08:50:07
问题 I have WMTS background layer, a WMS Layer and an array of points in a graphic layer. The points have wgs84latlng coordinates that are used to calculate the extent of the map. NOT WORKING: When calculating the extent with a GeometryService the the wms layer is nicely projected on top of it only it's position is shifted upwards and not corresponding with the GeometryService calculated position of the points in the GraphicsLayer... service: <esri:GeometryService id="geometryService" concurrency=

Flex4: how to create the view states in as class (code-behind)

本小妞迷上赌 提交于 2019-12-25 08:25:13
问题 According to this document from Adobe Create and apply view states is <s:State/> a state object. How to create the view states in code-behind ActionScript class? 回答1: I have found a simple solution, and I don't have to declare the states using skinning architecture. I don't even to declare the states in my ApplicationClass which extends WindowedApplication. The solution is: declare the states only in the Main.MXML and by all means with the right namespace, in my case it should be "custom".

Need the example to use custom component in FLEX application

混江龙づ霸主 提交于 2019-12-25 08:18:21
问题 I want to know that how to create a CustomComponent and how to use that in FLEX Application. Give me just a simple example, i have little bit of knowledge is there so i can understand if u just give me the code. I am using FLEX 3.0 Thanks in advance. 回答1: Nice to see you again. Formatted Stepper.as package component { import flash.events.Event; import flash.events.FocusEvent; import flash.events.MouseEvent; import mx.controls.NumericStepper; import mx.core.mx_internal; import mx.events

Flex s:DataGrid all ItemRenderer are fired

北城以北 提交于 2019-12-25 07:49:42
问题 I don't understand why when we change data on dataprovider , all the itemRenderers of the impacted column are called ? Here is a little example of my problem : application : <?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" minWidth="955" minHeight="600" creationComplete="application1_creationCompleteHandler(event)"> <fx:Script> <![CDATA[ import mx.collections

Change the character in the TextInput in password mode

落花浮王杯 提交于 2019-12-25 07:43:59
问题 I was just curious about the password mode display of the TextInput control in flex. The control displays asterisks instead of the characters themselves when the 'displayAsPassword' is set to true. Quoting the documentation, displayAsPassword If true, the field does not display entered text, instead, each text character entered into the control appears as the character "*". So, is there any way to change this displayed character, unless of course creating a custom component or extending the

Adobe TLF with Flex/AS3: how to programmatically change \n in text string into paragraph tags and insert into TextFlow?

僤鯓⒐⒋嵵緔 提交于 2019-12-25 07:41:34
问题 My Flex/AS3 web application accesses a database and retrieves text containing \n for newline character. Otherwise the text looks like normal text. Is there a way to convert the \n into paragraph tags that I can insert into an spark TextFlow? For example, my only experience with TLF is in writing mxml code such as follows: <s:RichEditableText width="100%" height="100%" textAlign="left" paddingTop="0" paragraphSpaceAfter="0.3" editable="false"> <s:textFlow> <s:TextFlow> <s:p fontWeight="bold"

Desktop Air Application Accessibility

冷暖自知 提交于 2019-12-25 07:05:04
问题 I'm trying to add accessibility to my application. I still can't figure out exactly how accessibility works in spark components. I'm on window's platform with the narrator function enabled. All I want to do is to name the three fields with a different name for accessibility so the user knows what to do. I tried to just use declaration to define the accessibility properties but it seems like it will always only speak out one name of the button. Thus, I took another approach and tried to create

finding sequences in AS3 array

不羁的心 提交于 2019-12-25 06:52:10
问题 does anyone have any idea what to do in order to find the number of sequences in an array? for example, my array is: var numbers:Array = new Array(banana, banana, apple, banana, banana); and i need to find is: * how many times there is a sequence of "banana" * and the length of each sequence. what shell i do in order to get the following result: 2,1,2 (2 bananas, 1 apple, 2 bananas) i tried with do while loop, but i i guess i miss something. a short example will be very appreciated! thanx 回答1

Clone an Image in Flex 4.6

帅比萌擦擦* 提交于 2019-12-25 06:50:02
问题 For the past few hours I have been trying to clone an image in Flex (using the Spark Components, but also trying to convert between Bitmap and BitmapImage). What I am trying exactly is to create a simple painting application which keeps track of each Brush-Stroke. As soon as the Image on the Canvas has changed, it is to be cloned and then the clone is to be put into the History-Panel on the bottom of the application. Things I have tried include: Using ObjectUtils.clone(Object) Creating