# \[FMX2004\]Setting the alpha

**URL:** <https://forum.kirupa.com/t/fmx2004-setting-the-alpha/114994>\
**Category:** Uncategorized\
**Created:** [July 4, 2004, 12:49pm UTC](https://forum.kirupa.com/t/fmx2004-setting-the-alpha/114994 "2004-07-04T12:49:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phlashman](https://avatars.discourse-cdn.com/v4/letter/p/e99b99/32.png) [@Phlashman](https://forum.kirupa.com/u/Phlashman)\
**Post date:** [July 4, 2004, 12:49pm UTC](https://forum.kirupa.com/t/fmx2004-setting-the-alpha/114994/1 "2004-07-04T12:49:03Z")

</div>

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

```auto
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:

```auto
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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 4, 2004, 7:23pm UTC](https://forum.kirupa.com/t/fmx2004-setting-the-alpha/114994/2 "2004-07-04T19:23:01Z")

</div>

maybe

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

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 6, 2004, 11:21pm UTC](https://forum.kirupa.com/t/fmx2004-setting-the-alpha/114994/3 "2004-07-06T23:21:24Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 6, 2004, 11:30pm UTC](https://forum.kirupa.com/t/fmx2004-setting-the-alpha/114994/4 "2004-07-06T23:30:11Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 7, 2004, 12:20am UTC](https://forum.kirupa.com/t/fmx2004-setting-the-alpha/114994/5 "2004-07-07T00:20:19Z")

</div>

Those links aren’t working for me ☹

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 7, 2004, 1:17am UTC](https://forum.kirupa.com/t/fmx2004-setting-the-alpha/114994/6 "2004-07-07T01:17:42Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 7, 2004, 10:27am UTC](https://forum.kirupa.com/t/fmx2004-setting-the-alpha/114994/7 "2004-07-07T10:27:43Z")

</div>

Okay, glad you found it!
