Hey WC,
I have been using a generic docking / autohide script, and its autohide state causes problems in my upcoming theme. The theme has docking objects with children, but the children need to use "MouseEnter" & "MouseLeave" subs. However, this screws up the autohide section of the docking object script, which uses "MouseLeaveEx"
Since the scripts interrupt each other, is there any other way I can script "Object_OnMouseEnter" / "Object_OnMouseLeave" subs / functions without using those?
I tried this, and it didn't work:
'Script for object "Activator", "Activator2", "Activator3", etc.
Object_OnStateChange (state)
If state = "Mouse over" Then
DesktopX.ScriptObject("Example").FadeIn
Else state = "Mouse down" Then
DesktopX.ScriptObject("Example").FadeIn
Else
DesktopX.ScriptObject("Example").FadeOut
The object "Example" has 2 functions. "FadeIn" realigns the object "Example", kills the timer used in "FadeOut" & activates a timer that increases opacity. "FadeOut" kills the timer used in "FadeIn" & activates a timer that decreases opacity.
The object "Example", when object "Activator" is 'mouse overed', fades in but then automatically fades out.
I see the problem here as that the other scripts (i.e. with objects "Activator2", etc.) are contradicting each other (the 'Mouse awayed' objects want to hide "Example" while the 'Moused overed' one wants to show it). Correct me if I'm wrong. What I am saying is using "StateChange" the way I did can only work for 1 child object.
If the above is not clear I can upload my situation again in my personal gallery.
If someone could give me an idea on how to work this, it would be great. (Either changing the generic docking script / the 'activator' script)
Thanks, Ryan (ST)