00:00
00:00
Newgrounds Background Image Theme

renatocfrancisco just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

Actionscript 2.0 - Emergency!

448 Views | 0 Replies
New Topic Respond to this Topic

Actionscript 2.0 - Emergency! 2014-05-22 17:33:20


Greetings wise and powerful coders,

Here is my issue:

I have a combobox(component) with instance name of "my_cb" in flash actionscript 2.0 with the following:

frame actionscript:

//combobox list

my_cb.addItem({ label:"Select Your Work Place"});
my_cb.addItem({data:pink, label:"SPP"});

my_cb.addItem({data:blue, label:"stages"});

//////

function pinkEvac() {

if (my_cb.selectedItem.data == pink)
gotoAndStop("pink");
}
///////////////

function blueEvac() {

if (my_cb.selectedItem.data == blue)
gotoAndStop("blue");
}

my_cb.addEventListener("change", pinkEvac);
my_cb.addEventListener("change", blueEvac);

When I try to change the selected Item under the combobox to something else, for example select "stage", the play-head does not go to the specified frame. It just flickers and stays in the same frame that it was originally sent to.

Help is very much appreciated, thanks everyone.
-Jake


BBS Signature