apache-flex

Flex/AIR/Actionscript/Mobile File.writeObject/readObject always generates null w/no errors generated

China☆狼群 提交于 2019-12-13 04:27:12
问题 I've been trying for several days just to get a simple writeObject/readObject functionality in my project. No matter what I do, the result is, a) a file is created and b) when I try to read that file back in, it is null . My project targets iOS on an iPad device, but this stripped down version targets the AIR simulator for an iPad. I've previously had every single available event registered and traced, but they never accomplished anything so I removed them for the sake of keeping the problem

in Flex how do I make a window not resizable?

好久不见. 提交于 2019-12-13 04:23:31
问题 So I'm trying to open a second window that is meant to be a fixed size window. I've set resizable property to false but that doesn't seem to have any effect. here's my sample code Main app <?xml version="1.0" encoding="utf-8"?> <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" height="600" creationComplete="onCreationComplete()"> <fx:Script> <![CDATA[ import foo.TestWindow; protected function

Flex Builder cannot locate the required version of flash player

孤街醉人 提交于 2019-12-13 04:11:29
问题 I am new to Flex development. I got an error when i tried to run the application as Flex Builder cannot locate the require version of flash player and saying you might need to install flash player 9. I am using Flex Builder 3 with SDK 3.2 and having latest flash player of version 11.1.162 Even having latest version of flash player why i could not able to run the application? To run successfully what should i need to do? Thanks in advance 回答1: I got the above mentioned problem, when i have

Can we use static initializers in a Flex Library?

泪湿孤枕 提交于 2019-12-13 04:04:18
问题 We are using as3Crypto library in my project. We have downloaded the code, modified a bit and started using it. Initially we have included the complete code as the part of the project. Now we are trying to compile it as Separate Library file(.swc). When we compile the code, we didn't get any errors, but we got one warning saying Severity and Description Path Resource Location Creation Time Id flex2.compiler.as3.SignatureExtension.SignatureGenerationFailed[level='warning', column='23', node=

CheckBox itemrenderer in datagrid got selected/unselected while scrollling in FLEX

感情迁移 提交于 2019-12-13 04:02:05
问题 In my application i am having a datagrid which was created dynamically. For each and every cell in datagrid, i am having checkbox as itemrenderer. As of now it is working fine as expected.But while scrolling vertically the checkboxes getting selected/unselected automatically.I got this same problem in "horizontal scrolling" also, but i resolved it by setting "minWidth" for each columns. I am creating datagrid like this, for(i=0;i<recordCount;i++) { var obj:Object = new Object(); for(var j:int

Flex AS3: ProgressBar doesn't move

血红的双手。 提交于 2019-12-13 03:48:10
问题 I am a little stuck and need some advice/help. I have a progress bar: <mx:ProgressBar id="appProgress" mode="manual" width="300" label="{appProgressMsg}" minimum="0" maximum="100"/> I have two listener functions, one sets the progress, and one sets the appProgressMsg: public function incProgress(e:TEvent):void { var p:uint = Math.floor(e.data.number / e.data.total * 100); trace("Setting Perc." + p); appProgress.setProgress(p, 100); } public function setApplicationProgressStep(e:TEvent):void {

Flex: Inverting LinearAxis values

China☆狼群 提交于 2019-12-13 03:47:39
问题 I have a line chart that is updated every so and so seconds, similar to the one you see in Windows' Task Manager. The chart goes right-to-left, with the most recent data on the right, and going leftwards. How would I invert the values of the X axis so that the lowest value is on the right and the highest on the left? It's a LinearAxis. I tried making it a CategoryAxis and putting the numbers in manually, but that doesn't work the way it should (the labels are not aligned with the ticks). Or,

how to call mxml application from action script

与世无争的帅哥 提交于 2019-12-13 03:45:03
问题 I've one main.mxml which has login button which looks like below - <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" backgroundColor="#C4D4EF" layout="absolute"> <mx:HTTPService id="serverCall" method="POST" url="http://localhost:8080/LDAPService/reg" result="on_Result(event)" fault="on_Fault(event)" /> <mx:Script> <![CDATA[ private function on_Result(event:ResultEvent):void { // How to write here } ]]> </mx:Script> <mx:Panel x="414" y="145" width="355" height="200" layout="absolute"

How to get the value of a ComboBox within a DataGrid

帅比萌擦擦* 提交于 2019-12-13 03:34:39
问题 While this may be a simple problem, I'm having a heck of a time coming up with a solution. I have a DataGrid with a ComboBox as an ItemRenderer for one of my columns. When the user selects a row, I want to get the ComboBox's selected value for the selected row. EDIT: I should have mentioned that the dataField2_Array property in myData is actually an Array is the dataProvider for the ComboBox. Each object in myData could have completely different values in that Array so the ComboBox in each

RSL used in FLEX

心已入冬 提交于 2019-12-13 03:33:52
问题 How to use RSL(Runtime shared library) in flex ? how can decrease loading time of swf using rsl? please give answer 回答1: The SDK default setting of the project is RSL. check here Goto Project->Properties choose the Library path from the tab where you can see the framework linkage . The thing is It is one of the way to reduce the size of the application and the library files are downloaded and saved to cache file in browsers. so when you run the application again, the library files are taken