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




Combo Box And Change Handler - In Over My Head



Howdy all,

Anyone know how I can set the data in my combo box = the name of a textfile to be loaded into a dynamic textbox?

I am trying a combo box for the first time. I've used AS to load it but am now having trouble with the ChangeHandler function. I only have a couple of items in the combo box and I am using them to load dynamic text files. I am using the following code that I adapted from another thread I found. "sort" is the instance name of my combo box. MCtxt is the name of my dynamic text box:


ActionScript Code:
// change handler callbackfunction textSort(filename) {    loadText = new LoadVars();    loadText.load(filename);    loadText.onLoad = function(success) {        if (success) {            _root.MCtxt.html = true;            _root.MCtxt.htmlText = this.sortMC;        }    };}// data providervar filename = sort.getSelectedItem().data;var data_array = new Array();// first itemdata_array[0] = {label:"Sort documents", data:""};// second itemdata_array[1] = {label:"By Date", data:"documents/sort_date.txt"};// third itemdata_array[2] = {label:"By Type", data:"documents/sort_type.txt"};// set data providersort.setDataProvider(data_array);// set change handlersort.setChangeHandler("textSort");


I can't figure out how to set "filename" = to the data_array. Can anyone help?



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 12-22-2003, 11:53 AM


View Complete Forum Thread with Replies

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

Combo Box And Change Handler - In Over My Head
Howdy all,

Anyone know how I can set the data in my combo box = the name of a textfile to be loaded into a dynamic textbox?

I am trying a combo box for the first time. I've used AS to load it but am now having trouble with the ChangeHandler function. I only have a couple of items in the combo box and I am using them to load dynamic text files. I am using the following code that I adapted from another thread I found. "sort" is the instance name of my combo box. MCtxt is the name of my dynamic text box:


ActionScript Code:
// change handler callbackfunction textSort(filename) {    loadText = new LoadVars();    loadText.load(filename);    loadText.onLoad = function(success) {        if (success) {            _root.MCtxt.html = true;            _root.MCtxt.htmlText = this.sortMC;        }    };}// data providervar filename = sort.getSelectedItem().data;var data_array = new Array();// first itemdata_array[0] = {label:"Sort documents", data:""};// second itemdata_array[1] = {label:"By Date", data:"documents/sort_date.txt"};// third itemdata_array[2] = {label:"By Type", data:"documents/sort_type.txt"};// set data providersort.setDataProvider(data_array);// set change handlersort.setChangeHandler("textSort");


I can't figure out how to set "filename" = to the data_array. Can anyone help?

"change Handler" For Combo Box Component
thanks very much to chessgenie for the reply below. really appreciate it.

i do not understand the 2nd step:
2) on the property panel, calls the change Handler as "comboBoxEvent:

after creating the combo box component (and naming it), how do i call the change Handler?

i search everywhere to no avail. pls help.

thank you.

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

Here's a simple example :
1) create a combo box component and name the instance as "comboBox"
2) on the property panel, calls the change Handler as "comboBoxEvent:
Your AS could be:

Code:
option = new Array();
option[0] = "option 1";
option[1] = "option 2";
option[2] = "option 3";
//
function BuildList() {
comboBox.addItemAt(0, option[0], 0);
comboBox.addItemAt(1, option[1], 1);
comboBox.addItemAt(2, option[2], 2);
}
//
BuildList();
//
function ComboBoxEvent() {
var itemSelected = comboBox.getSelectedItem();
var itemx = Number( itemSelected.data );
trace (" itemSelected(" + itemx +")");
if (itemx == 0 )
trace("I clicked Option 1");
// code your action here for option1;
else
if (itemx == 1 )
trace("I clicked Option 2 ");
// code your action here for option2;
else
if (itemx == 2 )
trace(" I clicked Option 3 ");
// code your action here for option3;
else
trace(" Hmmm .. what I have done here?? ");
}

Handler For Combo Box
Does anyone know how to write the handler for when a combo box changes values?

Combo Box With Event Handler
I am trying to get a dynamic text box to update its contents when a selection is made in my combo box (Drop down menu). My fla is attached. Please HELP!!!

PLEASE HELP - Event Handler And Combo Box
I am trying to get a dynamic text box to update its contents when a selection is made in my combo box (Drop down menu). My fla is attached. Please HELP!!!

Change Handler
I'm using Flash MX. Can anyone explain in idiot proof plain english about change handlers. I can follow the instructions and get a result but I'm not totally understanding it.

Change Handler Help
I am new to the Flash UI Components and the Change Handler. My movie has a IconButton and two Radio Buttons. The components were placed on the stage at design time. I entered cmptChange as the Change Handler in the Parameters panel for all three components. Then on the main time line I created the cmptChange function.

function cmptChg(component){
trace(component._name);
trace("groupRB="+groupRB.getValue());
}

When I click the IconButton the first trace statement gives me the Instance name of the button and the second the correct state of the Radio Buttons. When the two Radio Buttons are clicked the first trace statement returns undefined for the component._name.

I need to sort out which component changed; the undefined value is preventing me from this goal. Your assistance will be greatly apprecciated.

Thanks, GrandpaB

Change Handler?
I am still having tons of trouble here with this. I have a listbox, whenever something is selected in the list box, i need it to advance to a corresponding frame. I have an example that I will attach, this is as far as I have gotten, but I am still missing something very simple. Here is my as:

ActionScript Code:
function dropdown_check() {}if (dropdown.getValue() == 2) {    gotoAndStop(2);} else if (dropdown.getValue() == 3) {    gotoAndStop(2);} else if (dropdown.getValue() == 4) {    gotoAndStop(4);} else if (dropdown.getValue() == 1) {    gotoAndStop(1);}


In the change handler field of the parameters box, I have

ActionScript Code:
dropdown_check


It still won't work. I am sure this is not an emergency to anyone but me, but I have been wrestling with this for days! Thanks in advance for the help,
nat

How To Shave A Head? Mousemove + Cursor Change?
Hi all,

I'm having trouble making a flash piece that is capable of shaving the hair off of a head.

I have my original image (blad guy) and then a movie clip that animates the hair fading away in pieces.

Right now this is the AS I am using:

ActionScript Code:
onClipEvent(load) {
    frameNum = 1;
}
 
onClipEvent(mouseMove) {
    frameNum += 1;
_parent.hair.gotoAndStop(frameNum);
trace(_parent.hair._currentframe);
}


Unfortunately what this does is, no matter where you move your mouse on the flash file, it makes the hair fade away. I would like to restrict the mousemove area to just the hair as well as change the cursor to a razor when you are in that same hair area.

Hopefully this makes sense, thanks a million if you can help!!

Change Handler Inconsistencies...?
I started using Flash MX and directly set my teeth in the new components. And herefor I have a few questions:

I have a checkbox and a set of radiobuttons (3) on a scene and have set the Change Handler property of them all to init (as this is a function that will update the scene with some stuff accordning to the changes made to the components). The thing is only when changing the radiobutton something happens, the checkbox Change Handler is ignored! I tried a different approach and used myCHeckbox.setChangeHandler("init") in the first frame (where the function is also) and then it worked. Anyone who encountered the same problem/bug?! Just curious since it would be better not to have to use the setChangeHandler-function...

Combobox Change Handler
this is my handler

Code:
function loadit() {

myTxt.text = comTV.getSelectedItem().label;


}
bottomline, it works once, and then the text never changes any ideas why?

Change Handler Not Showing Up
Ive seen alot of stuff on combo boxes and I have yet to utilize the feature but I dont see it in the parameters field when I select the component inspecter but i do see it on some tutorials.

How can i get this feature?

Checkbox Change Handler
I am using an MX Check Box component. To find out what the person selected I am using the .getValue of the checkbox to determine true or false.

What I want to do, rather than returning true or false, is to return the choice made, such as a, b, c, or d.

Currently the change handler is on my check answer button and I am not using a change handler for the individual boxes.

Would a change handler using if statements be the best way determine this or is there a better way?

thanks.

Change Handler Missing
Hey,
I have recently started to learn flash on the side. Well I was going to through a tutorial and I was on a part Were I added a combo box to my file. Well for the combo box I had to change the data and labels which were in the properties window of the combo box. Now In the properties box with those 2 there is suppose to be something called "Change Handler". This is were I give the box a function for example In the change handler I enter in fun . Which I can refer to it in the action script so when a user pics one of the things in the combo box it opens up the url. Well in general I just want to know where is my change handler box?.I cant find it , maybe there is another way of using the combo box in the way Im trying ot ? I find in alot of these video tutorials the teachers' flash program is a whole lot different then mine. I'm using flash mx 2004 proffesional. Well if you can understand any of this please help lol

Combobox Change Handler
I want to have a combobox that works like a javascript onclick dropdown box. When it is clicked, i want to fscommand to javascript i have written in my HTML page. can anyone find any mistakes in this code or help me? this code is in frame one, the same frame as my combo box. the combobox is named "music_combobox" and the change handler is "changehandler"


Code:


function changehandler(whichbox) {
if (whichbox == "music_combobox") {
var select = music_combobox.getSelectedItem().data;
if (select != 0) {
fscommand(playit, select);
}
else if (select == 0) {
fscommand(stopit);
}
}
}

Function Variables Within A Change Handler
Is there anyway to call a function in a change handler WITH the normal function syntax? What I mean is, can I call function myFunction like so:

myFunction(x, y);

Thanks for any help!

Check Box Change Handler Question
I'm doing a Rich Media ad that is duplicating a portion of a form found elsewhere on our site. The original form has a bunch of opt-in check boxes for various things - but each check box is named ListID, and the value is a number, say 42 for one, 13 for another, etc.

I'm trying to make a Rich Media ad that uses a portion of this form in flash. I need, say, five check boxes that start of checked - if all remain checked it will send all the numbers - something to the effect of: ListID 38 & ListID 42 & ListID 13 etc. etc. etc. Obviously is one is unchecked, that "& ListID 62" won't be sent.

I'm fairly new to using components and change handlers so I am unsure how to send multiple variables of the same name with differing values like this, but the developer of the asp page that uses this info claims I just need to send all of them with "&"s. Of course, in addition I need a seperate box where they enter their email address - but I think I can figure that one out - its the logic in knowing which boxes were checked and unchecked and in sumbitting multiple ListIDs with their seperate values (if checked) that is confusing me.

This sounds like it should be simple enough, since its duping a pretty basic html form - but I'm at a loss. Any help would be totally awesome.

Thanks in advance.

Change Handler Problems Controlling A MC
Hello all,
I am having a problem controlling a Movie Clip by using a change handler in a combo box.

I have a series of combo boxes , which contain a selection of parameters. The selction of these parameters 'should' change the frame of a MC that contains different input boxes depending on the selections, on the change.

Whenever anything is changed, the MC goes back to frame 1 and stays there. I've attached the .fla file so that the problem can be seen clearer. The variables changing can be seen in the boxes below, yet when those varibales are changed the function does not change the frame of the MC. Below is the function that is called to change the frame. "input" is the instance name of the MC which I am trying to change.


PHP Code:




function hoursSwitch(){
    if (chapter == "30" or "30L3" or "1606" or "35" and term == "fall" or "spring") {
        _root.input.gotoAndStop(1);
    } else if (chapter == "30" or "30L3" or "1606" or "35" and term == "summer") {
        _root.input.gotoAndStop(2);
    } else if (chapter == "31" and term == "fall" or "spring") {
        _root.input.gotoAndStop(3);
    } else {
        _root.input.gotoAndStop(4);
    }
}







Any Help would be appreciated, Thank You.

What Do I Have To Change In This Code To Use It Within On/onClipEvent Handler ?
I have a code that i use in MC but i want to add it the hitTest ... because of that i need to change all the code to use it within on/onClipEvent handler ??

Here is the code::


Code:
if(!_root.Player.hitTest(_root.Water)){
on(keyPress "<Left>"){
this._x -= 2;
Sword = "Left";
}
on(keyPress "<Right>"){
this._x += 2;
Sword = "Right";
}
on(keyPress "<Up>"){
this._y -= 2;
Sword = "Up";
}
on(keyPress "<Down>"){
this._y += 2;
Sword = "Down";
}

on(keyPress "<Space>"){
if(Sword == "Left"){
_root.Player.SwordL.gotoAndPlay(2);
}else if(Sword == "Right"){
_root.Player.SwordR.gotoAndPlay(2);
}else if(Sword == "Up"){
_root.Player.SwordU.gotoAndPlay(2);
}else if(Sword == "Down"){
_root.Player.SwordD.gotoAndPlay(2);
}
}
}


And that code that i use on(keyPress"<Space>"){ } , can it be simplier ??

Thanks!!!

Change Alpha With Event Handler
Hi,
I am working on a navigation script that descends down using the tween class. I use an event-handler to control this. I want it to change its alpha to 0 onRollOff. I can get the nav to descend onRollOver, but I cannot get it to change its alpha back to 0 when I roll off -- in fact, the current code causes the nav to flicker and not fully descend. What needs to change? Thanks.


Code:
function toggleMenuTween (obj) {
var toggleTween:Tween = new Tween(obj, "_y", Regular.easeIn, 0, 20, .5, true);
}

togglemenu.togglemenu_handler.onRollOver = function() {
if(this._parent._alpha != 100) {
this._parent._alpha = 100;
toggleMenuTween(this._parent.previous_btn);
toggleMenuTween(this._parent.next_btn);
}
}

//This is the problem spot.
togglemenu.togglemenu_handler.onRollOut = function() {
if(this._parent._alpha == 100 && this._parent.next_btn._x == 150) {
this._parent._alpha = 0;
}
}

Scroll Pane Change Handler
i'm using the scroll pane component and what i wana do is when you click on a button it changes what is in the scroll pane can someone tell me how i can do this.

I've looked at using the setScrollContent actionscript but i can't seem to get it to work.

Change Alpha Event Handler
Hi,
I am working on a navigation script that descends down using the tween class. I use an event-handler to control this. I want it to change its alpha to 0 onRollOff. I can get the nav to descend onRollOver, but I cannot get it to change its alpha back to 0 when I roll off -- in fact, the current code causes the nav to flicker and not fully descend. What needs to change? Thanks.


Code:
function toggleMenuTween (obj) {
var toggleTween:Tween = new Tween(obj, "_y", Regular.easeIn, 0, 20, .5, true);
}

togglemenu.togglemenu_handler.onRollOver = function() {
if(this._parent._alpha != 100) {
this._parent._alpha = 100;
toggleMenuTween(this._parent.previous_btn);
toggleMenuTween(this._parent.next_btn);
}
}

//This is the problem spot.
togglemenu.togglemenu_handler.onRollOut = function() {
if(this._parent._alpha == 100 && this._parent.next_btn._x == 150) {
this._parent._alpha = 0;
}
}

Change Handler Event On Button
Hi there,

I am newbie with flash and actionscript. According to a tutorial, I started with on creating a simple quiz. I realized the tutorial was in coded in Flash MX and I use the Flash 8 version.

I am trying to add a change handler on a button. The tutorial says, I need to add the value in the Parameters, but unfortunately the Flash 8, does not have Change Handler. Is there another way to get around it? How would I script a handler on the button?

Here's the code I have on my 'Start Quiz' button, there are no errors but it doesnt do anything.

on (change) {
trace(startQuiz);
}

Thanks!

Event Listener Replacing Change Handler
Has anybody successfully migrated .fla files from Flash MX to Flash MX 2004 with ActionScript 2?

Specifically, I have a combo box which works in Flash MX (published for Flash Player 6) but not in MX 2004 Pro (published for Flash Player 7).

I can't figure out how to replace my old setChangeHandler code with the new EventListener code. Here's the code that works fine if published for Flash Player 6:

<snip>
combo.setChangeHandler("selectCombo");
function selectCombo(component) {
if (component.getSelectedItem().label == "Saturday") {
_parent.gotoAndStop(10);
} else {
setProperty("alert", _visible, true);
}
}
</snip>

This code lives in the first frame of the associated timeline.
Has anybody re-written code for a combo box that simply waits for a user to make a selection and then acts on that selection?

[MX] ListBox, Containing Songs, Can't Get The Change Handler To Work
Hey all,

I'm trying to make a jukebox type thing where I have a list box containing the songs and when you click one it starts playing.
Seeing as I'm completely new to action script, I have no idea how to do this.

This is what I have so far, but nothing is happening when you select something from the list box.

songListBox is the instance name of the list box
Song1.mp3 would be the linkage identifier of something in the library


Quote:




songPlaying = new Array();
songPlaying[0] = new Sound(this);
songPlaying[0].attachSound("Song1.mp3");
songPlaying[1] = new Sound(this);
songPlaying[1].attachSound("Song2.mp3");
songPlaying[2] = new Sound(this);
songPlaying[2].attachSound("Song3.mp3");

//Array for values in list box
songsArray = new Array();
songsArray[0] = ["song 1"];
songsArray[1] = ["song 2"];
songsArray[2] = ["song 3"];

//loop to put labels and values into the list box
for (i=0; i<songsArray.length; i++) {
songListBox.addItem(songsArray[i][0]);
}

var index;

//What gets called whenever something new is selected in the list box
function songChange(component) {
if (component._name=="songListBox"){ //if something is selected in the list box, then...
index = component.getSelectedIndex(); //variable "index" gets the index number of the thing selected
songPlaying[index].start() //start playing song that was just attached
}
}

songListBox.setChangeHandler("songChange");

Use Of Change Handler On Combobox In Flash Mx 2004
Hi all,

I am a complete beginner to flash and was going through some tutuorials from the macromedia site.

The tutorial uses flash but I have flash mx 2004 and I am stuck.

I have got round most of my problems but I am adding a combobox which needs to call a function which is placed in the change handler box in the properties inspector.

I dont have this line in MX 2004!!!! How do I do it???

Please help
Michael

List Box Component: Linking To Web Pages / Change Handler
Ive made a list box with links to files. How do I
go to the files upon say a mouse click? or just a click
in the box? What do I need to do to the change handler?

thanks,

Tyler

Does SetSelectedIndex In Combobox Call The Change Handler Function
does the function setSelectedIndex for combobox object call the change handler function? It seems that sometime it will call it and sometime it will not, am I the only one with this phenomenon?

Making Another Mc Change With Mysound.onload Event Handler
I have two little music players on my site, let's say 'main' and 'discography'. 'Main' starts automatically, and the other is in the discography section and has buttons that have to be clicked. When someone plays a song in the discography section, I want the main music player to go to another frame, on which there is no music and the spinning graphic showing that it is playing is not there anymore.

I am using the sound handler thing, so I'm trying to use mySound.onLoad event handler to make this happen. I've used the onSoundComplete to make the 'discography' movie clip go back to it's first frame, where there is no music playing. But this code doesn't seem to be working. I am fairly new at this - maybe I am targeting the other movie clip wrong? I didn't want to keep adding the same code into every play button, so I thought this would work.

This code is in my 'discography' movie clip, first frame. My 'main' movie clip is on the main timeline. "TopMusicMenu' is the instance name of my 'main' movie clip. Is this correct, or am I going about it the wrong way?

this.createEmptyMovieClip ("mcSoundHolder", this.getNextHighestDepth());
var mySound:Sound = new Sound (mcSoundHolder);

mySound.onLoad = function() {
this._parent.TopMusicMenu.gotoAndStop("nomusic");
//get the top music player to go back to beginning
}

//buttons for music
btn_chambre1.onRelease = function():Void {
stopAllSounds();
mySound.loadSound("MusicdeChambre4_IntroAllegro.mp3", true);
gotoAndPlay("Chambre1");
}

etc. (there are several of these buttons)

Thanks for any help.

Change The Look Of A Combo Box
How do you change the complete look of a Combo Box component in Mx?

I don't just want to change the colour etc. I want to make it bigger and more fancy.

Thanks

Change The Look Of A Combo Box
How do you change the complete look of a Combo Box component in Mx?

I don't just want to change the colour etc. I want to make it bigger and more fancy.

Thanks

Combo Change Handlers
I have two dropdown boxes and when i select something in one box I want to fill the other with related info.

For now I would just like to know what are the change handlers for a combobox and where would you put the script?

Change A Label On A Combo Box?
Never done this before can someone tell me how?

I want to change the label of a specific item in a combo box. At the start they all have data values but blank label values. I basically want to update the label values.

Cheers

Change Style Property-combo Box
hi...
after using a combo box i hv a white frame around my iframe field.
i changed the background to black but i cannot remove the white
outline around the combo /filed / box.
can somebody help me?
thxs

the actionscript is:

stop();

splashesscroll.setStyleProperty("arrow", 0xFFFFFF);
splashesscroll.setStyleProperty("background", 0x000000);
splashesscroll.setStyleProperty("backgroundDisable d", 0x000000);
splashesscroll.setStyleProperty("scrollTrack", 0x000000);
splashesscroll.setStyleProperty("textColor", 0xFFFFFF);
splashesscroll.setStyleProperty("textSelected", 0xFF0000);
splashesscroll.setStyleProperty("selection", 0x000000);
splashesscroll.setStyleProperty("highlight3D", 0x000000);
splashesscroll.setStyleProperty("highlight", 0x000000);
splashesscroll.setStyleProperty("face", 0x000000);
splashesscroll.setStyleProperty("darkshadow", 0x000000);
splashesscroll.setStyleProperty("shadow", 0x000000);
splashesscroll.setStyleProperty("foregroundDisable d", 0x000000);
splashesscroll.setStyleProperty("textSize", 10);

Help With Change Style Of Combo/Scroll Box
hi...
after using a combo box i hv a white frame around my iframe field.
i changed the background to black but i cannot remove the white
outline around the combo /filed / box.
can somebody help me?
thxs

the actionscript is:

stop();

splashesscroll.setStyleProperty("arrow", 0xFFFFFF);
splashesscroll.setStyleProperty("background", 0x000000);
splashesscroll.setStyleProperty("backgroundDisable d", 0x000000);
splashesscroll.setStyleProperty("scrollTrack", 0x000000);
splashesscroll.setStyleProperty("textColor", 0xFFFFFF);
splashesscroll.setStyleProperty("textSelected", 0xFF0000);
splashesscroll.setStyleProperty("selection", 0x000000);
splashesscroll.setStyleProperty("highlight3D", 0x000000);
splashesscroll.setStyleProperty("highlight", 0x000000);
splashesscroll.setStyleProperty("face", 0x000000);
splashesscroll.setStyleProperty("darkshadow", 0x000000);
splashesscroll.setStyleProperty("shadow", 0x000000);
splashesscroll.setStyleProperty("foregroundDisable d", 0x000000);
splashesscroll.setStyleProperty("textSize", 10);

Combo Box Change Andler For MX 2004
I am trying to work with the combo box component in Flash MX 2004 Professional. I see many references saying to make a change handler function and call that function through the Properties>Parameters dialog box for the component.

In Flash MX 2004, I can't find where to put the change handler call to my function from within the combo box component instance. Is this different for the latest version of Flash?

Any help would be GREATLY appreciated!

Alysen

Change Font In Combo Boxes?
All I really want to do is make my text in the combo boxes bold. I've tryed setStyle but I must be doing it wrong.

Any help would be great!
thanks
T.

Change Style Of Combo Box(scroll Field)
hi...
after using a combo box i hv a white frame around my iframe field.
i changed the background to black but i cannot remove the white
outline around the combo /filed / box.
can somebody help me?
the actionscript is:

splashesscroll.setStyleProperty("arrow", 0xFFFFFF);
splashesscroll.setStyleProperty("background", 0x000000);
splashesscroll.setStyleProperty("backgroundDisable d", 0x000000);
splashesscroll.setStyleProperty("scrollTrack", 0x000000);
splashesscroll.setStyleProperty("textColor", 0xFFFFFF);
splashesscroll.setStyleProperty("textSelected", 0xFF0000);
splashesscroll.setStyleProperty("selection", 0x000000);
splashesscroll.setStyleProperty("highlight3D", 0x000000);
splashesscroll.setStyleProperty("highlight", 0x000000);
splashesscroll.setStyleProperty("face", 0x000000);
splashesscroll.setStyleProperty("darkshadow", 0x000000);
splashesscroll.setStyleProperty("shadow", 0x000000);
splashesscroll.setStyleProperty("foregroundDisable d", 0x000000);
splashesscroll.setStyleProperty("textSize", 10);

Thanks a lot for your help!

And a great start in 2003 to everybody!!

Change Background Color Of Combo Box Component
Hi
ive got a script that uses the combo box component but i dont want the backgound for the text to be white. does anybody know how to change this?

Regards

[CS3] How Do I Change The Font Color Of Combo-box Component?
How do i change the font color of combo-box component?

Why Can't I Change The Color Of Radio Button & Combo Box Component In Mx
hi all,
can someone help me with this problem....
I want to create a feedback form which includes combo box & radio button. o i added component from mx to file file. somehow i managed to change the font face to verdana but i want to change the color to white which i think component color default is black.........
i tried a lot to change the color but i could'nt can someone tell me how to do it...
i am attaching my file...
thanks a lot.

Using Combo Box To Change Fonts On A Dynamic Text Field
hey guys and gals i need so more help... i have been searching all day to see if anyone has an answer to this question. how would you go about using a combo box to change fonts?


in the combo box there are like 15 different fonts. arial, bookman old style etc. I want to be able to change the the text field font from selecting an option in the combo box... any help is greatly 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

Event Handler Inside An Event Handler
i have a movie clip that is essentially a box when clicked can be dragged around and so forth.


ActionScript Code:
//AS for the box movie clip
on (press) {
    startDrag(this);
}
on (release) {
    stopDrag();
}


however inside the box i want a small button that should be able to close the box by turning it invisible (unless there is a better way to do this)


ActionScript Code:
//AS for the close button
on (press) {
    setProperty("_root.box", _visible, false);
}


the box can be dragged but clicking the close buttons does nothing (just continues to drag the box). i think the problem here is since im using the press function to drag the box then the press function inside the clip never actually gets executed. is there a way around this or maybe a better way to create this effect? thanks.

In Over My Head Now
Ive been playing with Bryce 4 and have got a nice assortment of 3d models, so I thought I would use them to give me a direction to take my flash learning to.

The question is,
If say I animate a cube(borg-ed up! lol) in bryce, I can make a movie of it at any degree spinning or whatever,
I can then inport this animation as a sequence of images into flash.
But what do I need to do if I wanted the user to be able to use the drag function on the cube so as they could spin it around in any direction so as to view it from all 360 degrees.

Is this going to be a bit of a mission?
Im able to carry out the first stages and know I can grab things with the drag function.
Any and all suggestions will be appreciated.
Thanks in advance

Doing My Head In
what i would like to do is have a graphic or button moving from ond side of the screen to the other. When it hits the other sise it will return back to the starting position. I dont want to use a motion tween, instead i want to use scripting to keep the file size down. This surely must be quite easy???? could someone paste up the code???

I have it working to a dgree except that the damn starting position sets itself instead of where i tell it,

please help if you can

Cheers, C

In Over My Head?
Hi all! just getting into flash and glad I found this forum.

A friend of mine has learned that I'm learning flash and already wants me to do a project that I said I would happily take on.(afterall you can't learn anything unless you've had some practical experience) He's looking for something along the lines of the http://www.californiaclosets.com/ intro page.

I checked it out and thought it looked simple enough to work off of but now I'm feeling a little overwhelemd and am unsure of where to start. I can't seem to come up with anything even close. Granted, I haven't dedicated a lot of time...

I've done the basic tuts that come along with flash5 and read some other tuts from various sources.

How does one approach a project like this and does it look like a lot of work for a novice to pull off?

Any advice would be appreciated. I hope I don't come off sounding like a whine.

Help Me Get My Head Around This
Gday

ARound the edge of stage, i have a boarder. Within it i have 5 buttons.

As you can imagine, i want my buttons to have a 'goto' command when pressed and each button will have a different goto and play 'frame'.

What i want to happen is when any of these buttons are pressed, i want my boarder to collapse upto the top of the stage into a rectangle and have these buttons within it. This animation i want to happen no matter which button is pressed

The problem i have is that i do not know how to tell each button that you must do the animation first then got to your frame with the relevant information on it.

I do not want to duplicate my workload and construct the last frame of my home page on the first frame of each button press.

Please help me.

Thanks
Huggs

Pop Pop Pop Goes My Head~
Hi all,

I'm trying to create a pop window in flash mx running on osx. below is some code that I am using for the button:

[code]on (release) {

// url,_winName,_width,_height,_toolbar,_location,_di rectories,_status,_menubar,_scrollbars,_resizable

openWinCentre("http://www.musicbycab.com", "blank", 800, 600, 0, 0, 0, 0, 0, 0, 1);

}

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