Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




ComboBox Does Not Appear



Using MX2004 Pro

I am trying to use the comboBox component. I dragged an instance onto the stage, named the instance, and populated some values for labels and data. However, the comboBox appears simply as a white box when published.


Using the Component Inspector, I verified the enabled visible properties are true. Any ideas?

Thanks



FlashKit > Flash Help > Flash ActionScript
Posted on: 10-17-2004, 12:11 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

ComboBox Doesn't Use ComboBox Assets
I've been customizing some components, and discovered that the ComboBox doesn't actually use the ComboBox Assets, but instead uses the ScrollBar Assets. I need to have a slightly different design for the ComboBox down button. Does anyone know how to make the ComboBox use it's own assets, perhaps by editting the ComboBox.as or ComboBase.as file?

Thanks.

ComboBox Problem, Displays A "text Box Like" Object Instead Of A ComboBox
Hello friends,

A friend of mine is having a tough time getting a ComboBox integrated into an existing flash movie, to work right.

Here's the story so far.....

The ComboBox when tried out in a sample new file works absolutely fine, but when the same thing (see code below) is added to
an existing movie (which has a preloader in Scene 1) does not work at all. Instead, it displays a "text-box-like" object in place of a
ComboBox...


Code:


form = new Object();
form.change = function (evt){
trace(evt.target.selectedItem.label);
}
comboBox.addEventListener("change", form);



Now, is there a possibility that because a preloader exists in the movie, the ComboBox does not work, not sure on this reasoning!

If someone could help out here, I'd really appreciate it!

Possible Bug With ComboBox
I'm having a problem with a ComboBox component.

I need to check periodically the value of the currently selectedItem on a ComboBox. So what I'm doing is on an enterFrame event of the movieclip that contains the ComboBox, trigering a function that reads that selectedItem. My problem is that when I run the swf movie, sometimes I am able to make a selection on the ComboBox (using the mouse, not programmaticaly) and sometimes not. So far I haven't been able to find a pattern of when this thing works and when it doesn't.

So I was wandering if any of you have found a similar problem, or have any idea what may be cousing it?

Combobox
Hi people,
I'm working on a web-site using both Flash MX and HTML... it's been going really well until just now.. i've become stumped! I've used Flash 5 for about a year so i do know some of what i say... well heres the problem:
I've introduced a Combobox into a gallery i'm producing, the idea was to be able to navigate my way through the different sections of pictures with a point and click on the drop down menu... i need it then to load a new scene, how do you tell the combobox to load another part of the movie (gallery)??
I hope this all makes sense because as i read it back it's starting to seem a little stupid!
Any help would be super so please post a reply.. even if it's to tell me that i can't do this

Jon

P.s. unfortunatly i have a deadline of a week for this gallery so please.. any ideas??

Combobox Help...
Hello Everyone...

I am trying to work on dynamic loading combobox(s) from text files. I guess, this is my first question...is it possible to load combobox dynamically?

Next question/problem:

I want to have multiple comboboxes on one "page" but lets say that the first combobox is always the same, nothing will change with that. But with the option(s) in the first combobox, that will depict what will be in the second combobox, and then the second combobox will depict what is in the third combobox, and so forth and so on. And then in the end, I would like to be able to have a button to send off an email to myself when people fill out the "survey." Is it possible to send the email without having to have a email client setup on the computer that the "survey" is being viewed at. The email would contain the selected information in the comboboxes.

And one more thing. If it is possible to be able to attach a file to the "survey"
Thank you for the help,

Josh

ComboBox
I have a panel and in it I have a combobox which I am loading from a text file, and till now, everything is working fine. Even when the user changes the option, everything is working since I am loading the correct file to go with the selection. However, what I do not know, is, when the user closes the panel and opens it again, how can I get the last selection the user chose? For example if the User selected Option 3, and closes this panel, then opens it again, I want Option 3 to appear first and the other optons after it.

Is it possible?

THanks for your help and time

Combobox
Hello All,

I am new to flash MX, and not too familiar with action scripting. I have a query that many of you will be able to type out on seconds, for this reason I ask you to do so so i can learn from your example.

Simply... :P

I want to create a ComboBox which has around 5 options and a data list of the same amount. When a user selects one of the options I would like it to jump to the next frame, or next scene in the movie.

How would the actionscript look for this? I have given it my best shot but keep getting errors. I have set up the combobox, if someone could show me how the onclipevents should be set out and the variable and functions etc I would really appreciate it.

Also if anyone knows any good tutorials on combobox's etc that would be a help.

Thanks a lot

f#

Combobox
Flash 5.

I'm trying to set up a movie, in which a user can convert various bits of data.
The scene consists of 4 areas.
Area1 = an input box ("number") which is the value the user wishes to convert.
Area2 = type of conversion. This is a combobox ("type") which lists various types of coversion (for exapmple weight, height etc etc) The selection made in this section has a direct result of what is displyed in Area3.
Area3 = two comboboxes ("to" and "from") each listing various scales depending on the choice made in Area2. (for example if the user chooses weight in Area2, the to and from boxes list Kg, g, oz, lb, etc but if they choose length in Area2. the to and from boxes list m, cm, ft, in, etc) The "from" combobox is what the "number" is being converted from, and the "to" combobox is what the "number" is converted to.
Area4 = the result of the equation.

Question 1: How do I create comboboxes that can list choices (which I assume are provided from an array)?
Question 2: How do I link the combobox in Area2 to the items (arrays) listed in Area3?

Thanks for your time. I hope I have explained what I want to do clearly enough :-)

Combobox
Hello everyone,

I wanted to know how the combo box works.
I tried to find out but its not easy as there is no info around on how to make it work

I want to make some email addresses in the combo box so that when you choose 1 it will be inserted in a textbox with a variable to send this to the php code so that it processes the mail to the persons email that you choosed from the combo box.

How can I do that?

I hope there is someone willing to help me

Thanks in advance,

Sky

Combobox
how do i get the value of a combobox item?
(i want the value of the item displayed in the combobox..)

Combobox And Asp
hi all,
...sorry form my bad english
i have a movie with only a frame.
in this frame i have a combo box , onchangehandler i get the selected value and use that to query a database trow an asp's page.
this page return at the same movie at the same frame(1°) the resultdset, but if i re-change the value selected in the combobox , the result doesn't change: i have to change another time the combo and then it works .

These is the code (actionscript for frame 1):

categoria.setChangeHandler("filtracategorie");
function filtracategorie(){
immagini="";
categoriaid=categoria.getSelectedItem().data;

if (categoriaid !=""){
loadVariables("appoggioimmagini.asp?categoriaid="+ _level0.categoriaid,this);

immagini=new Array();
for (k=0; k<this.conta; k++) {
n=k+1;
immagini[k]=this["percorso"+n];
}

i=this.conta;
x=0;
x1=0;
y1=0;
_root.attachMovie("_box","_mcbox",0);
k=0;

while(x<i){
x=x+1;
_root._mcbox.createEmptyMovieClip("temp"+x,x);

_root._mcbox["temp"+x]._x = 1+x1*64;
_root._mcbox["temp"+x]._y = 1+k*70;
_root._mcbox["temp"+x].loadMovie("images/"+immagini[x-1]);

_root._mcbox["temp"+x].onPress=function(){

}
x1++;
if (x1>=3) {
k++;
x1 = 0;
}
//}

}


_root.pannello.setScrollContent(_root._mcbox);
_root.pannello.refreshPane();
}


}


could anybody tell me where i'm going wrong?


thank you
federica
milan

Tab Out Of A ComboBox?
I started using components recently and have run into a bit of a snag.
I am using an array to addItems to my comboBox which is great. I set up the tab order just like I always have but I cannot seem to tab out of the comboBox once I have tabbed into it.
Is this normal?
are there workarounds for this?

ComboBox
I am trying to use the flash component 'ComboBox', but can't figure out how to apply the actions to text it the drop down. I have tried reading the help files but fail to make any sence of them. Could anyone please help me?

I want to be able to load up a new movie after I click on any of the subjects within my drop down.

Many thanks,

Chappers UK - beginner!

Combobox
I am trying to use a combobox to navigate through a series of frames i.e choice "A" go to frame 6 and stop choice "B" got to frame 7 and stop. I am not able to make this work. Also when I go to test the movie the combobox is not desplaying anything until you click on the box, then you can see all of the choices but when the box is closewd it is blank......

Can anyone help

Thank you
Anthony

TAB Key And ComboBox
Hi,

I have a flash movie with several TextEdit fields and two combo boxes. I want the user to be able to navigate through the fields using the tab key, but when I tab into one of the combo boxes, the cursor gets "stuck". I can shift-tab backwards out of the combo box, but if I hit tab the focus stays on the combo box..

Any ideas?

Thanks

Rich

ComboBox Help
I have wrote a small flash... well kinda a flash mastermind named nevel did almost all of the work...

I would basically like to know how to take information from a ComboBox named sybol 5 instance cell_size.... and use it in an if statement... because right before my attachmovie item... I would like to write an if statement telling the program which movie to place on the screen... so if the user selects item 4 it will display my symbol that show a 4 other than a 3 and so on.... can anyone help?? if .fla is need for better understanding I can email it or post it on a site.... here is some of the code too...

www.techyhelp.com/flashattempt/boxgrid.fla

on (release) {
// set the position that you want to be on the stage here
x_stage_pos = 15;
y_stage_pos = 80;
//
// calculates the total number of boxes in the grid
total_boxes = xboxes*yboxes;
//
// set these values to equal the values of your box width and height(if you want gaps between the boxes make the values slightly bigger than th actual boxes width and height)
box_width = 45;
box_height = 45;
//
ypos = 0;
multiplier = 1;
//
// loop to dynamically create the boxes in the rack
for (i=1, j=0; i<=total_boxes; i++, j++) {
// attach box graphic movie clip from the library.


attachMovie("box", "box_" add i, i);
//
// set the box's x position
setProperty("box_" add i, _x, box_width*j+x_stage_pos);
//
// set the box's y position
setProperty("box_" add i, _y, ypos+y_stage_pos);
//
// check if row has been filled, if so increase the ypos value to start generating box's on the next row down
if (i == (xboxes*multiplier)) {
j = -1;
ypos = box_height*multiplier;
multiplier++;
}
//
}
//
}

ComboBox
Can anyone please talk me through using one of these, as i need to have a list of names of people and then when you press on a name it loads a movieClip.

XML To Combobox
Hi there!

Can anyone tell me how to read data from an XML doc into a combobox or lisbox?

thanks!

Combobox Help
Hi all

I am having problem using comobox, colud someone please help me!

here is the situation:
How to make labels inactive that has null value?


combo2_array = [
{label:"Day 2", data:"null"},
{label:"Party with sam", data:"03-04-12_07-42-13.asf"}

main_cb2.setDataProvider( combo2_array );


//Changehandler.....below code is used for projector SWF studio to call a application.

init_combo2= function(){
var filename = (main_cb2.getSelectedItem().data);
var pfad = "windows media player\wmplayer.exe %ORG%\data\audio_recording\day2\"+filename;
fscommand("RUNORG", pfad);
}
stop();

Problem:-------------------
label day2 has "null" value but why does it open media player, everytime it`s selected?


many thanks for the help
pilotX

Combobox Help
Hi,
I have a combobox called indexBox with labels 0,A,B,C ... and data 0, goto5, goto10, goto15... The idea is that if the user selects A a clip will be played from frame 5 to 9, if B than 10 to 14 and so on. The code I tried is:

onChange = function () {
if (indexBox.getValue() == "goto5") {
gotoAndPlay(5);
}
else {
if (indexBox.getValue() == "goto10") {
gotoAndPlay(10);
}
}
}

The problem here is that only the first selection works and it gets stuck there. The other problem is that it's driving me nuts.
Any ideas will be appriciated.

Combobox Help
Hi,
I have a combobox called indexBox with labels 0,A,B,C ... and data 0, goto5, goto10, goto15... The idea is that if the user selects A a clip will be played from frame 5 to 9, if B than 10 to 14 and so on. The code I tried is:

onChange = function () {
if (indexBox.getValue() == "goto5") {
gotoAndPlay(5);
}
else {
if (indexBox.getValue() == "goto10") {
gotoAndPlay(10);
}
}
}

The problem here is that only the first selection works and it gets stuck there. The other problem is that it's driving me nuts.
Any ideas will be appriciated.

Combobox With MX
Okay, so here goes. I have a combobox that has the following listed in it: None, Single, & Group. In my script I need to have it set so that if None is selected in the combobox, the value of 0.00 is the output, if Single the value in the output should be 26.75, and for Group 86.75. I have the instance of the combobox as HealthInsurance and the output box variable name is healthcare. I'm not that familiar with all the in's and out's of actionscripting but if someone can help me in anyway, please do.

ComboBox
hello. i wanted to use the comboBox component for one of my movies. The comboBox will have all of the states listed inside. When a user choses a state, i would like to have a .swf file get loaded into a blank movie clip on the stage.

if someone can direct me or tell how i can do this, i would appreciate it. thanks in advanced!

kei

[mx Pro] :combobox As Mc
Hi,
I downloaded from flashkit an example , a combo bocx load data from txt,
that is wonderfull but the problem is tha t I need to import this combo in a new stage (like a simbol) but the script into combo after imported doesn't work!


Code:
//first frame of combo
//load the text file
var sitestext = new loadVars();
sitestext.load("sites.txt");

//second frame
sitestext.onLoad = function(success) {
if (success) {
if (sitestext.End == 1) {
gotoAndPlay("end");
}
else {
gotoAndPlay("start");
}
}
}

//third frame
var ComboSites = sitestext.Sites.split(",");
var ComboURLs = sitestext.URLs.split(",");
CBOLoadSites.addItem("-- select site --");
for (i=0; i < ComboSites.length;i++) {
CBOLoadSites.addItem(ComboSites[i],ComboURLs[i]);
}
CBOLoadSites.setChangeHandler("loadSite");

function loadSite(component) {
var SiteURL = component.getSelectedItem().data;
getURL(SiteURL, "_blank");
}

stop();
I transformed the combo in simbol called "pippo" and imported in new stage.

someone can help me??

Combobox Example
i want to use the combobox component
does any 1 have an example working for that?
thanks in advance
peleg

Combobox
hi there

if you move with your mouse over the entrys in a combobox, the certain entry will be highlighted.

does anybody know in which line i can find this command?



thx in advance,
jerico



(i use flash mx)

ComboBox Help - AS2
comboBox - AS2
i need help on how to get the requested url when click on one of the labels in the combo box. Previously,in mx the code is like that
_root.myComboBox.setChangeHandler("myHandler");
function myhandler() {
getURL(_root.myComboBox.getSelectedItem().data, "_blank");
}

Since, mx 2004 is out im not familiar with AS2

Can anyone tell me how this is done in MX 2004?

Thanks!

Help On ComboBox
Can someone tell me how to control the line spacing in a comboBox...is there any scripts attached to the component?

Thanks!

Combobox And Mc
Hi!

I have a combobox with 3 possibilities: a, b, c eg. You make your choice, then valid it by clicking a button (that works).

How can I make a movieclip load when the choice is "a" and have another mc when the choice is "b" or "c"??

I already can get the combobox value (getValue), but...
I work with Flash MX? thanks!

XML -> ComboBox V1 Help
Hi, I was wondering if anyone knows how to pull info from an xml file into the comboBox component (v1) This is the combo box from flash mx using actionscipt 1, not the combo box from mx 2004 which uses actionscript 2.0. If anyone could help me out here or show me a tutorial that explains how to import the xml data into the combo box I would be very thankfull.

Thanks in advance.

ComboBox Too Another ComboBox
Hi,

I have been having problems figuring out how to have a comboBox, once a selection has been made, populate a second comboBox. I am using MX 2004 and am in need of some help.

thanks,
xcaliber

Getting Value Of Combobox
Hi all,

I am using Flash MX. I have a form with 3 frames. I have comboboxes on the second and third frame. Question:

How do I get the value of a combobox that is om frame 2 when I am settingup the loadVars on frame 3?

The basic script comboboxName.getValue();

does not work. The value is empty. Any ideas. Thanks in adavance for any ideas.

Justice

ComboBox
ok maybe i'm a total retard, but i dragged a comboBox component onto my stage, filled in the parameters, and then when i test the movie, the comboBox is just an empty white rectangle. what am i doing wrong, or what actionscript do i have to add to make my comboBox work? please help!!!

ComboBox - Value
Hello Forum,
I'm working on an app with FlashMX 2004 v7.2 and Flash Studio PRo v2 and MS Access 2000.
Basicly app is intended to being DVD movies catalogue.
I'm almost done, only i need to sort movies by its first letter name Implicitly.
I'm trying to do that with ComboBox component (named pickLetter_cmb)and i have joined next code to the first frame:
code: var myDP:Array = new Array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z");
pickLetter_cmb.dataProvider = myDP;
/// listener for catching what was clicked on list
function change(evt){
//here is key for my solution ... that i miss
trace("You pick up: "+evt.target.selectedItem);
}
pickLetter_cmb.addEventListener("change", this);
I improvising for a while and instead trace i have:
on (release){
gotoAndPlay(6);
}
where i have this code:
code:
//just to clear my intention i typed letter "A"
fscommand("flashstudio.selectfromdb", ""SELECT * FROM mytable WHERE name LIKE 'a%' ORDER BY name ASC"");


So what is the point? ... i would like to catch SelectedItem and instead letter A i have picked letter ... B, C, D or any other.
Please help me ... Thanks in advance

UI ComboBox Bug
I have a combobox placed on the stage within my mainMC. I also have a series of MCs attached to the stage within a MC holder. Embedding look like this:
Stage -> MainMC -> ComboBox
Stage -> MainMC -> HolderMC -> AttachedMCs

Initially when this whole thing loads the attachedMC commands work flawlessly. As soon as I do anything with the ComboBox, such as jus open it or select an item, the code for the attachedMCs doesn't work right. Specifically, commands such as onPress does not trace. They only work if the mouse scrolls a little bit over the attached MC then press. Then scroll again and press. Wierdest damn thing. Could it be that the ComboBox is taking control of focus some how? And if so how do I force it to release focus? Or what else may be going on?

I've tried about a hundred different things. Tried setting the MCs trackAsMenuItem = true and that didn't work. I did that because I noticed that any button on the stage tracked as a button will not take focus away from the ComboBox, thus does not work correctly. I thought setting the MCs like that would cure the problem but no luck. I'm out of ideas. Hope someone can help. I'm in a major pinch. I really can't post the source files. The Flash app uses many, many external files including XML, AS and Class files.

Combobox
okay, i have a combo box with three selections,
red
yellow
blue
(for instance)
i want to make it so when you select red, it goes to frame 2
yellow, frame 3
blue, frame 4.

how do i tell flash to jump to a certain frame when an certain item is selected?

thanks,
chris


btw its the "combobox" ui component from mx 2004 pro

ComboBox
Hello,
I hop somebody can help me...
I am using two Comboboxes, for a product comparison. What i want to do is, to select one product in one combobox and 2nd in the 2nd combobox.
I am not getting how to create 2 functions that if both are selected to move on to the next frame.
I got so far
for one combobox:

prod.setChangeHandler("loadPr");

function loadPr(component);{
var pr1 = component.getSelectedItem().data

mc.loadMovie("test.swf");
}

what i tried to do is to insert
var c = comonent.getSelectedIndex;
if (c > 0) {
gotoAndStop(2);
}

But it doesnt work....
Another thing when you got 2 Comboboxes (similiar) is there a possibility, if selecting 1 to delete the one in the 2nd box?
(so you wouldnt be able to select the same thing in both c.boxes)

ComboBox
I thought I had this figured out but I guess I don't. I have code for a combo box that works in one fla but won't work in any others. All I am trying to do is get the value of a combo box and set that to a global variable. Then just display that value in dynamic text box. Also, I have two different sytles of combo box components, the new look and the older look. The new look doesn't give me a place in the properties panel to set a Change Handler. How do I set this?
Link to file : http://www.careersforprosperity.com/.../combotest.htm
Please send a working fla to jbengert@gmail.com , if someone can figure out why it won't work.

Please Help!
Thanks

ComboBox Not Getting URL
Hi all,
I'm using MX 2004 and am currently having trouble getting my comboBox to execute the getURL action.
This is what i have:

Code:
myData = new LoadVars();
myData.onLoad = function(){
placeTheDataIntoTheRightPlace();//call the function that handles the data.
};

myData.load("http://localhost/guard/admin/features.php");

placeTheDataIntoTheRightPlace = function(){

for (var i=0; i<myData.numrows ; i++) {
myComboBox.addItemAt(i,eval("myData.comboData" + (i+1)),eval("myData.comboID" + (i+1)));
}

}

technical= new Object();
technical.change = function (evt){
comp = evt.target.selectedItem.data;
if(comp <> "do nothing") {
getURL(comp,"_blank");
trace("FFF");
}
myComboBox.setSelectedIndex(0);
}
myComboBox.addEventListener("change", technical);
Any ideas why this wont work?

Cheers

ComboBox Not Getting URL
Hi all,
I'm using MX 2004 and am currently having trouble getting my comboBox to execute the getURL action.
This is what i have:

Code:
myData = new LoadVars();
myData.onLoad = function(){
placeTheDataIntoTheRightPlace();//call the function that handles the data.
};

myData.load("http://localhost/guard/admin/features.php");

placeTheDataIntoTheRightPlace = function(){

for (var i=0; i<myData.numrows ; i++) {
myComboBox.addItemAt(i,eval("myData.comboData" + (i+1)),eval("myData.comboID" + (i+1)));
}

}

technical= new Object();
technical.change = function (evt){
comp = evt.target.selectedItem.data;
if(comp <> "do nothing") {
getURL(comp,"_blank");
trace("FFF");
}
myComboBox.setSelectedIndex(0);
}
myComboBox.addEventListener("change", technical);
Any ideas why this wont work?

Cheers

Combobox Help
Hi,
I have a combobox which has a list of countries in it. I want to change the combobox value into a variable so that I can use it later on in the application. How is the best way to do this.

Thanks,
Jon

ComboBox
Hi all,

I’m trying to get a standard combobox data, link to an internal movieclip in flash MX 2004. The selected data in combobox, I want to goto the framelabel in the movieclip timeline that I want to control.

Can anybody help me?
thanks in advanced.


i give a sample code, to see where i'm going with this

ActionScript:
on (change) {
gotoAndPlay.players(this.data() );
}

this i put on the component, and players is the mc i want to control/push


normal i used the "change handler" in a component to link to a function (jump) and ad this code in timeline:

ActionScript:
function jump() {
players.gotoAndPlay(fish2.getSelectedItem().data);
}


this works, but in the standard combobox i can't find it or get it work in the standard component in flash MX 2004
(fish2 is the component btw)

ComboBox And XML
Hi, does anyone have an fla or tutorial on how to have an external xml file to populate a combo box on the time line with a list... then when a choice is made from that list, it loads the jpeg that is under that choice into a blankMC
ie

label would be MY PHOTO
data would be photo.jpg

Any help would be much appreciated

UPDATE!!! here is the code I have,,, it works in Flash MX but not Flash 2004,,, it does everything BUT not load the movie into blankMC

Anyone care to comment im sure its a tiny mistake somewhere

FINAL UPDATE!! OK I DID IT,,, AND ADJUSTED THE CODE ,,, HOPE THISHELPS ANY OF U GUYS,, THIS ALSO FIXES THAT BLASTED DISAPPEARING FONT THING WHEN UNDER A MASK

import mx.controls.ComboBox;
//create a new XML object
thisXML = new XML();
//ignore whitespace in the file
thisXML.ignoreWhite = true;
//call the LoadChartData function when the XML file is loaded
thisXML.onLoad = LoadCombo;
//load the xml file
thisXML.load("voteData.xml");
function LoadCombo(success) {
if (success) {
//set variables
var BaseNode = thisXML.childNodes[0];
var ComboSites = new Array();
var ComboURLs = new Array();
var ThisNode;
//add a default item to the combo box
filmmaker.addItem("VOTE FOR YOUR FAVOURITE SHORT");
//get sites information
for (i=0; i<BaseNode.childNodes.length; i++) {
ThisNode = BaseNode.childNodes[i];
ComboSites[i] = ThisNode.attributes["siteName"];
ComboURLs[i] = ThisNode.attributes["siteURL"];
//add to combo box
filmmaker.addItem(ComboSites[i], ComboURLs[i]);
}
filmmaker.setChangeHandler("loadSite");
}
}
// This creates a listener for the combo box
var myComboBoxListener = new Object();
myComboBoxListener.change = function(change) {
blankMC.loadMovie(filmmaker.selectedItem.data);
};
// This adds the event listener to myComboBox
filmmaker.addEventListener("change", myComboBoxListener);


var styles = new TextField.StyleSheet();
// define styles for TextArea component
styles.setStyle("p", {fontFamily:'Verdana,sans-serif', fontSize:'14px', marginLeft:'14px', color:'#999999'});
styles.setStyle("headline", {fontFamily:'Georgia,serif', color:'#CC5536', marginLeft:'6px', fontSize:'18px'});
styles.setStyle("a", {color:'#FF6600', fontWeight:'bold', textDecoration:'underline'});
//define styles for the ComboBox component
filmmaker.setStyle("themeColor", "haloBlue");
//other themes are haloBlue and haloGreen
filmmaker.setStyle("backgroundColor", 0x000000);
filmmaker.setStyle("alternatingRowColors", [0x666666, 0xCCCCCC]);
filmmaker.setStyle("fontFamily", "Verdana");
filmmaker.setStyle("fontSize", 10);
filmmaker.setStyle("color", 0xFFFFFF);
filmmaker.setStyle("embedFonts", false);
stop();

ComboBox
Is there a way to change the border thickness of the dropdown in the comboBox component.
I would like to set it to a hairline.

Thanks,

Combobox Help?
Hi Everyone,

I am a total newbie when it comes to the Components. I am trying to do three things with the combobox.

1. I need to select several items from several comboboxes and have there cost added up and displayed.

2.I also want to have the combox selections load external swf's into the current movie. (You can see the image to the right. It will change as you make your related selctions.)

3.I then will want to send all of these selections to a database.

Any suggestions? I have gone throught the Ultrashock Component Tutorials and they have been a big help.

Attached is a link to my mock up page. I can send the fla.
Design Center

Thanks,

THS2000

ComboBox Bug
Hello Everyone,
I am dynamically populating a page with a ComboBox. It works perfectly except for one fact. When the user makes an actual selection, the selected entry doesn't show up in the ComboBox.

Anyone have any clues?

====Here's my source code:
classComboBox = window.createClassObject(ComboBox, "classComboBox", MovieDepthVars.POP_WINDOW_DEPTH+i+3);
classComboBox.labelField = "name";

for (var j=0; j<classIDs.length; j++) {
var dataString:String;
dataString = "#" + namespaces[j] + ";" + classIDs[j];
classComboBox.addItem({data:dataString, name:classNames[j]});
}

classComboBox.fontFamily = Constants.TEXTFIELDFONTFAMILY;
classComboBox.fontSize = Constants.TEXTFIELDFONTSIZE;
classComboBox.editable = false;
classComboBox.addEventListener("close", getController());
classComboBox.move(50,100);// set x,y position
classComboBox.setSize(classComboBox.width+150, classComboBox.height);
classComboBox.sortItemsBy("name", Array.CASEINSENSITIVE);
classComboBox._lockroot = true;
classComboBox.embedFonts = true;
===End of Source Code

Thanks!
Patrick.

ComboBox
I just started using flash and I cant figure out how to work the component combobox. I managed to make it to where I click anything on it and it goes to the same no matter what I click. I need to know how to link the labels of the box to multyple screens. If someone could help me with the action script i would appriciate it very much.

Combobox
hello.

for some reason, my combo boxes do not have any functionality when i test them in my browser, wither firefox or IE. they work fine when i test them in the flash authoring environment. any thoughts?


thanks

Please HELP With COMBOBOX
Hi all you !
Sorry for my bad english. I have a problem that I can't solve.

Here is what I have made:

1. I have dragged a COMBOBOX component in the stage (frame1)
Properties of the combobox:
---> Instance name: ddlProvincia
Parameters of the combobox:
---> Data: []
---> Editable: False
---> Labels: []
---> Row Count: 5

2. I have dragged a WebServiceConnector in the stage (frame1)
Properties of the WSC:
---> Instance Name: objWebServiceProvince
---> WSDLURL: http://stosaws.mktgstreet.com/Tabelle.asmx?WSDL
---> Operation: GetTableProvince

GetTableProvince() - Return an array like this:
result[0] -> Id
result[1] -> Id regione
result[2] -> Provincia (Complete Name of the City)
result[3] -> Provincia (Short Name of the City)

3.Attached to the COMBOBOX there is this script:

on(results){
_root.ddlProvincia.data = results[0];
_root.ddlProvincia.labels = results[2];
}


4. In the frame1 I have the following script:

stop();
import mx.services.*;
_root.objWebServiceProvince.trigger();

lo = new Object();
lo.change = function (evt) {
trace("Selected data is: " + evt.target.getValue());
trace(" Label = " + evt.target.selectedItem.label);
trace(" Data = " + evt.target.selectedItem.data);
}
ddlProvincia.addEventListener("change", lo);

THE PROBLEM:
I Need to access the Labels but also the Data of the combobox, but while evt.target.getValue() returns me something (the label) when I select something from the combobox (change), the two istructions evt.target.selectedItem.label and evt.target.selectedItem.data return me UNDEFINED !

WHY ??? Please Help Me !

If it can help I have uploaded the FLA

THANX A LOT !

Giulio

Copyright © 2005-08 www.BigResource.com, All rights reserved