apache-flex

Flex Horizontal List

半腔热情 提交于 2019-12-13 06:11:15
问题 I am trying to place my thumbnails into a horizontal list in Flex. What I have so far works fine, but I'd like stylize it to where the the row of thumbnails, when individually clicked, displays the larger image and other information. <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" creationComplete="main()" backgroundColor="#FFFFFF"

Change progress bar color in flex

怎甘沉沦 提交于 2019-12-13 05:46:23
问题 How to chnage progress bar color to green in the following code <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="100" height="100" creationComplete="init()"> <mx:Script> <![CDATA[ import mx.controls.Alert; import flash.net.NetStream; private var myMic:Microphone; private var nc:NetConnection; private function init():void { initMic("0x19D319"); myMic = Microphone.getMicrophone(); myMic.setSilenceLevel(0); myMic.rate = 44;

Animated component adding-delete in a VBox

白昼怎懂夜的黑 提交于 2019-12-13 05:45:14
问题 Is there a way to make the elements of a VBox smoothly move to their new positions when a new element is inserted or removed? I actually need only to make them move smoothly when I remove an element. Thank you for your answers! 回答1: Not without extending VBox and adding your own code to do so by overriding the addChild and removeChild functions. 来源: https://stackoverflow.com/questions/5404379/animated-component-adding-delete-in-a-vbox

Adobe Flash: Making an Interactive Charting UI Component “from scratch” (without Flex)

霸气de小男生 提交于 2019-12-13 05:40:04
问题 I'm looking for resources on making an interactive charting component in Adobe Flash without use of Flex (or, minimal use). That is, starting "from scratch" with Flash and ActionScript 3.0. Is there recommended reading? Perhaps a good recent book on the subject, or a detailed blog article, or an open source project to look at? I'm interested in the development process, and specific design patterns (for example, extending Sprite as the logical base class for your component). Thanks! ♥ 回答1: The

Flex : difference between using HTTPService and URLRequest

送分小仙女□ 提交于 2019-12-13 05:39:38
问题 What is the difference between using HTTPService and URLRequest for requesting your data from a flex page to servlet 回答1: URLRequest is the Request Object that contains the URL to load, the post parameters, etc. Usually it is used with more basic loader types than HTTPService, like URLLoader. HTTPService takes the URL directly as one of its properties, so it doesn't need a URLRequest. Technically, you could use a URLRequest to provide the rest of the "payload," since it is an Object and the

Flex datagrid not updated properly

こ雲淡風輕ζ 提交于 2019-12-13 05:36:53
问题 I have two tables: Person {pID, pName, deptID} and Departments {deptID,deptName} An SQL statement like this gets me the name of a person and the department name: SELECT pName, departments.deptName FROM people INNER JOIN people.deptID = departments.deptID; The above works fine. I have a Flex DropDownList that is populated with deptNames. When I click the submit button, I am able to obtain the ID of the selected department without problem: protected function button_clickHandler(event:MouseEvent

Is it possible to load a local file without having to ask the user to browse to it first in an AIR Application?

浪子不回头ぞ 提交于 2019-12-13 05:32:43
问题 I'm writing a small application for myself and instead of using a database I'd like to just use Excel to store the small amount of data I have on my local file system. I want to be able to load that data without having to use the typical FileReference browse() method as it would just be annoying to do every time I use the application. The code below seems to find the file fine as the file.exists method below and most of the other attributes seem to be correct but the file.data is always null.

Flex Combobox preChange event

折月煮酒 提交于 2019-12-13 05:29:11
问题 I have a project in which i need to pop up an alert to the user before a combobox value is changed. This feature is to allow the user to stay in current state if modifications were not saved. Meaning that the user will be able to cancel the change. I have sub classed ComboBox and tried to hook on ITEM_CLICK of ComboBox.dropdown but this event is triggered after the value is changed. Also, I've tried MOUSE_CLICK ans MOUSE_DOWN but without success. In my code, I have added a "preChange" event

Hide a Button in a ButtonBar

只愿长相守 提交于 2019-12-13 05:15:17
问题 I was wondering if there is any way you hide a particular button in a ButtonBar. According to this answer (and the link provided in the second answer) Disable individual buttons in a buttonbar I need to use the getChildAt method of the ButtonBar, but when I do that I get the custom skin object and not the Button object. I was wondering how I could get access to the Button object. Thanks! 回答1: Under the assumption that all buttons in your button bar will be rendered at the same time and you

How to get ability to start up multiple same Adobe Air applications?

丶灬走出姿态 提交于 2019-12-13 05:08:12
问题 How to be able to start up same Adobe Air applications multiple times? How to make it to my app? 回答1: Multiple instances are not supported, but you can work around it. If you want the feature to support being run multiple times, you can respond to the InvokeEvent.INVOKE event dispatched by the NativeApplication. You can then open a new window and make it appear that the application is running multiple times. Alternatively, if you are simply trying to run the application multiple times to test