Movie contoler

ok, i have a menu that controls my movie. It pauses, plays, fastforwards, rewinds, starts move over, mute, etc.

I have 3 questions:

  1. How can i make it so that when you touch a certain area ( lets say text that says “blank” ) then the movie controler will slide out. So its not actually on the screen maybe its of the the side of the stage and it slides on.

  2. How can i chage my mute button to work so that if its pressed once, it turns of all the sounds, but then it will permanently change to un mute button untill i press it again, and it will turn the wounds back on. ( Right now im using stopallsounds(); )

  3. How can i make it so when the mouse rolls over each button it will give the description like, mute button, or pause button.

  1. u can’t detect the mouse if it’s out the stage.

  2. make a movieclip that includes one empty button and than add a dynamic textbox over the empty button.
    if your dynamic text box’ instance name: txtbox , u should add

txtbox.text= “mute”;

than add the following code to your button:
[AS]
on(release){
if(txtbox.text ==“mute”){
txtbox.text=“unmute”;
} else {
txtbox.text=“mute”;
}
}
[/AS]
u can improve these on you own.

  1. u can make a movieclip like windows’ tipbox . and add a dynamic textbox into it.
    than use it to make a description near the mouse when the mouse rolls over the buttons.
  1. what i meant when i said that the controler would slide in is, lets say theres a button (on the stage) and when u rollover it the controler pops up, or slides in from the corner of the stage.

Im not sure how to do this. Ive tried to put it in the over part of the button but then the buttons on the controler wont work.

make a movieclip that includes your information that will shown on the controller. than make this MC’s _visible = false; than bring this MC to the corner of the stage.
add below code to your button:

on(rollover){
myMc._visible = true;
}
on(rollOut){
myMc._visible = false;
}

is there a way to make it fade in, not just quickly become visible.??

make

myMc._alpha=0;

than


on(rollover){
_root.onEnterFrame = function(){
if(myMC._alpha<100){
myMc._alpha +=10;
}
}
on(rollOut){
if(myMC._alpha>0){
myMc._alpha -=10;
}
} 

all that does is make the movie controller fade by 10 alpha every time i rollover the MC and then roll off.

This is my code:

  
on(rollover){
_root.onEnterFrame = function(){
if(this._alpha<0){
this._alpha +=10;
}
}
}
on(rollOut){
if(this._alpha>0){
this._alpha -=10;
}
}

where does the

myMc._alpha=0;

code go
do i actually make the mc’s alpha 0% or do i put this code some where?

THX

make your contoller’s alpha = 0… than add my code to the button;)

Its not workin!!! :m:

This is wat im doin:

I have MX 2004,
I have my controller (lets just say its one button),
I add ur script,

on(rollover){
_root.onEnterFrame = function(){
if(myMC._alpha<100){
myMc._alpha +=10;
}
}
on(rollOut){
if(myMC._alpha>0){
myMc._alpha -=10;
}
} 

change the instance name to “myMC”,
change the alpha to 0%.

It still doesn’t work!!

I canged the script “myMC” in the script to “this” and when i do that, when i rollover the button and rollout it goes down by -10% alpha (only if i take the 0% alpha off) other wise it does nothin.:crying:

this code is working:

[AS]on (rollOver) {
_root.onEnterFrame = function() {
if (_root.myMC._alpha<100) {
_root.myMC._alpha += 10;
} else {
delete _root.onEnterFrame;
}
};
}
on (rollOut) {
_root.onEnterFrame = function() {
if (_root.myMC._alpha>0) {
_root.myMC._alpha -= 10;
} else {
delete _root.onEnterFrame;
}
};
}
[/AS]

add followingo code to the myMC:
[AS]
onClipEvent(load){
_alpha=0;
}
[/AS]

i snet the working .fla as attachment :wink:

man thx:D

really helped a lot!!

dam, that works but not on buttons, only MCs.;(

My menu is 8 buttons (4 by 4)
a background for the buttons
and a background for the descriptions (when u roll over the button)

The code

onClipEvent(load){
_alpha=0;
}

dont work on buttons.

And in stead of makin my movie menu one big movie clip, is the a way that u could add more instance names into the code, like a, b, c, d, e, f, g, h. for all my buttons because they wont work inside a movie clip.

I can attach the FLA. if u want.

try to put your buttons into a movieclip;) and make these movieclips’ aplha = 0;

buttons dont work when there inside movieclips

heres a sample of my movie menu

do u think u could take a look at it (my menu)

i did a movie controller like u want. but i can’t understand that why r u want to use this fading for the buttons?

No, thats not wat i want!:puzzle:

I want my movie menu buttons to fade in when u touch another button.

like in this movie. When u touch the word in the bottom left corner the menu fades in.

http://www.newgrounds.com/portal/view/184841

i think this is what u want. check the play button. i just made a new movie clip and past the code that i sent before. :mu: :red:

thx alot that helped.

but one more thing.
In your script:

 on (rollOver) {
 _root.onEnterFrame = function() {
  if (_root.pause._alpha<100) {
   _root.pause._alpha += 10;
  } else {
   delete _root.onEnterFrame;
  }
 };
}
on (rollOut) {
 _root.onEnterFrame = function() {
  if (_root.pause._alpha>0) {
   _root.pause._alpha -= 10;
  } else {
   delete _root.onEnterFrame;
  }
 };
}
 

how could i add the instance names
:rewind
play
ff
restart
mute
back
skip

so that all these instances will fade in and out just like the other instance pause.

i can’t understand exactly what do u want to know… but if u ask “how can i fade these instances like the other one?” – u should change the code for the rewind MovieClip and than add this code to the rewind button. :mu: :alien2: