Flex :: How To Have Corner Radius On Text Input Component
Jun 1, 2011How do I get corner radius on my TextInput component in Flex 4.
<s:TextInput prompt="username" width="150" maxChars="100" id="txt_username" color="#000000"/>
How do I get corner radius on my TextInput component in Flex 4.
<s:TextInput prompt="username" width="150" maxChars="100" id="txt_username" color="#000000"/>
How can I set something like corner radius for the default rectangle which appears when an item is hovered?
View 2 RepliesI would like to know how to apply gradient and corner radius in flex. Is css the only way? I mean I want to use more of flex properties to make this happen give a sample class or code for it?
View 1 RepliesI'm creating a spark list in my flex mobile application and i want to do like a list on the iphone with a corner radius Unfortunately there is no cornerRadius or simply radius in list styles.
[Code]...
I am wondering about making lines with a corner radius. It seems that the smaller the scale, the corners sort of distort, and end up looking jaggy. Maybe its just the way it is, but is there any remedy? I tried shifting the registration points, etc, but still the only way it looks smooth is when enlarged.
View 2 RepliesI've this tabs that I wanted to make rounded only on top-right and top-left corners. But it ended up rounding all 4 corners.
What I did:
<mx:TabNavigator id="myTabNav" x="58" y="61" width="584" height="200" creationComplete="setColors(event)" styleName="myTabStyle">
<pages:One label="ThisOne" id="one" name="One"/>
[Code].....
As you can see I have the "focusRoundedCorners" to point to top-right and top-left but no luck. What I got is:
I created a skin to show on Button mousedown.I want to give corner raduis and border thickness also as skin attributes because I gave them to the button in the normal way but they are not working on mousedown when I chose to give skin on it.[code]
View 1 RepliesI have a mx.components.List component with a bunch of custom styles:
<mx:Style>
.dropDownListStyle
{
[code]....
I'm creating the list in AS:
_dropDown = new List();
...
_dropDown.styleName = "dropDownListStyle";
The List is then added as a popup with PopUpManager:
PopUpManager.addPopUp( _dropDown, this );
The problem is that the corners of the newly created popup are not rounded. I found that border-style is needed in order to get the effect, but adding this property didn't help. I'm building the project with Flex 4.1, but the List and its parent are MX components and it's a lot of work to migrate them to Spark.
Im probably overlooking something simple, but when I try to draw a rectangle Flash is automatically applying a corner radius. I've tried resetting the options in the Properties Inspector, which resets to the default, but soon as a draw a shape it goes right back to a random radius.
View 4 RepliesI'm trying to build a fahrenheit to celsius convertor in AS3. How can I test to see whether what is input into a text input box (flash component) is not a number? This isn't correct but you can get an idea of what i'm trying to do:
if (celsius_txt.text == NaN || fahrenheit_txt.text == NaN)
{
//do something;
}
I'm trying to extend the text input that comes in flex to support an icon, just like mac os x search text input has a grey circle aligned to the right, the text input has a addChild method, but it didn't work for me.
View 2 Replieshow give setfocus for the text input component.
View 2 RepliesI am using actionscript 2.0, and I actually have a simple question: the TextInput.text property returns the text string in quotes. However, I am calculating something and don't want it in quotes. How do I get rid of the quotes so I can calculate stuff?
View 2 RepliesI have the following Application tag code in my widget:
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:local="*"
width="100%" height="100%" minWidth="200" minHeight="200" layout="absolute"
creationComplete="init()"
defaultButton="{Send_btn}">
[Code]...
Is it at all possible to put a image on the background of a text input component? I know I can change the color of the background, but I was hoping I could add a background image to it. IS this possible?
View 1 RepliesI have inserted a TextArea component and i can add text normally by changing it in the parameters tab. but i was wondering if anyone knew the code so i can make it show and input text field ? (call a .txt file in to the TextArea component)
View 1 RepliesI have a DateField component in Flex and I want to stop any user input. If I set the editable to "false" then it stops users changed the bits of the DateField box. It does NOT however stop them from clicking on the calendar icon next to it and updating the date. Is it possible to disable this? I basically want the component to be read only under some circumstances but not for it to have any alpha overlay. Therefore I want to use editable rather than enabled.
View 1 RepliesI need to put together an editable text area that has a custom caret (cursor) which is different from the default blinking vertical line. Is the caret a "skinnable" property of text input? note that I am not asking about the mouse pointer cursor which can be set using the CursorManager.
View 1 RepliesWhen I use radius property in Flex plot chart It causes a warning says radius has been deprecated, use radius style There's no online documents about this warning. How Can I use radius style ?
View 1 RepliesI want to change the blinking text cursor color of Text Input in Flex 4... How can I change it ?
Is there any way to handle it, or it can be only controlled by Flash Player?
In Flex Mobile Project, Text Input shows blocks instead of showing arabic text. Labels are working fine with Arabic.
Is there any way to show Arabic text inside text input?
My code sample is
<fx:Script>
<![CDATA[
/* Import all the easing classes so its
[Code]....
Since, it is for flex mobile project, when I input any text in arabic, it shows separate characters. Arabic is a language that doesn't have separate characters. It should combine letters to form specific word.
How do I to make a function that replaces the selected text in text INPUT on the symbol of the selected one from each list?
View 2 RepliesI have an issue with font scaling of a dynamic text box.
Currently i have one input box named input_1 with a variable attached to it named "choc_1".
Also, i have a dynamic text box named dynamic_1 with variable "choc_1".
When the user types something on the input box then the dynamic box changes instantly and displays what the user has written.
auto scale-size the fonts to a smaller size if the user types many letters.
The input_1 box has a 13 character limit. My initial font size is 200, i want to scale down so when the user types 10 letters they fit the box and they don't go out of screen. I want to use one line, so wrap or multiline is not possible.
here's a code that i'm trying to fix but i can't get the dynamic box to change:
[Code].....
I have an issue with font scaling of a dynamic text box.
Currently i have one input box named input_1 with a variable attached to it named "choc_1".
Also, i have a dynamic text box named dynamic_1 with variable "choc_1".
When the user types something on the input box then the dynamic box changes instantly and displays what the user has written.
I've googled a lot, but i can't find a solution to auto scale-size the fonts to a smaller size if the user types many letters.
The input_1 box has a 13 character limit. My initial font size is 200, i want to scale down so when the user types 10 letters they fit the box and they don't go out of screen. I want to use one line, so wrap or multiline is not possible.
here's a code that i'm trying to fix but i can't get the dynamic box to change:
[Code]....
im trying to output my database information in a text input field in flex by using remoteObject(cfc). The information is being provided by a database using a query and an array collection. I'm just unsure how i go about taking the queried array collection information and display it into TextInput Fields.
[Code]...
I use a popup loaded from different MXML file:[code]The problem is I don't know how to pass text values from text inputs to the main component after buttonOK is clicked in the popup. I tried custom events, but it didn't work.url...
View 1 RepliesI created a somewhat custom Spark button by doing the File > New > MXML skin and basing it on spark.components.button. The problem is that I need to add an extra text field to the button component and dynamically change that text...but of course, the property isn't recognized on a Spark Button.
Is there a simple way to add this field to my custom button skin & its property so it can be addressed? If not, is there a simple way to take what I've done and just extend the Spark Button? I can't seem to find any examples that show how to do it without writing it all up in ActionScript.
the last of many problems, is that at the very end of the test, you're shown your score, and you have the option to type your name in a text box and click "save". Doing so will apply you score data (time elapsed, date, correct answers and percentage) along with the name you typed in, and output in a form, that you can save or print off, or whatever. The problem is, the input text box will not let you type in it. If you mouse over it, the mouse stays a pointer, you don't get the text tool. If you click on it, the cursor appears for a split second after you release the mouse button, but you cannot type anything in it.This is the actionscript for the output form:
Code:
//
function saveRecord(record:String, field:String, now:Object, score:Object):Void {
[code]......
I have an problem that i want to add textinput or Any Component to TextArea Component..
View 1 RepliesI have a advancedDatagrid with column headers having input text boxes for filtering.The column is filtered according to input text when I use characters as data inside that column.But when I use numbers in the column field,filtering does not happen.Can anyone tell me what went wrong.
View 1 Replies