flash-builder

Override Object.toString Error

橙三吉。 提交于 2019-12-08 18:33:30
问题 Why does this produce an error in Flash Builder?: package { public class Foo { override public function toString():String { return "Foo"; } } } Tab completion suggests that this is available for override... Error message: Multiple markers at this line: -public -1020: Method marked override must override another method. -overridesObject.toString 回答1: Remove override on the toString() method. There is a popular misconception among about the toString() method, namely: if one wants to provide a

How open custom Context Menu on Text Area Cortrol in flex?

此生再无相见时 提交于 2019-12-08 13:55:44
问题 How i open my custom menu over right click on Text Area control, currently default menue of paste, Copy, Cut etc is opened. Please keep in mind that i want to open custom context menu over TextArea Control of Flex. 回答1: MouseEvent.RIGHT_CLICK is a new Event that will be enabled in the newest flash player version previously it was only available in Adobe Air desktop. http://www.bytearray.org/?p=3755 It depends on what you want to show up in the menu instead of the default? Here is a very nice

how do I get this image url to display in flashbuilder 4.5 using BINDABLE and a JSON node value that has urlencoded values

那年仲夏 提交于 2019-12-08 12:48:20
问题 Im loading JSON in a flashbuilder 4.5 mobile app Im working on, so far all the variables render fine and I am using left and right swipe gestures to allow the user to move through the array of items - using actionscript3. Now I get to the part where Im working on adding an image to the stage that has its SOURCE parameter bound to a variable (thisimg2) whose value is the json value for the image url... an example of the URL is: http://i.ebayimg.com/00/s/MTA2MlgxNjAw/%24T2eC16JHJG

Size of the Flash Builder 4.5 application after packaging with iTunes

大兔子大兔子 提交于 2019-12-08 10:58:05
问题 Creating an iOS app in Flash Builder 4.5 which is a small "Hello World" App, working fine on emulator and iOS devices. Before packaging the size of the application is 532 Kb but after packaging in iTunes the .ipa file generated which have size is 12 Mb. I want to know that how and why the file size increases and does the size consumes more battery power and memory usage?? Can any one explain?? 回答1: yes, because if you want to run the flex apps in iphone or android, you must install the

How to access a public array/vector from another class

孤街醉人 提交于 2019-12-08 10:39:53
问题 I have a vector in my Main class file that store objects. I will like to be able to add more objects to that SAME vector from a different class. I gave the vector in my main class the "public" modifier. I now need the syntax to reference it in my other class file public var badChar:Vector.; 回答1: You have options. How you approach it is dependent on your project setup, and the needs of the property. Is it an instantiated object, or should there ever only be one (even if the class is

How to properly define the Flashbuilder 4.5 Premium license for a maven flexmojo based build?

↘锁芯ラ 提交于 2019-12-08 08:19:39
问题 We have been building our Flex app forever using Maven. Due to the fact that we use RIATest for integration testing we need to create a special test version of the app with the RIATest agent compiled in it and with the Flex automation libraries available. Apparently for the latter we need to provide the flex compiler with our license since this is only available from a version higher than Standard. Up until Flex 4.0 and RIATest 3.8 this worked fine, we had our license information defined in a

Flex Custom Event dispatching

心不动则不痛 提交于 2019-12-08 08:04:05
问题 I got a question about event dispatching in flex. my goal is to get a custom event loaded up with some data and than bubble up to the eventlistener. my main application has and AMF service request inside which calls an service class. that class is supposed to dispatch an event when the AMF service request returns a result or fault and the main application is listening for that event. so inside my mainapp i add and listener like this: this.addEventListener("UserInfoEvent", userInfoHandler);

Long-Press spark.components.list Item

£可爱£侵袭症+ 提交于 2019-12-08 06:16:57
问题 Does anyone know if there is any sort of Long-Press gesture (like on Android) in the new version of flex? I'm looking to make an item in a list editable/delete-able upon long-press, but I'm really hoping I wont have to make my own Long-Press gesture with a timer and whatnot. If there is none built in, does anyone know of any resources/blog posts about how to make a Long-Press gesture - or, furthermore, how to make an Editable list? 回答1: flextras answered it, and I just wanted to follow up

Flex Custom Event dispatching

北城余情 提交于 2019-12-08 03:34:27
I got a question about event dispatching in flex. my goal is to get a custom event loaded up with some data and than bubble up to the eventlistener. my main application has and AMF service request inside which calls an service class. that class is supposed to dispatch an event when the AMF service request returns a result or fault and the main application is listening for that event. so inside my mainapp i add and listener like this: this.addEventListener("UserInfoEvent", userInfoHandler); the custom UserInfoEvent.as looks like this package events { import flash.events.Event; import logic.Ego;

Assign variable to MXML component ID

本小妞迷上赌 提交于 2019-12-07 23:58:17
问题 I have my custom component and for example few Label. I want to pass to my component value which will be assign to label's id. Code: <fx:Script> <![CDATA[ [Inspectable] [Bindable] public var test:String = "asd"; ]]> </fx:Script> <s:Label id="{test}" text="etc"/> Error: {test} is not a valid identifier Can I even do something like that? 回答1: No you can't. You have to understand that when you write an mxml component like <s:Group> <s:Label id="myLabel" /> </s:Group> it will generate