Actionscript 3 :: Combo Box Slows Down Flex?
Jan 4, 2010
I did the following code. I know it's horribly written, but it's only a box with two combo boxes and a textinput bellow being added to a VBox, whose id is "garage". The problem, is that, however I do it, when I open the combo box the program slows down so much it's unbearable to use it any longer. I'd like to know if you have any idea on what's behind the ComboBox and the possible causes for this "slowing down" when I open the ComboBox..
[Code]...
View 2 Replies
Similar Posts:
Mar 10, 2011
It might be something simple I'm doing wrong.I have an array populated by XML in a function by doing the following inside the function:
first_special.addItem({label: xmlMenuFile.item.headers[i],data:
xmlMenuFile.item.descriptions[i],data2: xmlMenuFile.item.hints[i]});
The problem I'm having is trying to figure out a way so that the "data2" will fill the text field "hint_txt" on ROLL_OVER of that items name in the list.I've tried to placing an event listener into the function that populates the combo box .this populates the combo box label and data with the Loaded XML File. This works
function changeHandler(ev:Event):void
{
menuText_mc.heading1_txt.text = ev.currentTarget.selectedItem.label;[code]......
View 3 Replies
Dec 21, 2005
I have two combo boxes. The first combo box's data is added through an XMLConnector object, the second combo box, I would like to populate through an on (change) event in the first combo box. The items in the second combo box would relate to the selection made in the first combo box.
I have attempted the following within the Actions for the first combo box:
on(change) {
switch(this.value) {
case "value1":
comboBox2.addItem({Label:"Label",Data:"Data"});
break;
} // end switch
} // end event
which is not working.
should an event be dispatched by comboBox1 and a listener be attached to comboBox2? I can't find any examples of this on the internet.. but i might be using the wrong search terms.
View 6 Replies
Apr 1, 2010
I want to add a ComboBox to a DataGrid. So far, the only way I've found to do it is like this:
<mx:DataGridColumn headerText="Header" dataField="src" >
<mx:itemRenderer>
<mx:Component>[code]..........
The problem is the initial value of the ComboBox isn't set correctly. If I hard code the choices, then the initial value is set correctly. I can't hard code the choices.
View 2 Replies
Nov 24, 2010
i use combo box to display a list of items. The box'x length is smaller whereas the items length is large. So if i mouse over it i need to display the whole item as a data tip
View 2 Replies
Nov 2, 2009
I am trying to get the drop down list of combobox by using a php file. That php file returns an xml string which has been used as data provider for combobox.I followed this thread too but in vain.DetailsI have set the creationComplete attribute of mx:Application to init(). In the init() function i have sent the following HTTPService
<mx:HTTPService id="interfaces" url="interfaces.php" resultFormat="e4x" method="POST">
</mx:HTTPService>
Combo Box:
[code].....
View 1 Replies
Aug 2, 2010
How can I give value to combo box entries. For example, in combo box, I have Array Collection and inside it, I am adding strings like mx:String. I want to give it different value than the text.
View 2 Replies
Mar 31, 2011
Combo boxes in Flex are really awkward to use if you have objects in them addressed by properties, in my experience. In Flex 3.5 we had a working extension to the combo box that would populate a selectedValue property (and allow changing the selectedIndex by same).
Here's a quick example of what using one of these looks like:
<c:ValueComboBox valueField="country_code">
<mx:Script>
<![CDATA[
public function get selectedCountry(): String {
[code]...
However, this has stopped working in Flex 4. What's happening is that our existing component drove its changes by overriding the set selectedIndex() function, which is no longer called when the combo box's selected index changes (wtf?).Is there a working value-aware combobox implementation for Flex 4? [URL]
View 1 Replies
Apr 3, 2012
here is the xml data :
<root>
<recommendedMaterials>
<value label="Aluminium" data="0" />
[Code].....
The problem is that the whole xml gets populated. I just want the labels. :(
View 1 Replies
Sep 7, 2009
can you please tell me how to have multiple selection in flex combo box component
View 1 Replies
Dec 7, 2009
In my Combo box i have to shows team names condition based . So i will try like
dataProvider="{usersXML.users.user.(id=10).name}" but shows some errors . but if i tried
dataProvider="{usersXML.users.user.name}" display all name . It's working .
How can i condition based to display the list . In combobox . Plz refer me . is it possiable to check array of id on the dataProvider ?
View 2 Replies
May 17, 2010
Background: I am doing some UI work where I allow the user to programatically add and resize controls on a canvas. Problem: When resizing a combo box through AS the dropdown stays at the same width as the first time it drops down. So user places combo box on the page, clicks the down arrow, sees the options, selects an option or clicks down arrow again to close, resizes the width of the drop down, clicks the down arrow. Now drop down is the same width as original. Have tried simple things like setting the width of the dropdown specifically and invalidating display list but it still doesn't work.
View 1 Replies
Oct 26, 2010
A combo box as an item renderer for a data cell in a Flex Datagrid has been demostrated at various blogs. What if that combo box has to have an external dataprovider that has to be set at the time of converting the renderer class to a ClassFactory.
View 1 Replies
Jul 2, 2010
I've successfully created a class which extends List to create a List with different coloured backgrounds depending on a colour property of the ArrayCollection used as a dataProvider. Technique is described here:
[URL]
I'm now trying to do the same thing in a ComboBox. I know it's possible with either a classFactory or extending the ComboBox but I really can't work out how - there is so little information on things like the classFactory around.
View 4 Replies
Nov 21, 2009
I have a combo box in my application. I also have a variable called "Status". I want the combo box to be enabled only when the value of the Status variable is 5 or 6. Otherwise, I should not be able to change the value in the combo box. It should have the previous value only.. I had written a click event to disable the combo box. But even though the combo box is disabled, I get the drop down list of the combo box, and If I select some othe value in the drop down,it changes..Only after that it gets disabled.
[Code]...
View 3 Replies
Mar 5, 2010
The below code show the labels from previously selected list?
Steps to reproduce:
Click on List AB Open the list but don't select / click any item Now click on List CD Open the list again and you see A, B as labels instead of C,D but if you click on any item then everything comes properly
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
[Code].....
View 1 Replies
Nov 29, 2010
I'm starting a Flex app on a pretty big reporting engine and want to know how best to connect to a Postgres Database. I'd like to create a REST API architecture so I can use the service for more than just the Flex app(mobile possibly).These are my options I've found:
Datatype: either XML, JSON or AMF
Flex Service: HTTPService or WebService
Server(using PHP): ZendAMF, custom json_encode implementation, Zend_Rest_Server
I've got my views all mapped out, and the api functions designed. Basically what I need is advice on which Flex / back-end service combo to provide.
View 2 Replies
Jan 28, 2010
Environment: Flex/As3/Cairgorm/composite component.I have two comboboxes and two datagrids such that the selection of combobox 1, inserts data into combobox two and the fist datagrid.The selection of combobox 2 inserts data into datagrid 2.I have setup the change event so that the user selection on each of the combo boxes do the right thing. The problem is that on the initial load of the comboboxes, the change event does not fire and subsequent synchronization data loading does not happen.Is there an event for getting the itemselected (1st item) after the combobox is initialized?
View 1 Replies
Mar 8, 2012
i am trying to put data in to combo box from php page using http service .there are 2 data records in the php page but instead of displaying data it displays [object object] [object object] in the combo box list
here is the mxml code
@namespace s
"library://ns.adobe.com/flex/spark"; @namespace mx
"library://ns.adobe.com/flex/mx";
[Code]....
View 1 Replies
Sep 5, 2010
We have created an interactive Touchscreen using flash CS4 - [URL]
The Touchscreen is already in the showroom. Every morning it is restarted. By midday the whole application slows down to the point were it becomes very slow. I presume this is a caching problem. In order to resolve this we close down IE and restart it (playing the SWF file through Internet Explore on full screen mode). Once it has restarted it plays at the correct speed.
I have thought about setting up windows 7 to reboot IE and have the flash file restart every few hours however a client may be navigating through the display when it reboots it self. I would prefer to avoid this if possible.
View 3 Replies
May 10, 2010
Working on my website - I notice it works on the first run, But if i go back into my menus and gallerys it slows down and down.[url]...
View 4 Replies
Oct 21, 2010
I have a setup where I'm handling the enterFrame event of my application. In the handler, I draw two rectangles (one fullscreen, one small orbiting one) using the graphics member of an mx.containers.Canvas object.
After a few minutes of execution, the app slows down substantially. Given enough time, it will come to a lowly crawl. I get the same result regardless of release/debug build on chrome, IE, and Firefox using Flash Player 10.1. Presented below is the Flex project in question:
ActionScript Code:
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="..." [code].....
I had to replace namespace URIs (with "...") since i can't post URLs yet.
View 3 Replies
May 28, 2009
My actual project I need a event configuration wherein I can hold a keyboard key down and move mouse. While trying to implement this, I recognized that the flashplayer begins to lag, saving actions in buffer and playback them when the KEY_DOWN event is already over...
For example I have a
PHP Code:
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler, false, 0, true);
And in the handler I got only this:
PHP Code:
private function keyDownHandler(event:KeyboardEvent):void {
if (event.keyCode == 88) manoverDrive = true;
}
I also do have a
PHP Code:
stage.addEventListener(Event.ENTER_FRAME, enterFrameHandler);
In this enterFrame I do animation for a movieclip that is animated regarding the mouse and keyboard action and events. Now when I hold down any kind of key the animation of this moviclip gets slown down if I hold down the key for 10 seconds and then lift the keyboard key the mouse movements I made before gets somehow saved and the animation got a playback of the mouse movements. I removed the keyboard eventlistener and the behaviour stays. Is that an official flash player Bug?
View 3 Replies
Sep 19, 2009
I am making a demo where an object is moved around the screen with a line tracing its movement. The speed of this noticeably slows down over time. I tried it both with an enterFrame and by setting an interval. I imagine it has something to do with the graphics class vector drawing and garbage collection. Here is a simplified version for demo/testing. If you run it you will see the line drawing slow down over time. Is there a way to achieve it without the slow down?
I read somewhere of a technique where you use the bitmap data class to draw on a stage-sized bitmap.(I've never programmed the bitmap data class before).
Here is the code:
code: var lineX:Number = 100; var lineY:Number = 100;
var deltaX:Number = 10; var deltaY:Number = 10;
var lineDrawing:MovieClip = new MovieClip();
this.addChild(lineDrawing);
[Code].....
View 4 Replies
Mar 29, 2010
Does anyone know what would make a movie slow down the longer it is open. Theres nothing that I can think of this is constantly running, but after about 15 minutes of the website being open it slows down almost unresponsive.
View 10 Replies
Apr 6, 2011
I am almost finished with this flash game, but when I test it the game slows down overtime. I've read the script over and over. Tried to comment parts out of the script, but it still slows down.[code]...
View 1 Replies
Apr 4, 2011
I've made this flash intro:[url].....(make sure you get the Dutch version to see it).It works fine, but after a couple of minutes, playback starts to slow down and it gets slower and slower. It's a simple looping timeline slideshow. I figured that perhaps of the looping, new instances of the slides are created every time, so I added this to my code, to remove a slide after it has faded out:
ActionScript Code:
var clip:MovieClip = MovieClip( mcc.cc.getChildByName( "Slide" ) );
mcc.cc.removeChild( clip );
It doesn't make a difference.Removing the large bitmap images doesn't make it better either.Playback in FF and IE slows down faster than in the desktop flash player.
View 0 Replies
Feb 6, 2012
My game starts to slow down when you play it more than 2 minutes or so. Not adding the enemy bullets seems to solve the issue, but I'm sure there's nothing wrong with my bullet class![code]...
View 6 Replies
Nov 5, 2004
Why flash slows down while drawing API(?) Is there a way to avoid it from slowing down. Heres just a random script of what i mean.[code]...
View 3 Replies
Mar 18, 2010
I had to write a script that pulls image names out of a mysql database and load them into a flash. It's some kind of slide show, 2 movie clips objects that go from left to right and when one reaches the end of the main frame borders then go back to starting position, change its picture and go from left to right again. I think that problem might be some memory leak (from the Loader). i have to finish this project ASAP.This is the script:
import flash.display.Sprite;
import flash.system.System;
import flash.net.NetConnection;[code]..............
View 16 Replies