# Movie contoler

**URL:** <https://forum.kirupa.com/t/movie-contoler/118275>\
**Category:** Uncategorized\
**Created:** [August 4, 2004, 5:36am UTC](https://forum.kirupa.com/t/movie-contoler/118275 "2004-08-04T05:36:36Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![von\_dragon](https://avatars.discourse-cdn.com/v4/letter/v/edb3f5/32.png) [@von\_dragon](https://forum.kirupa.com/u/von_dragon)\
**Post date:** [August 11, 2004, 7:08am UTC](https://forum.kirupa.com/t/movie-contoler/118275/21 "2004-08-11T07:08:32Z")

</div>

i want them all to fade at the same time. All of those instances.

---

<div class="post-metadata">

**Author:** ![e\_s\_x\_s](https://avatars.discourse-cdn.com/v4/letter/e/f9ae1b/32.png) [@e\_s\_x\_s](https://forum.kirupa.com/u/e_s_x_s)\
**Post date:** [August 13, 2004, 8:10am UTC](https://forum.kirupa.com/t/movie-contoler/118275/22 "2004-08-13T08:10:17Z")

</div>

add following code to the timeline:

```auto

var movies = new Array("play","pause","ff","restart","mute","back");

```

than add below code to the button:

```auto

on (rollOver) {
	_root.onEnterFrame = function() {
		for (var movie in movies) {
			if (_root[movies[movie]]._alpha<100) {
				_root[movies[movie]]._alpha += 10;
			} else {
				delete _root.onEnterFrame;
			}
		}
	};
}
on (rollOut) {
	_root.onEnterFrame = function() {
		for (var movie in movies) {
			if (_root[movies[movie]]._alpha>0) {
				_root[movies[movie]]._alpha -= 10;
			} else {
				delete _root.onEnterFrame;
			}
		}
	};
}

```

example fla file atached 😉 :mu: :alien2:

---

<div class="post-metadata">

**Author:** ![von\_dragon](https://avatars.discourse-cdn.com/v4/letter/v/edb3f5/32.png) [@von\_dragon](https://forum.kirupa.com/u/von_dragon)\
**Post date:** [August 14, 2004, 1:54am UTC](https://forum.kirupa.com/t/movie-contoler/118275/23 "2004-08-14T01:54:22Z")

</div>

ok that works really good but is there a way that i can make my buttons stay visible when im on the button with the code??? would reallly help

[Previous page](https://forum.kirupa.com/t/movie-contoler/118275.md?page=1)
