mxml

Flex Webservice and Android

爷,独闯天下 提交于 2020-01-07 04:35:17
问题 I have a problem when I try to access to a webservice from a mobile application. When I try the address of the webservice on my browser, it works, when I try in my application on the emulator of Flash Builder, it works. But when I try it on my phone, it doesn't work! I have access to the web in my application. I just create the webservice in a view in MXML. <?xml version="1.0" encoding="utf-8"?> <s:View xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" title

separating data in an array for display in Flex

不问归期 提交于 2020-01-06 08:48:09
问题 I'm new to flex/flash builder, i need to read in data from a text document, then slice it into pieces i set out in my custom class. all of this so far worked var theCustomer:Customer=new Customer(name,address,phoneNo,comment,custNo); custArray.addItem(theCustomer); So now what i want to do is display only the name from each entry of the array into a combobox - and then on close it will display all the details into a list box If i just bind the custArray to the combobox it displays name

How should I smooth the transition between these two states in flex/flashbuilder

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-06 03:11:09
问题 I have an item in which has two states, best described as open and closed, and they look like this: and And what I'd like to do is is smooth the transition between one state and the other, effectively by interpolating between the two points in a smooth manner (sine) to move the footer/button-block and then fade in the pie chart. However this is apparently beyond me and after wrestling with my inability to do so for an hour+ I'm posting it here :D So my transition block looks as follows <s

Flex custom button component

纵然是瞬间 提交于 2020-01-05 04:22:09
问题 I want my custom button to look like the button sample below. More specifically, I want the width of the button to be determined by the width of the largest word in the label (i.e. width of "Elongated" in my example). The label must wrap, not truncate. And I want only one pixel between the top edge of the icon and my button's top edge. I have tried lots of things but to no avail so far. I have reduced the horizontalGap and verticalGap to zero and padding to zero. But still nothing. Please

Recursive iteration through every component instance

喜欢而已 提交于 2020-01-05 04:08:31
问题 I have various custom component instances in my flex app. I want to loop through them recursively and get their instance Ids. The recursive part is very important to me. Can someone tell me what's the best way to do it? I have tried doing this, but it didn't do recursive: for each (var myItem:* in this.MasterContainer.childDescriptors) { trace(myItem.id); } 回答1: This will do it: private function findControlsRecursive(current:DisplayObjectContainer, controls:ArrayCollection):void { for(var idx

Using ASDoc with Bindable metatag and mxml

瘦欲@ 提交于 2020-01-04 05:24:33
问题 I am creating the documentation of my flex project using ASDoc and having some issues with the bindable metatag. ASDoc doesn't document public Bindable values unless the Bindable tag has an event name associated with it. For example: //This is documented correctly [Bindable("someEvent")] /* * public bindable with event name * */ public var test1:String; //This is not documented at all [Bindable] /* * public bindable without event name * */ public var test2:String; ASDoc prepends random

Custom “context menu” in flex

戏子无情 提交于 2020-01-02 10:33:17
问题 I would like to add a custom context menu with line separators, but can't really figure out how. What I need: <mx:List id="treeContextFile" visible="false" width="233" verticalScrollPolicy="off" includeInLayout="false"> <mx:dataProvider> <mx:Array > <mx:String>Open</mx:String> <horizontal line here > <mx:String>Cut</mx:String> <mx:String>Copy</mx:String> <mx:String>Paste</mx:String> <horizontal line here > <mx:String>Rename</mx:String> <mx:String>Delete</mx:String> <horizontal line here > <mx

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

Adobe record sound and save

心不动则不痛 提交于 2019-12-31 04:23:31
问题 In the following code i am trying to save the microphone contents to a file.The saved file doesn't play and Every time the file is saved i see that the size is only of 10 bytes only.What am i doing wrong in the code.Can someone please show me the correct code to save it .And the saved file should play the recorded contents accordingly. <?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:/

Adding an image on the right side of the title bar of a panel in Flex 4

社会主义新天地 提交于 2019-12-25 00:49:14
问题 I'm trying to create a MXML component based on the spark Panel and I would like to add an image on the right end of the title bar, so that the panel will have a text on the title bar and a small image at the right end. I'm using a skin to define the colors, background fill etc. But how do I add this image at the right end of the title bar? I would like to make that image cutomizable so that when the component is inserted, either the default image is used or a new image can be provided. Please