CSS :: Flex - Centering Title Text On Alert Control?
Dec 20, 2010
I'm trying to center the title text on my Alert control. I'm using the following CSS right now:
mx|Alert{
text-align: center;
}
The problem is that the above code centers my alert content as well, not just the title text. What selector do I need to access just the title of the alert control? I'm using the 4.x SDK and Spark.
Code:
Alert.Show();
I am having an issue where I show an AlertBox message when the user hits ENTER and the focus is in a text area. The pop up works fine, but when the user hits enter the Alert closes as expected, but the TextArea listener receives the ENTER event from the Alert and pops the dialog up again. I have tried a number of ways to catch and eat the event but so far I have not been lucky. Is there way to accomplish this?
public function init():void { myTextInput.addEventListener(KeyboardEvent.KEY_UP, handleKeyStrokes);[code]....
When my language is of Asian origin (Japanese, Korean, Chinese, etc) the title appears correctly on the Alert, but the message does not. I'm seeing the correct localization values EVERYWHERE ELSE in my application except the Alert popup and in one other instance on a mx:Checkbox control.
I've checked my app and the strings are being returned from the resourceManager correctly but just aren't rendering to the screen. Does anyone have any insight as to what might be causing this behavior?
I am using Flex 4 and running into some problems displaying a simple alert box. The alert box shows up, but the text seems to be the same color as the background. I know the text is there because if I mouse over in the alert box window to roughly where the text would be, I can see the cursor change. And when I double click and copy-paste into notepad, I can see the message. But the message, the button text, the message box title don't show up.The relevant code in my project is as follows
I'm trying to display some simple information in an Alert (I'd rather not use an alert, but I need a fast n' simple solution for a project that's got to be out the door asap)
how large I make the alert, my information never stretches out, and ends up being clipped.
I can actually scroll through the text with the mousewheel, but that's no good.
The image says it all. I can't imagine Alert just doesn't handle this.
[URL]
Code:
var myAlert:Alert = Alert.show("The package you have selected includes a feature(s) you've already selected. We have removed the individual features for you."); myAlert.height = 150*2; myAlert.width = 350*2;
Despite adding: source="myScript.as" (that basically feeds the main.mxml file)
to my TitleWindow component MXML file (which I instantiate from the main.mxml file) the variables defined in myScript.as appear to be null hence I can't populate my text fields in the title window, even though those variables work fine in the main.mxml.
I have a panel in my application. My requirement is, I also require a link, that is "Help options" to appear in the panel's header. In the left, we will have the Panel's title and in the right corner, I need this link. Is that possible?
It is possible to remove some RichTextEditor control bar with showControlBar property. But how to remove title bar too? The following code displays control with empty title bar: <mx:RichTextEditor id="mLog" left="10" right="10" top="10" bottom="41" dropShadowVisible="false" showControlBar="false">
is it possible to change the icon and the title in the title bar? are there any opensource or low cost ways (prehaps software with a education licence) to change the apperance of the projector window.. like for example itunes, breaks out of windows xp standard UI
how can i load large image? i used a Zoomify for solve this problem but there are another problem that i don't like to use it. can i do it in as3? like loading image title to title?
I need a control in Flex 3 that is like NumericStepper, but that can display arbitrary strings. Does this control exist?
For convenience, I'm calling this a TextStepper. I want this as a compact way to display a list of string choices that a user can cycle through by clicking the up/down buttons. Compact means no drop-down or pop-up aspects of the control: the only way to change the selected index is to click the up/down button (which updates the text input value). Value cycling means that I really want to treat the underlying dataProvider as a circular buffer. So up/down clicks modify selectedIndex in modulo fashion.
I've be messing around with Flash for a little while now and just recently starting trying to do a datagrid which is loaded from an XML file. Well I've gotten the XML to populate the datagrid. Everything is fine in that aspect but I cant seem to get my text to align properly in the datagrid. By default ofcourse everything is aligned Left. I would like align everything centered (the cells as well as the column Header.The code that I have basically creates the datagrid at runtime,
Note: I had found two other threads from a couple of years ago that said use the line below, but I've tried that line of code to no avail:
Code: myDataGrid.getColumnAt(2).textAlign = "center"; HERE IS MY CODE: Code: import fl.controls.DataGrid;[code]....
I want to make my createTextField centered on my movieclip, does anyone know how this is done? I've tried using the texWidth/_width property but it only makes it to narrow. Or is it possible to size the background fill to the length of the word?
PHP Code: var aPoints:Arra =["one", "two", "three", "four"]; function printIt()
How can the text in a Label control (or a similar control) be wrapped in Flex 4 beta? In Flex 3 I could use the Text control but this is no longer available in Flex 4.
I'm using Flashbuilder 4. I have a Spark TextInput control, and I'm implementing a "Copy" button that will copy the selected text only from within this control to the clipboard (pretty much like the RMB Copy does).
I'm having a flickering issue with a text control. Here's the context: I have a title which is represented by a Text control (no Label cause it needs to be able to be displayed in several lines). When the user rolls over the title, the text has to be underlined. What I have done: I've set listeners to the title's rollover and rollout events to something like this:
In my Flex 4 app I would like all my alert boxes to be a specific width and height, how do I specify that in the CSS? I want to avoid having to specify the width and height every time I want to show an alert, that's why I'd like to set it in the CSS, but does not look like there's a way to.. Something like this does not work:
I need to customize my alert box with two button and both the button need to have different skins on them. I was able to do it for one skin. But i am unable to figure out about the two skins. My code that i have right now is below:
I have 2 comboboxes which are dependent (country and state) and one submit button. Now what i want is after user submits the form it should display one alert box which should be like
selected country is "selected item" selected state is"selected item"