Combo Boxes
Hi
I have a combo box name combo1 with labels curve and snow, My question is how do I control what happens when I click on the label names.
thanks..
FlashKit > Flash Help > Flash General Help
Posted on: 04-12-2005, 09:11 AM
View Complete Forum Thread with Replies
Sponsored Links:
Combo Boxes
Hi everybody
I have made 2 combo boxes in Flash. In first combo box I have added the names like Shirts, Blouses, Trousers, Jeans, T-shirts etc. Second combo box is containing Men, Ladies, and Children.
Let's spouse I select Jeans from 1st combo box and select Ladies from 2nd combo box then it should go to Men's Jeans section. Same action should be performed with other categories.
Will I have to use if else command or have to define veriables plz help me.
Thanks
View Replies !
View Related
&#@$^@)#$% Combo Boxes
how do i make the darn thing work.
i have a combo box ... well two actually .. but i'm sure if i can get one to work .. i can get the other.
they have 20 or so selections in them and when one is selected i want the movie to gotoAndStop on a certain frame inside another MC.
can someone please post an example or really really good instructions as i apparently am an idiot since i can't figure this out.
thanks very much in advance
View Replies !
View Related
Combo-Boxes In MX
Hi,
Having my first attempt at Action Script with Flash MX, but I'm having a few problems.
Basically, I'm trying to get it so that when an option (a person's name) is selected from a combox box, it jumps to a
certain frame. Pretty easy in theory, but I'm getting one error when I compile it, and tutorials I've seen seem to bizarrely only cater for combo-boxes in forms, hence I ask for help from you guys.
I called my combo-box instance 'member'. This is the error:
---------------------------
Scene=Scene 1, Layer=Components, Frame=1: Line 26: '(' expected
function FComboBox.getSelectedItem(member); {
---------------------------
I'm probably making a glaring mistake, and if someone could point it out I'd be grateful.
Cheers.
Here's my code:
Code:
function FComboBox.getSelectedItem(member); {
if (member == "John")
{
gotoAndStop("3");
}
else if (member == "Capuchin")
{
gotoAndStop("5");
}
else
{
gotoAndStop("7");
}
}
View Replies !
View Related
Combo Boxes PLEASE HELP ME
hi guys i need help urgently.
can someone give me a step by step instruction on how to make a combo box who's sub categories hyperlink to web pages.
If you have time id greatly appreciate your help!!!
cheers
sean
View Replies !
View Related
How Do I Use Combo Boxes In MX
Hello there, coming to ya from mighty England.....
Can Anyone out there help me, with using Combo Boxes in flash MX?
Just trying to use a simple flash component combo box out of me library!
All i want it to do, is use the combo box as a quick navaigation tool, i.e want ing it to list my different sections within my site - example: vacancies, online forms, contact us, business etc - so the user can scroll down and pick a page quickly... and then it will load the section...
Using scenes instead of load movies for each page...
Please help...... very gratefully
View Replies !
View Related
Combo Boxes?
PLEASE HELP,
I have been trawling the net trying to find a solution to my problem. I am use MX2004 Pro and need to use the combo box component for a menu in my file. I can easily create the combo box and populate it with the labels I need, and I have put my url links in the data section. my problem is I want the user to be able to select one of these options and that trigger a getURL action. HOW do I do that?
PLEASE HELP. Thanks
Lee Tempest
View Replies !
View Related
Combo Boxes
hi i have two combo boxes, one above the other, these combo boxes are loaded into level7, there are two issues happening with the boxes, and was wondering if anyone had any clues as to why this is happening
[1] the tope combobox, when open, shows the second combo thru the selections, i made sure combo 1 is a top layer while combo 2 is below on another layer. I can't get it to stop showing combo 2 throught it.
[2] i have the combo loaded into level7, on level 6 i have a menu system, for some reason when the combos options are displayed, the options are behind the menu. I tried bumping the level from 7 to like 9 and throwing some stuff into level 7 and level 8, but the issue persists,
any ideas?
thanks
View Replies !
View Related
Help Please? (Combo Boxes)
First off let me say thank you to whoever's help i will recieve.
Heres the gist of my problem in flash (8) I'm trying to create a combo box for purchasing different sized photos.
Under labels i currently have the sizes of the prints. What i need the combo box to do is redirect the websites users to paypal. I except this will be similar to hyper linking but I'm not sure.
I'm also confused on how to make a button ( like a go or purchase button) not the graphic part of the button but the parameters/action script of the button.
I'm sorry if this is confusing, as I'm new to flash.
Thanks
-eulB
View Replies !
View Related
Combo Boxes And Php
I've got to put together a quotation form and I've spent the last day trying to work out how to send info from a combobox to a php form. Could anyone point me to a tut. that explains it, or even post something to get me started, please?
View Replies !
View Related
XML And Combo Boxes
Can anyone help me understand how to set an XML sheet up with say 3 car makes (Audi, Volkswagen and Ford) and with the ActionScript needed so Flash pulls in the data and loads it into a Combo Box on my stage. I have tried using the XML connector component in Flash 8 however only seems to work on frame 1 of the maintime line. I have a contacts pages with 3 combo boxes.
The idea is the first combo box will have car makes in it.
The second combo will load in all models based on the first user selection
And finally the third combo box will load in all the types based on the second user selection.
I am really struggerling with getting the XML produced as not sure if I need mutliple XML sheets or if I can do this with just one. Then getting Flash to pull in the correct data is another task I have been trying to get my head round. I have worked out how to populate a text field with XML data but not a combo box.
Any help would be gratefully received. - TIA...
View Replies !
View Related
Combo Boxes
Hi all,
I have been trying to work out how to display a value in a combo box based on a variable. To understand what I am doing I will try to explain.
I have a combo box on Frame 1 with 3 values value1, value2 and value3. The user selects a value in the combo box which is then saved to a global variable (_global.cb1).
When the user clicks the next button they are taken to another frame (Frame 2) on the same timeline, with another question. If the user clicks the previous button they are taken back to the last question on Frame 1. I want the value they selected orginially fom the combo box to be already selected. Basically the information held in _global.cb1 needs to be displayed as selected in the combo box.
Any help would be greatly appreciated.
View Replies !
View Related
Combo Boxes?
I have a Flash piece with several combo boxes in it.
Let's say the instance name of one of the combo boxes is "age".
I want to do a few things:
1) See what the value of the combo box is.
2) Set the value of the combo box
3) Set the font that appears in all combo boxes throughout the piece. If there's a global command for this, that would be ideal.
Thanks in advance for any help.
View Replies !
View Related
XML And Combo Boxes
Hi,
I have managed to get the first part of my app working, however would appreciate some help on getting the second part completed as after about 4 hours of trying various ways I just got myself in a total mess.
Firstly let me set the scene: I have three combo boxes (cb_country, cb_region & cb_province) and three dynamic text boxes (countrycode_txt, regioncode_txt & provincecode_txt. The app is to help users ascertain what ISO country, region and province code is required as they cannot input into a system the name it will only take the ISO code.
The AS2 code reads in an xml sheet, I have attached a snippet of the code below. cb_country works fine reads in the correct node description and if selected inserts the data label into a countrycode_txt.
What I am trying to do is extend this so if the user selects United Kingdom from cb_country, cb_region populates with the regions within United kingdom. Once they select the region cb_province populates with provinces within that region. (e.g. United Kingdom, England, Cambridgeshire) The text areas auto populate with the correct ISO code relating to the selected item (e.g. GB, 900, 618).
All of this information is stored in the xml file and I am totally stuck on how to get this rest of the information out and into the correct component.
I would really appreciate any help provided to complete this project.
Kind regards
David.
Attach Code
<?xml version="1.0" encoding="utf-8" ?>
<etscrp lastupdate="16/09/2008">
<country description ="Australia" data="AU">
<region description ="Ashmore and Cartier Island" data="144" />
<region description ="Australian Captial Territory" data="145" />
<region description ="Coral Sea Islands Territory" data="146" />
<region description ="Northern Territory" data="147" />
<region description ="New South Wales State" data="148">
<province description ="New South Wales I." data ="1" />
<province description ="Lord Howe I." data ="2" />
</region>
<region description ="Queensland State" data="149" />
<region description ="South Asutralia State" data="150" />
<region description ="Tasmania State" data="151" />
<region description ="Victoria State" data="152"/>
<region description ="Western Australia State" data="153" />
</country>
<country description ="United Kingdom" data="GB">
<region description ="Channel Island" data="899">
<province description ="Jersey Island" data ="605" />
<province description ="Guernsey Island" data ="606" />
<province description ="Alderney Island" data ="607" />
<province description ="Brechou Island" data ="609" />
<province description ="Great Sark Island" data ="609" />
<province description ="Little Sark Island" data ="610" />
<province description ="Herm Island" data ="611" />
<province description ="Jethou Island" data ="612" />
<province description ="Lihou Island" data ="613" />
</region>
<region description ="England" data="900">
<province description ="Avon" data ="614" />
<province description ="Bedfordshire" data ="615" />
<province description ="Berkshire" data ="616" />
<province description ="Buckinghamshire" data ="617" />
<province description ="Cambridgeshire" data ="618" />
<province description ="Cheshire" data ="619" />
<province description ="Redcar and Cleveland" data ="620" />
<province description ="Cornwall and Isles of Scilly" data ="621" />
<province description ="Cumbria" data ="622" />
<province description ="Derbyshire" data ="623" />
<province description ="Devon" data ="624" />
<province description ="Dorset" data ="625" />
<province description ="Durham" data ="626" />
<province description ="East Sussex" data ="627" />
<province description ="Essex" data ="628" />
<province description ="Gloucestershire" data ="629" />
<province description ="Hampshire" data ="630" />
<province description ="Hereford and Worcester" data ="631" />
<province description ="Hertfordshire" data ="632" />
<province description ="Humberside" data ="633" />
<province description ="Isle of Wight" data ="634" />
<province description ="Kent" data ="635" />
<province description ="Lancashire" data ="636" />
<province description ="Leicestershire" data ="637" />
<province description ="Lincolnshire" data ="638" />
<province description ="Norfolk" data ="639" />
<province description ="Northamptonshire" data ="640" />
<province description ="Northumberland" data ="641" />
<province description ="North Yorkshire" data ="642" />
<province description ="Nottinghamshire" data ="643" />
<province description ="Oxfordshire" data ="644" />
<province description ="Salop (Shropshire)" data ="645" />
<province description ="Somerset" data ="646" />
<province description ="Staffordshire" data ="647" />
<province description ="Suffolk" data ="648" />
<province description ="Surrey" data ="649" />
<province description ="Warwickshire" data ="650" />
<province description ="West Sussex" data ="651" />
<province description ="Wiltshire" data ="652" />
<province description ="Greater London" data ="653" />
<province description ="Greater Manchester" data ="654" />
<province description ="Merseyside" data ="655" />
<province description ="South Yorkshire" data ="656" />
<province description ="Tyne and Wear" data ="657" />
<province description ="West Midlands" data ="658" />
<province description ="West Yorkshire" data ="659" />
</region>
<region description ="South Georgia Island" data="901" />
<region description ="Northern Ireland" data="903">
<province description ="County Antrim" data ="660" />
<province description ="Ards" data ="661" />
<province description ="County Armagh" data ="662" />
<province description ="Ballymena" data ="663" />
<province description ="Ballymoney" data ="664" />
<province description ="Banbridge" data ="665" />
<province description ="Belfast" data ="666" />
<province description ="Carrickfergus" data ="667" />
<province description ="Castlereagh" data ="668" />
<province description ="Coleraine" data ="669" />
<province description ="Cookstown" data ="670" />
<province description ="Craigavon" data ="671" />
<province description ="County Down" data ="672" />
<province description ="Dungannon" data ="673" />
<province description ="County Fermanagh" data ="674" />
<province description ="Larne" data ="675" />
<province description ="Limavady" data ="676" />
<province description ="Lisburn" data ="677" />
<province description ="County Londonderry" data ="678" />
<province description ="Magherafelt" data ="679" />
<province description ="Mourne" data ="680" />
<province description ="Moyle" data ="681" />
<province description ="Newtownabbey" data ="682" />
<province description ="North Down" data ="683" />
<province description ="Omagh" data ="684" />
<province description ="Starbane" data ="685" />
<province description ="Cuntry Tyrone" data ="686" />
</region>
<region description ="Scotland" data="904">
<province description ="Borders Region" data ="687" />
<province description ="Central Region" data ="688" />
<province description ="Dumfries and Galloway Region" data ="689" />
<province description ="Fife Region" data ="690" />
<province description ="Grampian Region" data ="691" />
<province description ="Highland Region" data ="692" />
<province description ="Lothian Region" data ="693" />
<province description ="Orkney Region" data ="694" />
<province description ="Shetland Region" data ="695" />
<province description ="Strathclyde Region" data ="696" />
<province description ="Tayside Region" data ="697" />
<province description ="Western Isles Region" data ="698" />
<province description ="Midlothian" data ="8258" />
</region>
<region description ="Sandwich Island" data="905" />
<region description ="Wales" data="906">
<province description ="Clwyd (preserved County)" data ="699" />
<province description ="Dyfed (Preserved Country)" data ="700" />
<province description ="Gwent (Preserved Country)" data ="701" />
<province description ="Cyngor Gwynedd" data ="702" />
<province description ="Mid Glamorgan (Preserved Country)" data ="703" />
<province description ="Powys" data ="704" />
<province description ="South Glamorgan (Preserved Country)" data ="705" />
<province description ="west Glamorgan" data ="706" />
<province description ="Isle of Anglesey" data ="8206" />
<province description ="Bridgend County Borough" data ="8207" />
<province description ="Caerphilly County Borough" data ="8208" />
<province description ="City and County of Cardiff" data ="8209" />
<province description ="Carmarthenshire County" data ="8210" />
<province description ="Ceredigion County" data ="8211" />
<province description ="Conwy County Borough" data ="8212" />
<province description ="Denbighshire County" data ="8213" />
<province description ="Flintshire County" data ="8214" />
<province description ="Merthr Tydfil County" data ="8215" />
<province description ="MonmouthShire county" data ="8216" />
<province description ="Neath Port Talbot County" data ="8217" />
<province description ="Newport County Borough" data ="8218" />
<province description ="Penbrokeshire County" data ="8219" />
<province description ="Rhondda Cynon Taff County Borough" data ="8220" />
<province description ="City and County of Swansea" data ="8221" />
<province description ="Torfaen County Borough" data ="8222" />
<province description ="Vake of Glamorgan" data ="8223" />
<province description ="Wrexham County Borough" data ="8224" />
</region>
</country>
</etscrp>
View Replies !
View Related
Combo Boxes?
hey Ive got a combo box in my site and can't seem to get it too work. Ive searched all around for solutions and have tried them; except they all dont seem to work. Is there a difference between the MX and MX 2004 combo boxes. I have 2004 and I don't know the code I need to make links off of each item in the combo box. Could someone help me out?
View Replies !
View Related
Combo Boxes
First of all how would i add options to a combo box?
Then i want to make each function execute an application on my hard drave when clicked on.
If u can could u make we a .fla file that has a combo boxin it so i can see the code u used to do it.
Thanx
View Replies !
View Related
Xml And Combo Boxes
hey all,
I have two combo boxes on my stage both populated with xml. The first one is populated with xml that has values 'name' and 'value'. The names are populating perfectly. However, now i want to be able to load a different xml file when an item in the combo box is selected, which will populate the second combo box. The problem is, i cannot figure out how to pass the value to the xml.load(). My AS so far is below:
var stateXML:XML = new XML();
stateXML.ignoreWhite = true;
stateXML.onLoad = function() {
var howMany:Array = new Array();
howMany = this.firstChild.childNodes;
if (howMany.length>0) {
for (var i:Number = 0; i<howMany.length; i++) {
statecb.addItem(this.firstChild.childNodes[i].attributes.name);
}
}
statecb.onSelect = function() {
town_xml = new XML();
town_xml.load(town);
};
};
stateXML.load("http://www.townfreebies.com/states.xml");
As you can see, statecb.onSelect is supposed to load 'town', which is an xml file name bye 'value' in the first xml file. Anyone know how i can do this? I know this will be simple, once i can harness the attribute.value . Sorry if this is confusing.
Thanks all,
Mat
View Replies !
View Related
AS 2 Combo Boxes
I'm trying to allow users to be able to search through their region and suburb through combo boxes (see below link). I want to have "Combo Box A" - in this case, "Region" - to change "Combo Box B" - in this case, "Suburb".
Please see the following link before reading on:-
http://img118.imageshack.us/img118/1442/comboboxissuewc9.swf
Basically, I want a user to click "Eastern Suburbs", for example, and for the combo box below it to change and display only suburbs in that region. And so on and so forth for the other regions.
Only I'm not sure how to do this. I have tried many different approaches, including trying to make separate combo boxes, turning them into movies, and then making them swap with each other, as well as trying several different combo box functions.
Does anyone know how to do this?
I'm trying to allow users to be able to search through their region and suburb through combo boxes (see below link). I want to have "Combo Box A" - in this case, "Region" - to change "Combo Box B" - in this case, "Suburb".
Please see the following link before reading on:-
http://img118.imageshack.us/img118/1442/comboboxissuewc9.swf
Basically, I want a user to click "Eastern Suburbs", for example, and for the combo box below it to change and display only suburbs in that region. And so on and so forth for the other regions.
Only I'm not sure how to do this. I have tried many different approaches, including trying to make separate combo boxes, turning them into movies, and then making them swap with each other, as well as trying several different combo box functions.
I am using Flash 8 Professional and I currently have got up to the following with coding (see attached).
Does anyone know how to do this?
Attach Code
stop();function setRegion(evt:Object) { if (evt.target.selectedIndex > 0) { suburb.replaceItemAt("All Regions, all", data, 0); suburb.replaceItemAt("... all 2", data), 1; suburb.replaceItemAt("... all 3", data, 2); } if (evt.target.selectedIndex > 1) { suburb.replaceItemAt("Inner City, all", data, 0); suburb.replaceItemAt("... city 2", data, 1); suburb.replaceItemAt("... city 3", data, 2); } if (evt.target.selectedIndex > 2) { suburb.addItem("North, all", data); suburb.addItem("... north 2", data); suburb.addItem("... north 3", data); } if (evt.target.selectedIndex > 3) { suburb.addItem("East, all", data); suburb.addItem("... east 2", data); suburb.addItem("... east 3", data); } if (evt.target.selectedIndex > 4) { suburb.addItem("South East, all", data); suburb.addItem("... south east 2", data); suburb.addItem("... south east 3", data); } if (evt.target.selectedIndex > 5) { suburb.addItem("West, all", data); suburb.addItem("... west 2", data); suburb.addItem("... west 3", data); }}region.addEventListener("change", setRegion);
View Replies !
View Related
Combo Boxes?
hey Ive got a combo box in my site and can't seem to get it too work. Ive searched all around for solutions and have tried them; except they all dont seem to work. Is there a difference between the MX and MX 2004 combo boxes. I have 2004 and I don't know the code I need to make links off of each item in the combo box. Could someone help me out?
View Replies !
View Related
Combo Boxes
First of all how would i add options to a combo box?
Then i want to make each function execute an application on my hard drave when clicked on.
If u can could u make we a .fla file that has a combo boxin it so i can see the code u used to do it.
Thanx
View Replies !
View Related
Combo Boxes?
PLEASE HELP,
I have been trawling the net trying to find a solution to my problem. I am use MX2004 Pro and need to use the combo box component for a menu in my file. I can easily create the combo box and populate it with the options I need. my problem is I want the user to be able to select one of these options and that trigger a getURL action. HOW do I do that?
PLEASE HELP. Thanks
Lee Tempest
View Replies !
View Related
Combo Boxes Scripting
Hi there, im trying to make an easy scheduler with 3 combo boxes months, days, time: when someone clicks on a certain month, i want days labels/values to change to the amount of days that month has. Any ideas on how to script this? After taking so many programming languages I have no idea what to use, any easy help here? Greatly appreciated.
View Replies !
View Related
Fonts In Combo Boxes
Hi,
I am having real problems with a combo box component at the moment. I want to be able to alter the font the options display in for a project I am working on at the moment. The project uses Lucida Sans for all its text, but I cant figure out how to make the combo box use this font or change the font colour for the options.
Please help if you can
Systems
View Replies !
View Related
Excel/XML And Combo Boxes
I have a excel spreadsheet that I need to have a combo box access and access a telnet window.
I need 2 combo boxed to access the same sheet. I have 3 listings :1 - state....2 - location..... 3 - IP Address (referring to location)
I need the 1st box to narrow down the location selections and the 2nd box to have the locations of that state.
If at all possible, I need to have each of the location listings to access the ip address. I can get flash mx to access telnet but I need a way to get the locations box to input the IP Address of the location so that the telnet command will access the selected IP.
I know this is a lot to ask and I'm pretty sure I will need to learn some other element like MySQL or php but I figured I need as much input as possible.
View Replies !
View Related
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!
View Replies !
View Related
Flash Mx - Combo Boxes
I need the coding for when a user clicks on a selected option in the combobox dropdown menu the timeline playhead jumps to another frame.
Can't find it in the actionscript dictionary.
Thanks your help
kleb
View Replies !
View Related
Creating Combo Boxes
Now that I've got my loops sorted, thanks to catbert303 and k/smaert for that, I can't figure out how to create a combo box in AS. I've looked in the help docs and I can see how to additems to the combo box but I need to create it in the first place - or do I have to create a combobox, name each instance and then use my script to refer to each instance and populate it with my items?
Thanks, Alex
View Replies !
View Related
Flash Combo Boxes
Is it possible to change the appearance of combo boxes in flash mx 2004 ? I'd like them to be a bit smaller, smaller fonts, change the colours and maybe not have rounded corners.
Many thanks.
Simon
View Replies !
View Related
Listeners For Combo Boxes
Thanks Flash Kit for helping me develop a listener for my combo box but now I need it to work for three combo boxes on the same timeline. Here is what I have:
// What image do they select?
function change(evt) {
select = evt.target.selectedItem.label;
imagefind = "image/"+select;
loadMovie(imagefind, _root.edit.holder.image);
_root.edit.holder.gotoAndPlay("edit");
if (select == "UPLOAD NEW IMAGE") {
getURL("javascript:NewWindow=window.open('upload.p hp','newWin','width=600,height=270,left=0,top=0,to olbar=No,location=No,scrollbars=No,status=No,resiz able=No,fullscreen=No'); NewWindow.focus();void(0);");
_root.edit.holder.gotoAndStop("1");
}
if (select == "NO IMAGE" || select == "-- select image --") {
_root.edit.holder.gotoAndStop("1");
//SET TYPE properties
_root.edit.inputTxt.type = "input";
_root.edit.inputTxt.selectable = true;
}
}
_root.edit.imagecombo.addEventListener("change", this);
Now this works great for my combo box called imagecombo but how do I write a new function for a combo box called time_cb?
I tried to just change the
function change(evt) {
select = evt.target.selectedItem.label;
to
function change(new) {
select = new.target.selectedItem.label;
but I think that evt can't be messed with right? So how do you write two or three event listeners on the frame? Sorry if this is confusing?
View Replies !
View Related
Arrays And Combo Boxes
Hello all,
have another situation, i have an array that i am trying to place into a combo box, i have traced the array to make sure that the objects are there but for some reason i cant get them to show in the combo box
Code:
var fonts:Array = new Array(new Arial(), new ArialB(), new ArialBold(), new Bookman(), new BrushScript(), new ComicSans(), new Hobo(), new Papyrus(), new Times());
var fonts_array:Array = new Array(new Arial(), new ArialB(), new ArialBold(), new Bookman(), new BrushScript(), new ComicSans(), new Hobo(), new Papyrus(), new Times());
for (var i:int = 0; i < fonts.length; i++) {
fonts_array.push(new String(fonts[i].fontName));
cb1.dataProvider = new DataProvider(fonts_array);
is there something i am missing??
View Replies !
View Related
Multiple Combo Boxes
Hi all,
New to this forum. Hoping someone might be able to help or point me in the right direction. I`m trying to use three combo boxes, with each combination of choices taking the user to a different frame. Is this possible? Any hints of where to start?
Many thanks in advance!
View Replies !
View Related
Getting Dates Using Combo Boxes
I am trying to get a start date and an end date from a combo box. I have the following AS3 code but it doesn't work. startDay, startMonth etc are all comboboxes with appropriate data. Just can't figure the syntax to make it work.
var start_date = new Date(startYear.selectedIndex,startMonth.selectedIndex,startDay.selectedIndex);
var end_date = new Date(endYear.selectedIndex,endMonth.selectedIndex,endDay.selectedIndex);
then i want to calculate and display the total days
var nDiffDays = Math.floor((end_date - start_date)/86400000);
totalDays_txt = nDiffDays;
Any help appreciated.
View Replies !
View Related
Flash Mx - Combo Boxes
I need the coding for when a user clicks on a selected option in the combobox dropdown menu the timeline playhead jumps to another frame.
Can't find it in the actionscript dictionary.
Thanks your help/magyar
View Replies !
View Related
Problem With Combo Boxes And XML
I am currently trying to get an XML file to populate 2 combo boxes. It is creating the array and populating the first one (SystemCMB) just fine and I see the first entry in the second combo box (FeedCMB) but when I make a selection in SystemCMB, nothing happens in FeedCMB. In the last step the FeedCMB is supposed to effect another FreqCMB. This worked fine in AS1 with Flash6 player. My script is pasted below.
I can't find anything in the help section about setChangeHandler or setDataProvider. Have these been deprecated?
Any thoughts? Any help at this point would be appreciated. I've been staring at this for days....
myXML = new XML();
myXML.ignoreWhite=true;
myXML.onLoad = parseXml;
myXML.load("XMLdocument.xml");
function parseXml() {
if(myXML.firstChild.hasChildNodes()){
Arr_Feed = new Array();
Arr_System = new Array();
for(i=0;i<myXML.firstChild.childNodes.length;i++){
Arr_System[i]=myXML.firstChild.childNodes[i].attributes.sys;
Arr_temp_Feed=new Array();
for(j=0;j<myXML.firstChild.childNodes[i].childNodes.length;j++){
Arr_temp_Feed[j]=myXML.firstChild.childNodes[i].childNodes[j].attributes.typef;
Arr_temp_Frequency=new Array();
}
Arr_Feed[i]=Arr_temp_Feed;
}
SystemCMB.setDataProvider(Arr_System);
SystemCMB.setChangeHandler("changeDetails");
changeDetails();
FeedCMB.setDataProvider(Arr_Feed[SystemCMB.getSelectedIndex()]);
FeedCMB.setChangeHandler("changeDetails2");
changeDetails2();
FreqCMB.setDataProvider(Arr_Frequency[FeedCMB.getSelectedIndex()]);
}
delete myXML;
}
View Replies !
View Related
Link Combo Boxes
Hi all,
I'm writing a flex app which takes in something like the following xml
<VersionList>
<Version>
<Release name="7.11.0">
<Snap name="S05"/>
<Snap name="S11"/>
<Snap name="S12"/>
<Snap name="S14"/>
</Release>
</Version>
<Version>
<Release name="7.12.0">
<Snap name="S12"/>
<Snap name="S19"/>
<Snap name="S28"/>
</Release>
</Version>
</VersionList>
I have 2 combo boxes - 1 which holds the version release names and another which holds the snap names!
What I want to do is populate the version combo box and depending on what is chosen, populate the snap combo box
Ex: if the user selected 7.12.0 - the snap box would display s12, s19, s28!
I have my mxml file set up to take in the xml file and load the release names into an array to populate the version box! Does anyone know how I could populate the snap combobox depending on what is chosen in the version box???
Thanks a mil in advance, any help would be greatly appreciated!
Cheers,
Derm
View Replies !
View Related
Combo Boxes Not Dropping Down
Hi All,
I have searched for anyone else that has had this problem and the closest I found was back in May. However the fix listed for that person did not work for me.
I have two combo boxes on a movie clip and when I click either one they do not drop down and if I change the value they do not enter the change handler.
I have named one indtype and the other indgraphic they both have change handlers set that are at the parent movie level.
I have tried replacing the combo box with the one from the component panel to no avail and was wondering if anybody else had experienced this problem and knows how to fix it?
Thanks in advance, any and all help appreciated.
Liz
View Replies !
View Related
Flash Mx - Combo Boxes
I need the coding for when a user clicks on a selected option in the combobox dropdown menu the timeline playhead jumps to another frame.
Can't find it in the actionscript dictionary.
Thanks your help/magyar
View Replies !
View Related
Flash Mx - Combo Boxes
I need the coding for when a user clicks on a selected option in the combobox dropdown menu the timeline playhead jumps to another frame.
Can't find it in the actionscript dictionary.
Thanks your help
magyar
View Replies !
View Related
Combo Boxes To Dynamic Text Box
This is probably easy for you gurus - but sadly i am no guru...
Ok
I have a combo box with three labels and values
VALUE LABEL
London London
Sydney Sydney
New York New york
Now, when the user selects for example London from the combo box I need a Dynamic text box somewhere on the stage to say "This is in England" Likewise if I selected New York i would want the same box to say "This is in America" etc etc
Geddit?
Now i thought you did it this way;
Call the combo box instance "city"
Create a dynamic text box with instance "country"
and have the actionscript being simply -
if (city = "London") {
conutry.text = "that's England";
}
Doesnt work - am i way off - and can someone pls help me.
I have to get this working real soon - before I get my bum kicked.
Thanks
Christine!
View Replies !
View Related
Looking For Help, Adding Across Combo Boxes In Forms
*This is also posted in Newbies, as I wasn't sure which forum was more appropriate*
Looking for any and all help in getting this to work.
What I'm trying to do is have a few combo boxes,
each Combo box would have a couple selections in it with prices.
As the user makes a selection from each of the box the final total
is calculated. For example, consider an aquarium set up package.
Box 1: Tank Size (options: 5gallon $5.00, 10gallon $10.00)
Box 2: Filter (options: Basic $10.00, Intermediate $20.00, Advanced $30.00)
Box 3: Lights (options: Incandescant $10.00 , Fluorescent $20.00)
So, the user makes a selection out of box 1 and picks a 5 gallon tank, and the total displays $5.00. they select Basic from box2, and the total now displays $15.00, and so on.
The dollar sign isn't critical as that can be a graphic on the page.
But i think you get the idea at least.
Thank you in advance for any help.
View Replies !
View Related
RULES For Combo Boxes/levels WHAT THE *#@*
I am building an interface that at the moment is going to be used to show look and feel (IS NOT FULLY FUNCTIONAL). I have a Base movie on level 0 that loads the top interface level 90 and when I open anymore external movies under _level 90 the combo boxes freak out. Somtimes showing up under level 0 and not viewable other times below itself.
Here is the test link.
http://www.websciences.org/autism_interface/
Does anyone know the rules with combo boxes and if you can only use them on the base level 0?
Login as anything and click the PEOPLE button, ASCERTAINMENT eligibility forms combo box, drop down to telephone screening and click open now. You will see it opens fine. Now go up to the PROJECTS button and click any PROJECT LISTS drop down and select open now. That is when the combo boxes start to freak out. Drop downs are under the background...!?
Anyone?
THANKS
HYPEREALISM
View Replies !
View Related
Changing Style Of Combo Boxes
Hi Peeps. I have 6 combo boxes in use on my site named combo1 through to combo6. What I want to do is have some actionscript which changes the colours of the boxes as well as the fonts etc. I know this is possible but I dont know how to set it up so that all of the combo boxes use the new style.
Also on the same subject does anyone know where I can find a list of all the different bits you can change on the combo box. For example you can change the arrow colour and the scrolltrack, but no matter how I try I cant find a list of them all anywhere so I can get the combo boxes looking just how I want them.
Thanks in advance
View Replies !
View Related
Dependent List/combo Boxes
I would like some help on how I would code the choices in a combo box to trigger a list of items to display either in a list box or in another combo box. The each of the data items displayed would then have to be linked to a url.
For example.
In the combo box there would be the selections "fruit, vegtables, drinks"
If you selected fruit in the list box it would output "apples, oranges, pears, etc"
Apples would link to a website on apples. Oranges would link to a website on oranges. And pears would link to a website on pairs.
Let me known if you need more information. A detailed explanation would be greatly appreciated please.
View Replies !
View Related
Easy Question? Combo Boxes
Hey list,
I think I've got a fairly simple question. Using Flash MX (not the 2004 version), I want to create a combo box with a list of links that, when a link is selected, will take you to an external URL. Say there's a list of cities; Paris, NY, etc, and URL's for each http://www.paris.com, etc. How can I set this up? I can't seem to find good tutorials on combo boxes alone.
Thanks!
Rob
View Replies !
View Related
Want To Make Combo Boxes Invisible
Hi,
I have a bunch of controls that need to be on the time line to be populated, but need to be invisible until they are needed.
I put all the comboBoxes in an _mc and set alpha to 0. Now everthing is transparent but the text fields in the combo box.
Is there anything to do that is less crude than moving it off the screen until needed and then moving it back.
Thanks,
Mike Cohen
View Replies !
View Related
|