apache-flex

Trying to use BindingUtils in Flash AS3.0

穿精又带淫゛_ 提交于 2019-12-22 19:43:25
问题 I am not able to make this code work in AS3.0 ( Flash ) with Flex SDK 4.0 included. import mx.binding.utils.*; [Bindable] var myValue:int = 0; var cw:ChangeWatcher = BindingUtils.bindSetter(myValueChanged, this, "myValue"); addEventListener( Event.ENTER_FRAME , ef); function ef(e:Event):void { trace("hello",getTimer()); myValue = getTimer(); } function myValueChanged(o:Object):void { trace("myValue: " + myValue.toString()); } The output i get is : myValue: 0 hello 157 hello 168 hello 171

Trying to use BindingUtils in Flash AS3.0

若如初见. 提交于 2019-12-22 19:43:11
问题 I am not able to make this code work in AS3.0 ( Flash ) with Flex SDK 4.0 included. import mx.binding.utils.*; [Bindable] var myValue:int = 0; var cw:ChangeWatcher = BindingUtils.bindSetter(myValueChanged, this, "myValue"); addEventListener( Event.ENTER_FRAME , ef); function ef(e:Event):void { trace("hello",getTimer()); myValue = getTimer(); } function myValueChanged(o:Object):void { trace("myValue: " + myValue.toString()); } The output i get is : myValue: 0 hello 157 hello 168 hello 171

how to place cursor in textinput in Flex3

ⅰ亾dé卋堺 提交于 2019-12-22 18:37:15
问题 how to place cursor in a text input when user login form comes. I want cursor place in username text input. .Any help is greatly appreciated! 回答1: To go along with J_A_X's answer, if you're trying to set focus on a component when the application first loads, you'll also need to use some javascript to set the focus on your SWF. Here's the sample code from that article: The Javascript: <script type="text/javascript"> function onFlexInitialized() { //alert("onFlexInitialized"); <!-- Force the

As3 Graph API Logout

梦想与她 提交于 2019-12-22 18:28:58
问题 i'm developing an application that'll be played by different's users, but i'm using the as3 graph api for authenticating users and posting on their wall, and i need to logout each user, before next user start his session on as3 graph api: http://code.google.com/p/facebook-actionscript-api/ I search to force FB to ask for login's info but after a logout when login again, API skip the step and log, on the last user session. 回答1: This is an issue that's been continuously revised by

Adobe Flex, loading embedded fonts from modules

早过忘川 提交于 2019-12-22 17:38:47
问题 I am just programming a language learning app in Flex for various Asian languages. As some of these languages have very big font sizes (e.g. Chinese), I do not want to load all these fonts into the app. at once but was thinking to put them into different modules and then load only the specific module (depending on which language is chosen in the main app). For this I moved the style part from the main app: <mx:Style> @font-face { font-family:DedicatedFont; src: url('assets/fonts/cma.ttf');

Adobe Flex, loading embedded fonts from modules

妖精的绣舞 提交于 2019-12-22 17:38:23
问题 I am just programming a language learning app in Flex for various Asian languages. As some of these languages have very big font sizes (e.g. Chinese), I do not want to load all these fonts into the app. at once but was thinking to put them into different modules and then load only the specific module (depending on which language is chosen in the main app). For this I moved the style part from the main app: <mx:Style> @font-face { font-family:DedicatedFont; src: url('assets/fonts/cma.ttf');

Difference between validateProperties() and invalidateProperties()

余生长醉 提交于 2019-12-22 13:57:21
问题 Can any one tell me about what is the Difference between validateProperties() and invalidateProperties() ? 回答1: invalidateProperties: Marks a component so that its commitProperties() method gets called during a later screen update. Invalidation is a useful mechanism for eliminating duplicate work by delaying processing of changes to a component until a later screen update. For example, if you want to change the text color and size, it would be wasteful to update the color immediately after

How to get around Flash error 2176

夙愿已清 提交于 2019-12-22 13:11:07
问题 In my Flex application, users need to be able to upload and download content. However, this content is access restricted, and I need to do a permissions check before allowing the upload/download. The user clicks a link, and then selects a file using the FileReference class. The FileReference class doesn't attach cookie information, so I can't use a session. I want to implement a 2 step process where the client first pings the server to get a one-time-use token, and then does the upload or

s:WindowedApplication is empty and does not initialize/show child components

别等时光非礼了梦想. 提交于 2019-12-22 12:27:45
问题 I have quite some experience with Flex and I am just starting to write my first AIR application and would like to use as much Spark as possible here. So I started withe a simple Hello World application: <?xml version="1.0" encoding="utf-8"?> <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" backgroundColor="red" initialize="initializeHandler(event)"> <s:Label text="Hello World"/> <s:Button

Problems after overlaying AIR SDK on Flex SDK

只谈情不闲聊 提交于 2019-12-22 12:19:11
问题 I'm trying to overlay AIR SDK on Flex SDK on Windows machine but I am encountering issues afterwards. I tried overlaying with several official versions of both SDKs (including Apache Flex SDK) and followed the steps mentioned here: http://helpx.adobe.com/x-productkb/multi/how-overlay-air-sdk-flex-sdk.html However, after pasting the AIR SDK contents in the Flex SDK folder and overwriting existing files FlashBuilder reports the following Errors when I change projects SDK: "Could not resolve <mx