Solved

Problem with rollover in movieclip in scrollpane

Posted on 2006-11-01
2
324 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Flash media server 1 325
Adobe Flash Player not supported on my Tablet 7 701
Failed download 57 535
Adobe Flash Player ActionScript error 6 50
Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

708 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now