apache-flex

FLEX/amfPHP ActionScript error 2048

跟風遠走 提交于 2019-12-13 02:26:15
问题 Sorry about the mishmash of words in the title, but that's how confused I am. I can't even summarize the error I'm getting in a simple sentence. This flex/amfphp application works fine on my computer, even though it accesses an Oracle database on another server. However, when I try to access it from another computer, this is the error I get. I'll try and put the most relevant code in. (My browser tell me this is an ActionScript error). Fault faultString="Send failed" faultCode="Client.Error

FLEX: getting a folder size

[亡魂溺海] 提交于 2019-12-13 02:16:12
问题 I'm triying to get a folder size by doing: var FolderFile:File = new File("file:///SomePath/Folder"); var FolderSize: FolderFile.size; But this gives me a value of 0, how can I get the folder size? is there anyway to do this? Tranks 回答1: No, there's no way to do it automagically. Getting the size of the directory is a complex and potentially painfully slow operation. There could be 10s of thousands of files in a directory, or a directory could be located on a (slow?) network, not to mention

What needs to be in a .war file to deploy a Flex application?

寵の児 提交于 2019-12-13 02:15:37
问题 I've been using Flex Builder 3 to create Flex applications that are part of larger Flex / Java project using LiveCycle Data Services. Flex Builder creates and deploys the .war file, which is convenient for the development cycle, but I don't understand what the .war file has to contain in order to deploy and run. I've found through trial and error that changing certain properties of the Flex Project (i.e. the Context Root) can break or fix the application, and somehow those settings make it

Include @ in ASDoc comments without any errors?

谁说胖子不能爱 提交于 2019-12-13 02:13:02
问题 If you have the @ symbol in your ASDoc, the code will compile, but the generator for the ASDoc will yell out an unintelligible error message. /** * Removes the following characters which are forbidden: * @/\"#$%&'()*:;<=>!? */ public function removeForbiddenChars(str:String):String Is there any way to include the @ symbol in your ASDoc without an error being thrown? 回答1: According to documentation by Adobe: ASDoc passes all HTML tags and tag entities in a comment to the output. Therefore, if

What's the significance of “as” keyword in this code

回眸只為那壹抹淺笑 提交于 2019-12-13 01:29:07
问题 package { import flash.display.Sprite; import flash.media.Sound; import flash.media.SoundChannel; public class EmbeddedSoundExample extends Sprite { [Embed(source="smallSound.mp3")] public var soundClass:Class; public function EmbeddedSoundExample() { //WHAT DOES "as" keyword DO IN THE FOLLOWING LINE ?? //************************************************* var smallSound:Sound = new soundClass() as Sound; //COULD BE WRITTEN AS : //==>>>> var smallSound:Sound = new soundClass() ??? // OR ////==>

AS3 - Sending POST data to another domain without loading (Sandbox security)

做~自己de王妃 提交于 2019-12-13 01:10:01
问题 I need to send POST Data to a ASP script on a different domain name ( without loading data). var scriptRequest :URLRequest = new URLRequest( 'http://someExternalCart.com/cart.asp' ); scriptRequest.method = URLRequestMethod.POST; scriptRequest.data = scriptVars; It works with navigateToUrl, BUT I don't want to get redirected to that page, I only want to send the data. I have tried this: var ldr :URLLoader = new URLLoader(); ldr.load( scriptRequest ); But I am getting the sandbox security error

How to validate the radio button group? in flex

主宰稳场 提交于 2019-12-13 01:09:28
问题 How to validate the radio button is selected or not in flex 3? if my question is wrong, please suggest me any thing regarding the validation of radio group. 回答1: Simply use a StringValidator: <mx:StringValidator id="myRadioButtonGroupValidator" source="{myRadioButtonGroup}" property="selectedValue" required="true"/> 回答2: For Spark groups and RadioButtons things work slightly different. See the example below. Note: For a HGroup as the example shows: The warning-sight will appear for errors but

Flex RemoteObject timeouts?

牧云@^-^@ 提交于 2019-12-13 00:41:11
问题 I've been tinkering around with Flex RemoteObjects, and I've found that they aren't very well behaved with respect to timing out. First, I can't figure out how to set a timeout on "connect". I know I can set requstTimeout , which will correctly timeout after an initial handshake… But if the server doesn't handshake, the connection doesn't time out (eg, the server accepts the connection, then does nothing with it, the client will just be left hanging). Second, when a requestTimeout fires

How I find that string contain a repeating character more then 6 time in Flex?

◇◆丶佛笑我妖孽 提交于 2019-12-13 00:18:35
问题 How I find that string contain a repeating character more then 6 time in Flex? In my case the user input is only digits (0-9) and i am doing for US Fax no validation. like 11111112255 , 225555555522 etc 回答1: A regular expression way: /(.)\1{6}/ This will search for any character (not necessarily digit) repeated 7 times. /(\d)\1{6}/ The same, but for digits only. There are techniques that will be generally faster than regexp, for example, slightly modified Bitap algorithm may prove to be

how to specify height and width of flex alert box in css?

风格不统一 提交于 2019-12-12 22:58:56
问题 In my Flex 4 app I would like all my alert boxes to be a specific width and height, how do I specify that in the CSS? I want to avoid having to specify the width and height every time I want to show an alert, that's why I'd like to set it in the CSS, but does not look like there's a way to.. Something like this does not work: mx|Alert { height: 100; width: 300; } 回答1: You can do it Using Style + Code like this Define Style Properties as Alert { height:300; weight:300; } Note: height and