apache-flex

Adobe AIR to execute program

拈花ヽ惹草 提交于 2019-12-17 07:12:35
问题 I would like to press a button from an Adobe AIR application and execute some installed program. For example, I would have a button named "Start Winamp". When this is pressed it should start Winamp.exe directly...I don't want some command line thing executed, I only want an exe to start. Or...is it the same thing ? Please, let me know if this is possible. Thank you. 回答1: There's no direct way of doing it. Try CommandProxy. Read the blog post very carefully. You really need to create two

How to deal with Number precision in Actionscript?

柔情痞子 提交于 2019-12-17 06:36:16
问题 I have BigDecimal objects serialized with BlazeDS to Actionscript. Once they hit Actionscript as Number objects, they have values like: 140475.32 turns into 140475.31999999999998 How do I deal with this? The problem is that if I use a NumberFormatter with precision of 2, then the value is truncated to 140475.31 . Any ideas? 回答1: This is my generic solution for the problem (I have blogged about this here) : var toFixed:Function = function(number:Number, factor:int) { return Math.round(number *

How to deal with Number precision in Actionscript?

吃可爱长大的小学妹 提交于 2019-12-17 06:36:13
问题 I have BigDecimal objects serialized with BlazeDS to Actionscript. Once they hit Actionscript as Number objects, they have values like: 140475.32 turns into 140475.31999999999998 How do I deal with this? The problem is that if I use a NumberFormatter with precision of 2, then the value is truncated to 140475.31 . Any ideas? 回答1: This is my generic solution for the problem (I have blogged about this here) : var toFixed:Function = function(number:Number, factor:int) { return Math.round(number *

Flex MVC Frameworks [closed]

老子叫甜甜 提交于 2019-12-17 05:40:50
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . I'm currently using and enjoying using the Flex MVC framework PureMVC. I have heard some good things about Cairngorm, which is

Eclipse memory settings when getting “Java Heap Space” and “Out of Memory”

白昼怎懂夜的黑 提交于 2019-12-17 04:50:53
问题 When trying to launch and run a flex/java project in eclipse I kept getting a "Out of Memory Exception" and "Java Heap Space" using Eclipse, Tomcat and a JRE. While researching trying to adjust the memory settings I found three places to adjust these: Eclipse.ini The JRE Settings under Window > Preferences Catalina.sh or Catalina.bat What are the differences between setting -xms and -xmx in these different places and what does is mean? Is there any way to verify these memory settings are

Eclipse memory settings when getting “Java Heap Space” and “Out of Memory”

丶灬走出姿态 提交于 2019-12-17 04:48:18
问题 When trying to launch and run a flex/java project in eclipse I kept getting a "Out of Memory Exception" and "Java Heap Space" using Eclipse, Tomcat and a JRE. While researching trying to adjust the memory settings I found three places to adjust these: Eclipse.ini The JRE Settings under Window > Preferences Catalina.sh or Catalina.bat What are the differences between setting -xms and -xmx in these different places and what does is mean? Is there any way to verify these memory settings are

Where is the Adobe Flex Style explorer Sample app

こ雲淡風輕ζ 提交于 2019-12-14 04:20:06
问题 I have did not checked it since a while, but now I need to maintain some old flex 2/3 code (I need to update some colors and styles). The problem is that I did had the Flex 2 Style Explorer showcase app from Adobe bookmarked, but not I cannot reach it any more. Can someone help and provide a valid link, please. Old link was http://examples.adobe.com/flex2/consulting/styleexplorer/Flex2StyleExplorer.html#/ Thanks a lot! 回答1: I have the source for the Flex 2 style Explorer, i downloaded once

Flex 4 and ScrollBar stepSize

一世执手 提交于 2019-12-14 04:05:29
问题 I want to specify amount to scroll with VScrollBar. So in Flex 3 we have "lineScrollSize" but how this property called in Flex 4? I thought it VScrolBar.stepSize — but it dose not do anything. Somebody please help me. I just whant my content to scroll faster on mouse wheel. 回答1: Have a look into LayoutBase.getVerticalScrollPositionDelta. You might want to subclass and override it! Here's what I did in my own layout class: override public function getVerticalScrollPositionDelta(navigationUnit

Adding Local Filenames/References To Array In Actionscript

一个人想着一个人 提交于 2019-12-14 04:01:58
问题 how can i cycle thru a local folder to add all (or some) files names and references to that file in an array using actionscript 3.0? var fileArray:Array = new Array(); for (var item:Object in "../myFolder/") { trace(item.name); fileArray.push(item); } something like this? 回答1: You can only access the file system using AIR :/, or by having Flex make an HTTP call to a server-side language like ruby/python/php and having it return that information. Here is an AIR Directory Listing Example (you

SelectItem Method in spark Datagrid?

帅比萌擦擦* 提交于 2019-12-14 03:59:09
问题 I am enabling multiple row selection with clicking checkbox Item renderer. this works for extending mx:Datagrid (other answer) override protected function selectItem(item:IListItemRenderer, shiftKey:Boolean, ctrlKey:Boolean, transition:Boolean = true):Boolean { // only run selection code if a checkbox was hit and always // pretend we're using ctrl selection if (item is CheckBox) return super.selectItem(item, shiftKey, true, transition); else //Avenir Cokaj 23/06/11: this enables the flex's