The default behavior for textfield, when up arrow is pressed is, the cursor goes to the beginning or first character. I would like to disable this and add custom behavior when up arrow is pressed. I am able to add the custom behavior but I am not able to stop the default behavior.
I have a flash embed code in my webpage. When playing the game, page is scrolling with Up and Down keys. How can i prevent this? Firefox is ok, but it's only scrolling in IE.
I'm trying to make the UP arrow key disabled until a sound has finished playing. Is this possible?This is because other keys also play sounds and I don't want the sounds overlapping each other. Thus I'd also be trying to disable those keys as well whilst a sound is playing.
I am making a input field for keywords, and while the users writing I'm displaying suggestions for keyword on a list underneath the caret position.The input field is single line, so I am using the arrow up/down key to select a suggestion and Enter to insert it.And it's mostly working, with the big exception that the up/down key also changes the caret position to the begining/ending of the TextField.
I've tried using preventDefault() and stopImmediatePropagation() in the KeyboardEvent.KEY_DOWN event listener that I also use to change the selected suggestion, but that does not change anything.I checked the carret has not yet moved when KeyboardEvent.KEY_DOWN event is fired, bu visually I can see that it is being move before key is released (key up).
I have an accordion component that contians 3 tabs...each tab contains a list...the first list is a list of exhibitor names...the second tab has a list with booth numbers...the third tab has a list with categories...I have a text field below the accordion that searches the lists and returns what it finds...however I do not want the user to be able to type anything when the 3rd accordion tab is open...is there a method to disable input on a dynamic text field? (in effect this would be "grayed" out like some menu options in windows sometimes are...
How do I disable and enable an input textfield? I have tried these but it returns me with error 1119: Access of possibly undefined property editable through a reference with static type flash.text:TextField. mc_box.txt_input.editable = false; mc_box.txt_input.enabled = false; I have the input textfield inside a movieclip. I have already imported: import flash.text.TextField;
I am looking for a technique to disable copy/paste in a input TextField. I've seen some extravagant ideas such as hypotesize the maximum human type speed and reject everything typed above this speed.
I have a textField, which has font face to "Arial", its dynamic. It also takes htmlText. I am using XML to send data to the textFiled. My problem is that I want an arrow "→" in the textField. I have tried embedding "Symbol" font in the swf containing textField but its showing a Register sign. I'm really stuck with this,
The textfields in flash automatically line break the second part of a hyphenated word. Is there a property to make the hyphen read as a regular character and treat the whole word as one and not line break at the hyphen?EX: Current text-field behavior:Buy all of the teacher-approved supplies.
I am looking to implement a search text box as follows:When user starts typing in and there are non-zero results, the text box will open up and display the results below it. When the user selects a result, the text box closed, but this time with a down-arrow (like a combobox) so that the user can re-open the list.I suspect what I really need is a combobox with ability to hide/show the down arrow. How do I do this in Flex?
Currently when sorting in a flex grid, the sort arrow that shows whether the column is sorted ascending or descending is right aligned to the column. Is there anyway to change the position of the sort arrow, such as applying padding?
My DateChooser code and its style code is shown below: <mx:DateChooser id="dc" cornerRadius="0" bottom="0" width="100%" allowMultipleSelection="true" allowDisjointSelection="false" styleName="dateChooserGradient" change="fetchDateAgenda(dc.selectedDate)"/>
And the dateChooserGradient: .dateChooserGradient { header-colors: #133c59, #29506c; todayStyleName: myTodayStyleName; headerStyleName: myHeaderStyleName; weekDayStyleName: myWeekDayStyleName; dropShadowEnabled: false; arrowBorderThickness:2; arrowColor: #062338; arrowAlpha: 0.1; } What I actually want for my arrows is a transparent background, with borderthickness to be 2, and the arrows and bordercolor to be #062338. Also if I can make the width and height of the arrow itself a bit bigger then what it is as default.
Within my application I'm using a Scroller component. I can't seem to figure out which event I should set up a listener on in order to know when content is scrolled. I tried Event.CHANGE on Scroller.verticalScrollBar property but apparently that event doesn't fire when the user scrolls with a mouse wheel or arrow keys.
I have a custom component, containing a List displaying items from an XMLListCollection:
[Code]....
Also if I click twice, only 1 mouse click will cause my custom event to be dispatched (because obviously there is no change between the items). how to make my List only react to mouse clicks? UPDATE: Yes, I've tried using "change" event for the List before, but then I have the problem that it is fired, even if the List scrollbar is clicked.
I did suppress warnings in flex compiler using "-show-binding-warnings=false". But what I am interested to achieve is to suppress run time warnings (especially binding warnings - since I am getting data in model mostly in XML structures and it is fine for me if its unable to bind to its nested child nodes) in console (I am working on flex on Eclipse with the flex plug in). Is there a way to achieve it?
I have been able to disable tabs in a tab bar using the following tutorial.
[URL]
This only works for mx tabbar. Does anyone know how to do this for a spark tabbar? I prefer the lnf of the spark one. When I try it with a spark tab bar it just disables the viewstack of the tab and not the actual tab. An alternative solution may just be to make the mx tab bar look like a spark toolbar with the rounded edges.
How do I change the corner radius of a Label component in Flex. Tried applying style name, and the setStyle('cornerRadius',9) methods, but doesn't work. How can I change the arrow image in the combo box control to a different image?
I want to disable (and look disabled) some rows in a spark datagrid. I found this answer to stop selection which is greatIn flex, is there a way to capture and optionally cancel a row selection event in a DataGrid?
But I want in addition to show that the particular row is not selectable. Ideally I want to have some sort of overlay but I am not sure if that is possible. My alternative solution is to change the text color to grey for the unselectable row. Looking at the datagrid renders they all seem to be column based. I looked at skinning potentially (overriding the alternating color property) but this just sets the background property and not the text color.
I am building my website in adobe flex(i am n00b). I have some photographs which I would like to make sure that people cannot print.
I do understand that it is not possible to completely stop users from printing. But atleast disable the context menu or just the print option and the copy option.
When the Flex SDK converts MXML to actionscript it generates a lot of databinding code. I don't want to bind a variable, for example if I know the variable will not change.
I can't seem to find a work around in Flex to disable the autogenerated databinding. Also, I was hoping this might also help with some of the runtime warnings thrown by databinding. To get around them, I sometimes use the following, which only throws syntax warnings (and don't appear in my console at runtime).
Syntax warning: Data binding will not be able to detect changes when using square bracket operator.
I have a button which I use for sending a message. When the message text is empty, it should not be possible to click the button.
This is all fine and not an issue. The only thing that is bugging me is the fact that I can disable the send button but the image does not get disabled (like I would expect).
Is there a way to do this elegantly because I don't want to provide a sendicon_disabled.png and change it myself (I don't think this should be my job).
I have ComboBox With ArrayCollection as DataProvider. Data will come from Databse as ArrayCollection. I'm Adding Item to ArrayCollection "-Select Item-" at 0th index and setting selected index=0 for combobox.