ActionScript 3.0 :: Masking ComboBox Component?
Mar 26, 2009I have a problem masking ComboBox component. I am using following code:
Code:
import fl.controls.ComboBox;
var cb:ComboBox = new ComboBox();
[code]........
I have a problem masking ComboBox component. I am using following code:
Code:
import fl.controls.ComboBox;
var cb:ComboBox = new ComboBox();
[code]........
I have one combobox in layer which is under the masking (Mask Layer). It does not display selected item particularly in chrome browser (version 14)
when click on combobox it drops down and display items but when make selected specific item, it doesn't display.
My question is, how I use the component combobox? for joining with php.
View 3 RepliesI 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 RepliesI 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 RepliesIs there a way to set a combobox component to multiline in Flash CS4 using actionscript 3 ?
View 1 Repliesi 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 RepliesI 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]...
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.
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);}
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 RepliesI'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 RepliesWhen I add a ComboBox component into a Sprite, the height of the container is larger than it should.Here's what I mean:
import fl.controls.ComboBox;
//add combo box inside a container sprite
var combo:ComboBox = new ComboBox();[code]..........
the height changes from 101 to 104.
UPDATE:I've overwritten the configUI method in a ComboBox subclass, but the measurements are correct all the time. Why does the container height change to 100 ?
Yes, I'm new to the webdesign world and AS3 but I'm trying to buil my wte that basically requires video & audio. I ask if anybody can help me to set up the video stuff..
[Code]...
How can I simply add or remove Items to/from component - ComboBox?
View 6 RepliesI am trying to populate a ComboBox from a ColdFusion component. The cfc is simply querying a db to get a list of products.
However, the code I am placing in the Actions panel:
function PartsList_Result(result) {
DataGlue.bindFormatStrings(test_cb, result, "#name#", "#partsID#");
}
doesn't appear to be working correctly. The only result I see is a blank box that when I hit the arrow, the first item in the query is returned. From what I have read, I thought that the code above would be all I need. So I'm not sure why:
1. The first item is not automatically selected
2. The rest of the list is not there.
How does one adjust the linespacing on the UI ComboBox component?I can skin all sorts of other things, but find it strange that there's nothing about linespacing or text padding or...
View 1 RepliesI'm running into a problem where for my current project I need to use a large custom mouse for interaction throughout a website. The custom mouse (a movieclip) works fine until the user needs to select a option from a ComboBox.The custom mouse clicks the component fine but once the ComboBox expands with it's options the custom mouse appears behind the expanded list.Is there anything I can do to get this to work? I'd really rather not create a 'custom' comboBox for this project as the material was already prepared and set in stone. ps:: i found this information below, but it was for AS3 and I need AS2 and in any case didn't do anything for my movie when i tried it.
Code:
// http://danielmclaren.net/2008/03/tip...s-in-flash-as3
myCursor.mouseEnabled = false;
[code]......
I'm doing an order form, where the user can input his contact information and then choose a product in a dropdown menu.Untill now, I just gave the dynamic text fields a variable and used this code:[code]But now that I added a combobox, it has no "varible field" - how do I send the selected parameter in the combobox to the php-file as well?
View 4 RepliesI want to add a key to my ComboBox, so each item contains a little picture + text, is there any easy way to do it?
View 2 RepliesI am trying to find out how to change the text color of the comboBox component from black
to white. I have found multiple posted answers online, but none has worked.
Here what I have tried:
If there's a way to have a ComboBox component expand upward rather than downward.
View 1 RepliesI've heard that Adobe Flash CS5 now comes with native support for Arabic (and other right-to-left languages).I haven't confirmed this, but I have two questions:
1) Does Flash CS5 actually natively support Arabic without needing to use the text layout framework URL...
2) If so, does this native support extend to the ComboBox component?
I'm working on a form in Flash that uses the ComboBox component, and I need to verify whether this support is as holistic as I hope it is.
I m using FLASH CS3, I used Datagrid and Combobox component from components panel, and simply add some data inside in that.
setupComboBox();
function setupComboBox():void {
cb.setSize(200, 22);
cb.prompt = "Select a Credit Card";
cb.addItem( { label: "MasterCard", data:1 } );
[Code] .....
It seems working fine. My problem is, I want two different type of skining of two different component (DataGrid & Combobox). in the same fla. E.g if datagrid have gray color skin type and combobox have black color skin type.
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]....
I'm trying to move the textField (or the TextInput) part of a combobox up a few pixels... should be easy but it's not. I've tried this:
Code:
cb.textField.y+=5;
and this:
http:[url].....
I've viewed the properties of the TextInput, List, and Combobox components and can't find anything that will help me do this. I created the class mentioned in the link, and successfully linked the TextInput library symbol, but when I add a trace statement to the class I get nothing.
this must be possible but i can't find any info on it. how do i increase the size of the combobox component scroll bar? i know it's a list component but i can't figure out how to set it's size. i want to use it with a touch screen and it's much too small.
View 3 RepliesHow can I simply add or remove Items to/from component - ComboBox?
View 6 RepliesI am trying to create a combobox where the items listed in the combobox are font names and each item will display using the font of the item label. For instance, one item label in the list is "New Times Roman" and I want that particular row in the combobox to have the text AND font of "New Times Roman". For some reason, inside of my custom CellRenderer class, I cannot seem to find a way to get the item label that corresponds to the CellRenderer and the CellRenderer.data item always appears to be null!
This is the code I am currently using:
//From the main class, I am creating an instance of the
CustomizableComboBox and adding in the font names I am interested
in.
var comboFont:CustomizableComboBox=new
[Code]....
I want to make a news ticker based on the Kirupa News Ticker Tutorial URL...My concept is that in the main stage I will put a combobox component with news categories like 1. Sports 2. Financial News 3. Politics/If you choose "Sports" it should load a sports.xml file that has the main sports headline news.If you choose "Financial" it should load a financial.xml file that has the main Financial headline news.I used this code [code]
View 1 Replies