ActionScript 3.0 :: List Component - Select When They Are In Review Mode?
Nov 19, 2010
I have a list component on the stage of CS4 called ans1Sec2 (this is for a test) I am able to load the list dynamically and when the user clicks on one of the list items it highlights. What I need is the ability to save that item they selected so when they go back to that question (review mode) the answer they selected is highlighted. I am able to get the evt.target.selectedItem.data and save that into a var, but how do I get that item and make it selected on the list component when they are in review mode?
View 1 Replies
Similar Posts:
Jan 13, 2012
In my Flash Builder (Flex) 4.6 app, I just noticed for some reason all my "s:Window" components will not allow me to click and select anything in design mode in flash builder!
My other non-window type components are fine - I can open a TitleWindow or Group for example and click on the various fields and labels no problem.
In my Window components, I can select an item in the 'outline' window, but not using the mouse and actually clicking on the component in the visual design window. When I click in there, it looks like it's selecting the actual 'window' box. Almost like it needs to be 'sent to back' or something.
View 2 Replies
Jul 10, 2009
I 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 Replies
Dec 20, 2009
To select all the items in myList I wrote:
myList.selectedItems = ['red','cyan','magenta'] ;
But what if I don't know about the items in the mx:list in advance? How can I select all the items in a list without specifying their names?
View 3 Replies
Feb 3, 2012
I set my list to allow multiple selection. But when I load data in my list, I want to set a few items as selected. Normally you can set only one item selected by using list.selectedIndex. It only accepts int. How can I set multiple items as selected?
View 2 Replies
Apr 14, 2011
i'm trying to repopulate a list when you select a new category from a drop down component.
So far i can populate the category drop down and i can also populate the list box from a default dir but i can't seem to get the list to change when you select a new category.
this is the category script that populates the drop down (this is working fine except that when i change the category i want the list box (bgList) to repopulate with the new location files):
ActionScript Code:
loadCat ="textures";
if (_url.indexOf("http") != 0) catFilepath = "xxxxxxx/backgrounds/";
else catFilepath = "xxxxx/backgrounds/";
[Code]....
View 2 Replies
Feb 26, 2007
I'm having trouble retrieving the value of a multi-select list component. It always traces the last value selected, but I need to trace all values to parse the data.
I've been using trace(myList.value);
View 2 Replies
Nov 18, 2010
I'm having trouble retrieving the value of a multi-selectlist component. It always traces the last value selected, but Ineed to trace all values to parse the data
View 8 Replies
Jul 13, 2009
I want to be able to select an item from my list component and fire a function directly related to selecting that item. list is called "tidlist" function is "selecttid(n)" the "n" needs to be replaced with the index number... so if run my swf and the list component displays my items... when i select one (the third one for example)... i want to fire "selectTid(3)".... cant seem to grasp.
View 1 Replies
Jul 13, 2009
I want to be able to select an item from my list component and fire a function directly related to selecting that item.
list is called "tidlist"
function is "selecttid(n)"
the "n" needs to be replaced with the index number... so if run my swf and the list component displays my items... when i select an item (the third one for example)... i want to fire "selectTid(3)".... cant seem to grasp.
View 1 Replies
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
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
Dec 22, 2009
I am having problems making a movie clip goto a different frame when an item on a list box is selected. Here is my code
list.getSelectedItem().label;
_root.onEnterFrame=function(){
if(list=="2"){
[code].....
View 4 Replies
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
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
Feb 13, 2011
i wanted to place 3 objects in 6 different places so i need my program to randomly select 3 Vector3d from the given 6.
i was thinking using array... but how do i put the vector3d value into an array?
or do i need to use a different method?
View 2 Replies
Jun 24, 2009
I have created a list control with the instance name "dependents" and populated it with labels and data. MultipleSelection is set to true.
I would like to print the labels in a comma-delimited list.
I have used the following code...
dependents.selectedItems.toString()
which yeilds the following when there are two items selected...
[object Object],[object Object]
way to access the labels in these objects in the case of a multipleSelection
View 1 Replies
Oct 28, 2008
I'm developing a Flash interface that needs to pass a multi-select list to PHP from AS3. I have a similar interface programmed in HTML and JavaScript, and due to the quirks of PHP I use a series of like-named hidden fields to store the data. The fields are named, for example, "my_ option_text[]". The use of the square brackets in the name somehow identifies to PHP that this is an array and it treats it as such. I've had no problem using this method to send data to my PHP processing page and have been able to save it correctly. Now I'm trying to use the same PHP save page to process the data from Flash. Unfortunately, I can't figure out how to configure my URLVariables class properties to appropriately pass an array that will be identified as such by PHP. I've tried simply assigning an array to an appropriately named property of the URLVariables class, but the PHP only recognizes one item, not all items. I've tried using the same naming convention as that I use in HTML/JavaScript, but the square brackets aren't appreciated by AS3.
I can't believe that I'm the first person to encounter this issue. If anyone can point me in the right direction on how to resolve this I'd appreciate it. I did try searching these forums but only found one case discussing PHP arrays, and that was sending data into Flash, not from Flash to PHP.
View 1 Replies
May 20, 2010
creat a flash to randomly select names from list contains more than 150 names and randomly select about 10 or 20 names each time without repeat any of then
View 1 Replies
Dec 14, 2010
In Flex 4, I have a Spark List component with item renderers. I would like to select an item in the List by clicking on it, and deselect it also, by clicking on the same selected item. Like an on/off switch.
My item renderer has the following states:
<s:states>
<s:State name="normal"/>
<s:State name="hovered"/>
<s:State name="selected"/>
</s:states>
so I tried to add a click event listener to the item renderer with:
private function selectUnSelect():void {
if (currentState == 'selected') currentState = 'normal';
else currentState = 'selected';
}
with an awkward behaviour... where the item stay selected even after clicking it again in the selected state.
Think of using the List component without the Command (on mac) or the Control button on windows.
View 2 Replies
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
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
Apr 11, 2010
i have a spark List control. it has a dataProvider that shows reply from twitter search.i have created a function for change handler like this:
protected function list_changeHandler(event:IndexChangeEvent):void
{
ta.text = coverflow.selectedItem.title;
}
so, whenever i select each of the items in the List i will see the message(ta.text)but now, instead of me manually clicking the first time, i want it to automatically click/select the first item and see the first message(ta.text)how do i do it?
View 4 Replies
Dec 21, 2010
I have a spark List defined as:
<s:List id="symbolList" dataProvider="{symbolListCollection}" change="symbolNameChangeHandler(event)"></s:List>
With the change handler defined like this:
protected function symbolNameChangeHandler(event:IndexChangeEvent):void {
symbolList.validateProperties();
changeSymbolView(symbolList.selectedItem);
}
and symbolListCollection as an ArrayList filled with Strings.
At first, the change event works fine, and I get what I expect.
However, if I Ctrl-click on the selected item, to de-select it, i am unable to ever select an item again.
When I click on something to try to select it, the change event DOES fire, however, the ItemChangeEvent has both oldIndex and newIndex set to -1
View 1 Replies
Jan 2, 2011
I have a Spark List container whose dataProvider is bound to a result set coming back from a RemoteObject call. Pretty standard stuff.
<s:List id="list" dataProvider="{model.stuff}" width="100%" height="100%"
selectedIndex="@{selectedSlider.value}"
itemRenderer="{stuffRenderer}">
</s:List>
The selectedIndex is associated with an HSlider, but that is not the problem. My issue is that I would like to automatically select a certain "preferred" element from the list (only initially...to guide the user).
I tried to do that in a creationComplete event but my data hadn't shown up yet...setting selectedIndex didn't work..
View 3 Replies
Oct 17, 2010
I am using a FLVPlayBack component to play some videos back inside a flash site I am making. Obviously I am using a Flash CS3 - AS2 skin since I am making the site using AS2.
Does anyone have the code to create a fullscreen mode button so that the videos go into full screen mode that are playing the FLVPlayBack Component?
View 3 Replies
Dec 12, 2009
is there a custom component that extends DateChooser that only has the month and year but not the date grid to select a specific day. All i need is the month and year not any specific day. if the month is changed i could use the change event to select the 1st day of that month
View 2 Replies
Jun 18, 2010
Are there any review tools out there that can load swf's and allow comments to be written against them?
View 1 Replies
Sep 15, 2009
I am using the flvplaybackcaptioning component in Flash CS3 along with a flvplayback component.
The XML file is pointed and everything works fine till I go fullscreen mode. Once switched to fullscreen mode, the flvplaybackcaptioning component starts moving up by 1 or 2 lines. This is very distracting.
View 1 Replies
Jul 15, 2009
It's a Submit Form (name, age, etc...)If I have 4 font types embeded (eg. Arial / Varadana / Comic Sans / Eras) how can I create a drop down list of the fonts where anyone could select - change (runtime) the FONT TYPE by clicking the name?
View 12 Replies