List Component Scrolling Problem
Hello,
I have a list component, all of its rows are Sprites, inside the Sprites I have two TextFields. The problem is, when I scroll through the list, the textfields seems to overlap each other. I can't figure out why this is happening. Have tried addEventListener to ScrollEvent.SCROLL then invalidate(InvalidationType.SCROLL) but the problem persists. Anybody have clue? Thanks.
FlashKit > Flash Help > Actionscript 3.0
Posted on: 08-30-2008, 02:43 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
(Flash MX Or 8) List/List Component Issues
Hello all.
I recently completed Kirupa's "Creating a Listbox" tutorial, (http://www.kirupa.com/developer/mx/listbox.htm) but have been having a difficult time modifying the event attributes of each list item. Basically, I want to click on an item and have an object on the stage move to a unique xy coordinate. I can get the object to move already (object._x = object._x +10, but unfortunately ALL items on the list execute this script command. I've tried fooling around with the code to get each item to do a unique movement but...well, clearly I haven't succeeded yet.
I'm a Flash nooby and help in the form of specifics would be greatly appreciated. If you can provided modified code from the tutorial to move an object to a unique positions that's even better.
Thanks.
David
List Component. Help. Looked Everywhere. Button And List.
Trying to use a list component and a button. When user selects something from list component and clicks button it takes them to new page, if user doesnt select something from list and hits button, (this is where my question lies) I want it to do nothing and setFocus to list component.
Here is how I am going about it now: New if statement (however it still transfers user if nothing is selected from list component) How can I get it to not transfer? I have tried rewritting this many ways, searched all over the nets, and Nada.
Code:
var arUrl:Array=["/browsecategory.aspx?cat=1","/browsecategory.aspx?cat=2","/browsecategory.aspx?cat=3","/browsecategory.aspx?cat=4"];
var provider:Array=[{label:"Option 1",data:0},{label:"Option 2",data:1},{label:"Option 3",data:2},{label:"Option 4",data:3} ];
mcList.dataProvider=provider;
var obj:Object={};
obj.click=function(eo:Object)
{
var count:Number=mcList.selectedItem.data;
getURL(arUrl[count],"_blank");
trace("count="+arUrl[count]);
}
but.mcSubmit.addEventListener("click",obj);/////here is where I am sending off
if(mcList.selectedIndex == undefined) {
setFocus.mcList;
}
So this thing works perfectly, however if user hasnt selected anything how can I get it to not transfer and setFocus?
I have tried setting if to check it for - 1 (since starts at 0) set to 0? Any ideas please help. Thanks in advance MT
'list' Event Of List Component
oops i mean 'change' event of list component
Hi guys/gals. Ive made an xml/list component driven mp3 player as can be viewed at http://www.flashmatics.co.uk/blog/sa...mp3player.html
When someone selects a new song from the list that songs starts to play. Everything is working fine.
I now want to add an extra bit of functionality i.e When one song finishes i want the next song to start playing. But this means I have to tell the list component that a change has occured as well (even though there has been no user interaction to cause this 'change'). How would I go about this. Here is a snippet of relevant code.
Code:
mySound.onSoundComplete = function():Void{
//from here i need to tell the component a change has occured and to move it
//to the next song in the menu
}
//create a listener for the list component
var compListener:Object = new Object();
list_comp.addEventListener("change", compListener);
compListener.change = function(info:Object):Void{
//how do i get this to move to the next track?
}
Thanks for any help in advance. I dont actually need the whole code or anything but rather a point in the right direction..cheers
Loading XML List Into RMP List Component
I have several XML lists to load into a RMP List Component List Box.
I was told the code should be like:
myButton.onRelease=function(){
myList.load(String(search.text));
}
So I made a button and named the instance "myButton"
Add the list component called "myList"
The XML files are named test1.xml, test2.xml etc.
I tried variations of:
myButton.onRelease=function(){
myList.load(String(test1.xml));
}
Result....
Nota
I think I may need a Listener or I am not sure...
Can anybody please advise me what I am doing incorrectly?
Datefield Component And Combo List Component
Hello All,
Im creating a form for a booking system. When the user chooses the date and submits. The booking gets emailed to a specific address. Im using the datefield component and combolist component. in flash. I usually use PHP to push data from a text field and email. But i'm stuck here, because the datefield and combolist is not a text field. Can anyone please help me.
I wanna email the data from the fields to an email address. Im new in flash. Can anyone please help me.
Datefield Component And Combo List Component
Hello All,
Im creating a form for a booking system. When the user chooses the date and submits. The booking gets emailed to a specific address. Im using the datefield component and combolist component. in flash. I usually use PHP to push data from a text field and email. But i'm stuck here, because the datefield and combolist is not a text field. Can anyone please help me.
I wanna email the data from the fields to an email address. Im new in flash. Can anyone please help me.
Loader Component And List Component
Hello everyone,
using AS2.0 does any one know if i can push or add a list component inside a loader component?
This would allow me to add as many List components as i want "dynamiclly" while letting the loader component grow as needed with the usuability of the scroll bar on a small stage.
thx
Scrolling List Meu XML
hi... i was lurking the net when i oppened this site that features cool interactive menus. i was wondering if any one could help me on creating a similar thing like the on on this site: http://www.flashden.net/item/scrolli...-menu-xml/4461
i know how to create the same thing just in a static form but i am having a hard time creating it in dynamic. i am new in using xml and i just have a little knowledge about it in integrating it to flash. so i am hoping that some of you guys could help me out.
any help or suggections you could offer will be appreciated. thanks!
Xml Scrolling List
this is what i am trying to build:
http://www.flashden.net/files/10034/preview.swf
any help??
List Box Component
i have a list box component (item_lb)
it have 5 lines of content in it..
what i want is that when the movie loads, item_lb highlights the first line of my content.
pls help me on the script thanks!
List Component
I´m having some trouble with the list component, how do I get the selected entries from one list into a nother empty list?
Cheers Lars
List Box Component Help
Hello All,
I am making a Flash demonstration for a project. Essentially there is a mian page with links and when you click on a link it loads an external .swf and I have a control box with a play, stop, rewind button and scrub to control the loaded movie's timeline. This control box also has a list box component so the user can load other demos from within that spot. I would like to make that control box a movie clip so the user can drag and collapse the control box, but I cannot figure out how to add the list box within the control box movie. If anyone can help I would greatly appreciate it!
Thanks!
List Component
Hello everyone.
I'm new on this board, so don't be angry at me if I ask 'bout something simply.
Could you be so nice, and explain for me a simply case...
I used List component from standard Flash MX 2004 component list. I tried to add actions to items on that list... In many ways... That didn't work out. Thing I want to do is made those items to cooperate with gotoAndPlay action. When I click on "Item1" movie should go to 2nd frame... Please! Help or kill! I've wasted 6 trying to do this.
Greetings
Wilku
List Component
Hi All,
Can any one help me out how I can change the font color of the List Component
I tried this one but its not working
Code:
myList.setStyle("fontColor", "0xBF0000");
Regards
LIST COMPONENT Help
is it possible to use the 'MyList.selectedItem.label' or the 'MyList.selectedIndex' to return that item's label into a variable? whenever I do, it doesnt do anything at all
'trace(MyList.selectedItem.label)' returns the selected item in the output, but that doesnt help me!!
if not... (this may be a newbish question) how can i get something to change (ex. a textbox's text) whenever they choose a certain item on the list? the variable idea was my best...
ex..
choosing item1 --> In the textbox "This is item1!"
choosing item2 --> In the textbox "This is item2!"
choosing item3 --> In the textbox "This is item3!"
etc
List Component
Hi everyone,
I'm having a bit of a problem with changing color of the List Component. I was able to change color and color of text by using:
component.setStyle("color", 0x000000);
component.setStyle("backgroundColor", 0xFFFFFF);
The problem is that when I select the text it turnes green. Does anyone know the property of the component that effects the selected text color?
Thanks,
Peter
PS Also what would be a good learning source for mastering 2004 Components?
List Component
Hi everyone,
I'm having a bit of a problem with changing color of the List Component. I was able to change color and color of text by using:
component.setStyle("color", 0x000000);
component.setStyle("backgroundColor", 0xFFFFFF);
The problem is that when I select the text it turnes green. Does anyone know the property of the component that effects the selected text color?
Thanks,
Peter
PS Also what would be a good learning source for mastering 2004 Components?
List Component Help
Hi guys.
Ive got my list set up, but i need to know how to make it so that when I click a name in the list, it opens up a url. Right now Im using
code: onMouseDown = function () {
if (_root.scrapsList.selectedItem.label == "Name") {
getURL("http://www.website.com", "_blank");
}
}
now...it works, but if you click a name, and then click anywhere else on the screen it keeps opening up a new window with that url. I know why it does it, but I dont know any other way to do this. This is the first time ive ever used the list component, so any help would be appreciated, thanks.
List Component?
I'm having trouble with the list component. All I want is when the user clicks onto one of the words in the list, I want something to happen.
For example:
ListenerObject = new Object();
ListenerObject.onPress = function(eventObject){
trace("you clicked it");
}
myList.addEventListener("onPress", ListenerObject);
I know onPress isn't right, but is there something like this that would work? I put itemRollOver in place of onPress and it works great.
any help is much appreciated.
List Box Component
Hey,
I would like to know how can you load local variables in the flash 2004 pro list box component.
Thanks
Daniel.
List Component
is there a way to list the contents of a folder in a list component in flash 8?
List Component
can these be populated from a database? and can they contain more than one column of information? or is there another way i should be looking at populating my site with database information dynamically?
Xml To Component List
Is it possible to load an xml sheet so that it displays it's content in a component list? If so could someone show me how or point me to a tute that shows me as I can't seem to find any.
All I want to be able to do is have a list of selectable data that's kept up to date outside of flash. Any help would be mightily appreciated thankyou!
Jak x
List Component HELP
I have a list component that is being populate by an array(users) and I want the list to sort alphabetically the names of the users. I've tried the suggestions in the Help
(surnameMenu.sortItemsBy("label", "ASC") and various other combinations to no avail. Can someone please inform me of the proper way to get this to work? I am using FLASH MXProfessional 2004 Ver 7.2. I am populating the list on load with the following code.
for(var i = 0; i < len; i++)
{
this.addItemAt(i, {label: users[i].name, data: users[i]});
}
help please and thank you in advance.
List Component
How do you change the background color of the list component? I have a bunch of them on the stage and I want them to all be the same color.
Thanks!!
List Component
I'm using Flash MX 2004 Professional
does anybody know if it is possible to customize the scrollbar within the List component?
Thank you,
[F8] $@%#& List Component
I can't get the List component to work when it is inside a movieClip that is attached dynamically to an empty movieClip on the stage. See the attachment to see what I mean.
Is this a bug? Is there a way to make it work?
[F8] Help With The List Component Please
Hi,
Im using the List component as a menu. The user uses the arrow keys to go up and down the items in the component and uses another key to select them. This is all working but now i would like to include infinite menus. I have made a quick animation to show you what i mean:
http://ahref.theicy.net/i/infm.swf
im currently using this code:
Code:
focusManager.setFocus(_root.menu);
lastItem = menu.length - 1;
menu.selectedIndex = 0;
var keyListener:Object = new Object();
keyListener.onKeyDown = function() {
if((menu.selectedIndex == lastItem)&&(Key.getCode() == 40)){
menu.selectedIndex = 0;
}
if((menu.selectedIndex == 0)&&(Key.getCode() == 38)){
menu.selectedIndex = lastItem;
}
however this results in an "off by one error" and the top item and botom item cant be selected. eg.
http://ahref.theicy.net/i/offbyone.swf
does anyone know how i can fix this?
if you dont understand please ask ill try and explain more
thanks
Xml And List Component
Hi all
I have an XML file that sets up the change of content through a list component. However the only info that is changing is the URLs attribute while the head and info remain the same. Here is my script and I hope someone can pick out my problem. I am a bit of a novice so please excuse the messy scripting.
Cheers
stop();
var drillXML:XML = new XML();
drillXML.ignoreWhite = true;
var currentIndex:Number = 0;
var head:Array = new Array();
var urls:Array = new Array();
var info:Array = new Array();
drillXML.onLoad = function(success) {
if (success) {
var drill:Array = drillXML.firstChild.childNodes;
for (i=0; i<drill.length; i++) {
drilllist.addItem(drill[i].attributes.name, drill[i].attributes.url, drill[i].attributes.words);
head.push(drill[i].attributes.name);
urls.push(drill[i].attributes.url);
info.push(drill[i].attributes.words);
}
drilllist.selectedIndex = 0;
hold_mc.loadMovie(urls[currentIndex]);
title_txt.text = head[currentIndex];
info_txt.text = info[currentIndex];
} else {
drilllist.addItem("No drills available");
}
};
drillXML.load("drills1.xml");
var myListener:Object = new Object();
drilllist.addEventListener("change", myListener);
myListener.change = function() {
hold_mc.loadMovie(drilllist.getItemAt(drilllist.se lectedIndex).data);
};
List Component
I need to know some things about a List Component:
1-How do make it so that when a user clicks on many list items they all stay selected. What I mean is that you click on the first item and then on the second then on the third, then the three first items will be selected. Then when you click on the second, the first and third will be selected.
2-Is there a "isSelected" method to use so that on the press of a button I can show data concerning only the items selected?
Thank You!
List Component
hi,
im using the list component as a sort of menu for a project im working on. The user uses up and down to change between items on the list and selects it with enter. I then thought of an idea that i have seen other menus do and wondered if it would be possible to achive.
i call the idea infinite menus although it may have another name. Basically i would like to edit the list component so that when the user reaches the bottom of the list component and presses down it will jump back to the top. eg.
item 1
item 2
item 3
item 4
if item 4 is selected and down is pressed 1 will then be selected.
Is this possible and if it is how do i go about doing it?
thanks in advance and if you need me to elaborate or to clarify please ask
Help With List Component
I would appreciate if someone can help me with getting rid of the list components selection bar. I created my own component that I call with the cellRenderer and it has it's own highlighted or selected state that I would like to use however the regular selection bar is still in the background. I can change it's color with selectionColor but that is not what I need. If I set selection color to "none" it just makes it black. Any help would be appreciated.
-thanks
List Component
Ridiculously simple, but doing my head in - how do I add links into a list compnent - I'm really new to this actionscripting stuff and I ain't got a clue.
I just want each item in a lst of 7 items to link to a particular keyframe in the movie. So simple in old versions of Flash, but can I fgure it out in Flas CS3?
Help!
Component List
How can I work from an external file with a list that is sitting on the main timeline of a movie clip?
I have given the component List an instance name of "userList". I defined the listener for the list in an external .as file. I'm now trying to load data into the list by using userList.addItem() method, but it doesn't seem to do anything. When the list is displayed on the screen, the list is empty, the length of it is undefined. Adding items to the list only works when the code sits on the movie clip timeline where the list is sitting. By searching for answers, I found this advice from http://livedocs.adobe.com/flash site:
Components MUST load after classes otherwise you cannot control them (Using Action Script in Flash page 117). If you set an export frame other than 1 for your classes (most likely if you use a progress bar) you must deselect 'export on first frame' setting on your component library symbol from the Linkage menu. Component that loads on frame 1 will not retroactively find its associated class that loads afterwards on say frame 4.
Taking their advice, I deselected the 'export on first frame' setting of my list component library symbol, saved and republished my .fla file. I tested again, and it still doesn't work. Any ideas?
List Component Help
hi there, i am desperate for some help! im pretty amature at flash!
ok, im trying to make a mail form and at the moment all the fields work except the list one which comes through in the email as "undefined"! i know this is probably simple but have a look at below and ANY help would be appreciated!!!!!!!
stop();
System.useCodepage = true;
send_btn.onRelease = function() {
my_vars = new LoadVars();
my_vars.name = name_box.text;
my_vars.mail = mail_box.text;
my_vars.suburb = suburb_box.text;
my_vars.city = city_box.text;
my_vars.postcode = postcode_box.text;
my_vars.phone = phone_box.text;
my_vars.email = email_box.text;
my_vars.about = about_box.text;
my_vars.purchase = purchase_box.text;
my_vars.product = product_box.text; //??? this is a list, i need it to select but i have no idea how to do this! it just comes through in the email as undefined!
my_vars.day = day_box.text;
my_vars.month = month_box.text;
my_vars.year = year_box.text;
my_vars.serial = serial_box.text;
my_vars.product02 = product_box02.text;
my_vars.day02 = day02_box.text;
my_vars.month02 = month02_box.text;
my_vars.year02 = year02_box.text;
my_vars.serial02 = serial02_box.text;
if (my_vars.name != "" and my_vars.mail != "" and my_vars.suburb != "") {
my_vars.sendAndLoad("mailer.php", my_vars, "POST");
gotoAndStop(2);
} else {
error_clip.gotoAndPlay(2);
}
my_vars.onLoad = function() {
gotoAndStop(3);
};
};
email_box.onSetFocus = subject_box.onSetFocus=message_box.onSetFocus=func tion () {
if (error_clip._currentframe != 1) {
error_clip.gotoAndPlay(6);
}
};
this is the file: http://www.circularsquare.co.nz/reg.swf
any help would be fantastic!!!
:~)
-Brisol
List Component
Is there a way of loading more than one node per line in a list component in CS3?
Help Using List Component
My goal is to have a flash projector file that displays a list, and when you click on an item, it runs the corresponding .exe file. I am using Flash CS4, and I don't have much experience when it comes to using components. How do you populate the list? Can I use an XML file? How do you assign a function to each item in the list?
Thanks,
gambrker
UI Component List
I would like to use an “UI Component List” and when the user select one of the labels on the list it causes an event that will unload this movie(.swf) and loadmovienum 2 (another .swf movie).
Could you please tell me if this is doable?
Is there a tutorial that you can recommend?
Is there a good book that you recommend for scripting in flash MX?
Thanks a lot for your help!
XML Into List Component
I have an xml file formatted as follows
<media>
<product
title="Product title here"
main="mainPic.jpg"
thmb="thumbPic.jpg"
oc1="123"
v1="123"
oc2="123"
v2="123"
description="description.txt"
constituents="constituents.txt"
usage="usage.txt"
release="release.txt"
related="related.txt"
protocol="protocol.txt"
/>
</media>
What I would like to do is load the xml file into Flash and show the attribute title in a list box. When the user clicks on the list box the rest of the data will show in various other fields. I'm not really sure how to load this xml file in the list box though and make if a link for the rest of the data. Anyone have any suggestions or links to tutorials for this.?
List Component
Hello, I need a little help here! I want to use a List, so that when a value of the list is clicked, a web page will pop up.
Is that possible??
Can anyone help me?
List Component Help
Hi,
Im using the List component as a menu. The user uses the arrow keys to go up and down the items in the component and uses another key to select them. This is all working but now i would like to include infinite menus. I have made a quick animation to show you what i mean:
http://ahref.theicy.net/i/infm.swf
im currently using this code:
Code:
focusManager.setFocus(_root.menu);
lastItem = menu.length - 1;
menu.selectedIndex = 0;
var keyListener:Object = new Object();
keyListener.onKeyDown = function() {
if((menu.selectedIndex == lastItem)&&(Key.getCode() == 40)){
menu.selectedIndex = 0;
}
if((menu.selectedIndex == 0)&&(Key.getCode() == 38)){
menu.selectedIndex = lastItem;
}
however this results in an "off by one error" and the top item and botom item cant be selected. eg.
http://ahref.theicy.net/i/offbyone.swf
does anyone know how i can fix this?
if you dont understand please ask ill try and explain more
thanks
List, Component, Done, Almost. Help.
Hey yall I have posted on this before but still having no luck figuring out how to check if (component) list has been selected then proceed to next page, otherwise setFocus.
Right now everything populates and functions perfect, however if the user doesnt select something from list and hits button the page transfers to www.mydomain.com/undefined.
I am trying to run a check on it if they havent then dont do anything but having trouble. Can anyone throw me a bone here?
Code:
var arUrl:Array=["/browsecategory.aspx?cat=1","/browsecategory.aspx?cat=2","/browsecategory.aspx?cat=3"];
var provider:Array=[{label:"Option One",data:0},{label:"Option Two",data:1},{label:"Option Three",data:2}];
choice.mcList.dataProvider=provider;
var obj:Object={};
obj.click=function(eo:Object)
{
var count:Number=choice.mcList.selectedItem.data;
getURL(arUrl[count],"_self");
trace("count="+arUrl[count]);
}
but.mcSubmit.addEventListener("click",obj);/////here is where I am sending off
if (provider == undefined) {
setFocus.mcList;
}
Thanks in advance
MT
List Component
Hi All,
I have a List Componnet in one layer and the layer below it contains a green rectangular Shape. Currently the background color for the List component is "White". I want to make it transparent to show the background behind is it possible ..also the scroll within it has to be changed to a differnt color.
please guide me ..
UI Component List
I would like to use an “UI Component List” and when the user select one of the labels on the list it causes an event that will unload this movie(.swf) and loadmovienum 2 (another .swf movie).
Could you please tell me if this is doable?
Is there a tutorial that you can recommend?
Is there a good book that you recommend for scripting in flash MX?
Thanks a lot for your help!
List Box Component
Can I use the list box component to control a flash movie?? I want to have a list box that will act as a menu when the user clicks an object flash will load a movie into a empty movie clip. Is this possible?? If so please send me a link to tut or send a script or fla Please
Thanks in Advance
Xml Into List Component
Hi
I'm putting together a small mp3 player using the MediaPlayBack component.
I would also like to have a simple playlist using a list component.
Could someone show me how to put this xml into a list component?
Code:
<?xml version="1.0" ?>
<songs>
<song display="Song Title 1" url="Dean Martin- Baby it's cold Outside.mp3" />
<song display="Song Title 2" url="Dean Martin- Canadian Sunset.mp3" />
<song display="Song Title 3" url="Christmas Songs - Dean Martin -Rudolph The Red-Nosed Reindeer.mp3" />
<song display="Song Title 4" url="Christmas - Dean Martin - Let It Snow! Let It Snow! Let It Snow!.mp3" />
</songs>
thx
Chris
merry x-mas
Using The List Component
Hi. I have added the list component (from Window > Components) to my Flash document. I now need to make it so that it goes to a different frame when something in the list is clicked. I have 386 things in my list, and I want each of them to go to a different frame. I already know how to do this with buttons, just not with lists.
How can I do this?
Thanks,
Vampire.
|