apache-flex

ReferenceError: Error #1065: Variable ContextMenuClipboardItems is not defined

非 Y 不嫁゛ 提交于 2019-12-24 17:24:43
问题 I'm trying to use the flex profiler to discover where the performance problems in my app are. However, when I run the app, I get this error message. I don't get this when I run regularly or in debug mode. ReferenceError: Error #1065: Variable ContextMenuClipboardItems is not defined. at flash.ui::ContextMenu/initLinkAndClipboardProperties() at flash.ui::ContextMenu() at mx.core::Application/initContextMenu()[C:\autobuild\3.3.0\frameworks\projects\framework\src\mx\core\Application.as:1154] at

How to detect in a Flex app if a camera is already in use by another application?

谁说我不能喝 提交于 2019-12-24 17:12:21
问题 I am making an application that plays the video stream from the user's local system (both Windows and Mac). I use the Camera.getCamera() method and in turn Camera.names to get a list of camera attached with the system. Unfortunately, if the camera is already in use by another application, say a desktop application on user's system, the browser is crashed. Is there any way that I can detect if a specific camera from the list of available camera is already in use by any other application? 回答1:

How do I select a certain node in a tree in flex?

放肆的年华 提交于 2019-12-24 16:29:16
问题 I'm trying to get properties for one single node such as the name I've set for it or something. How can I go by just selecting this one node? I can do it with an event e.currentTarget.selectedItem.@name; But I need to grab it without the event, how can I go by doing this? 回答1: it's better to get data from your data provider for xmlTree, because it's a XML/XMLList you can always use construction like myxml.nodename[0].@attribute 来源: https://stackoverflow.com/questions/4796462/how-do-i-select-a

Calling Application.application.enable from a TitleWindow in a different mxml component

自古美人都是妖i 提交于 2019-12-24 16:19:50
问题 Good day. I have a Flex RIA App, and in the application tag there is a button when its pressed calls upon a TitleWindow from another .mxml file, and sets application.enable = false That way the user cant use any of the components in the application, and still can use the components in the TitleWindow. The problem its. When the TitleWindow is close i want him to restore the application back to application.enable = true Wich enables the application once again. But i can't call that code from

Back/Forward buttons in Flex applications

不打扰是莪最后的温柔 提交于 2019-12-24 15:45:19
问题 I have a Flex application which uses the BrowserManager class for enabling deep linking within the application. The URLs work fine through all browsers but the back/forward buttons work only with Firefox and Internet Explorer. Even that is a bit flaky and sometimes doesn't work. The buttons don't work in Chrome/Safari or any other browser. Any ideas about how to make this work properly? If anyone has implemented something like this before in a Flex app then would like to hear about things to

How to manage styles for child components?

懵懂的女人 提交于 2019-12-24 15:04:13
问题 How does one define a default style for a custom Flex component? was a good start, but I want to create custom styles for my custom component which contains other components. The custom component is a Canvas. It contains other Canvases, Buttons, Lists, etc. I do not want to have the child components use the same values as the parent component, and I want to have some style values "jump" the parent component and only affect a specific child (not all of them). I would like to have a single CSS

onSeekPoint weirdness

牧云@^-^@ 提交于 2019-12-24 14:53:09
问题 I have a NetStream which is put into data generation mode properly... everything works fine and I get onSeekPoint() events when I do something like the following: EXAMPLE 1 public function setupStream() { netStream.client = {}; netStream.client.onSeekPoint = this.onSeekPoint; netStream.client.onMetaData = this.onMetaData; } public function onSeekPoint(... args) {...} public function onMetaData(... args) {...} However, instead of keeping it all in that parent class, I need to create a new

Making HTTPRequest and getting response (Adobe Flex)

て烟熏妆下的殇ゞ 提交于 2019-12-24 14:42:57
问题 Im trying to make a HTTP Request in Adobe Flex (Actionscript) as follows: var p:PersonSearchController = new PersonSearchController(); showAlertDialog(); p.search(sc); alert.cancel(); navigator.pushView(views.PersonSearchResults, +p.getResp()); So basically, before the search we get a "Searching..." AlertDialog box, once the search is complete, the dialog box disappears and the results screen is pushed onto the screen... Here is the search method: function search{ var requestSender:URLLoader=

How to data bind DataGrid component without scrolling up?

扶醉桌前 提交于 2019-12-24 14:16:28
问题 I have a DataGrid component that I would like to update every 5 seconds. As rows are being added to this DataGrid I noticed that every update causes it to reset the scroll bar position to the top. How can I manage to keep the scroll bar at its previous position? 回答1: make a variable to store your last scroll position and use that. roughly something like: var lastScroll:Number = 0; private function creationCompleteHandler(event:FlexEvent):void{ stage.addEventListener(MouseEvent.MOUSE_UP,

App is loading each time

☆樱花仙子☆ 提交于 2019-12-24 14:08:55
问题 I have web application of flex. It's swf file is attached on a tabview. Means there are 5 tabs on the page. On the tab Five a swf file is attached. When I click on five tab it load the init method of main mxml file of flex application. Is there any way so we can stop to load it every time when we click on Five tab. This app get the data from server when load the application. But I don't want to send the request again and again when click on tab everytime. 回答1: Using <a href=""> to display