flex4

Autocomplete in Flex 4.0 not displaying items in dropdown list

本小妞迷上赌 提交于 2019-12-12 06:25:08
问题 I am new to flex, actionscript and flash builder (having to do an upgrade to an existing project). One of the problems I seem to have is that the Autocomplete component that seems to be part of flex extras is not displaying the list of items in the dropdown list. Basically, I get a list of blank items. I know they are there and they are the right items because as soon as I click on one, I get the right text in the combobox. my Code in the mxml looks something like this <mx:FormItem label=

Flex Datagrid labelFunction query

£可爱£侵袭症+ 提交于 2019-12-12 06:22:58
问题 Main.mxl <s:DataGrid dataProvider="{employeeData}"> // employeeData is an Arraycollection with predefined data <s:typicalItem> <s:DataItem firstName="Christopher" lastName="Winchester" hireDate="22/12/2013"/> </s:typicalItem> <s:columns> <s:ArrayList> <s:GridColumn labelFunction="employeeName" headerText="Name"/> <s:GridColumn dataField="hireDate" headerText="Hire Date" labelFunction="dateFormat"/> </s:ArrayList> </s:columns> </s:DataGrid> <fx:Script> <![CDATA[ import mx.collections

How to know if there are sub items/nodes in an AdvancedDatagrid

我们两清 提交于 2019-12-12 04:37:46
问题 To summarize: How can I remove a node branch (level 1) if it has zero Data items? And in turn also remove Node at higher level 0 if it's sub items are (empty or have been) removed? After much searching on the internet I still need to know if how to find out if an AdvancedDatagrid or a "node" contains children. How to know if it's empty or has "something"? With it, I will be able to filter it with my function.. (Expalined below): Firstly I apologize for my bad english. I have an

Calling JavaScript function from Flex 4 web application

倖福魔咒の 提交于 2019-12-12 03:57:20
问题 I need to call javascript function from Flash 4 based web application. When I run it in Debug mode it runs perfectly but when I make release build or run same application on other machine it does not call JavaScript function. For testing I am just calling sample Alert function of JavaScript. Can someone help me what I am missing ? <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" initialize="application1_initializeHandler(event)" verticalAlign="middle"

FXG and flex sdk

送分小仙女□ 提交于 2019-12-12 03:23:30
问题 I have flex sdk 4.6 installed and I want to compile AS3 class that uses FXG file for simple graphics. I have and fxg file called Speaker.fxg and I tried to import it like a package import Speaker; But when compiling it returns Error: null Also tried this [Embed(source='Speaker.fxg')] private var Speaker:Class; private var sp:Sprite = new Speaker(); and this [Embed(source='Speaker.fxg')] private var Speaker:Class; private var sp:Speaker = new Speaker(); and keep getting this error Error: no

flex mobile TabbedViewNavigatorApplication back button

故事扮演 提交于 2019-12-12 03:16:36
问题 Why TabbedViewNavigatorApplication don’t have popView() (as in ViewNavigatorApplication I can use popView to go previous view)? How can I do that in TabbedViewNavigatorApplication ? <fx:Script> <![CDATA[ protected function BackBtn(event:MouseEvent):void{ navigator.popView(); //error } ]]> </fx:Script> <s:ViewNavigator label="Page1" width="100%" height="100%" firstView="views.DurationView" > <s:titleContent> <s:Button label="Back" click="BackBtn(event)"/> </s:titleContent> </s:ViewNavigator>

Flex 4.6 TabbedViewNavigator - TabBar with indication of more items

痴心易碎 提交于 2019-12-12 02:46:16
问题 I would like my TabBar to have the ability to show if there are more menu items on either the left or the right. Else the user may not know that more options exist. Something like either arrows to indicate more items or even some sort of beveled effect on the last visible tab item so that it suggests more options are off screen. This is how my TabBar looks like with an arrow showing how the other items are just cut off: Here is the code of the TabBarSkin: public class ScollingTabBarSkin

'setProgress not a function' error while setting progress value of a progress bar

懵懂的女人 提交于 2019-12-12 02:35:42
问题 I want to set value of a progress bar in an accordian but I am encountering 'setProgress is not a function' error. Any idea what's wrong with following code. Observation: If I move the progress bar out of the Accordian then the error goes away and the progress bar appears fine. I want to set the progress bar eventually to {repMonitor.currentItem.threatLevel} but for now I am just testing with hypothetical threat value i.e 60 <mx:Accordion id="monAccordian" includeIn="Monitoring" x="10" y="10"

Handling multiple artifacts from single maven project

a 夏天 提交于 2019-12-12 02:32:59
问题 I have a maven project that produces many artifacts. Of course it is kind of against maven best practice (one pom one artifact), but it is Adobe Flex project that produces many *swf modules and it is really makes no sence to create a separate project for each module. For me it would be very convinient to handle all swf modules as a single zip archive eg. zip archive would be my artifact. So I am looking for the way to pack and unpack my zip artifact with maven. If you have any ideas, please

Proper way to check for null dates in Flex/Actionscript?

ε祈祈猫儿з 提交于 2019-12-12 01:58:58
问题 When working with Date() objects in Flex/Actionscript, I'm using to following function to check for null dates. Is this the proper way to check for a null date or is there a better alternative out there? public function IsDateNull(date:Date):Boolean { if (date && date.fullYear != 0) { return true; } return false; } 回答1: Since Date is a class that extends Object and isn't a primitive type it doesn't have a default value and therefore should only be null if it hasn't yet been instantiated. Is