flex3

Show a threshold line in Flex Chart

感情迁移 提交于 2019-12-12 04:32:28
问题 I am stuck with a requirement to display a horizontal line on a ColumnChart to indicate a threshold level. I have the data to the Chart as an ArrayCollection . So my question here : Is it possible to get the location of a value that is shown on the y axis? I think I will be able to place a line or 1px high canvas on top of the Chart to achieve this. Or better, is there any built in functionality that i may have overlooked or is there some open library that can achieve something like this? 回答1

How to pageScroll mx.DataGrid programmatically?

拟墨画扇 提交于 2019-12-12 03:24:23
问题 If there are some mistakes in English, I'd like to apologize. I want to scroll datagrid programmatically by click buttonbar event. Following code is work, but it scrolls one by one. What I need is page scrolling, like clicking empty horizontal scrollTrack area. Any help would be greatly appreciated. <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()"> <mx:Script> <![CDATA[ import mx.events.ItemClickEvent;

Event listener to keyboard event not listening in a module

假如想象 提交于 2019-12-12 02:44:13
问题 I am doing this inside a module containing viewstacks and their childs. Calling onInit() on creationComplete of module. When I am inside one of the childs of a viewstack of this module and press Enter, it doesnt not invoke the listener function at all (bp inside this does not get hit). private function onInit():void{ this.addEventListener(KeyboardEvent.KEY_DOWN, keyPressed); } private function keyPressed(evt:KeyboardEvent):void {//this breakpoint never gets hit on pressing a key in screen if

'setProgress not a function' error while setting progress value of a progress bar

懵懂的女人 提交于 2019-12-12 02:35:42
问题 I want to set value of a progress bar in an accordian but I am encountering 'setProgress is not a function' error. Any idea what's wrong with following code. Observation: If I move the progress bar out of the Accordian then the error goes away and the progress bar appears fine. I want to set the progress bar eventually to {repMonitor.currentItem.threatLevel} but for now I am just testing with hypothetical threat value i.e 60 <mx:Accordion id="monAccordian" includeIn="Monitoring" x="10" y="10"

Proper way to check for null dates in Flex/Actionscript?

ε祈祈猫儿з 提交于 2019-12-12 01:58:58
问题 When working with Date() objects in Flex/Actionscript, I'm using to following function to check for null dates. Is this the proper way to check for a null date or is there a better alternative out there? public function IsDateNull(date:Date):Boolean { if (date && date.fullYear != 0) { return true; } return false; } 回答1: Since Date is a class that extends Object and isn't a primitive type it doesn't have a default value and therefore should only be null if it hasn't yet been instantiated. Is

Ctrl + C not working in flash player(swf file) when browser is Google Chrome

血红的双手。 提交于 2019-12-11 23:52:46
问题 i have my project developed in Flex3, <<Site Link Removed now>> You can check it here, the problem i am facing is, copying(Ctrl + C) the content from screen textarea when the swf is running in chrome browser. suppose, i have to add some text on the stage, so the text area which is opened on the left side, i can't copy the text written in text area, although by right clicking in text area, and selcting the copy option, thats working, but my client has asked for copying the content by using

How to capture a streaming video display and save it to disk in Flex Builder 3?

耗尽温柔 提交于 2019-12-11 23:48:34
问题 I've been looking for a solution to my problem for a while and didn't get the answer. I have a page with a VideoDisplay object and a "Take screenshot" button. I would like to get the screenshot from the streaming video and save it but I'm getting an error: Security sandbox violation: BitmapData.draw: http://xxx/xxx.swf cannot access rtmp://xxx/xx/xx/. No policy files granted access. The domain of the website from which I'm capturing the image and the rtmp is the same. I'm using ImageSnapshot

how to I make my flash AS3 game save progress

匆匆过客 提交于 2019-12-11 23:19:21
问题 I have this flash game that I've been working on that works out of the browser, and I'm looking to get it to save it's progress. I've seen multiple flash games that have accomplished this, and It appears as though they've done this client-side, and I'd like to do the same. My game consists of 1 mxml file and a number of .as files and I compile it from the command line using flex sdk. What do I have to do to be able to save save my game's data? 回答1: As others have mentioned, SharedObject is

Howto set character encoding in actionscript 3 socket connections?

荒凉一梦 提交于 2019-12-11 20:36:31
问题 After asking "Do certain characters take more bytes than others?", I figured out that I'd need to set the character encoding set when receiving and sending data with a socket connection in Actionscript / Flex 3. Now I've been trying to find out how to do this, however there doesn't seem to be such property available. Is there any special way of doing this? 回答1: The flash.net.Socket class is a binary input/output class. You do not specify the encoding for the socket itself because you have low

Error “Can not resolve reference to multiname unambiguously”

老子叫甜甜 提交于 2019-12-11 20:08:08
问题 Personal is giving this error and I can not solve it. Can not resolve reference to multiname unambiguously. FacebookMobile (from C: \ Users \ Robinho \ Adobe Flex Builder 4.6 \ FacebookMobile \ src \ FacebookMobile.mxml) and com.facebook.graph: FacebookMobile (from C: \ Users \ Robinho \ Adobe Flex Builder 4.6 \ FacebookMobile \ libs \ GraphAPI_Mobile_1_8_1 . swc (com.facebook.graph: FacebookMobile)) are available. 回答1: You have two classes with same name FacebookMobile one is defined by