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.
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
… 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.