Link to home
Start Free TrialLog in
Avatar of Fern2
Fern2Flag for Iceland

asked on

Problem with rollover in movieclip in scrollpane

This is a followup question from this thread:
https://www.experts-exchange.com/questions/22044839/Scrollpane-with-movieclips.html

Now I have this script that works excellent with the help from the great Aneeshchopra.

my_mc is a empty movieclip in my library
and clip1 and clip2 are the clips i need to display in my scrollpane.

mypane.contentPath = "my_mc";
mycontainer = mypane.content;
temp = mycontainer.attachMovie("clip1", "clip1", 1, {_y:0});
temp2 = mycontainer.attachMovie("clip2", "clip2", 2, {_y:18});

after this script here above which works excellent like i mentioned I have this script because I want to interact with clip1 and clip2:

clip1Class.prototype = new MovieClip();
Object.registerClass("clip1", clip1Class);
clip1Class.prototype.onRollOver = function() {
      trace("rollover");
};

But I cant get it to do the trace?

Does anybody know whats the problem here?



ASKER CERTIFIED SOLUTION
Avatar of Zeffer
Zeffer
Flag of New Zealand image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Fern2

ASKER

thx Zeffer. Brilliant