flash-builder

How can I watermark a DateField control in Flex 4?

做~自己de王妃 提交于 2019-12-12 04:35:13
问题 I would like to know how to make a DateField control with a watermark. I want to set the prompt/watermark text from MXML like this one: <mx:DateField id="id_date" propmt="Select date" /> 回答1: Use this <mx:DateField id="df" text="Select Date" focusIn="df.text=''" /> OR Refer This Blog for custom datefield component WaterMarkDateField 回答2: Its Quite Simple by using the creation complete handler <mx:DateField id="sample" creationComplete="sample_creationCompleteHandler(event)"/> set the sample

Fast alternative to Flash Builder

六月ゝ 毕业季﹏ 提交于 2019-12-12 04:13:46
问题 I have a large application in Flex. I use Flash Builder to develop it. Flash Builder works good, until I attempt to compile my project. It takes too much time to check small changes of application interface. Is there faster alternative to Flash Builder? Does InelliJ Idea compile large projects faster? I need to check just one interface panel out of 100, is there any solution that would allow to preview just it (except dividing application into smaller modules)? 回答1: FDT and IntelliJ Idea both

Update a var, which get's it it's value from another component

旧巷老猫 提交于 2019-12-12 03:05:54
问题 I'm having trouble with updating a var and firing a function with it on creationcomplete. In the main component i declared a var artist. This var certainly works and has a value. I also need that var in another component: a profile component. I am able to get that var with: newVar = Maincomp(this.parentApplication).artist; I use the newVar in an API in the profile component. When i launch the API function with a mouseEvent, it works. However, i want to launch the API function on

How do I set up a FLEX_HOME environment variable in Flash Builder

喜夏-厌秋 提交于 2019-12-12 02:46:40
问题 When I try to run Ant build script in Flash Builder error will generate. So I put export FLEX_HOME=/Applications/Adobe\ Flash\ Builder\ 4.7/sdks/4.6.0/ in my .zshrc . This works fine in command line, but doesn't in FB. build.xml <?xml version="1.0"?> <project name="helloworld" basedir="../" default="compile"> <!-- Set up prefix for all environment variables --> <property environment="env" /> <fail unless="env.FLEX_HOME" message="FLEX_HOME needs to be defined as an environment variable or in

Flash player debugger not working

China☆狼群 提交于 2019-12-12 02:44:34
问题 I am working in Eclipse Indigo + Flex Builder 4.5 + Maven + Flash player 11 debugger version in Firefox browser + Flex SDK 4.1, and while debugging in Eclipse the launcher sticks at 57% and then error dialog appears: The Flash Builder debugger failed to connect to the running application. Ensure that: For in-browser applications, you are running the debugger version of Flash Player. For network debugging on a mobile device, you have a reliable network connection to the device, and port 7935

AS3 - Adding item to a combobox in a loaded swf

会有一股神秘感。 提交于 2019-12-12 02:37:30
问题 I've created a flash builder actionscript 3 project which loads an external swf which was created in flash cs5 which contains the combobox component. How do i dynamically add items to it? mc1['itemList'].addItem({label:"test"}); does not seem to work?? 回答1: if you want to access instances within a swf loaded at runtime you can use the getChildByName method Object(MovieClip(__loader.content).getChildByName('itemList')) I tested it using the following code, it works fine. I created a small

I added class directory via Flex Build Path/Source Path, and now 'building workspace' takes forever

六月ゝ 毕业季﹏ 提交于 2019-12-12 02:22:41
问题 I am coming from flash to flashbuilder. I have a directory, AS3_classes_dir, on my computer that stores all of my classes, including my greensock and papervision packages. In every flash app that I make I include that directory in the Source Path, so that I can import whatever I may need. Compiling in flash (using ctrl/enter) takes very little time; only the classes that are specifically imported are compiled. So today I did that in flashbuilder , included AS3_classes_dir via Flex Build Path

Adobe Air: why SQLStatement's getResult().data is null?

爱⌒轻易说出口 提交于 2019-12-12 01:38:54
问题 Using Flash Builder 4.6, I am following http://www.flex-blog.com/adobe-air-sqlite-example (edit: link seems to be broken) as an example, and there is one part of codes that does not work: private function resault(e:SQLEvent):void { // with sqls.getResault().data we get the array of objects for each row out of our database var data:Array = sqls.getResult().data; // we pass the array of objects to our data provider to fill the datagrid dp = new ArrayCollection(data); } Checking the program

When I run my Flex app, a different, older version is run?

↘锁芯ラ 提交于 2019-12-12 01:32:41
问题 When I hit the run button in Flash Builder 4, an older version of my app is being run. I can't for the life of me work out why this is happening. Can anyone help? Thanks. 回答1: I find it is very common for me to run into this problem if I change code and compile an app while an active debugging session is running. So, be sure to always stop all debugging sessions before recompiling the app--it will happen every time you save if you have "Build automatically" selected. IF the app won't change.

How to define an object in actionscript 3 using a custom class

跟風遠走 提交于 2019-12-12 00:59:59
问题 Hi my problem is i have to be able to reference certain fields inside my Customer object.] I am studying AS3 at the moment and being taught custom classes, but we are taught to use the toString method of returning a value i guess you could call it, what i need is to be able to call one field to identify the object i.e. name field from the object in the array, here's my code package valueObjects { public class Person { //instance variables protected var name:String; protected var address