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




COMBO BOX To A URL?



HELP,
How the heck do I make the labels within a combo box go to a specified URL, I have the urls in the data section as "http://www.webaddress.com" but when I export this I get a myriad of errors. I have this script in the first frame, which is where I think the problem is:

function change(evt){
trace(evt.target.selectedItem.label);
}
comboBox.addEventListener("change", this);

I'm using MX2004 Professional and have not got a clue what is going on with combo boxes!

PLEASE HELP

Thanks

LEE

**Error** Symbol=MovieClip Rewrite, layer=Actions, frame=1:Line 36: There is no property with the name 'isWithin'.
Mouse.isWithin = function(obj, sf) {

**Error** Symbol=MovieClip Rewrite, layer=Actions, frame=1:Line 43: There is no property with the name 'coOrds'.
Mouse.coOrds = function() {

**Error** Symbol=MovieClip Rewrite, layer=Actions, frame=1:Line 51: There is no property with the name 'approach'.
Math.approach = function(startp, endp, increment) {

**Error** Symbol=MovieClip Rewrite, layer=Actions, frame=1:Line 60: There is no property with the name 'setFPS'.
Stage.setFPS = function(fps) {

**Error** Symbol=MovieClip Rewrite, layer=Actions, frame=1:Line 63: There is no property with the name 'restoreFPS'.
Stage.restoreFPS = function() {

**Error** Symbol=Button, layer=Actions, frame=1:Line 23: There is no method with the name 'isWithin'.
var newOpacity = Mouse.isWithin(this, true) ? this.alpha.top : this.alpha.bottom;

**Error** Symbol=Button, layer=Actions, frame=1:Line 24: There is no method with the name 'approach'.
this.bg._alpha = Math.approach(this.bg._alpha, newOpacity);

**Error** Symbol=Button, layer=Actions, frame=1:Line 29: There is no method with the name 'approach'.
this._y = Math.approach(this._y, this.y);

**Error** Symbol=Button, layer=Actions, frame=1:Line 34: There is no method with the name 'isWithin'.
if (Mouse.isWithin(this, true)) {

Total ActionScript Errors: 9 Reported Errors: 9

**Error** Symbol=MovieClip Rewrite, layer=Actions, frame=1:Line 36: There is no property with the name 'isWithin'.
Mouse.isWithin = function(obj, sf) {

**Error** Symbol=MovieClip Rewrite, layer=Actions, frame=1:Line 43: There is no property with the name 'coOrds'.
Mouse.coOrds = function() {

**Error** Symbol=MovieClip Rewrite, layer=Actions, frame=1:Line 51: There is no property with the name 'approach'.
Math.approach = function(startp, endp, increment) {

**Error** Symbol=MovieClip Rewrite, layer=Actions, frame=1:Line 60: There is no property with the name 'setFPS'.
Stage.setFPS = function(fps) {

**Error** Symbol=MovieClip Rewrite, layer=Actions, frame=1:Line 63: There is no property with the name 'restoreFPS'.
Stage.restoreFPS = function() {

**Error** Symbol=Button, layer=Actions, frame=1:Line 23: There is no method with the name 'isWithin'.
var newOpacity = Mouse.isWithin(this, true) ? this.alpha.top : this.alpha.bottom;

**Error** Symbol=Button, layer=Actions, frame=1:Line 24: There is no method with the name 'approach'.
this.bg._alpha = Math.approach(this.bg._alpha, newOpacity);

**Error** Symbol=Button, layer=Actions, frame=1:Line 29: There is no method with the name 'approach'.
this._y = Math.approach(this._y, this.y);

**Error** Symbol=Button, layer=Actions, frame=1:Line 34: There is no method with the name 'isWithin'.
if (Mouse.isWithin(this, true)) {

Total ActionScript Errors: 9 Reported Errors: 9



FlashKit > Flash Help > Flash MX
Posted on: 10-11-2004, 11:40 AM


View Complete Forum Thread with Replies

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

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.

Combo Box
hello,
i have a small question regarding combo box! By default, a combo box's selected element in the unfolding list is highlighted by a deep grey. i've just modified the attributs of a combo box so that the default grey is lighter and more related to the colors of my site. The problem is that not only does the default settings highlight the selected choice in a deep grey, it also puts the text in white ( thus making it unreadable on a lighter grey as i've selected.

Where can i tell the combo box to not put the text in white when "over" element. I've tried editing the combo but the text inside the combo is a dynamic text set to black which exposes the variable in black. but probably theirs a script somewhere telling "on over choice highlight in grey and change text color to white"

thanks in advance
priff

Combo Box
Please tell me is there a way to force Combo Box to display list of options above it, instead of below it how its usually shown.

Thanks.

Combo Box
I have a form that my customers can edit and update. The form contains a combo box with about 5 options. The form posts to an asp.net page. I have everything working as far as updating the database from the form and repopulating the input boxes with their previous settings. The problem is how to repopulate the combo box with the choice they had previously made. Getting the variable value into the form is no problem I just need a small sample of code that tells the combo box to show their previous value not the default value. Thanks in advance.

Combo Box, And URL
Funny enough I never used the combo box.
Well, today I have to
When I click the drop down box and click a selection I want it to goto a web site. How can I accomplish this with the combo box?

I put info in the data field but it didnt work. How am I missing this? Makes me feel like a NEWB again.

Combo Box
Hi

How do you make the Flash ComboBox jump to HTML pages, Ive added in the options, but i need them to jump to the relevant pages when selected, also can you target a frame with them.

Cheers

Lee

Combo Box
I am using the following code to try to trace the selection by the user in a combo box named "myCombo". It's not working. Seems like this would be simple.

Any help would be appreciated. I am using Flash MX 2004 Professional.

Thanks!
Alysen

_root.myCombo.addItem("label", "data");
_root.myCombo.addItem("label2", "data2");
_root.myCombo.sortItemsBy("label", "ASC");

_root.myCombo.setChangeHandler("myValue");

function myValue() {
trace(_root.myCombo.getSelectedItem().label);
}

stop();

XML In Combo Box.....
Using this XML

[QUOTE<?xml version="1.0"?>
<creature>
<category id="mammal" has="hairy_skin,mouth,warm_blood">
<species id="cat" has="fur,tail,whiskers">
<breed id="tiger" has="stripey_fur"/>
<breed id="lion" has="brown_fur,mane"/>
<breed id="panther" has="black_fur"/>
</species>
<species id="dog" has="hair,tail,wet_nose">
<breed id="labrador" has="soft_hair"/>
</species>
<species id="pig" has="snout,trotters"/>
<species id="cow" has="nose,hooves"/>
</category>
<category id="reptile" has="scaly_skin,mouth,cold_blood">
<species id="lizard" has="tail,legs">
<breed id="iguana" has=""/>
</species>
<species id="snake" has="tail,no_legs,forked_tongue">
<breed id="cobra" has="hooded_head">
<subbreed id="greatcobra" has="big_hood"/>
</breed>
</species>
</category>
<category id="bird" has="feathers,beak,wings,warm_blood" />
<category id="fish" has="scales,mouth,cold_blood">
<species id="mullet" has="thick_lips"/>
<species id="pike" has="sharp_teeth"/>
</category>
</creature>[/quote]

can i adapt this AS to fill a combo box named "dropDown" with "species, breed and sub breed"

code:
dataXML = new XML();
dataXML.onLoad = convertXML;
dataXML.load("creatures.xml");
function convertXML () {
mainTag = new XML();
elementTag = new XML();
dataList = new Array();
elementList = new Array();
mainTag = this.firstChild;
if (dataXML.loaded) {
if (mainTag.nodeName == "category") {
dataList = mainTag.childNodes;
for (i=0; i<=dataList.length; i++) {
if (dataList[i].nodeName == "species") {
elementList = dataList[i].childNodes;
for (j=0; j<=elementList.length; j++) {
elementTag = elementList[j];
elementType = elementTag.nodeName;
if (elementType == "breed") {
breed = elementTag.firstChild.nodeValue;
}
if (elementType == "subbreed") {
subbreed = elementTag.firstChild.nodeValue;
}
}
// Adds the label and data to the URL.
dropDown.addItem(breed, subbreed);
}
}
}
}
}



many thanks

Combo Box
Anyone who can help, I am using a combo box component as a drop down list for an mp3 player and when testing in flash it works ok. However, when I export it to dreamweaver the drop down list doesn't operate as it does in flash. Am I missing something basic here or what?





when you're smiling, whe whole world smiles with you

Combo Box
How do i make a value apear in the editable are of the combo box based on an external value

Combo Box
Hi all,

I have a weird problem here... hope you all can help

function doAdd() {
subject = subject.getValue();
trace (subject);
dateset = dateset.getValue();
trace (dateset);
}

subject and dateset are both editable combo boxes.

When I click the button 'Add', whose handler is doAdd(), doAdd() is invoked. The first click gives me the correct values of the combo boxes, but the subsequent times i click only returns two 'undefined'.

Really puzzled...
Please help

Combo Box
How can I read the value of a combo box to see what item the user has selected from the drop down ?

Help With Combo Box
how do i get a combo box to show the label that has been selected in a input texfield?

cheers
aron.

Combo Box Help
Looking to send data from a combo box (component) to a txt field. I'm looking to place multiple selections in a combo box then have the user select the option (they want) from the pull down & have it display that info in a txt field.
Thanks

Combo Box Help
i have this code attach to my combobox component(instance name is "colorChange"):

on(change){
if(this.selectedIndex==1){
_root.body.gotoAndStop("grey");
}

if(this.selectedIndex==2){
_root.body.gotoAndStop("blue");

}
if(this.selectedIndex==0){

_root.body.gotoAndStop("red");
}
}

How would I write this code so it is actionscript 2 compliant and works if it was placed in the first frame of my movie with the rest of my actionscript.

thanks

Combo Box, Another Bug?
hi

like others i use the combo box v2 in a swf loaded to level 1.
the thing is, when i place the sub-swf on coordinates x:50 y:55 all combo boxes used in the sub-swf work correctly but the "options list" is misaligned (x:50, y:55).
is this a global/local scripting bug

i hope u understand what i mean!

thanx for any help
stan

Combo Box Help
Hello, I was reading this tutorial ona combo box and I tried to make one but it didnt work.

I was wondering if someone can provide me with a standerd combo box from flash mx 2004, action script made.

Ca you create active links. About 3 of them Of your choice. I just need to look at the code and view it. Well thanks

Combo Box?
Does anyone know how to set up a combo box component in plash mx 2004 pro.

thanks

Combo-box
hey all!
i have used a combo-box in flash mx for the first time. is there a way to adjust font/font size/font color? i really want to do this in flash so that the text will look the same across the board. can anyone help?

also.. i would like to make a scrolling text box which i have done before. this will be a list of members of a local chamber. i would like as well, for the font to be embedded so it doesnt change across platforms and browsers.
i'm wondering.. will this make my life miserable when updating the site with new members?

thanks for all your help!
rebbi

How To Use A Combo Box In MX?
Hi folks

I'm migrating to Flash MX 2004 Components and the fact is: I'm stuck at the last step. I've read the Macromedia Tutorials and the Help Menu from Flash to no avail. Simply put their language is too techy for me

My issue is quite simple actually: How to make a ComboBox in Flash MX functional. I have managed to sort out the issues of adding values to the drop fields (data & labels), and I've even managed to change the appearance of the ComboBox (skinning). The last thing I need to know is how to make the ComboBox functional.

SCENARIO
I'm creating an application using Flash to sell several Gift Products. Each product comes with an image and descriptions. On the main area I have a ComboBox that functions as a sub-category selection, to populate the main panel with another selection of items.

What I want the ComboBox to do, once a user selects his field (let's say 'Calculator') is to move to a frame label in Flash. That label is where the entire range for Calculator products are available. I don't want to use a Submit or Go button. So the action must happen after the user interact/choose one of the fields in the ComboBox.

Can anyone help me with this issue?
Thank You

Combo Box
does anybody has a combo box in flash that can open data from text file like regular combo in asp .

Combo Box
Ok, I ususally do not just ask how........

but.........


I want to use the Combo box and do not understand how to make it function.....

1) How do I make it load up a website in another window

2) How do i make it load a SWF into a container.

I have this XML loading component, that I think I just need a way to make flash see the data as action script and I will be fine.....

Combo Box Help
My question is simple: why won’t the script below work! I need Arrays because I have another script that will be tied in by them.I'm using flash MX 2004 . the fist combo box is supposed to populate the second, and the second is supposed to populate the third. The fist selection for the combo boxes load, however on change they all go blank. HELP!

var Cars:Array = [{label:"TwoDoor"}, {label:"FourDoor"}, {label:"SUV"}];

var TwoDoor:Array = [{label:"Theme1"}, {label:"Theme2"}];
var FourDoor:Array = [{label:"Theme3"}, {label:"Theme4"}];
var SUV:Array = [{label:"Theme5"}, {label:"Theme6"}];

var Theme1:Array = [{label:"Color1"}, {label:"Color2"}];
var Theme2:Array = [{label:"Color3"}, {label:"Color4"}];
var Theme3:Array = [{label:"Color5"}, {label:"Color6"}];
var Theme4:Array = [{label:"Color7"}, {label:"Color8"}];
var Theme5:Array = [{label:"Color9"}, {label:"Color10"}];
var Theme6:Array = [{label:"Color11"}, {label:"Color12"}];

myCars.setDataProvider(Cars);
myThemes.setDataProvider(TwoDoor);
myColors.setDataProvider(Theme1);

listener = {};
listener.ref = this;
listener.change = function(evt) {
var choice = evt.target.selectedItem;
myThemes.setDataProvider(this.ref[choice]);
myThemes.dispatchEvent({type:"change"});
};
myCars.addEventListener("change", listener);
listener = {};
listener.ref = this;
listener.change = function(evt) {
var choice = evt.target.selectedItem;
myColors.setDataProvider(this.ref[choice]);
};
myThemes.addEventListener("change", listener);

XML Combo Box
Hey guys, I have been using this XML Combo Box for a while and it is great, but there is now one thing wrong.

I need the box to go upwards instead of downwards.

Anyone have a good XML combo box they use that can go up instead of down?

Or, is there a way to adjust this one?

Combo Box
I have read a few tutorials and am now getting very confused! I have seen how to populate another list box with the data from a combo box ect cet ect... but all I want to do is goto another frame in the timelime, nothing too taxing I hear you say but I have been reading tutorials for about 2hours now and still can't figure it out.

Any chance someone can help out?

Fez

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