apache-flex

flex line chart with variable colored line

喜欢而已 提交于 2020-01-15 04:26:29
问题 Ive got a rather simple need to create a line chart. The data that I would like to chart is based on a single daily datapoint. xml example of data: <?xml version="1.0"?> <dataset> <data> <date>01/14/2013</date> <number>80.6</number> <indication>G</indication> </data> <data> <date>01/15/2013</date> <number>74.6</number> <indication>A</indication> </data> <data> <date>01/21/2013</date> <number>79.4</number> <indication>G</indication> </data> <data> <date>01/22/2013</date> <number>67.7</number>

Flex TextArea and TextInput on mobile not positioning correctly

纵饮孤独 提交于 2020-01-14 14:21:06
问题 I've had two issues when working with TextArea and TextInput on mobile components I don't know how to solve. The first is that the TextArea text does not position correctly and the second is that it overlaps other components. The issues occur when the TextArea is in a Scroller (or the soft keyboard activates and moves the TextArea position). You can see this if you add the code below to a mobile Application: <s:Scroller width="100%" height="100%" top="100" bottom="100"> <s:VGroup width="50%">

Spring MVC: RESTful web services + BlazeDS integration possible in the same web application?

我们两清 提交于 2020-01-14 14:07:33
问题 I have a Spring MVC web application which provides RESTful web services via a controller class (annotated with @Controller) which has methods mapped to specific request types and signatures via @RequestMapping annotations. I have attempted to integrate a BlazeDS service destination into the mix by 1) adding the HttpFlexSession listener to the web.xml, 2) adding the flex:message-broker and flex:remoting-destination declarations to my Spring application context configuration file, and 3) adding

Spring MVC: RESTful web services + BlazeDS integration possible in the same web application?

一个人想着一个人 提交于 2020-01-14 14:05:46
问题 I have a Spring MVC web application which provides RESTful web services via a controller class (annotated with @Controller) which has methods mapped to specific request types and signatures via @RequestMapping annotations. I have attempted to integrate a BlazeDS service destination into the mix by 1) adding the HttpFlexSession listener to the web.xml, 2) adding the flex:message-broker and flex:remoting-destination declarations to my Spring application context configuration file, and 3) adding

Using RemoteObject (AMF) from a Flash or Pure AS3 Project

こ雲淡風輕ζ 提交于 2020-01-14 13:40:48
问题 I recently ported some code from a Flex project over to a new pure AS3 project. When i attempted to make an AMF call, I am getting an error message like this: TypeError: Error #1034: Type Coercion failed: cannot convert Object@5425371 to mx.messaging.messages.ErrorMessage. There was no stack trace associated with the error, so debugging was difficult. I tried all manner of things (checking that all required libraries from the flex framework were included, etc) but nothing worked. 回答1: After

Best way to replace all spaces, symbols, numbers, uppercase letters from a string in actionscript?

半世苍凉 提交于 2020-01-14 11:51:50
问题 What would be the best way to simply take a string like var myString:String = "Thi$ i$ a T#%%Ible Exam73@"; and make myString = "thiiatibleeam"; or another example var myString:String = "Totally Awesome String"; and make myString = "totallyawesomestring"; In actionscript 3 Thanks! 回答1: Extending @Sam OverMars' answer, you can use a combination of String's replace method with a Regex and String's toLowerCase method to get what you're looking for. var str:String = "Thi$ i$ a T#%%Ible Exam73@";

Flex: Get self SWF file name?

风格不统一 提交于 2020-01-14 08:46:50
问题 Is there a way I can programmatically determine the filename of the .swf my class is running in? Thanks! 回答1: Stage has a loaderInfo property, which contains a url property that has the information you're looking for. You can get the stage property from any DisplayObject in Flex. trace(stage.loaderInfo.url); 回答2: Just a helpful note: If you load one SWF into another, the loaded (inner) SWF will return an erroneous result if you use loaderInfo.url to try to get the filename. For instance,

How do I use a SplitViewNavigator component to show Master/Detail navigation in Flex

杀马特。学长 韩版系。学妹 提交于 2020-01-14 06:50:36
问题 I am having an issue with using the SplitViewNavigator component in flex 4.6 using Adobe Flash Builder. [UPDATED]* * * I am building a reddit app for the blackberry playbook tablet, and am making use of reddit's API. I have three mxml views: RedditReaderHomeView.mxml, redditFeed.mxml, and subredditList.mxml. In RedditReaderHomeView.mxml I have a splitViewNavigator. In left side of my SplitViewNavigator resides subredditList.mxml, and on the right side resides redditFeed.mxml. On

Actionscript: Sorting ArrayCollection by date: YYYY-MM-DD

不羁岁月 提交于 2020-01-14 05:44:09
问题 I have an ArrayCollection of Objects. Each Object has the following keys/values: {date: 2009-12-01, visits=13555, bouceRate=45} {date: 2009-12-05, visits=46955, bouceRate=45} {date: 2009-12-06, visits=13685, bouceRate=45} {date: 2009-12-02, visits=13685, bouceRate=45} {date: 2009-12-04, visits=68755, bouceRate=45} {date: 2009-12-03, visits=35875, bouceRate=45} I need to sort this ArrayCollection by date, so it would be from past to present - like so: {date: 2009-12-01, visits=13555, bouceRate

Generating 3D TV stereoscopic output programmatically

允我心安 提交于 2020-01-14 05:42:07
问题 Do you know what would be the best approach to generate 3D output for one of these new "3D ready" televisions from software. Our application have some nice 3D visualizations, we want these to look nice. Also, how feasible is it to generate it from a Flash (Flex) app. 回答1: I believe that the gaming and 3DTV industries have paved the way for you. As long as your app already outputs 3D visualizations, it may just be a matter of installing a driver. You can get started with this NVIDIA 3D Stereo