Flex :: Labels Mysteriously Disappearing From A ComboBox In It
Apr 16, 2010
Observe the Flex program below (I'm using Flex Builder 3 w/ 3.5 SDK). The second combobox is conditional on the first. If a 'first name' is chosen, then you are allowed to choose a 'last name'. If 'none' is chosen, then you are not allowed to choose a last name, but rather prompted to choose a first name.
To see the mysterious issue of the disappearing labels, run this program and choose a first name. Then choose a last name. All is well. Then choose 'none' in the first combobox. The prompt of the second combobox changes back, and the last names are removed. All is still well. Then try selecting a first and last name again. You will see that after choosing a first name, the last names do not appear, although the spaces for them do (and if you debug the program, the correct data appears in the dataprovider).[code]...
The problem is: When I press my buttons twice, the text in the scroller disappears.Everything is set so that It shouldnt be possible to press the same button twice though.The situation in short is as follows. I have 4 scenes and 4 buttons, every button linking to respectively another scene / page. The buttons all are in movieclips. I have 4 different movieclips all containing all buttons. For the page movieclip the-button in the movieclip getsœswitched o by ungrouping it and so on, and so on.On every scene I put the movieclip, with the correct button switched of, on top, with thenction. The other movieclips are made invisible by the visible = true˜delete this.onEnterFrame; function.Im not a develloper but a graphic designer. Dont know much about AS2. I bought the photoslider and textscroller on FlashDen and thought d finnish of this project pretty quickly, but I thinking m almost there" for already many hours now.
Basically, what annoys me is that when I click a segment to activate the interpolated event, the datatips disappear for it's duration. Whilst this is only half a second, it still detracts from user experience. Is there anything I can do to avoid it??
I have a list component that has hard-coded labels on it (for testing). I then rotate the list component 90-degrees and notice the text disappears(during design time).
I test the file and the labels do not show up also during runtime.
I can get the labels to show if I rotate the component back to its' original state.
I have a list component that has hard-coded labels on it (for testing). I then rotate the list component 90-degrees and notice the text disappears(during design time).I test the file and the labels do not show up also during runtime.I can get the labels to show if I rotate the component back to its' original state.
I'm using the cs3 combobox control. I want the prompt "Select a City"to persist, but it disappears as soon as you select an item in the list. Does anyone know how to fix this?
I'm developing an app consisting of 6 frames with 4 or so ComboBoxes on each frame. ComboBox data has been declared through Component Inspector > dataProvider. I want the user to be able to return to previous frames to review their selections made in each ComboBox. However when changing frames, the label returns to its Prompt condition. How do I override the DataProvider data when a selection has been made, to keep displaying that selected label while the user navigates? I've tried a few possible solutions but keep getting an error 1119 message dealing with fl.controls:ComboBox.[code]
How can I send a combo box'es labels to a text box? I would just like it to display whatever the user picked in a text box. I tried using a listener: objComboListener = new Object(); objComboListener.change = function(eventObj){ mon.text = eventObj.target.value; } mon_cb.addEventListener("change", objComboListener); mon.text is the textbox, mon_cb is the combo box.
There are two problems with the above code though: A. It displays my data, and not the labels. B. It only displays the first selection. E.g.; if I choose something, it will display that thing, but if I choose another choice, it continues to display the first selection.
I am using Flash CS5 on an iMAC, running OSX 10.6. I created a file that uses a Combobox on the first frame, and I would like to connect the buttons to go to and stop/play on multiple labels.
I'm trying to set a specific list item in a mx combobox to have a custom item renderer, the problem is that I cannot do this via mxml, it needs to be done via actionscript at a later stage, eg: combobox gets created, combobox gets populated, user does other tasks, combobox needs to set one or more items in the combobox to have icons (via item renderer)..
I can do this via the onChange event, but it only applies the icon when the combobox is opened and there is a slight delay so you can see the icon being added.
Extremely frustrated with this. I've created a simple class that extends the UIComponent. I create an instance of this class in a parent class and utilise the 'addChild' method to add it to the parent. I've overridden the 'updateDisplayList' method of the extended UIComponent to add my own drawing routine using the 'graphics' object.
My problem occurs when I start attempt to change any of the following properties (x , y , width, height) either directly or using 'move' or 'setActualSize' because the UIComponent will no longer display - prior to changing any of these properties the object displays fine. I know the object is still there, the 'updateDisplayList' method is still being called (as I'm calling 'invalidateDisplayList' after each change) and it correctly reports the changes.
I'm printing from flex, and since I want to customise the jobs such as with margins and a title, I created a UI Component PrintTemplate. I add my stuff to the PrintTemplate and then I print it.So the code is something like:
printTemplate.addElement(diagram); addElement(printTemplate); if (printJob.start()) {
I am working on this website and I decided to add some flash to the front page in the form of a little image gallery with a nifty slide effect. The problem is this. For some reason its squishing my images. When you look in the scripting you will see that I've set the image width to the full width of the stage, but when you test the movie they are getting squished to about 3/4th's the width of the stage (ive double checked the image size as well).
We've been trying every trick to fix a problem with long lag time in video startup in some environments. In particular, there's a long time gap between the time the custom .swf skin appears and the video starts to play. Only some combinations of OS for the FMS server and client browser shows the problem, but for those combinations it is consistent and appears to be a constant of approximately 59 seconds, regardless of the length of .mp4 or number of times played in our custom .swf. (Our .swf accepts a supplied file location for the .mp4 to stream.)
On our main server (Win2008R2), we run a virtual machine that has Win2008R2 installed. If you click on the video URL from a Mac Safari browser on MacBookPro, the load is FAST (a few seconds). On the other hand if you click from IE on any Windows machine (VM or native, Win7 or WinX), the load is SLOW (one minute). If you try locally on the server virtual machine with the FMS and web server (IIS) installed, the load is also SLOW. The reference flash video (i.e. NOT through our .swf) loads FAST. [code]...
I am implementing a charting tool for my project, which is very similar to Google's finance chart but much more tailored-made to meet different requirements. The charting interface is made up of the following core components:
Time selection panel: to change the time span of the chartMeasurement points panel: to select different points of measurementChart area: to display the measurement data of the selected measurement points over the selected time span
For example, the Apartment's power administrator can view the total power consumption in Unit 101 of Building A, in the Pacific Apartment's complex (a made-up name). Similarly, the administrator can also "stack" up charts of multiple measurement points, having an all-in-one view like below:
Only the chart is implemented in Flash/AS3, the other panels are JSP, JavaScript and Dojo. When an user clicks on a measurement point to add a chart to the chart area, the following things happen in order (briefly):
User clicks on a link (say, Total Amps)Dojo event listener attached to the link picks up the mouse click eventThe Dojo event listener calls an AS3 method (addChart) through the External Interface to add a chart to the Flash chart:The Flash chart picks up the method call, adds a chart to the stage and reposition all charts on the stage. Since the stage height is fixed at 600 pixels, each chart added will be fitted into the 600 pixels. Eg, 1 chart on the stage = 600 px/chart, 2 charts = 300 px/chart, 3 charts = 200 px/chart...etc.This is what the Flash chart looks like, when 3 charts have been added, before display the chart on the actually page (see below) Once a chart has been successfully added to the stage, Dojo will stretch the <div> tag that the chart resides so that each chart still "looks" like 400 pixels tall. For example, 3 charts on the stage means each chart is 200 pixels tall, but Dojo will stretch the entire <div> to 1200 pixels, making each chart look like 400 pixelsThe above step is the same concept as resizing the stage When an user adds more than 7 charts, the 8th chart will start have Flash contents disappeared. To be exact, I used firebug to increment the <div> height, and found that when height exceed 2924 (a magic number) pixels, Flash contents start to disappear. See below (the red-boxes indicate the missing contents)The situation gets worse when continue to add charts, eventually half of the bottom chart will disappear.
Some pre-work I have done:I have unit tested this component in standalone Flash movie, with 3 LCD monitors totalling 4000 pixels in height. I produced 10 charts in a single flash movie, and then resized the window from 600px to 4000px, no charts disappear. This happens in all of IE7, IE8, FF3+, and Chrome. Although slightly different manifestation, but they all have contents mysteriously disappeared. This also happens to GOOGLE's finance chart, when you enlarge the chart's <div> to over 10000 pxs (yet another magic number) The funny thing is, however, when a graph has been cut in half, the visible half is still operatable. For example, if the zoom window as been cut in half, I can still move it, zoom in and zoom out.
I have a dynamic text box and 5 MCs that trigger eachother in turn. The end of MC1 would then trigger the start of MC2 so they go round in a loop. Each image fade tells a dynamic text box to say something different about that image.But one bit of text causes the text box to stay STUCK and display only that text from then on. It got so frustrating that I had to create a fresh dynamic text box for each corresponding MC... but then I realised that when we finally loop back from MC5 to MC1, it wants to again display the stuck text!Get file here.Stuck text is "Monitoring Migration Routes and Settlements" - notice it when the whole movie loops back to the start.I made a little green box appear just to prove that the offending MC had actually stopped and wasn't looping somehow.
When I target flash player 10 in flex builder 3, the index.html template along with some other files (history.js, etc) are removed and no wrapper html page is built.Anyone else experiencing this? I have an ant build script as well, but I was trying to run the built in fb builder.
im completely lost on how to do a simple multiline label. The docs say that labels are best used as single lined elements, but that alludes to it being able to do multiline if necessary. Anyone have any clarification on the subject?
How to remove a carriage return that's inserted mysteriously by flash. I have a text input box and it auto adds a enter key press carriage return. <IMAGE Names="Josh ">My imputed text</IMAGE></GALLERY> %20Names%3D%22Josh%26%23xD%3B%22%3EMy imputed text%3C%2F This is the mess of crap its auto inserting %26%23xD%3B%22%3E
I've been trying for a while to set the number of labels being shown with a datetimeaxis being used for the y-axis. Unfortunately, I'm not able to get the desired behaviour.I'd like to have the y-axis separated into days (i.e. a tick on the axis for each day). However, it is spacing them out one week at a time. I have tried setting labelUnits and minorTickUnits to "days" but no joy.
I would for the labels on the vertical axis to be clickable. So when a user clicks a label a click event fires and I can do something with it. I am not interested in clicking the bar itself (I know how to achieve that)
I tried adding an event listener to the CategoryAxis of type Mouse.Click but nothing gets fired.
I have 2 spark labels next to each other. They are in a basic layout and both have bottom set to 0. They have different font sizes (28 and 12).
Both fields only display numbers. I want the baseline of the numbers to line up.
At the moment they do not as there are no descenders and the descender area of the line is obviously a different height for the 2 different font sizes.
I would like to create a custom Button component with three labels: left-, center-, and right-justified. I can't just use the label justification property, because I want to use all 3 labels at the same time.
I'm familiar with creating custom components, but I've never tried to build one quite like this before...
I've got a simple app that is currently getting information form a database and just displaying the content into a datagrid.
Instead of having this information displayed in a datagrid, I'd like to display it in a couple of labels (first name, last name, phone, etc.), but I'm not really sure how to.
Currently on creationComplete I call my php query function - which looks like this.
public function getPeople() { return mysql_query("SELECT * FROM tbl_people ORDER BY pers_name ASC"); }
[Code].....
Eventually my query will be modified and will only ever return 1 row from the database. So how do I get the results to display in labels instead of the datagrid?
I have a problem with the TabNavigator. The labels of the tabs are getting truncated and once the user places their mouse over the tab it redraws again. Is there anyway to redraw the label of the tab programmatically?