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




Loading Combo Box



Ok, I'm loading an external swf into an empty movie clip when I click a button. The external swf has a combo box in it. If I click the button, everything loads just fine, but say if I were to click it again, the external swf always moves to the top left corner of the page. And it only does that of the combo box in the external swf. I deleted the combo box and everything works fine. Has anyone ever came across anything like this? Thanks.



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 11-17-2004, 02:58 PM


View Complete Forum Thread with Replies

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

Loading A Combo Box From Php
Hey everyone,

I am currently developing an mp3 player for my sight which uses php to access my mp3 files.

My php is working good but I have one problem....

I am attempting to load a combo box from the directory listing i have received from my php script.

My data from my php is as follows...

&direct0=somedirectory&direct1=somedirectory...etc all the way up to &direct151=somedirectory.
I am trying to figure out a way to loop to load my combo box. Is there an easy way to change which variable I am loading?

this works artist.addItemAt(0,phpload.direct1,phpload.direct1 );

I dont want to repeat this 150 times...=(

I have tried this setting i to a known value...(and numerous other things..)
pointer = this["phpload.direct" + i];
artist.addItemAt(i,pointer,pointer);


Hope this makes some sort of sense

Thanx in advance
mrpantz

Loading Jpg's From A Combo Box
The file below shows the trouble that i'm having. I need to change the current file which changes the color of the t-shirts using color codes that are preset, to a better looking meathod of displaying actually t-shirts jpgs. When the user selects a color eg red i need red t-shirt from the libary to be displyed rather then the current way it is set up.

Can this be done?

http://opax.swin.edu.au/~403945/example.fla

Loading Jpg's From A Combo Box?
I need the combo box which is included in the below file to load each jpg as it is selected. this is the code i am using:

if (colorList.getSelectedItem()==Red){
gotoAndPlay(red);
}
else if (colorList.getSelectedItem()==Blue){
gotoAndPlay(blue);
}
else if (colorList.getSelectedItem()==Yellow){
gotoAndPlay(yellow);

Where colorlist is the comob box's instance name and yellow, red , blue is the frame labels.

It is still not working however and all my labels are correct, this is the fla:

http://opax.swin.edu.au/~403945/example2.fla

does any1 have any ideas?

Loading Combo Box
Ok, I'm loading an external swf into an empty movie clip when I click a button. The external swf has a combo box in it. If I click the button, everything loads just fine, but say if I were to click it again, the external swf always moves to the top left corner of the page. And it only does that of the combo box in the external swf. I deleted the combo box and everything works fine. Has anyone ever came across anything like this? Thanks.

Loading Combo Boxes
I've got a bunch of combo boxes that I need to load with the same values. I don't have the complete list of values at the moment, and it's a real pain to go back through each one and type in all the options and values. I thought that I might be able to make some sort of parent-symbol that had the ChangeHandler and all of the options in it, and then just add instances of that to my page but I couldn't figure out how to get that working. Is there some way for me to just write a script that will go to each of the 10 drop downs and populate them? I need a better way to maintain the lists than manual control. Thanks!

Loading A Combo-box With Dates...
Good day webmates. I have a question:

I need that my combobox, automatically loads this month and the next 10 months.. in example:

+--------------------------------------+
| August 2007 / |
+--------------------------------------+
| September 2007 |
| October 2007 |
| November 2007 |
| December 2007 |
| ......... |
| August 2008 |
+-------------------------------------+

How can I do it ? I will appreciate your help, thanks in advance,

Loading Ext. SWF Into ScrollPane W/ Combo Box
Was wondering if someone could help me with this, I have set up a combo box in which each item in the box controls which external .swf is loaded into a scrollpane. Any ideas?

Loading A TXT File From Combo Box.
I was just trying to get this combo box feature working... how can i load an external txt file .. i.e april6.txt into a dynamic scrolling txt box by using the combo box component.

Combo Box Component--loading In The Values?
I have several Combo Boxes to make for a search engine and a registration form, and each has a lot, in 2 cases 96, possibilities, and the possibilities are going to be constantly changing.

Can I load the values in to an MX Combo Box Component from say a text file or some other back-end service?

Worst case scenario, I've already entered the initial values into my Access database, so is there a way I can copy and paste that info somehow into the Combo Box? Can't seem to for trying...

They're all single values, like building addresses, and type of business, i.e., single, simple fields...just lotsa 'dem

A very simple tutorial on this might help me out a lot...

Thanks as always.

Shawn

Targeting A Frame And Loading A Url From Combo Box
Hi there I'v been having trouble with this a bit.. i'm trying to make a combo box load url's in a html-framed page. The Target name of the HTML-Frame is "MAIN" Now What code would i add to this to load up html files into a frame. The data is wrong i'll just put the whole url in there eg, www.masons.org.nz/002.html or something like that.

I can't find any info in the micromaedia help. because it's all dealing with targets and frames in action script not html. I'm a Bit lost.

cb.dataProvider = [
{label:"Brickie Trowels", data:"btrowell02.swf"},
{label:"Bolt Cutters", data:"http://www.masons.org.nz/002.html"},
{label:"Chisels", data:"003.swf"},
{label:"Crow Bars", data:"http://www.masons.org.nz/001.html"},
{label:"Hammers", data:"btool04.swf"},
{label:"Jointers", data:"btool022.swf"},
{label:"Knifves", data:"013.swf"},
{label:"Lines & Chork Lines", data:"015.swf"},
{label:"Levels", data:"btool02.swf"},
{label:"Marking Tools", data:"018.swf"},
{label:"Nips", data:"019.swf"},
{label:"Rulers", data:"020.swf"},
{label:"Levels", data:"btool02.swf"},
{label:"Sliding Bevels", data:"012.swf"},
{label:"Snips", data:"023.swf"},
{label:"Staplers", data:"024.swf"},
{label:"Squares", data:"025.swf"},
{label:"Tapes", data:"026.swf"},
{label:"Tools Boxers", data:"027.swf"}
];
cb.editable = false;
cb.selectedIndex = 0;
cb.addEventListener("change", form1);
function form1 (){
main.target = cb.value;

// some where here i need to change something. not sure
// what tho.

}

Loading A Movie Breaks Its Combo Box
I have a strange combo box error.

In my .fla with the form, the drop down/scroll bar portion of the combo box work fine.

But when my parent movie loads the movie with the form, the combo boxes will no longer drop down.

I'm thinking it has to do with a depth() problem but I'm not sure. Any one else experienced this?

Issue With Loading A Combo And Tabing Out
I am loading some combo boxes from an xml file like so:

ActionScript Code:
monCbo.selectedIndex = this.childNodes[0].childNodes[0].attributes.mo;
but if I tab "across" one of the combos it becomes blank. If I actualy select something in the combo and tab across it nothing happens...

very lost here. any ideas?

Help Loading Dynamic Text With Combo?
Hi

I am trying to use the combo box component to dynamically load text into a text area on the stage.
I have set up and populated my combo box and used the on(Change) function to navigate to a url just to see if it works and it does.

I have run through the loading text dynamically tutorial on this site which is also great!

Now I would like to put the two together so when a user selects an option from the combo the contents of the texfile is displayed in the text area.
I have tried this but have fallen at the first step!


I have published the html and links to the fla here;

http://www.amdsystems.co.uk/dev/load%20text.html

Any help would be great - just a beginner so please be gentle.

many thanks for your time!

Joe

Loading JSON Data In A Combo Box
I'm trying to load some JSON data into a combo box from my website. I have the url with a .js ending, but so far the combo box sees it as a string rather than as a source of infoz.

JSON data help has been hard to find, so far. Thanks for any help you can give.

Loading Dynamic Data From A Combo Box
I am trying to load data from a combo box to a txt field. I am having a hang up with getting the xml file to load the content of my txt file and not the name...

But now when I extract all the swf and xml file & etc. it works what does that mean?

Also, how do you add quotes with out it the loaded content going blank?

Loading Data Into Combo Box From HTML
I saw the post about loading a combo box from SQL and I thought to myself that must be helpfull, but, ah... no.

Ok, I basically know enough to be dangerous. I understand certain thongs, but not really how to put them together, and I hoping someone out there will just give me a little bit of organization.

I have written a fairly extensive intranet in PHP and MySQL, but in order to navagate to anywhere within it within three clicks, I basically have a ton of links at the top of each page, eating a lot of real estate. Not Good.

The trouble is, the ENTIRE web site is db driven. Some stuff (different sections, links, contacts and archives, etc) are tied to the groups the logged in user is in, and some stuff (application defaults, preferences, etc) are tied to the user. When I wrote the site, I wrote it with the idea that nothing is available by default, and you only get what is specifically assigned.

On the light side, I wrote a navigation panel in flash. It's small, easy to navigate, and I think it will add order where there was some chaos. This is good.

As I said, everything is data driven, so I have to figure out how to pump the data in. Since I don't want to write to an external file, I'm guessing I need to build PARAM tags and add attribute/value pairs to the EMBED tag inside the OBJECT tag. I can do that very easily. Then it seems I need to do something with loadvariables, but I'm not sure what nor do I know where to put the actionscript.

One of the things that puzzles me is how do you keep the swf from reading the variables over and over? Put the actionscript in a layer by itself? But what happens when it loops?

Anyway, TIA. Wether I get an answer or not, I will probably troll this forum. I can help with networking, PHP, MySQL.

Combo Box Links Loading In Level/layer 2
is there any way i can make combo box links load into the second layer?

link.addItem("LOAD", new Array("http://www.Load.com/load.swf"));

that is the type of setup i am using now but would like to make the load.swf file, load into the second layer/level

instead it just loads the entire movie.

If anyone could assist i would appreciate it.

thanks

Loading Fonts Into Textfield Using The Combo Box Component?
Ok Im usng mx, but does anyone know if its possible to load fonts from from a server into a textfield via the combo box, Im no great coder by no means but Im trying to build a small app where a user can type in a name and choose a font from a list I have stored on my webspace so it loads into the text field so the user then types in their selected font.

Im trying to run before I walk Im sure, I have sourced some code but it only uses the default users system fonts.

Any advice would be great.

Combo Box Selection Loading A Movie Clip
Hello and thank you all for your time and knowledge. I am attempting to use a combo box in the following manner. Upon selecting a label from the box, i would like to load a movie clip of a photo gallery, at which time the photos would be available to click and enlarge. I am very new to this component and I am not sure how to code the selection to load a movie clip. Thanks for any input!

Regards,
Mark

Loading Text File Into Combo Box - Using Zinc
Hello,

I've been searching the forums but can't find anything that answers this so I wondered if anyone can help me.

I've created a Flash movie where the user chooses a colour from a combo box, and on the press of a button the results appear in a text box and a square is coloured in with the chosen colour. Then they can click on a 'save' or 'save as' button to save the results to a text file. They can then load the text file back in and the saved results are displayed in the text box. I've used Zinc to do this bit.

This all works fine, but where I'm stuck is getting the loaded results to also change the coloured square and the combo box. For example the user could select 'blue' and then save it as a text file - they could then close the application and come back to it later. When they come back to it, they can reload their text file containing the 'blue' answer and it puts thae word 'blue' into the text box. But the square is still white and the combo box still shows its default of 'choose colour'. I'd like the combo box and the square to read what is in the text box and change accordingly, eg. the box to turn blue and the combo box to have blue selected.

The attached file might explain it more clearly - ignore the design, I'm just trying to get the code sorted first!

If anyone can help or point me in the right direction I'd be very grateful.

Thanks very much.

Problem Loading External Swf's Via Combo Box Values
I'm trying to load some external swf's based upon a combo box selection and it's not working.

Here is what I have setup so far:

2 layers. 1 frame.

1st layer is for my main script:
function loadMovieClip () {
if (_root.color_combo.getValue() == Purple) {
_root.blank.loadMovie("earrings/earring_00001.swf", 1);
} else if (_root.color_combo.getValue() == Green) {
_root.blank.loadMovie("earrings/earring_00002.swf", 1);
}
}

2nd layer has two things:
1. blank movieclip with the instance name of "blank"
2. combo box with the following values: (Blue,Yellow,Green,Red,Purple) and instance name of "color_combo". Also the combo box has the following script:

on (release) {
_root.color_combo.setChangeHandler("loadMovieClip" );
}

This project is one directory up from the directory where the files I am trying to load are located. (../ProjectDirectory/earrings/..) So I think I have that setup right.

When I test the movie there are no errors but selecting either "Green" or "Purple" has no effect. Nothing happens. I am wondering why.....

Any help would be appreciated.
Thanks.

Video Tut, Loading Into A Containermc And Cant Select Combo
I created the video player from lee's tuts and am using it in another movie. It get loaded into a container movie clip but the combo box isnt selectable. The buttons for playing, pausing, rewinding, and scrubbing all still work though.

Anyone know why?

Thanks!

Loading Differnt Xml Files With XML Connector Object With Combo Box
I'm trying to populate a datagrid with xml data.  I've used the xml connector and have succesfully populated the datagrid.  I need a combo box at the top and with each click load a different .xml file into the data grid.  ??

[MX04] Loading Variables From Text File Into Array And Combo Box
Haven't been here for a while, but I will try and reciprocate any help.

I'm loading a long list of variables from a text file (delineated by "|" and line breaks) into an array, and populating a combo box dynamically. Everything works fine locally, but when playing off of the server, only the first line is loaded from the text file.

This code is running in the first and only frame of a child movie to the root. I've experimented with moving the code to the root, over multiple frames, and using loadVariables with onLoad--all variations work locally but not on the server.

-----------------------

_lv = new LoadVars();
_lv.onLoad = function() {

// clean up text sting
var_temp_array = unescape(this).split("=&onLoad=");
var_temp_string = var_temp_array[0].split('
').join('
');

// make array
var_temp_array = var_temp_string.split('
');

_global.devs = new Array();

for (a=0; a < var_temp_array.length; a++) {
devs.push(var_temp_array[a].split('|'));
box.cbNew.addItemAt(a, (a+1)+". "+devs[a][1], a);
}
}

_lv.load("data_post.txt");

---------------------
Any help is much appreciated.

Populate Combo Box Values Using Another Combo Box Instance
Hi,
I have two combo boxes. The first combo box's data is added through an XMLConnector object, the second combo box, I would like to populate through an on (change) event in the first combo box. The items in the second combo box would relate to the selection made in the first combo box.

I have attempted the following within the Actions for the first combo box:

on(change) {
switch(this.value) {
case "value1":
comboBox2.addItem({Label:"Label",Data:"Data"});
break;
} // end switch
} // end event

which is not working.

should an event be dispatched by comboBox1 and a listener be attached to comboBox2? I can't find any examples of this on the internet.. but i might be using the wrong search terms. any help with this would be greatly appreciated. Seriously, i'll buy beers.

-Thanks

Combo Box...Please Help
Hello...

I have a combo box(vtgCombo) with values that, when selected, should jump to a certain scene. I have the following code written on the first frame of the timeline which the component lies on:

indexData = new Array();
indexData[0] = {label:"Select...", data:""};
indexData[1] = {label:"The Resort", data:"Resort"};
indexData[2] = {label:"Guest Rooms", data:"Intro"};
indexData[3] = {label:"Leisure", data:"Leisure"};
indexData[4] = {label:"Restaurants", data:"Restaurants"};
indexData[5] = {label:"Meetings", data:"Meetings"};
indexData[6] = {label:"Gallery Index", data:"Index"};

// Combo box attributes
vtgCombo.setDataProvider(indexData);
vtgCombo.setChangeHandler("sceneSelector");

// Playing the scene selected
function sceneSelector(){
gotoAndPlay(vtgCombo.getSelectedItem().data);


Would this conflict in any way what parameters are set on the box? I just can't get this to work. Any help is much appreciated.

Thanks!

COMBO BOX
Can anyone point me in the right direction on how to use a combo box to load MC's or to "goto" a particualr scene within a swf? or even call an outside swf to load? I would like to have the combo box as a "quick link" feature, but keep getting stumped with the action scripting...

http://www.redjetdesign.com/highwoods/

that's where is file is that I am working on, nevermind the homepage (I only use it really to test files) I haven't even considered building my own, I work for a commerical real estate brokereage that bombards me with flash projects like this one at the URL above, 2 - 3x or more a week. Any input. Thanks!

Please Help With Combo Box
I am try to use a combo box for the first time and do not know what to do. Lets keep it simple I have a combo box with labels (1,2,3,4,5) I want when the number is selected to display that number in a text box with variable (number).
The combo box instance name is (combo1). Could someone show me what what the action script function would be also show me what to put in the change handler(I think it would just be the function call but I am unsure). Thanks in advance. This is crucial for what I want to do so I hope someone can help.

Combo Box
Hi all,

I want to use the combo box component, the thing is I want it to jump to a label withing the same timeline, is this possible or do I have to go to a http//:www..etc

Many Thanks!

XML Fed Combo Box
Just been running through the macromedia xml gallery tutorial, now want to have a combo box to select each gallery via xml. How do i set the combo box to retrieve and display xml values?

I'm new to xml in flash - go easy on me!

Thanks

Combo Box
Hey there all you flashmasters outthere,

I got a problem with a combo box. It's located in an external *.swf which is being loaded into a dynamically created holder MC [loader.loadMovie("MC_containing_Combo_box.swf")]

It's working pretty fine. There's a big problem though, since the combo box loses the labels. You can still click it (i.e. the entries) and it's still working but you cant read the labels anymore !?!?!

Has anybody had this problem too? Does anybody know how to "cure" this ?!!?

Any help will be appreciated

Natsurfer

Combo Box Help
Dear all,

Could someone please explain to me in simple terms what code i put in the main timeline to make the main movie jump to a different frame when someone selects a choice in the combo box components list.

I have set up the combo box with all the choices but i dont know how to set up the change handler.

I want it so that when someone clicks on the first choice, the movie jumps to frame 12. when they select the second choice it jumps to frame 20, and when they select the default choice nothing happens.

Thank you very much.

Combo Box Help
Can someone please help me with this pain in the arse mx component problem.

I have placed a combo box component on the stage and filled in the labels.

There are 3 labels, the first says please select a language, the second choice says german language, and the third choice says english language.

Everything is ok so far, but what i need is the actionscript that i put in the main timeline to - do nothing if the user clicks on SELECT A LANGUAGE, send the main timeline to frame 10 if the person clicks on GERMAN LANGUAGE, or sends them to frame 20 if they click on ENGLISH LANGUAGE.

I have looked everywhere for the bloody answer and all i keep finding is useless examples using the trace command.

PLEASE PLEASE try to help me.

Thank you very much.

Combo Box
hi all

ive got a bit of a problem i'm trying to imbed the font for a flash mx combo box dose anyone know how to do it??

More Combo Box ?'s
I have a combo box that is getting its information from an array, is what i need to do is have combo box 1 populate another combo box with an array based on what was clicked on.

Hopefully this makes sense.

Thanks in advance for the help

MX Combo Box
How to create combo box like macromedia.com home page. Example: go to macromedia.com, please click any one of the shortcuts in the top flash part. there u can see the combo box...Can anyone help me?

Combo Box
I want to create a combo box with a list of approx. 10 labels. I want to be able to select a label from the combo box which opens up the relevant url for my label.
e.g. - I choose "dogs" from the combo box
- "dogs.html" opens.

I can't work out how to add the url elements, hopefully someone out there can help.


Thanks,
Darren

Combo Box
Hi all,

Is there any chance to select an item from a combo box via a button?
Sounds odd I guess. What I have is some sort of a quiz where people have to chosse answers from combo boxes.
Now I want to include a hint button to reveal the answer. That's why I need to kinda select the combo box item with a button.

Any ideas?
Natsurfer

Combo Box's
How do I assign a variable to a combo box so that when the user selects and option from the combo box, it can be sent to a cgi script.

I can set a input box with a variable, but how do i do the same thing for a combo box?

Combo Box
I am using the combo box component. When a user clicks on one of the drop down buttons I want that choice to come up later in a dynamic text box. This seems like it would be easy, but I can't find an example of it. Any ideas?

gamist

Combo Box
I am trying to use a combobox as a drop-down menu I have 5 basic subjects. What I am trying to do is simply advance t a frame in the movie related to the choice made in the box....Not only can I not get this to work, when I go to test the movie no words apear in the box until I click the drop-down arrow....... Please help....

Thank you
Anthony

XML Combo Box
I'm trying to build a dropdown menu which pulls the information from an XML Document.

What I need is for the Drop Down Menus to say it's "name", but display it's "value" as a variable on another frame.

ie: dropdown consists of 3 choices:

Name: Value:
Red red.com
Blue blue.com
Green green.com

If choice Blue is chosen, on the next frame, I would need it say blue.com


Any ideas or suggestions on how to write up the xml and fla code would be very helpful.

Thanks

Combo Box/asp
I have form that uses a combobox/dropdown and i am trying to submit the value of the combobox to and asp page ; but low and behold it is not working.

code on button..

on (release) {
models.getValue();
getURL("form_test.asp", "_blank", "POST");
}

code for ASP Page

myBody = myBody & "Info Requested: "& request.form("models") & vbcrlf

any thoughts as to what i am doing wrong??

much appreciated

Best Way To Use Combo Box
Hello,

NEVER used a Combo Box before but considering using one for choosing to display one member out of a list of members as part of a truck owners site.

I have not formatted the individual member sections because what I can or cannot do with the combo box will determine how I design the sections.

My question is can you use a Combo Box to go to specific frames in the timeline, and or load movie clips and swf files.

Depending on what the responses are, I may have some more questions but this is a good place to start.

Thanks!

Help I Almost Got It (combo Box)
I am new at flash but have been a developer for about 10 years now. I have went through all of the tutorials and everything else. I have been working on getting information from an external file into a flash movie that will update a dynamic drop down box. I will try my best to explain what I have going on below.

test.txt file
contents: intCount=8&txtVar1=10&txtVar2=20&txtVar3=30&txtVar 4=40&txtVar5=50&txtVar6=60&txtVar7=70&txtVar8=80&d one=okay&

If flash I have LoadVariables layer which has a movie clip on it.
The movie clip is setup like this:
frame 1:
_parent.stop();
done = "";
loadVariables("test.txt", this, "POST");

frame 2:
if (done == "okay") {
// all variables are loaded
gotoAndStop(4);
}

frame 3:
// loop back to text if all variables are loaded yet
gotoAndPlay(2);

frame 4:
trace("==================================");
_root.section = section;
intCounter = Number(intCount);
intCounter = intCounter+1;
trace(intCounter);
for (i=1; i<intCounter; i++) {
array[i] = this["txtVar"+i];
trace(array[i]);
}
_root.Combo1Array = array;
trace("==================================");

Now on the main movie I have another layer called LoadCombo and my script here is:
trace(_root.Combo1Array[1]);

and that is it.

When I test the movie the tracing on the movie clip shows my data from the external file and I can access it in the move clip. What i read was that "_root" would put it into the main movie that is the reason why I am saying in the last frame "_root.Combo1Array = array". However the "trace(_root.Combo1Array[1])" return undefined and I am at a lot at what to do now.

I was thinking I would be able to just do a databind on Combo1 and add the Combo1Array and the drop down would be filled in.

I forgot to mention that on the layer Load Combo I have a drop down box called Combo1.

Please help!!!!!!

thanks

Combo Box & PHP
I need help with a combo box...not sure how to actually get varibles from it. I want to do a simple mail form, using PHP and Flash, however, instead of the recipient being hardcoded....I would like the end user to select a recipient from a drop down list in a combo box
I'm doing this for a company, they want end users to be able to email different departments.

How do I pass variables from a drop down box in Flash to PHP? for a typical Mail Form?

Any help is greatly appreciated!

Thanks!

How To Add A Url To Combo Box
How do you add a url to a combo box is it

on [release]
geturl...........................?

How Do I Do This Combo?
I would like to show a series of names of people, and when a user moves their mouse over a person, I would like more information about that person to appear to the right or somewhere beside the name.

I will be updating this flash movie constantly, so I would think it would be easier to load all the text data from an external .txt file. Please help me and/or include a .fla file for reference. Thanks.

Combo Box
I'm having trouble figuring out how to put script in an combo box. What I want to do is have the user be able to select what song they want playing in the background. I know how to make the labels but is there a way to write code for each label individualy so that I can for say have them select on mozart and it will play mozart.

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