apache-flex

Scale from center point with Tween Class AS3

纵饮孤独 提交于 2019-12-24 13:46:13
问题 I need to scale a dynamic text box from it's center point using Tween class AS3. Basically, I need to scale down to 50% in 300ms or so... and after finish I want to scale up again to 100% and stop animation. I tried to set the center point to the center of the text box but it always scale from left. Well I been trying hard to learn the basics of Tween class and I believe it's missing some good properties and methods like greensock! Thank you. title_txt.text = "Text"; var textScaleX:Tween; var

Add children to HierarchicalCollectionView

南楼画角 提交于 2019-12-24 13:45:49
问题 I'm trying to implement lazy loading on ADG. and I'm stuck in the point where I need to add the returned children to the expanded node. Currently I'm doing: private function childrenloaded(data:*,item:*):void { var len:int = data.length; for(var i=0;i<len;i++) (internalMainGrid.dataProvider as HierarchicalCollectionView).addChild(item, data[i]); } This works fine, but it is slow. (21,990 ms for total: 919 records) is there some way I can speed this up? - like setting children directly Ex: var

Can I use multiple ItemRenderer with one LineSeries?

最后都变了- 提交于 2019-12-24 13:25:14
问题 Currently I have created below class which extends ItemRenderer to add labels for all data points in Line Chart. package lib { public class LineChartLabelRenderer extends UIComponent implements IDataRenderer, IFactory { private var _label:Label; public var solidColor:SolidColor; public function newInstance():* { return new LineChartLabelRenderer(); } public function LineChartLabelRenderer():void { super(); _label = new Label(); addChild(_label); _label.setStyle("color",0x000000); _label

Flex - number validation, wont remove red glow if click focus? (example provided)

浪尽此生 提交于 2019-12-24 12:53:51
问题 Reproduce problem: run code click checkbox click on the first input box enter: 100 The red glowing error box should have disappeared, but it will disappear when you focus on another component e.g. the second input box. If you refersh the screen, click the checkbox, and TAB onto the first input box, type 100, the error glow will disappear as I expected. This is what I want for click also. Any ideas? <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml

Flex, any way to programmatically highlight a field in red the way the validators do?

守給你的承諾、 提交于 2019-12-24 12:33:56
问题 I'm doing some programmatic validation of some field values in a form, is there any way in Actionscript to highlight the field in red the way the validators do? 回答1: you just need to set errorString property on programmatic validation error <s:TextInput errorString="error string value" /> <mx:TextInput errorString="error string value" /> 回答2: Using: var textField:TextField = new TextField(); addChild(textField); To highlight the background in AS3: textField.background = true; textField

AIR 3.0 and Stage3D

这一生的挚爱 提交于 2019-12-24 12:18:49
问题 There isn't any tutorials on the web on how to use Stage3D on AIR 3.0. How do I enable it in Flash Builder 4? I have countless trial and error when testing 2D/3D framework: VerifyError: Error #1014: Class flash.display::Stage3D could not be found. 回答1: You will need the flex 4.5.1 SDK installed, as well as a playerglobal.swc from FP11. Check out this tutorial: Creating a Custom Flex 4.5 SDK to Target Flash 11 and AIR 3 回答2: You need to edit your app's XML file. That's the descriptor file with

Intellij Cannot determine verions for JDK

筅森魡賤 提交于 2019-12-24 12:16:20
问题 Why do I get the error in intellij: Cannot determine version for JDK flex_sdk_3. Update JDK configuration. 回答1: This problem arises if you have a java classes in your source tree. Remove them and the error should disappear. 回答2: When loading a project in IntelliJ IDEA, part of the project file is the name of the JDK that the project uses. If you don't have that JDK installed with that name, then IDEA will complain. We found a need to standardize on JDK names in our group. To add or edit JDKs

Using a button within flash movie in flex/flash builder

泪湿孤枕 提交于 2019-12-24 12:13:54
问题 Is it possible to build a UI with Flash CS5 that contains multiple buttons, and then have flex listen to those button events? My current plan is to load the SWF with SWFLoader and attaching listeners to the buttons in a onComplete event would be the proper way to set it up, however i cannot seem to find a way to access the buttons themselves and attach listeners to them. Of course i would give each button its own instance name. Pointers and/or examples would be greatly appreciated. 回答1: Once

Flex full screen mode

戏子无情 提交于 2019-12-24 12:03:49
问题 I'm new in flex. I faced problem to make full screen in flex 3.My layout container type like below. <mx:Application > <mx:Panel> <mx:ViewStack> <mx:VBox > <mx:VBox > <mx:Canvas > <mx:HBox width="300" height="300"> </mx:HBox> </mx:Canvas> </mx:VBox> </mx:VBox> </mx:ViewStack> </mx:Panel> </mx:Application> the container width and height will be fixed like above.Then when i click a button full screen it will be full screen mode. Please help me with example and tutorial. best regard. Mahedi 回答1:

Want to show Directory Tree of server (PHP) at client side using FLEX?

杀马特。学长 韩版系。学妹 提交于 2019-12-24 11:39:08
问题 Using RecursiveDirectoryIterator of PHP i am able to create directory tree and can even flatten it using RecursiveIteratorIterator class , but I want to create directory tree structure which TREE component of flex understands . The following is an array structure in php which flex understands. array('label'=>'rootDirectory','children'=>array(array('label'=>'subFolder1','children'=>array(array('label'=>'file.jpg'))),array('label'=>'EmtptyFolder','children'=>array()))); Please show me a way to