ActionScript 3.0 :: Add Results To ComboBox Or List Component?

Apr 29, 2009

I am working on a quiz application for a client. I currently have an array that as the user goes from one question to another, it holds the question number if the user answers the question incorrectly. At the end I have the results of the array displayed on a dynamic text field.I was wondering if there is a way to display the contents of the array at the end on a comboBox  or list component. And, is there a way to make the items on the comboBox or list component be clickable so that the user could navigate to a different place on the project (like the section that explains how to answer the question correctly).Right now i have the array being created at the beggining:var questionsArray:Array = new Array();I have acommand so that if the question is wrong, add the number of the quesiton to the array:questionsArray.push(" #1");and I display the results of the array at the end:

View 12 Replies


Similar Posts:


ActionScript 2.0 :: Combobox & List - Each Selection Triggers The Specific Xml File To Load Into The List Component?

May 10, 2007

I have a combobox and list component on the stage. The combobox has 3 selections. How do I get it so that each selection triggers the specific xml file to load into the list component? I can't get them to communicate to each other.

View 1 Replies

ActionScript 2.0 :: ComboBox Component - List Doesn't Drop Down

Jun 3, 2008

I have a combo box on the stage in a main SWF. when the user selects an item in the dropdown list a child SWF is launched into level0 using loadMovieNum and data is left behind using _global variables for the child SWF to use. this works fine and well. but inside the new child SWF that is launched is a button that takes you back to the previous main SWF with the ComboBox. its done using the same method loadMovieNum into level0. and the main SWF loads but you cannot open the ComboBox. it will not drop down. the halo green color on hover over is there and it gets darker when you click, but the list doesn't drop down. here is some code that I think may be significant to the situation...

[Code]....

View 12 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

List Component - Populate A List Box Component Located Within A Separate Mc In Swf With An Array?

Jun 29, 2009

how to populate a list box component located within a seperate mc in my swf with an array... the array comes from a response from a webservice call. I am not currently on the computer with my source code available so lets just use the following....

listdata[i] = the array i want to populate the list box with..... (listdata1, listdata2, listdata3, listdata4, etc. etc.)
movieclip1 = the MC within my fla containing the list box component
mylist = the actual list component

... just not all that familiar with the format of actionscript when working with objects... using CS3 and as2 btw,

View 3 Replies

Flash :: List Component - Change Pointer Icon To Hand For List Items?

Nov 9, 2010

I am working on an older Flash project created in CS3 ActionScript 2.0 How can I make the pointer cursor change to the hand when hover over a list item?_root.slidePanel.myList'myList' is the list. I have traced out the contents of the List MC and it has a child MC called 'content_mc'. I assumed this was the object containing all of my list items but the only members of this MC I can see (when tracing them out) are 'setRGB' and 'searchKey'.

View 1 Replies

Actionscript 3 :: Get A Navigation Through The List Items In A List Component Of Flash?

Mar 23, 2012

Why I have to press 2 times the arrow key down to get a navigation through the list items in a list component of Flash?

Theres any workaround for this? I have a listener for keyboard event that checks if keyCode is equal to 40 if it is then I use 'stage.focus = list', but I have to press 2 times key arrow down to start navigating through list items.

View 1 Replies

Flex :: Make A Custom Component Or Extend The List Component For A 2D Top Down View MAP ?

Nov 11, 2010

I'm building a top view 2D map, that it's objects are stored on the server.The kind of objects are 10 and might be a photo, label, button, lists, mix of them or labels with tooltips.The component must request the "areas" that are missing on screen.An area is 1000x1000 px and is cached in flex.To move in the map, will be like in google maps (drag-and-drop).I should be able to have another list and move objects from one to another using drag-an-drop on objects. Ex.: I grab an objects from a list and I move it on this map, I release the mouse button and the item is placed there.Now the problem is: I build a custom component for this trying to emulate the item renderer for performance and recyclage, implement drag-and-drop on objects and request the areas that are missing?

or

I extend the List component from spark and I add some features as multiple kind of itemrenderers and use recycle on them. Of course it must be able to request the missing areas on the screen and cache it's data.Maybe create a custom layout is needed too.What I need is something that must be really fluid, so the lighter this component is, the better.

UPDATE: *There will be not any object over another.

*I will not use hitTest on bitmaps because all bitmaps are wrapped in another component,as they,for now are itemrenderers.

Anyway I already begin to do this using a class that extends the SkinnableDataContainer and a custom layout. As the layout is not like a grid, is sparse, random items at diferent points(x, y).How to get the localX and localY, relative to item renderer and not to the Spark List, from a DragEvent in Flex 4?

View 1 Replies

ActionScript 2.0 :: XML From Xml - Load The Second List On The Other List Component?

Apr 13, 2006

I have two Lists (components) on stage. The first one (mainList populates from an XML called topics.xml

[Code]...

on event handler change, I want to load the second list on the other list component, called subList..It's not loading.. I believe it's because when it reads the data from my topics list, it reads topic1.xml instead of "topic1.xml" ( reads without the quotes). If I unquote line v.list.load("subtopic.xml"), it works, but I need it to be loaded from the XML..

[Code]...

View 1 Replies

ActionScript 3.0 :: Combobox List Not Changing Properly

Jul 28, 2009

Have created a combobox, a list of selectable text. Once the text is selected it display the selected text. now this script is working half ><

1. at beginning, the combobox is blanc, i want this actually by default. text1 displayed.

2. when i select for example text4, it does display text4, BUT when i select back to text2, nothing happens.[code]...

View 5 Replies

Actionscript 3 :: Make List - ComboBox Is SelectableList?

Nov 18, 2010

i don't understand Adobe's documentation for the SelectableList class:The SelectableList is the base classfor all list-based components--forexample, the List, TileList, DataGrid,

View 1 Replies

Flex :: Data Binding - ComboBox And XML List

Mar 19, 2011

I have a bit of a problem (since I'm not used to binding with AS3), the thing is that I want to do this kind of data binding:

<mx:Application xmlns:mx="[URL]"
layout="vertical"
verticalAlign="middle"
backgroundColor="white">
[Code] .....

But the ComboBoxes are being created dynamically with AS3, everything is working except I cant bind the second ComboBox dataProvider to be the XMLList in the first ComboBox's selectedItem.

View 3 Replies

ActionScript 3.0 :: List In ComboBox Could Be Sorted Alphabetically?

Oct 13, 2009

I didn't find any clear explanation how list in ComboBox could be sorted alphabetically. It's very annoying that this ComboBox takes data from array (label/data) in random order.

View 2 Replies

Flex :: Combobox Needs To Be Selected Twice To Open Drop Down List?

Mar 12, 2011

When a combobox is elected in the flex app, there is a quick flicker, then the combobox needs to be selected again in order to get the dropdown to open. After that, the dropdown works as expected, but only while selecting the control subsequent times while on the form. Reloading the form requires the double selection again.

View 1 Replies

ActionScript 3.0 :: ComboBox That Removes Selected Item In Drop Down List?

Mar 30, 2011

Because of screen size, I must ensure we're only displaying necessary data to the user.I have a drop down box that contains only 5 items and I would like that when an item is selected, it doesn't appear in the drop down box (since technically it's showing twice, once at the top as the selected item and once in the list). how I would achieve this? I tried using a custom CellRender and overriding the "set selected" function to call this.visible = false if selected is true, but that simply hides the item but does not remove it from the layout of the drop down list.

View 1 Replies

Flex :: List - Show A Default Selected Item In A Combobox?

Apr 12, 2011

In a flex application how to display default selecteditem from the dataprovider of the combobox.

I'm using {staticdataholder.currencylist}.

For example: I have to show INDIA so it should be selected as default from the list.

View 2 Replies

ActionScript 2.0 :: Showing Dynamic Icon In ComboBox Dropdown List

Jan 22, 2009

I want to show some different-2(dynamic) icon in my combo Box drop down list. I am able to show icon in combo box list but I want to change the color of this icon for different-2 values.

Here is ActionScript Code:
for(i=0;i<len;i++){
newColor = "0x"+_root.colorList.items[i].ColorCode;
labelText = _root.colorList.items[i].DeptCodeComboDesc;
comboClip.clip.opaqueBackground = parseInt(newColor);
_root.colorListCombo.addItem({label:labelText,pIcon:"comboClip"});

"comboClip" is a clip which I want to show as icon in combobox.

View 0 Replies

ActionScript 3.0 :: How To Use Component ComboBox

Nov 24, 2009

My question is, how I use the component combobox? for joining with php.

View 3 Replies

Actionscript 3 :: Flex Bind Values In A List With ComboBox As Item Renderer

Apr 26, 2010

I am using a List with an ArrayCollection as a DataProvider. The list uses ComboBox as Item Renderer itemRenderer="mx.controls.CheckBox"I would like to bind the values in the List.You have a list with several comboboxes, and those values are loaded dynamically from an ArrayCollection.The ArrayCollection contains Objects with a boolean property for which I should bind the True/False values selected in the comboboxes.

View 2 Replies

ActionScript 2.0 :: Get Data From XML Populated Combobox List Item OnClick Event?

Nov 25, 2009

I would like to populate a combobox from XML file in Flash. Then, when a list item of combobox is pressed then thumbnail image of that particular category is being loaded in a movieclip from XML file.

I spent a hard time to achieve this, but there is no success.

I used this code so far to accomplish this task.

Code:
var myXML = new XML();
myXML.ignoreWhite = true;
myXML.onLoad = function(loaded){

[Code]....

View 0 Replies

ActionScript 3.0 :: Skinning The ComboBox Component

Jun 3, 2011

I am wanting to use the ComboBox Component in a Mobile App. Thing is the scrollbar is way to small.Is there any way to change the width of the scrollbar on the ComboBox either in code or by skinning it? I tried just adding some width to the scrollbar component by clicking into the component and changing the width,but it did not work correctly.

View 1 Replies

ActionScript 1/2 ::ComboBox Component To Be Empty When Swf Is Run?

Sep 6, 2006

I am using Flash 8.Say I have 3 datas in the ComboBox - "one, two and three". We find that in SWF "one" is seen in the ComboBox even though the user hasn't selected the data from the ComboBox. "one" has become the default selection in the CoomboBox.I want the ComboBox component to be empty when swf is run.But I don't want the empty thing also to be shown when the dropdown is clicked.

View 5 Replies

Set A Combobox Component To Multiline In Flash CS4 Using It?

Dec 23, 2009

Is there a way to set a combobox component to multiline in Flash CS4 using actionscript 3 ?

View 1 Replies

Actionscript 3.0 :: Tween A ComboBox Component?

Oct 6, 2010

i have a combobox on the stage that i'd like to have tween open instead of just appear when you click it. does anyone know how to do this?

View 1 Replies

ActionScript 3.0 :: Masking ComboBox Component?

Mar 26, 2009

I have a problem masking ComboBox component. I am using following code:

Code:
import fl.controls.ComboBox;
var cb:ComboBox = new ComboBox();

[code]........

View 1 Replies

IDE :: French Characters In ComboBox Component?

Aug 26, 2009

I have searched high and low on this one and there are many different answers and suggestions.I am loading my text in via XML. I have made sure that it is UTF8 encoded.For any other dynamic text I would simply embed the characters I need.

So far I can change the colour and the size of the text in the combobox but just can't seem to figure out how to embed the french characters I need in there.I have created my own font and embedded the characters I need into a dynamic text field on the stage. The created font is named "appfont"

[Code]...

View 3 Replies

ActionScript 2.0 :: Combobox Component - Each Selection With Own Value

Sep 13, 2003

I'm trying to make a simple drop down list where each selection has its own value. I have a combobox with the following parameters.
Editable = false
Labels = choice1, choice2
Data = 0,1
Row Count = 8
Change Handler = blank

I have an instance name of "type" on the component. Now I have a dynamic text field with a var of "price" and on the first frame of my movie I have this code
if (_root.type == 0) {
_root.price = 10;
}
if (_root.type == 1) {
_root.price = 20;
}
But its not showing these values in my text field when I select those choices.

View 11 Replies

Flash :: Assigning Icons To A ComboBox's List Using Dynamically-loaded External Images

Feb 5, 2010

I'm trying to implement this for an instance of ComboBox specifically, which uses a List to display the dropdown menu full of items. Lists can have icons associated with them, as described in the documentation:

var comboBox = addChild(new ComboBox());
comboBox.dataProvider = new DataProvider([{label:'item1',iconClass:IconClass1},{label:'item2',iconClass:IconClass2}]);
comboBox.dropdown.iconField = 'iconClass';

... assuming IconClass1 and IconClass2 are valid classnames of symbols in our library, this code works perfectly.

Here's my question - the contents of this ComboBox will be XML-driven, populated dynamically, and I'd really rather include that icon reference as a filename instead of a classname, so that when the whole thing is implemented, the icon can be changed in the XML without opening Flash and adding a new symbol to the library. Clients aren't generally good at that sort of thing.

Ideally, I'd like to be able to find a way to reference the container for the instance of that icon class - the ComboBox.dropdown is obviously keeping a reference to each list item somewhere, and if I can find it, I can load the icon images dynamically, then addChild them to the icon instance.

View 1 Replies

ActionScript 3.0 :: Firing Event With ComboBox Component

May 21, 2011

I have a simple ComboBox onstage, with 5 options in it. Each one has a textual label, and is assigned a numeral "data" in the Component Inspector (1,2,3,4,5). I'm trying to get the playhead to move to a specific frame, according to which option is selected, and can't make it work. The trace turns out fine, but the playhead stays in place. (The ComboBox is called my_cb).

PHP Code:
var cbListener:Object = new Object();
cbListener.change = function(evt_obj:Object) {
trace("Value changed to: "+evt_obj.target.selectedItem.label);};
my_cb.addEventListener("change", cbListener.change);
cbListener.change = function(evt_obj:Object) {
var itemName:Number = new Number();
itemName = evt_obj.target.selectedItem.data;
if(itemName == 1) { gotoAndStop(10);}

View 2 Replies

ActionScript 3.0 :: Using HTML Tag In XML To Populate ComboBox Component

Feb 24, 2011

I've actaully got all of this working.All I need now is to make the comboBox text HTMLtext so that I can use the HTML tags to color the text different colors or bold them.It might be important to mention that I need to change only some of the things listed, not the entire list.  So if my list on the comboBox is "item 1", "item 2", "item 3", "item 4", I only want "item 1" in bold and colored red.

View 1 Replies







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