ActionScript 2.0 :: Change The RowHeight Of Listbox
Dec 9, 2006
Kudos to the person who can successfully change the rowHeight of this listbox. It's a V1 Component and that seems to be the problem since using this code: songList_lb.rowHeight = 30; works for me in V2 but not in V1. Since I need to customize the look of the listbox scrollers I have to stay with V1.
I'm trying to resize my listbox but I am using a customised Listbox class that someone else has made. I need to have listboxes of different sizes in my project.
My problem is that when I resize the listbox on the stage this doesnt alter the height (presumably as the height is controlled by code within the class). I have tried going through all of the code and renaming the two customised classes and then altering the size on the stage but this doesn't work either.
I have tried altering the height of the listbox using ._height but this squashes the box so the text is too small to read. I can't find any other methods for altering height apart from setSize which I can only get to alter the width.
I'm not sure if I'm missing something obvious or if I'm going to have to delve into the world of customising components.
I have a List and a TextArea next to each other in an HBox. Both will have multiple lines of text and use the same font. I'd like the rowHeight of the List to be the same as the TextArea but I don't want to set the rowHeight property because the user can change the size of the font.
In the following example, the 'line1', 'line2' in the List takes up more room than the 'line1', 'line2' of the TextArea. I set padding to 0 for the List but there must be some other styles that affect the padding too. [code]...
The Listbox is populated with the category and the image and caption is being shown in the correct place but the list box doesn't function and the images cycle through all and not just the ones in that category.Here is my code
Code: var ssx:XML = new XML(); ssx.ignoreWhite = true;[code]...........
I've been going crazy trying to figure out a couple things, spent the last few days scouring the forums and my understanding of actionscript and php aren't advanced enough to understand what I need to do.I have a very basic contact form (one I've successfully used before) that I thought I would adapt for a new project (to include a couple listboxes).In Flash, visitors enter name and contact info, then we want a listbox for them to select an event on a specific day, then another one that they select a time (both listboxes will be populated within flash, so no dynamic loading). They hit Submit and the form information is sent to our email address using php.The first difficulty I had was how to capture the selection of the listbox. I don't know much about actionscript, but I thought that would be pretty straight forward and was hoping I'd find something in the community to keep it simple for people like me.
Then to send it to the php email document, I'm not sure how to treat it the standard text is easy to prep for php but I'm at a loss on the listbox-selected items.Right now I try to fill out the form, I hit submit, and get a message: undefined.I commented out the second listbox so I could just focus on getting one to work, but I'm not sure which stage I'm doing it wrong.[code]I think the php is good, and pretty sure I just don't know what I'm doing with the listbox selection.
i have to use listbox for air for android. But when i type in import fl.controls.List, i get the error: can't find definition fl.controls:Listeven when i use fl.controls.* it gives the same error.i found out that its becouse fl.controls.List is made for the following:Language Version: ActionScript 3.0Product Version: Flash CS3Runtime Versions: Flash Player 9.0.28.0, AIR 1.0(i got this from i use flash cs5.5 en air for android. does any1 know how i can use a listbox for air for android?
So I have a list box on stage with the instance name "lb" I'm trying to get some text from my xml list into this list box? In this case the @TITLE data.
I'm able to trace the data from the xml file into the output window, but I can't figure how to display that text in the list box.
I am trying to load a listbox through xml and my script does not seem to work at adding the items. Could someone please look over the script and tell me what is wrong? Here it is...
Code: Prog_xml.load(Programs.xml) xml.onLoad = function (success){[code]....
I'm working to update a project that was created by someone else who left our company. It was done in AS2, so I'd like to keep it that way (without updating all the code to AS3). Here is a section of code that currently works:
var item = {Rank:rank, City:city, Reps:representatives, RepsWithSales:RepsWithSales, Appts:appts, AvgSales:FormatAsDollars(average)}; topSales.addItem(item);
i have a listbox which gets data striaght from my sql database and i was wondering how i could link each value with in the list box to each frame so that when a item is selected in the list box it goes to a frame like how button uses gotoandplay as such
this is my code which i use to get the data from the database
var theXML:XML = new XML(); theXML.ignoreWhite = true; theXML.onLoad = function() {
I have created a button when clicked it validates A listbox checking for a value if the selected index =0. I want it to run another .swf
Here is ActionScript Code: submit_btn.addEventListener(MouseEvent.CLICK, play); function validate(event:MouseEvent):void{ if (question1_combo.selectedIndex ==0) (RUN SWF here) else trace ("not worked"); }
I searched and didn't find quite the right solution. Please bare with me as I am a complete infant with this.Using a component listbox in CS4. I have figured out how to call in formatting to the text by using this:Code: Select allimport fl.managers.StyleManager; var tf:TextFormat = new TextFormat(); at the head, and referring to it below, with:
I used Digitalosophy's tute to create my Flash form using ASP to write to an Access DB with 1 deviation. In addition to 5 text inputs I used a Flash component list box. It is the only element that is passing empty data to the DB. I have both label & data fields filled out and I am using the following AS on the submit button
I am guessing I need to use AS to assign a variable to the list box component as it only has an instance name field, unlike the dynamic text fields. Not having any luck googling the correct syntax though as most examples are of querying a data base not writing.
i want to fill a listbox with data from a MySql table. the code ive gotten working is for static data from an xml file. here it is:
var options:XML = new XML(); options.ignoreWhitespace = true; var loader:URLLoader = new URLLoader(new URLRequest("fillRegions.xml"));
[Code]....
this creates an echod file that looks just like the above xml example. so, how do i change my original AS3 code to pull data from this php file rather then the xml file?
I am working on a selector that uses 2 list boxes. Standard stuff, you can move items from the left box with arrow buttons to the right box. However I can't seem to get the annoying green "halo" to go away whenever one of the boxes is selected. I have tried
I'm populating a listbox like this: dp.addItem( {label:"red dress", data:"OV4MP/23OL.swf"} ); Instead of data:"OV4MP/23OL.swf", I would like to make part of the data file name a variable from a dynamic textbox named centerPt that belongs to the parent movieclip, so I did this: dp.addItem( {label:"red dress", data:"OV4MP/23"+MovieClip(parent.parent).centerPt.text+".swf"} );
I suppose to load a xml into flash n convert it into an array. After which im suppose to place them in listbox so that ppl are able to select them to view different stuff. Apparently, im unable to get the selected value of the listbox. With this, the users cannot select n the whole thing doesnt work. With array, im suppose to use getSelectedItem to get the value.. but it always ends up in a error "[type function]"
i am learning to work with sharedobjects in flash mx, and i am trying now do to a little application, and in this application i will use a listbox to do some things, i have a message board that will keep the messages in the sharedobject named "visitas", i add data with a function, ,here it is:
function salvaMensagens(){ var num = Number(_root.entradas.text); visitas.data.mensagens[num] = _root.mensagem.text;[code]....
it had to add the name digited in the input text field name, and the same with the email, respectivelly , label and data, but my listbox is still empty after several tryes..
I want to be able to move the list names of the listbox up and down can this be done through actionscript.or is there any way to bring the selected item to the top
I've created an MP3 player based on the now classic code at:http:[url]....One of the shortcomings of the player (that users seem to notice) is that the listbox doesn't scroll to reveal the currently selected item when the player is in "continuous" mode. The selected items disappear from view. I'm wondering if using FListbox.getScrollPosition and FListbox.setScrollPosition could be used to get the listbox menu to update and scroll the current selection to the top of the menu screen. If the listbox data object siimply returns an index number it seems like that number could be used to feed the getScrollPosition function.