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

View 5 Replies


Similar Posts:


ActionScript 1/2 :: Mysteriously Disappearing From Text Out Of Scroller And Buttons Can Press Twice

Apr 11, 2009

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.

View 3 Replies

Actionscript 3 :: Stop Labels Disappearing On Flex Pie Chart Between Segment Selections Whilst Interpolating?

Feb 12, 2011

I have a flex pie chart:

[Code]...

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??

[Code]....

View 1 Replies

Actionscript 3.0 :: Flash CS5-Disappearing Labels On Rotated Components

Sep 24, 2010

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.

View 2 Replies

ActionScript 3.0 :: Flash - CS5-Disappearing Labels On Rotated Components?

Sep 23, 2010

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.

View 1 Replies

Actionscript 3 :: Flash Combobox - Disappearing Prompt

Sep 7, 2011

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?

[Code]...

View 1 Replies

ActionScript 3.0 :: Maintain ComboBox Labels While Navigating

Mar 17, 2011

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]

View 0 Replies

ActionScript 2.0 :: F8 - Sending Labels From ComboBox To TextField

Jul 6, 2007

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.

View 5 Replies

Professional :: ComboBox Scripting - Connect The Buttons To Goto And Stop / Play On Multiple Labels

Oct 5, 2011

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.

View 2 Replies

Flex :: Setting A Custom ItemRenderer In A ComboBox On Specific List Items After Combobox Creation?

Nov 8, 2010

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.

View 1 Replies

Validate Combobox In Flex Before Save Has To Select Some Item In A Combobox?

Mar 16, 2011

How can I validate there's a selected item in a ComboBox before saving? If there's no selected item, how can I set focus on the ComboBox?

View 2 Replies

Flex :: Flash - Custom UIComponent Disappearing?

Aug 3, 2010

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.

View 1 Replies

Flex :: Printing - Print Without The UI Components Disappearing?

Sep 1, 2011

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()) {

[code].....

View 1 Replies

ActionScript 2.0 :: Scrollbar Mysteriously Not Working?

Jul 9, 2004

the following code all works with one exception the scrollbar doesnt scroll the text

createTextField("resumeText",50 ,-220,-150,430,300);
with(resumeText){
html = true;

[Code].....

View 3 Replies

ActionScript 3.0 :: Mysteriously Changing Width Of Items?

Oct 4, 2009

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

View 5 Replies

Mysteriously Slow Load Time Only In Some Browsers

Jul 7, 2011

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

View 2 Replies

ActionScript 3.0 :: Flash Mysteriously And Partially Disappears?

Feb 10, 2012

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.  

View 1 Replies

ActionScript 2.0 :: Dynamic Text Mysteriously Stuck

Apr 29, 2011

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.

View 5 Replies

Flex :: Swf - HTML Templates Disappearing In Builder When Target Fp10?

May 19, 2009

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.

View 4 Replies

Focus - Tabbing Mysteriously Disabled In Flash Application?

Sep 27, 2011

I'm compiling a SWF using FlexSDK 4.1. I am not disabling any tab functionality. Swf is being embedded with the following via swf object:

swfobject.embedSWF("Main.swf", "flashcontent", "984", "550", "10.0.0", params,flashvars, attributes, "expressInstall.swf");

Expected outcome when tabbing is to see "yellow boxes" on all items with click events. I don't see anything all browsers. WMODE is 'window'

View 2 Replies

Flex :: Multiline Labels In Flex 4.5 Mobile Apps?

Jun 25, 2011

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?

View 3 Replies

ActionScript 3.0 :: Removing Carriage Return Inserted Mysteriously By Flash

Oct 6, 2010

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

View 1 Replies

Flex :: Can Set Labels Visibility

Apr 18, 2010

Can I set label visibility in Flex ?

[Code]...

View 1 Replies

Flex :: Button Or Any Control With Two Labels?

Feb 14, 2011

How can I have two labels on a Flex button, one label on top and another on the bottom?

View 3 Replies

Flex :: Specifying Granularity Of Labels With Datetimeaxis?

May 3, 2011

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.

<mx:DateTimeAxis id="vStepAxis" labelUnits="days" minorTickUnits="days" parseFunction="ParseDateForAxis" title="Date/Time"/>

View 1 Replies

Flex :: Add A Click Event To Axis Labels?

Apr 10, 2012

I have a bar chart with the vertical axis this way

<mx:verticalAxis >
<mx:CategoryAxis id="catAxis" title="Employee" categoryField="id"/>
</mx:verticalAxis>

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.

View 2 Replies

Flex :: Align Text In Spark Labels?

Aug 26, 2010

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.

View 1 Replies

Flex :: Create A Custom Button With 3 Labels?

Mar 15, 2011

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

Here's what I have so far:

<?xml version="1.0" encoding="utf-8"?>
<s:Button
xmlns:fx="http://ns.adobe.com/mxml/2009"

[Code]....

The labels won't change after the button is created, so I'm not worried about the missing [Bindable] metadata.

I'm stuck right now, getting the following compiler error:

Multiple initializer values for default property, 'label', of type 'String'.

...for each of the 3 <s:Label> lines.

Based on this answer to a similar question, I tried adding label="" to my <s:Button> declaration, but that just adds another error.

View 1 Replies

Flex :: Zend Amf - Display Results In Different Labels

Apr 11, 2011

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?

View 1 Replies

Actionscript 3 :: Flex Tabnavigator Cuts Off Labels

May 18, 2011

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?

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved