[FMX2004]Setting the alpha

Hi. I am having trouble setting the alpha of a movie clip (this is a bitmap, if that matters). My code is as follows:

on (change) {
if (this.getSelectedItem().data == 3) {
set (this._parent.ahouston._alpha,100)}
if (this.getSelectedItem().data <> 3) {
set (this._parent.ahouston._alpha,0)}
}

I don’t believe it is a problem with my combobox actionscript, as just putting:

set (this.ahouston._alpha,100)

in the only frame of the parent movie clip doesn’t work either. Can I have some help please? Thanks

EDIT: Now it shows it with 0% alpha, but won’t turn to 100%. I was wrong. It is a combobox problem.

maybe

on (change) {
	if (this.selectedItem.data == 3) {
		this._parent.ahouston._alpha = 100;
	} if (this.selectedItem.data != 3) {
		this._parent.ahouston._alpha = 0;
	}
}

well, if it doesn’t return a property, then you haven’t added a property to that item!
if it’s the label you’re after, then you should refer to it as this.selectedItem.label
that’s the best answer i can give you, unless you provide me with source files

Okay, the source file is available here, and the swf file is [url=“http://shermans.gotdns.com/NYKCenter.swf”]here. Thanks for the help, and No, I am not looking for the label.

Those links aren’t working for me :frowning:

… Yes, I forgot that I am under a firewall. Sorry.

I believe I have found the problem - data is the string found in the data parameter; previously I thought it was the index. Problem solved, case closed. Thank you.

Okay, glad you found it!