Defining mouse area for rollovers - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Defining mouse area for rollovers


i have a file called links.swf which contains 5 links. When the mouse rolls over LINK 2, it loads another "swf" to play some animation and displays the sublinks of LINK 2. When the user moves beyond a certain area within which the sublinks lie, i want to replay the animation and load back the original links file. i have used the following script to define the area.

topy = "50";(variable defining the topmost y postition)
downy = "115"; (variable defining bottommost y position)
startDrag ("_root.sensor", true);
ypos = getProperty (_root.sensor, _y );(trap y position)
if (maths.abs(ypos)downy) {
play (); (plays the frames of the animations and loads
back the original links file)

but this script is not working though it is not showing any errors. pls help me if u can.

Sign In or Register to comment.