PDA

View Full Version : Simple ComboBox question



Graffiti
07-03-2007, 02:52 PM
Flash 8:
There is a MC in the Library with the identifier "mc". It only has inside a ComboBox, named "cb", that has some labels in it.

This is the code in the FLA main timeline:

attachMovie("mc","test",1);
cg=function(evt){
trace("This never appears");
}
test.cb.addEventListener("change",cg);


Question:
Why does "This never appears" never appear ? Even when I change the selection in the ComboBox.

It works when "test" is directly on stage, without using attachMovie.

Thanks guys!