flex3

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

Rotation in flash causing image borders to look “pixely”, how to fix?

北城以北 提交于 2020-01-16 08:06:19
问题 I have a bitmap loaded in flash, for a 2D game. The bitmap represents a character and is rotating when the user uses the A (left) or D (right) keys. The problem I have is that the border of the image becomes ugly while rotating, you can see "pixels" (you can always see pixels, but I hope you understand what I mean). How can I fix this in actionscript 3, maybe change the rotation algorithm or "fix" the image after rotation? Or should I save/render the image differently in eg. Photoshop before

Combobox Dataprovider - Only gets labelField from XML not the associated ID

血红的双手。 提交于 2020-01-16 05:16:06
问题 Back again this time working with data providers. Well i been doing a bit of training with Flex, and I've searched, and i managed to get a ComboBox being populated through XML data. Its works pretty well, he gets the LabelField for each item from XML, but the ID associated to each item he doesn't get then from the XML. Code: <?xml version="1.0" encoding="utf-8"?> <mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="355" height="465" creationComplete="getPaises

Flex Newbie XMLList question - Sorting XML and XMLList

眉间皱痕 提交于 2020-01-15 19:15:31
问题 Is it possible to sort an XMLList? All the examples I can find on it create a new XMLListCollection like this: MyXMLListCol = new XMLListCollection(MyXMLList); I don't think the XMLListCollection in this case has any reference to the XMLList so sorting it would leave my XMLList unsorted, is this correct? How can I sort the XMLList directly? Thanks ~Mike 回答1: So I finally got my search terms altered enough I actually churned up an answer to this. Using the technique I got from here: http:/

Flex: Get self SWF file name?

风格不统一 提交于 2020-01-14 08:46:50
问题 Is there a way I can programmatically determine the filename of the .swf my class is running in? Thanks! 回答1: Stage has a loaderInfo property, which contains a url property that has the information you're looking for. You can get the stage property from any DisplayObject in Flex. trace(stage.loaderInfo.url); 回答2: Just a helpful note: If you load one SWF into another, the loaded (inner) SWF will return an erroneous result if you use loaderInfo.url to try to get the filename. For instance,

Access XML nodes with integer names

最后都变了- 提交于 2020-01-07 02:18:28
问题 For my application, I make an HTTPRequest, and get back some XML served from a JSP. That XML has some (yes, I'm aware this is invalid/improper XML. If I can't find a bandaid, I will try to address that internally) nodes with integers as names, say <2> for example. When I attempt to access it, using myXMLVariable.child("2") , it returns the third (index=2) XML node instead. I understand that this behavior is "correct". Is there any way to get around this behavior? Example var myXML:String = "

Advantages of Migrating Flex3 App to Flex4

寵の児 提交于 2020-01-06 21:05:15
问题 What are the advantages of migrating a Flex 3 app (Java backend, BlazeDS, Spring, Hibernate) to Flex 4? One of the biggest advantages of Flex 4 is design. Assuming that design / UI isn't a big driver for the business right now as compared to performance, what are the other factors we can highlight? We have implemented Cairngorm and Swiz on the App (with a gradual "roll out" of Cairngorm planned for the future). Any opinions? Thanks, Sri 回答1: Swiz AND the annoying car-horn? I absolutely love

Advantages of Migrating Flex3 App to Flex4

半城伤御伤魂 提交于 2020-01-06 21:03:21
问题 What are the advantages of migrating a Flex 3 app (Java backend, BlazeDS, Spring, Hibernate) to Flex 4? One of the biggest advantages of Flex 4 is design. Assuming that design / UI isn't a big driver for the business right now as compared to performance, what are the other factors we can highlight? We have implemented Cairngorm and Swiz on the App (with a gradual "roll out" of Cairngorm planned for the future). Any opinions? Thanks, Sri 回答1: Swiz AND the annoying car-horn? I absolutely love

ItemRenderer Vs ItemEditor

我怕爱的太早我们不能终老 提交于 2020-01-06 06:16:10
问题 What is the Difference between ItemRenderer and ItemEditor? And When ItemRenderer is initializing and loading? Regards, Ravi 回答1: ItemRenderer is for configuring how something will look in a list control (i.e. a Picture + text might be a use case for an ItemRenderer). Thus "Render", how it will display (read-only). ItemEditor is used when you want to override how the user might change the value in the list (assuming that you've set all the requisite editable properties on the controls in

Flex: Tree component: keeping state when data provider updates

二次信任 提交于 2020-01-05 16:25:55
问题 How would I go about keeping the state of a tree control? I'd like to keep the state of the tree when it's data provider gets updated, instead of it collapsing. 回答1: How about something like this : var openItems:Object = tree.openItems; tree.dataProvider = myNewDataProvider; tree.openItems = openItems; tree.validateNow(); I'm not sure how well this will work if the new dataProvider is radically different from the old one, but it works when you're lazy loading tree nodes. 回答2: Here is how I