Solved

Problem with rollover in movieclip in scrollpane

Posted on 2006-11-01
2
329 Views
Last Modified: 2008-02-01
This is a followup question from this thread:
http://www.experts-exchange.com/Web/WebDevSoftware/Flash/Q_22044839.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?



0
Comment
Question by:Fern2
2 Comments
 
LVL 23

Accepted Solution

by:
Zeffer earned 500 total points
ID: 17852604
you need a constructor for the class.. try this..

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


Z



0
 
LVL 1

Author Comment

by:Fern2
ID: 17855866
thx Zeffer. Brilliant
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Text To Speech Reader For Adobe Flash Pages 4 956
SCCM 2012 - Deploy Flash 16 7,082
Microsoft WSUS 4 110
Flash being Disabled - help! 20 343
I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question