Old 19th August 2004, 12:21   #1
Drunken Master
n00b eater
(Member)
 
Join Date: Nov 2001
Posts: 282
Here is an example, of course this is something simple, and probably won't work in your specific case. I just made it as an example of how things should go.

PHP Code:
baseLayer.onEnterArea(){ //onEnterArea() for your container
actionA(); //action that happens onEnterArea()
}

baseLayer.onLeaveArea(){ //onLeaveArea() for your container
actionB(); //action that happens onLeaveArea()
}

baseLayerObjects.onEnterArea(){ //onEnterArea() for the objects in your container
actionA(); //same action used for baseLayer.onEnterArea() this makes sure baseLayer.onLeaveArea() isn't triggered
}

baseLayerObjects.onLeaveArea(){ //onLeaveArea() for the objects in your container
actionA(); //also the same action as baseLayer.onEnterArea() this is just to make sure everything remains at the baseLayer.onEnterArea() state

I think as long as you have gotoTarget(); in your actions the above should work fine. I mean, if it's already at the target, another onEnterArea() of the same action will cause nothing to happen (this I know for certain).
Drunken Master is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Skinning and Design > Modern Skins

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 On
HTML code is Off

Forum Jump