apache-flex

using framework RSL to reduce SWF filesize

筅森魡賤 提交于 2019-12-14 03:59:03
问题 I'm using framework RSL in a bid to reduce my SWF filesize. I'm using Flex Builder to compile the SWF. I notice a substantial size reduction when I compile with RSLs in my SWF. However the framework SWF which is created is pretty big. What do I do with the newly created framework SWF? Do I place this on my server and let flash player pick it up, cache and then sit back and enjoy the improved performance or is there another step? I don't want to have the extra overhead of my custom swf plus

Compress and decompress XML in Flex and Java

橙三吉。 提交于 2019-12-14 03:58:24
问题 I want to compress XML in Flex, send it to Java, decompress it in Java and recompress it in Java, resend it to Flex, decompress it and use it. How to do please ? thnx 回答1: Just use an AMF Gateway which is a binary format and gives much smaller transfer sizes for your data. Look into BlazeDS and/or LiveCycle. I believe it is possible to send XML over an AMF Gateway, although most of hte time I take advantage of the built in "Backend Object to AS Object" translation, 回答2: Just turn on gzip in

What Flash player version is required by (simple) Flex 3 apps?

柔情痞子 提交于 2019-12-14 03:53:13
问题 What Flash player version is required by Flex 3 app ? Requirement seems to be HTML WRAPPER/ACTIONSCRIPT compiler setting inside FLEX development environment; what can I choose there to allow maximum compatibility with old flash players? Will v8 player work? 回答1: Flex is built upon ActionScript 3, and that was introduced in flash player 9 so V8 player would not work if you want to run flex 3 app on it. To run ActionScript 3 you need AVM 2 (Actionscript virtual machine), flash player v8 cotains

Set alternate color for AdvancedDataGrid - one for parent node and other for child nodes

橙三吉。 提交于 2019-12-14 03:49:29
问题 It seems there are various ways to set the background color for a datagrid. See: How to dynamically change background colour of datagrid row? See: Setting background color for datagrid row in Adobe Flex I have a advanced datagrid with HierarchicalData as the datasource. For this, i have to set alternate background color one for the parent node and other for the child nodes. <mx:AdvancedDataGrid id="electionGrid" alternatingItemColors="[#449933, #994433]" width="100%" height="70%"

iOS TextInput displayAsPassword doesn't displayAsPassword

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-14 03:42:33
问题 I'm building an app to launch across Android, iOS, and desktop simultaneously. The app includes a login that is attached to a vBulletin system and I've run into a significant issue (that the client is adamant must be fixed). On iOS, if you are typing in a TextInput that has its displayAsPassword set to true, it will show plain text while typing. Once you click out of the TextInput, it displays properly. Here is the code I am using within Flex <s:TextInput id="inputField" width="100%"

How to send an array of Flex checkboxes to a mysql server?

我怕爱的太早我们不能终老 提交于 2019-12-14 03:25:55
问题 I am using FB for PHP 4.5, ZendAMF, and I read that I do not need to use HTTPService for what I want to do. Table structure: people: {pID, pName} departments: {deptID, deptName} people_departments: {pID, deptName} I have a slightly complex flex script, People.mxml. In the PersonAdd state, I have a form which will be used to send data to the mysql server. In that form , I have a repeater that will create a checkbox for every department in my database. When I click the Add button, I want to

AS3 Filesystem Hello World

断了今生、忘了曾经 提交于 2019-12-14 03:22:17
问题 I would like to use ActionScript3 to write "Hello World" to a text file. I'd like to compile and run that code from the command line. Installed: Windows 10, Adobe AIR 18.0 SDK, flex_sdk_4.6 (TLDR: I want to do automated testing for a much larger piece of code from the command line, and of course I can't figure out this piece) I am missing some steps that I can't figure out. Here's my code: MainF.as package { import flash.display.*; import flash.text.*; import flash.filesystem.*; public class

Conditional color change <s:SolidColor>

左心房为你撑大大i 提交于 2019-12-14 03:18:47
问题 I am unable to get the DataGridItemRenderer to pass a color value to <s:SolidColor based on the function containing an if statement based on the value of data.Bld_Type. Code below. I am vey new to Flex and not sure what the problem or if this is the right way of doing it. Any help would be appreciated. I have tried passing a hex number and color name. Neither work. Thanks. <?xml version="1.0" encoding="utf-8"?> <s:MXDataGridItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s=

AS3: How to implement instanceOf with classes?

∥☆過路亽.° 提交于 2019-12-14 03:18:13
问题 I want to implement this method function isInstance(a:Class, b:Class):Boolean; This is how AS3 work with Classes. Note that MovieClip extends Sprite. trace(MovieClip is Sprite); // false trace(Sprite is MovieClip); // false trace(Sprite is Sprite); // false trace(Sprite is Object); // true I been trying the next code but it is not working: /** * return if instance of class 'a' can be cast to instant of class 'b' */ private function isInstance(a:Class, b:Class):Boolean{ var superclass:Class =

16 bit tiff decoder for flex

北城余情 提交于 2019-12-14 03:15:21
问题 I am trying to open a 16 bit tiff image in my AIR app. What I have found is a baseline decoder which supports only 8 bit images. Here are my options: Extend its functionality to open 16 bit images but I dont know how to do that and how trivial it is. Open my images as 8 bit but I need to do that automatically within Flex. Dont know how to do that either. i also need to support lzw compression for tiff, so please refer me some resources so I can develop that in case it doesnt exist already.