apache-flex

Flex: HTTP request error #2032

别等时光非礼了梦想. 提交于 2019-12-20 02:04:18
问题 In Flex 3 application I use HTTPService class to make requests to the server: var http:HTTPService = new HTTPService(); http.method = 'POST'; http.url = hostUrl; http.resultFormat = 'e4x'; http.addEventListener(ResultEvent.RESULT, ...); http.addEventListener(FaultEvent.FAULT, ...); http.send(params); The application has Comet-architecture. So it makes long running requests. While waiting a response for this request, other requests can be made concurrently. The application works in most cases.

HTTPS request returning 2032 Stream Error only for Android with Flex 4.6 Mobile

与世无争的帅哥 提交于 2019-12-20 01:38:27
问题 I have a mobile app that I targeted for iOS and Android. It makes a login request via HTTPS (using a POST with HTTPService)..Everything works fine while debugging on my development box via ADL and when compiled and tested on iOS 4.2 and iOS 5. The Android devices also work correctly when making HTTPS requests to other domains, like Twitter, etc. from within my test app or in the device's browser. I only have a couple of test Android devices and they're running 2.3.3 but none will make a

How do you merge cells in a Flex Datagrid?

本秂侑毒 提交于 2019-12-20 01:36:24
问题 Is there any way to merge cells (vertically and/or horizontally) in a datagrid? At least, for example, is there a way to show that certain datagridcolumns belong to one group. For example, I'll take three columns: column1, column2, column3. All these three should be grouped to the Category cell with a rowspan of 3 -- a "super header" if you will. Thanks, let me know. 回答1: This should create a Split Header according to Alex Harui: http://blogs.adobe.com/aharui/2007/03/thinking_about_item

Is Flash or Flex better to build a user interactive ordering “wizard” website?

烈酒焚心 提交于 2019-12-19 23:27:11
问题 i want to see if these "build a . . ." flash sites (to support a user customized ordering process) are done using regular flash or Flex? Site 1 Site 2 Site 3 Site 4 All of these "walk a user" through a customized ordering process and capture all of their selection and showing them all of their customizations (and ultimately bring them to a final ordering screen). What's going on under the hood on these sites and are built in flash or flex? Is the person creating a separate image for every

How to stop Mouse Out event on Flex Canvas firing for child elements

人走茶凉 提交于 2019-12-19 21:48:39
问题 I am using a Canvas itemRenderer for a container I use to display images. See pseudo code below. image = new Image(); image.source = data.@thumb; this.addChild(image); this.addEventListener(MouseEvent.MOUSE_OVER, enlarge(image)); this.addEventListener(MouseEvent.MOUSE_OUT, shrink(image)); When I mouse over the canvas, the enlarge function is called. However as soon as I move the mouse onto the image, or another child element, the MOUSE_OUT event is fired. Can anyone point me in the direction

Change A Character In A String Using Actionscript

混江龙づ霸主 提交于 2019-12-19 20:01:42
问题 What is the opposite of String.charAt() ?? If I Have a string: var Str:String="Hello World"; How do I change the 5th character, for example, from a ' ' to an '_'? I can GET the 5th character like this: var C:String=Str.charAt(5); But how do I SET the 5th character? Thanks in advance. 回答1: There are many ways to skin this cat. One, off the top of my head, would involve String.substr: var Str:String="Hello World" var newStr:String = Str.substr(0,5) + "_" + Str.substr(6); or, the same as above,

Change A Character In A String Using Actionscript

扶醉桌前 提交于 2019-12-19 20:01:06
问题 What is the opposite of String.charAt() ?? If I Have a string: var Str:String="Hello World"; How do I change the 5th character, for example, from a ' ' to an '_'? I can GET the 5th character like this: var C:String=Str.charAt(5); But how do I SET the 5th character? Thanks in advance. 回答1: There are many ways to skin this cat. One, off the top of my head, would involve String.substr: var Str:String="Hello World" var newStr:String = Str.substr(0,5) + "_" + Str.substr(6); or, the same as above,

Encode HTML in Flex/Actionscript

落花浮王杯 提交于 2019-12-19 16:33:08
问题 Are there any functions available to convert: Me, Myself & I to Me, Myself & I I can't find anything in the Flex documentation. Thanks. 回答1: Check this out. No swc's to include. Basically it's var s:String = new XMLNode(3, "Me, Myself & I").toString(); 回答2: Here's the AS3 solution: import flash.xml.XMLNode; import flash.xml.XMLNodeType; public function htmlEscape(str:String):String { return XML( new XMLNode( XMLNodeType.TEXT_NODE, str ) ).toXMLString(); } Source: http://www.razorberry.com

Encode HTML in Flex/Actionscript

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-19 16:33:01
问题 Are there any functions available to convert: Me, Myself & I to Me, Myself & I I can't find anything in the Flex documentation. Thanks. 回答1: Check this out. No swc's to include. Basically it's var s:String = new XMLNode(3, "Me, Myself & I").toString(); 回答2: Here's the AS3 solution: import flash.xml.XMLNode; import flash.xml.XMLNodeType; public function htmlEscape(str:String):String { return XML( new XMLNode( XMLNodeType.TEXT_NODE, str ) ).toXMLString(); } Source: http://www.razorberry.com

Custom metadata in AS3/Flex?

旧时模样 提交于 2019-12-19 13:47:22
问题 How to create and to work with custom metadata in ActionScript3/Flex? 回答1: There is two general directions to deal with metadata in ActionScript in Flex: Dealing in runtime using reflection (or introspection in terms of Adobe). You can find documentation here. There are several third-party libraries which provides more convenient reflection API such as as3-commons-reflect or reflection API in Parsley. Using Flex Compiler Extensions which was introduced since Flex 4 SDK revision 8165 (see