Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Activating another buttons rollover...

Status
Not open for further replies.

WhiteTiger

Programmer
Jun 26, 2001
605
US
Ok, I gotz a problem...using buttons, I run the loadmovie command...that works fine, but when I press it again, I want it to go back to the first frame of the movie...

To get around this, in the loaded movie, I tried putting an invisible button on top of the one I had to get there and put the command to go to the first frame of that movie...ok, all goes well I thought...

When I hover over the invisible button, the button underneith doesn't run its rollover?...how could I solve this?...the reason I need it is the over button is kinda semi-transparent Regards,
Anth:cool:ny
----------------------------------------
"You say [red]insanity[/red] like it's a BAD THING!"
"Dont yell at me if I'm wrong!...I'm at least trying to help!"
 
When you have one button over another Flash only reads the uppermost one. You could try using a movieclip instead of a button and use hitTest() to detect if the mouse is over it and advance to a "rollOver" frame within the clip.

if(this.hitTest(_root._xmouse,_root._ymouse,false)){
gotoAndStop("rollOver");
} else {
gotoAndStop("upState");
}


This works even if the clip is covered by an invisible button.
 
I know what to do now!...I killed all the buttons at a point, and put them in all my seperate movies and put my own code over...its cool now...thanks wang! Regards,
Anth:cool:ny
----------------------------------------
"You say [red]insanity[/red] like it's a BAD THING!"
"Dont yell at me if I'm wrong!...I'm at least trying to help!"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top