mxml

What's the difference between id and localId in Apache Royale?

扶醉桌前 提交于 2021-01-27 17:49:39
问题 In Apache Royale we can identify objects with " id " and " localId " properties. The problem is to know why we have two ways of doing the same apparently. 回答1: I found the Answer and sharing solution: HTML requires ID's that are unique, so by creating Royale components that internally use ID's to identify the inner sub-components this means the same ID will be used in all instances created and therefore generating a problem of lack of uniqueness . Solution : Use " localId " in the inner

How reading exif metadata from file

给你一囗甜甜゛ 提交于 2020-05-17 08:47:09
问题 I'm trying to implement the following Exif reading library with as3, but I can't load the browsed file. In the library example they use loader.load(new URLRequest("http://www.example.com/sample.jpg")); for loading the image, the problem in my application is that the file is selected by a file-browser in a local computer. I tried a fileReference.name but it doesn't work, the only way that I found to make my test, is putting a file in the same directory than the .swf like this : loader.load(new

How reading exif metadata from file

有些话、适合烂在心里 提交于 2020-05-17 08:46:58
问题 I'm trying to implement the following Exif reading library with as3, but I can't load the browsed file. In the library example they use loader.load(new URLRequest("http://www.example.com/sample.jpg")); for loading the image, the problem in my application is that the file is selected by a file-browser in a local computer. I tried a fileReference.name but it doesn't work, the only way that I found to make my test, is putting a file in the same directory than the .swf like this : loader.load(new

Move Button into grid space of a TabNavigator's tabs in Flex Builder

不打扰是莪最后的温柔 提交于 2020-02-05 07:37:07
问题 I have a layout question for Tab Navigators in Adobe Flex 3. Is it possible to insert a button that invades the grid space of the tabs? I have a tab navigator component and I am dynamically adding sub components to tab navigator and I want squeeze a button inside the tab space. I don't want the button to be another tab. And I don't want to use a TabBar for the tabs. This graphic illustrates the problem. This is the current layout I have This is a mockup (photoshopped) of the layout I want. I

communication between two flex apps

久未见 提交于 2020-01-23 06:38:45
问题 I have 2 flex apps on the same page. I want them to be able to call each other's public functions. I am thinking of using either externalInterface calls or FaBridge to do so. Is there a better way to do it? 回答1: The best way to go is to use LocalConnection. It allows you to call methods from a separate SWF without having to go through Javascript or a server. Tip: if you're going to be sending arguments that are greater than about 20KB in size, you will want to split them up in two or more

Can I bind a Flex component property to a function?

泪湿孤枕 提交于 2020-01-21 03:19:26
问题 I want to set the enabled property on a button based on the return value of a function that has one or more parameters. How can I do this? private function isUserAllowed (userName:Boolean):Boolean { if (userName == 'Tom') return true; if (userName == 'Bill') return false; } <mx:Button label="Create PO" id="createPOButton" enabled="<I want to call isUserAllowed ('Bill') or isUserAllowed ('Tom') here>" click="createPOButton_Click()" /> 回答1: <mx:Button enabled = "{this.myFunction(this.myVariable

Flex actionscript code for activitylevel

梦想的初衷 提交于 2020-01-17 06:59:35
问题 Can any one indicata me a small piece of code for making this progress bar move on mic activitylevel. i.e, When spoken on the microphone the progressbar should indicate it.Also which works on internet explorer <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="300" height="100" creationComplete="init()"> <mx:Script> <![CDATA[ import mx.controls.Alert; import flash.net.NetStream; private var myMic:Microphone; private var

Set dataprovider of buttonbar component

99封情书 提交于 2020-01-16 04:40:12
问题 I am trying to add a navigation component with a button bar in it that controls the view stack of the main application. Here is what I have so far for the main application's code: <?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" xmlns:comps="comps.*" minWidth="955" minHeight="600"> <fx:Declarations> <!-- Place non-visual elements (e.g., services, value objects)

How do I use a SplitViewNavigator component to show Master/Detail navigation in Flex

杀马特。学长 韩版系。学妹 提交于 2020-01-14 06:50:36
问题 I am having an issue with using the SplitViewNavigator component in flex 4.6 using Adobe Flash Builder. [UPDATED]* * * I am building a reddit app for the blackberry playbook tablet, and am making use of reddit's API. I have three mxml views: RedditReaderHomeView.mxml, redditFeed.mxml, and subredditList.mxml. In RedditReaderHomeView.mxml I have a splitViewNavigator. In left side of my SplitViewNavigator resides subredditList.mxml, and on the right side resides redditFeed.mxml. On

How to inherit states with mxml?

倖福魔咒の 提交于 2020-01-12 14:33:51
问题 I have the following panel component called AdvancedPanel with controlBarContent: <!-- AdvancedPanel.mxml --> <s:Panel> <s:states> <s:State name="normal" /> <s:State name="edit" /> </s:states> <s:controlBarContent> <s:Button includeIn="edit" label="Show in edit" /> <s:Button label="Go to edit" click="{currentState='edit'}" /> </s:controlBarContent> </s:Panel> I created a second panel, called CustomAdvancedPanel based on the AdvancedPanel since I don't want to redeclare the controlBarContent <