flash-builder

Actionscript 3 - How to keep the value from an event after removing that event

南楼画角 提交于 2021-02-19 08:14:06
问题 I set a value to my xml object (xml = new XML(e.currentTarget.data);) during my event handler function (the function is executed after the event.COMPLETE) and if I trace the object inside my event function handler it shows my xml data. but if I try to trace it outside the event handler function it doesn't show my xml content. Isn't there a way to get my xml object content value to show in an other function but not in the event handler function? private var xml:XML; public function XMLLoader

Find motherboard ID with flex builder?

北慕城南 提交于 2020-02-06 12:58:05
问题 I want to get motherboard ID in flex builder. This is my code. I follow this code to build my own Retrieve manufacturer information from device that AIR app is running on But I got this error TypeError: Error #1009: Cannot access a property or method of a null object reference. give me some solution please. <?xml version="1.0" encoding="utf-8"?> <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="100%" height="100%" showStatusBar="false" verticalAlign=

How to make an object network serialize to a file, not a SharedObject?

若如初见. 提交于 2020-01-17 08:34:31
问题 Currently, I do serialize my model object to the SharedObject instance : try { var mySo:SharedObject = SharedObject.getLocal("sig"); mySo.clear(); mySo.data.model = _model; mySo.flush(); } catch ( e:Error ) { Alert.show( 'Leider konnte kein Modell geladen werden.' ); } Likewise, I load the saved model using the SharedObject instance. Works great. Ultimately, I'd like to serialize it to a file - which fails. Here is how: var fp: File = File.applicationStorageDirectory; fp = fp.resolvePath(

sortable grid like jquery ui in adobe flex

一曲冷凌霜 提交于 2020-01-17 04:14:26
问题 I need something like jQuery UI's Sortable in Adobe Flex. Is there a quick solution out there? 回答1: Here is similar sortable grid(3X3) example in flex: <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" verticalAlign="middle" horizontalAlign="center" height="100%" width="100%"> <mx:Script> <![CDATA[ import mx.containers.GridItem; import mx.controls.Button; import mx.core.DragSource; import mx.events.*; import mx.managers.DragManager; private var

Flex String to HTML for parse with DOM

纵饮孤独 提交于 2020-01-17 01:29:09
问题 I have a string: private str:String = ' <!DOCTYPE html> <html> <body> <div>TEST</div> <span id="t1">T1 Content</span> <span class="t2">T2 Content</span> </body> </html>'; I want to parse the string. Next, I get innerHTMl via Object, ID or Class. E.g.: Objects: Body, Div, Span IDs: t1 Classes: t2 In PHP with the class, it's easy. But I could not create this build with Flex. Thanks for help... 回答1: Convert it to native XML in as3, then use e4x to parse the information required: var xml:XML =

Workers in Apache Flex 4.7

寵の児 提交于 2020-01-16 19:34:48
问题 has anyone been able to use Workers in AIR Application built with Flex 4.9.1 and AIR 3.7? I wanted to give it a try for a project, but as soon as I include/setup the worker like in the tutorial made by Lee Brimelow, my Application "freezes". Which means: It does not start. The compiler compiles, I get the info-text in the console, but neither my window opens nor my does any of my events get fired. Ideas anyone :) ? 回答1: Quite simple solution. Simply add -swf-version=XX //XX must be >=17 as a

Workers in Apache Flex 4.7

一世执手 提交于 2020-01-16 19:33:08
问题 has anyone been able to use Workers in AIR Application built with Flex 4.9.1 and AIR 3.7? I wanted to give it a try for a project, but as soon as I include/setup the worker like in the tutorial made by Lee Brimelow, my Application "freezes". Which means: It does not start. The compiler compiles, I get the info-text in the console, but neither my window opens nor my does any of my events get fired. Ideas anyone :) ? 回答1: Quite simple solution. Simply add -swf-version=XX //XX must be >=17 as a

Workers in Apache Flex 4.7

﹥>﹥吖頭↗ 提交于 2020-01-16 19:33:07
问题 has anyone been able to use Workers in AIR Application built with Flex 4.9.1 and AIR 3.7? I wanted to give it a try for a project, but as soon as I include/setup the worker like in the tutorial made by Lee Brimelow, my Application "freezes". Which means: It does not start. The compiler compiles, I get the info-text in the console, but neither my window opens nor my does any of my events get fired. Ideas anyone :) ? 回答1: Quite simple solution. Simply add -swf-version=XX //XX must be >=17 as a

Focus Manager bug in Scroller class

雨燕双飞 提交于 2020-01-16 08:27:06
问题 In the Scroller.as class line 2139 I'm getting the following error: TypeError: Error #1009: Cannot access a property or method of a null object reference. at spark.components::Scroller/focusInHandler()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\Scroller.as:2139] at flash.display::Stage/set focus() From Scroller.as /** * @private * Listens for any focusIn events from descendants */ override protected function focusInHandler(event:FocusEvent):void { super.focusInHandler(event); /

Flash Builder: 1172 Definition Could not be found

試著忘記壹切 提交于 2020-01-16 07:54:32
问题 I have an actionscript project in Flash Builder and get 1172 errors on these lines: import flash.filesystem.File; import flash.filesystem.FileMode; import flash.filesystem.FileStream; i'm comming from flash where i have to set in the publish settings that i want to compile an AIR application. I can't find an equivalent in flash builder. 回答1: In Flash Builder 4, I don't think you can create an ActionScript only AIR Project using the project setup wizard. You'll have to create an ActionScript