apache-flex

Using Date Spinner in flex mobile application

谁都会走 提交于 2019-12-12 02:34:15
问题 I am unable to use DateSpinner component in my flex mobile application. I am only interest to print date but not time. How can I achieve this in my flex mobile project. Platform is Flash Builder 4.6. <s:HGroup verticalAlign="middle"> <s:SpinnerListContainer> <s:DateSpinner id="dt" /> </s:SpinnerListContainer> </s:HGroup> The above code gives following error. TypeError: Error #1009: Cannot access a property or method of a null object reference. DateSpinner.as:1290 回答1: In the example code for

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

how to deploy projects with maven and jboss?

风格不统一 提交于 2019-12-12 02:25:26
问题 I am new to maven and Jboss(actually, never used other server as well) I have a flex/blazDS/Java project with maven and jboss server. How can i deploy it? PS: When i do the development, I used maven to build the project(using mvn clean install package ...). then, go to my eclipse, right click the main app, let it run on my server. 回答1: You could use the Maven JBoss Plugin. Once configured properly, you can use it to start and stop the server as well as deploy via JMX (for remote instances)

I added class directory via Flex Build Path/Source Path, and now 'building workspace' takes forever

六月ゝ 毕业季﹏ 提交于 2019-12-12 02:22:41
问题 I am coming from flash to flashbuilder. I have a directory, AS3_classes_dir, on my computer that stores all of my classes, including my greensock and papervision packages. In every flash app that I make I include that directory in the Source Path, so that I can import whatever I may need. Compiling in flash (using ctrl/enter) takes very little time; only the classes that are specifically imported are compiled. So today I did that in flashbuilder , included AS3_classes_dir via Flex Build Path

Width of MovieClip is minus 100 million (-1.073741604E8)

北城以北 提交于 2019-12-12 02:18:15
问题 My application works fine, but I have a function, what calculates a minimap based on the width of the original MC, but it doesn't work when the width is negative. So the question is basically, how can width be negative? what does it mean? thanks --edit: sorry, I can't post any code, it's a 30K LOC project. The solution was to include this in another movieClip, where it worked better. 回答1: I expect your MC which width you're measuring is not on stage right now. I'm experiencing the same issue

Adobe Air Native Process with Java

走远了吗. 提交于 2019-12-12 02:17:50
问题 Does Adobe Air Native process only allows to call .exe file only which runs a java class ? And not accessing a certain method in the java class? 回答1: You can run java applications by running java.exe with native process and passing appropriate arguments. See Running java from cmd. 来源: https://stackoverflow.com/questions/8075085/adobe-air-native-process-with-java

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

How do I make the path scale to the container in Flex (View Box)?

老子叫甜甜 提交于 2019-12-12 01:55:25
问题 I have the following markup: <s:Group width="100%" height="100%"> <s:BorderContainer borderWeight="3" borderColor="black" cornerRadius="5" width="100%" height="100%"> <s:Path> <s:stroke> <s:SolidColorStroke color="black" /> </s:stroke> <s:data>M 14.153 14.788 C 13.856 15.25 13.161 15.628 12.612 15.628 L 0.766 15.628 C 0.216 15.628 -0.028 15.228 0.225 14.739 L 3.307 8.765 C 3.56 8.276 3.56 7.477 3.307 6.988 L 0.225 1.014 C -0.028 0.525 0.216 0.125 0.766 0.125 L 12.612 0.125 C 13.161 0.125 13

Flex Actionscript - loop through xml find if at least one checked

别来无恙 提交于 2019-12-12 01:54:33
问题 I have an xml as a string in flex in the below format. I can have as many nested groups and test as possible. I need a way to find which are checked, how can I iterate through this? <node label="All" checked="0"> <node label="Group1" checked="0"> <node label="Test1" checked="0" /> <node label="Test2" checked="0" /> <node label="Group1Inner" checked="0"> <node label="Test1Inner" checked="0" /> <node label="Test2Inner" checked="0" /> </node> <node label="Group2Inner" checked="0"> <node label=

Is it possible to bypass the cross-domain.xml requirement for an Adobe AIR application built with Flex?

两盒软妹~` 提交于 2019-12-12 01:53:20
问题 Is it possible for an Adobe AIR application to connect to a remove webservice that does not expose a cross-domain.xml file? If so, how do you configure the security sandbox within Air to allow this? I have attempted a socket connection and received the following error: securityErrorHandler: [SecurityErrorEvent type="securityError" bubbles=false cancelable=false eventPhase=2 text="Error #2048: Security sandbox violation: app:/MyApp.swf cannot load data from gmail.com:5222." errorID=0 ] 回答1: