flex4.5

Flex : Multy row TabBar?

喜欢而已 提交于 2019-12-11 02:16:07
问题 Is it possible, and how to do it ( if it is ) to have a multy row TabBar, based on the width of the container ? 回答1: It's as simple as giving your TabBar a TileLayout. You don't have to subclass TabBar and you don't even have to create a custom skin class for it. Just do this: <s:TabBar dataProvider="{dp}" left="0" right="0"> <s:layout> <s:TileLayout horizontalGap="-1" verticalGap="-1" requestedRowCount="2" /> </s:layout> </s:TabBar> Which will produce something like this: The gap below the

Get “Error: unable to resolve '/assets/images/**.png' for transcoding” while building on FlexMojos 4.0-RC2 and Flex SDK 4.5.1.21328

懵懂的女人 提交于 2019-12-11 02:14:24
问题 I get the this "Error: unable to resolve '/assets/images/**.png' for transcoding" while building on FlexMojos 4.0-RC2 and Flex SDK 4.5.1.21328. Code is like below [Embed(source='/assets/images/lot_dimensions_bg_4digit.png')] SDK version <flex.sdk.version>4.5.1.21328</flex.sdk.version> Flex Mojos version <flex-mojos.version>4.0-beta-7</flex-mojos.version> Thanks for any help. 回答1: You need to specifically add a dependency for flexmojos-threadlocaltoolkit-wrapper before the compiler dependency.

Prevent selection of a particular item in spark list

元气小坏坏 提交于 2019-12-11 01:54:39
问题 I have a Spark List which has a custom itemRenderer for rendering each item in the List. I wish to prevent an item in that list from being selected (based on some custom logic) by the user. What is the best way I can achieve this? Here's how my List is defined: <s:List id="myList" itemRenderer="com.sample.MyItemRenderer" /> and of course, I have a item renderer defined as the class com.sample.MyItemRenderer . 回答1: The selection of items is handled by the list alone as far as I know, so I

Getting error while maintaining flash code

会有一股神秘感。 提交于 2019-12-10 11:33:52
问题 I am new to flashbuilder. I have got this existing code to maintain. All of the mxml files have outermost tag s:WindowedApplication . The navigation from one page to another is done using code as follows: public function help_clickHandler(event:MouseEvent):void { var dTracker:aboutProduct = new aboutProduct(); this.addElement(dTracker); } After navigating to a new page I get following error on clicking any where on newly loaded page: ArgumentError: Error #2025: The supplied DisplayObject must

GIFPlayer Not working in Flex 4.6 AIR

混江龙づ霸主 提交于 2019-12-08 12:53:05
问题 I am working with Flex 4.6 AIR Application. I am using GIFPlayer for play animated gif file. I have a TileList and I use a itemRenderer for displaying this image. The problem is it hangs the AIR application when it loads. I am using the library of GIFPlayer you can download it from HERE The code of itemRenderer is below. override public function set data(value:Object):void { if(value != null) { super.data = value; var gif:GIFPlayer = new GIFPlayer(); gif.load(new URLRequest(data.image)); var

Saving form fields in a MySQL DB usinf Flex

时光毁灭记忆、已成空白 提交于 2019-12-08 12:37:27
问题 I have a MySQL database, and i created a DB and named it 'PERSONDB'. Within that DB, i have created a table and named it Person . This table has 3 fields. id,name,age . Now i need to save some values from my flex website to the mySQL 'PERSONDB' that i created. How can i do this in Flex (Flax builder 4.6) Note: I have added 2 fields name and age, in the Flex project and when the user clicks on the Button i need those values to be saved in the DB. how can i do this. 回答1: asSQL ( http://code

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

could not be able to create http service programmatically in flex

不想你离开。 提交于 2019-12-08 09:07:08
问题 I'm trying to create HttpService through Action Script and I want to convert this mxml code to my Action Script mxml code code is here: <s:HTTPService id="weatherService" url="{BASE_URL}" resultFormat="object" result="weatherService_resultHandler(event)" fault="weatherService_faultHandler(event)" showBusyCursor="true"> <s:request xmlns=""> <q>{cityName.text.toString()}</q> <format>{FORMAT}</format> <num_of_days>{NUMBER_OF_DAYS}</num_of_days> <key>{API_KEY}</key> </s:request> </s:HTTPService>

Extending a spark list in Flex 4.5

妖精的绣舞 提交于 2019-12-08 08:49:30
问题 I need to create a custom component in Flex 4.5 by extending the spark list class. Basically, I want to add a new variable named "title" of type UIComponent. When this variable is set, I need to render it at the top of the list. This would give me a list with a configurable title component that scrolls with the list. Should be simple but I can't figure out how it's done. I've looked all the way up the hierarchy of spark.components.List and spark.skins.mobile.ListSkin and read a few articles

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