flex3

pie chart with single data

When I draw a pie chart with single data, that time label is not displayed and I declared labelPosition="inside". Give me any solution. ...

Flex: How does a component know whether one of its styles got changed?

I inherited a custom component from TextField. The component needs to know when any of its styles got changed at runtime via setStyle. How would I do that? It's probably obvious but I couldn't find an event or appropriate method to override. ...

flex 3 panel navigation

Hope you can help me or at least point me in the right direction. I am designing on Flex Builder 3 Professional on a MAC OS X 10.5.7 (leopard), Adobe Flash 8 Professional; testing OS include Windows XP SP3 box with no issues when deployed to server. For a look at what I want to do please visit my site at: stevenjsteele.com, click on th...

How can I unset an (unsigned) integer in ActionScript/Flex 3?

I have a class which is called a number of times. When the application goes to the next stage these all have to be unloaded. Because of that, I created an unload() method in the class. The problem is that I can't seem to set my uint variable "charId" to null in order to "unset" it. The "delete" command is not possible either as that is ...

Howto embed images in Actionscript 3 / Flex 3 the right way?

I'm creating a game where a lot of images are being used in Actionscript / Flex 3 (Flash). Now that I've reached the designer stage, I have to work out a structural way of using embedded images (which have to be manipulated with rotation, color, etc.). Unfortunately, after investigating a bit, it looks like you have to manually embed im...

Flex: Does anybody know a TabNavigator component that allows for html labels in the tabs or how to do this?

I'm trying to put html-formatted labels in the tabs of a TabNavigator. I saw SuperTabNavigator in the FlexLib but it doesn't seem to do the trick for me. I found this html button code and was able to inject my own TabBar and have it change the class instantiated by the ClassFactory when a navItem is created. HtmlTabNavigator: public ...

How do I make my public static logging method write to an inputfield?

I figured out how to create a static method that is available everywhere, for example: UtilLib.as: package { public final class UtilLib { public static function getTimeStamp():uint { var now:Date = new Date(); return now.getTime(); } } } I can access this...

Dynamic Label and Button

Hi All, How to create dynamic label and button in flex 3? ...

Howto create map scrolling in 2D actionscript / flex 3 (flash) game?

I'm creating a 2D multiplayer game in a space environment in flash (actionscript 3 with flex builder 3). The player's character (a ship) will always be in the center. Because it has to look like the ship is moving, while it is actually always in the center, the background and all environmental objects have to move the opposite way. My t...

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

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 i...

Flex TextInput Control: Search Style rendering

Hello, I have a TextInput control which has a search functionality for the people in the system. It works fine. All I need is to style it in such a way that, it will be having search image on the right, which when clicked, will search. Its actually for look and feel part of the application, which will make the search box look much bette...

send xml.tostring via HTTPService.send() in flex

public var newtreeItems:XML = <items><page caption="Page"><scene caption="Scene"></scene></page></items>; private function BtnClick():void{ var params:Object = {}; params["call"] = "WriteXml"; params["XmlValue"] = newtreeItems.toString(); Alert.show(xmlValue); hsData.send(params); } <mx:HTTPServi...

move arrow image infornt of line in textarea with Flex

Hi All, I want to move arrow image in textarea on mouse click and key up and down like text editors. Pls give me ur suggestions Regards, Shivang ...

Howto set character encoding in actionscript 3 socket connections?

After asking "Do certain characters take more bytes than others?", I figured out that I'd need to set the character encoding set when receiving and sending data with a socket connection in Actionscript / Flex 3. Now I've been trying to find out how to do this, however there doesn't seem to be such property available. Is there any specia...

Passing values between functions

Hi All is there any way to locally define a variable in a function and then pass it to the oher function. I mean to say is it possible the pass a local value from one function to other function. Somebody Please suggest me the solution. Thanks in advance ...

Define possible values for a property in Flex

In Flex, is it possible to include some kind of MetaData to a property, to be able to list all possible values that a property can use? I want to be able to list the values when calling the property from MXML, as in the case of for example the property enabled or visible, where the user gets a list of "true/false". ...

Flex Advanced Datagrid Condition Row Background Color

Hi All, I am trying to set the row background color for the advanced data grid control in Flex 3. Does anyone know if this is possible using a style function. Currently my style function looks like: public function myStyleFunc(data:Object, col:AdvancedDataGridColumn):Object { if (data["status"] == "PRICING") ...

Flex 3 focusManager.getNextFocusManagerComponent() returns null

I have an app where I am looking to make the enter key act like a tab key. I can easily capture the keypress event and setFocus to a textinput field. The problem is figuring out which textinput field to give focus to. I have this code trace(this.window.focusManager); //returns TheWindow86.focusManager trace(this.window.focusManager.ge...

Flex: Thread style reply

Hi, One of the functionalities in my current flex application requires me to maintain a comments section. Here, the users can post the comments and the replies to existing comments. All I want is like the usual thread style commenting. Let say, I am replying to someone else's comment, so, it will align my comment by a tab or so and pe...

Flex 3 StringValidator Highlight Field

I want to perform simple validation against multiple fields. Please note these fields are not within a mx:Form since the way they are displayed isn't the norm. The validation works properly, however, it does not highlight the textInput with the error message. myValidator.source = empName1; myValidator.property = "text"; if(myValidator.v...