Current location: Hot Scripts Forums » General Web Coding » Flash & ActionScript » Rollover regions


Rollover regions

Reply
  #1 (permalink)  
Old 04-11-07, 11:55 AM
shermski shermski is offline
Newbie Coder
 
Join Date: Jul 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Rollover regions

Hi group,

i have a movieclip that when you mouseover shows an flv play controller. I have used a simple blank button to say: show the player on rollover, hide the player on rollout.

The problem i have is that the flv player controls (components) seem to constitute a rollOut event so when the user rolls over the player controls the player hides itself..

is there a way to set mouseover regions with actionscript so mouseover will be uneffected by other btns and such?

Searched the forum and web and couldn't seem to find anything and im sure this is pretty straight forward.

Thanks for any help available

S
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 04-11-07, 10:40 PM
omniman's Avatar
omniman omniman is offline
Coding Addict
 
Join Date: Aug 2006
Location: Baltimore, MD
Posts: 342
Thanks: 0
Thanked 1 Time in 1 Post
Like everything else, Flash handles buttons based on depth. If buttonA has a higher depth than buttonB - you will not be able to access buttonB (assuming it is completely covered by buttonA).

So, if you want to "disable" the rollOver effects on the video player, place a 'dummy' button over the entire video player (or portion you don't want affected by rollOver commands). Then, you can disable the hand cursor that appears over buttons by...

Code:
dummyButton.useHandCursor = 0;
Now, the video player will be unaffected by any rollOver/rollOut commands. Next, place your movieClip controller you made above the dummy button and you're good to go.
__________________
"Political Correctness is a doctrine, fostered by a delusionary, illogical, liberal minority and rabidly promoted by an unscrupulous mainstream media, which holds forth the proposition that it is entirely possible to pick up a turd by the clean end."
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 04-11-07, 11:25 PM
shermski shermski is offline
Newbie Coder
 
Join Date: Jul 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks for the help

s
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Javascript Rollover Help socalme JavaScript 2 03-13-07 06:01 PM
multiple rollover links on different regions of 1 image Lunar Flash & ActionScript 6 11-29-06 02:21 PM
problem with adding url interfering with rollover kevincompton Flash & ActionScript 4 06-26-06 12:14 PM
Special rollover scripts alt-088 JavaScript 4 10-17-05 08:32 PM
Rollover blessedrub JavaScript 2 05-25-05 10:22 AM


All times are GMT -5. The time now is 07:21 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.