ActionScript 1/2 :: Set SelectedItems For List Component?
Nov 1, 2010I have been able to set 1 of the items in a list, but not multiple. I have searched and searched and I cannot find out how to do this.
View 3 RepliesI have been able to set 1 of the items in a list, but not multiple. I have searched and searched and I cannot find out how to do this.
View 3 Replieshow 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,
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 RepliesI 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 RepliesWhy 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.
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?
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]...
I am trying to create a query from Flash Builder to PHP/mySQL with selectedItems. I have a simple SELECT query set up to populate a datagrid of items I would like to select for main query (two records looks something like this "19 10","20 10"). This is where I get stuck. I don't know if I need to break down the selectedItems in Flash Builder for formatting in SQL or if I can do it in PHP.
I would assume that it should be done in Flash Builder and I would then send the partial SQL statement to PHP. As of right now, Flash Builder is holding the selected values as CustomObjects and I unsure of how to retrieve what is in the objects for formatting.
var arr:Array = dataGrid.SelectedItems
This yields an array of CustomObjets and I lost from there.I will need the resulting SQL statement would need to look something like this.
SELECT *
FROM Stats
WHERE neu IN ('19 10','20 10');
In my application, I am using a ComboBoxs control and where in the init() of the mxml, I am defaulting the selectedItems to a subset of the list in the combobox.The combobox has a simple array of items:[code].....
View 7 RepliesI currently have a list that I'm using to hold text so when an item in the list is selected the text is displayed in a text box along side it. I want to have the first item in the list to be pre-selected so the text for that item is already in the textbox when it is loaded.
View 1 Repliesjust wondering how to populate the list component with XML. when an item is clicked it needs to execute the actionscript specified in the XMLmy XML looks like this:PHP Code:
<application name = "Something" actionscript = "gotoAndPlay(3)">
if that's not possible...are you able to call a function?
I have a list component which is being disabled while an animation is playing using It's all working perfectly but I can't for the life of me work out how to stop the whole list component going grey when it is disabled! I've changed all of the cell and component skins but it still goes grey.I just want it to stay the same colour when its disabled, or at least change it to a colour that fits with my design.
View 1 Replieshow to set the border for a list component. Its black at the moment and I need it a different colour.
View 1 RepliesWhat i need is to 1. load an XML node and gathering report names, and listing these into a List component from flash cs42. in turn when any report name is clicked or rolled over, (in a dynamic text field) the report description for that reportname will show!
Here is my XML structure :
<?xml version="1.0" encoding="utf-8"?>
<reports lastupdate="9/14/2005" dir="">
Using contextMenu, i removed all BuiltInItems
I have created AS3 script for loading and parsing an RSS feed. I have successfully displayed the "title" node on the stage in a List Component with the instance name "blogList". Now I wish to use the corresponding "Link" node so that each item in the list will open a web page to the link for that story. I have been able to get each title to link to the last URL link in the RSS feed.
View 1 RepliesI am using a List component. Each list item is divided in three lines.I want first line to be bold.
View 1 Repliesregarding the List Component of flash, I have an instance of it in a movie and it works fine when I test it, but when that movie is loaded into my main movie, the List btn doent function and I get the following error:
TypeError: Error #1009: Cannot access a property or method of a null object reference. at fl.containers::BaseScrollPane/fl.containers:BaseScrollPane::drawBackg round() at fl.controls::List/fl.controls:List::draw() at fl.core::UIComponent/drawNow() at fl.controls::List/scrollToIndex() at fl.controls::SelectableList/scrollToSelected() at fl.controls::ComboBox/open() at fl.controls::ComboBox/fl.controls:ComboBox::onToggleListVisibility()
I'v double checked everything, I'v rebuild the entire component of the movie that required the List component and still nothing.
Creating a list menu with the help of components library is simple. But how can one create a list menu which will be added dynamically? In the sense that I need the list menu to be populated with data from an external XML. All this has to be done at runtime. I cannot drag and drop a list component onto the stage.
View 5 RepliesIs it possile to have a List component in Flash CS5-AS3 that has options and suboptions (and even sub-suboptions)-sort of like a vertical menu?I've searched here in the fourm but have not found any info on this. Any sample site or tutorial?
View 1 Repliesi have this RSS reader made with a text field and the list component. But the list component is UGLY, and this is for a touch device, so i would like to aesthetically edit it. So maybe scroll it by touch or at least make it so the scroller is invible or something.
View 2 RepliesI have this RSS Reader that is displaying the main headlines into a list component, which is fine but its ugly, i want the list component to be touch enabled for scrolling, is this possible, or if not can i atleast change the scroller to something wider and more visually appealing???
here is my RSS reader:
var rssLoader:URLLoader = new URLLoader();var rssURL:URLRequest = new URLRequest("http://alaashaker.wordpress.com/feed/");rssLoader.addEventListener(Event.COMPLET
[code].....
How can I validate if atleast one item has been selected from a list, such that the selectedIndices is set to NULL at the init() of application?
View 1 RepliesIn flex UI, my <mx:list> can not be shown completely because of other component shelterring (for example: the refresh button shelter part of it ). How can I make the <mx:list> in front of all other UI component.
This is my code:
<s:HGroup verticalAlign="middle">
<s:Label text="Choose Log File"/>
<mx:ComboBox id ="logFileChooseCombo" dataProvider="{fileNameList}" width="150" color="0x000000"
[Code]....
Is there a way to add buttons in a flash List component? (Flash cs5, not Flex !)
If not, any alternative to do it ?
How can I extend a spark list to add a UI component on it?
View 1 RepliesI want to get maxHorizontalScrollPosition for Spark list control.is any alternative propperty for it in flex 4
View 1 RepliesI have a list component in my app which shows some tiles and one can navigate through them horizontally and i was wondering how can i add the swipe functionality in it to the left or to the right,is this supported by default when the app is on a touch device? the list is like:
<s:List id="list2" width="100%" height="100%" dataProvider="{ recordingsShown }"
preinitialize="list2_preinitializeHandler(event)"
selectedIndex="0" visible="false">[code]............
I was wandering if you could have a button or a movie clip in a component list If I was bringing in data from XML I would use addItem & Label: and then labelFunction to add a string ect, but how can i add a button to each label/item. I have googled this but have not found anything I am guessing that maybe you cant if so what other options are open to me. The list contains tracks and each one must have a button to download and also another to add to a playlist. The music plays when the item in the row is clicked.
View 0 RepliesInstead of typing out aList.addItem({label:, data:}) for each item, how can I use a loop to populate each item in a List component? I figure I will store the info that goes into the label: and data: areas in an external XML file.
Here is the coding I have now and it works great:
aList.addItem({label:"Blue", data:0x0000CC});
aList.addItem({label:"Green", data:0x00CC00});
aList.addItem({label:"Yellow", data:0xFFFF00});
[code]....
I have my list component, mylist. When adding text i use
Code: Select allmylist.addItem({label: "Hello world", data: 0});
but this approch does not work with movieclips.