Mailing List
Home
Forum Home
Flash Pro
Subjects
Firework Effect
setInterval bug identified and fixed
setInterval bug identified and fixed
ScrollPane component doesn 't auto update
Help: MX 2004 How to script a print button to print the entire sli
Event Dispatcher between classes
memory management removeMovieClip /
MX2004 Dataset itemClassName
Order of events per frame
XML to Object help
Textfield prototype question
Flash and QuickTime VR
Reading and displaying RSS feeds in Flash MX
Flash MX 2004 Sucks
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash Interface with 10mb xml file
Web Service Results
Listener Object 's best practice
 
Movie clip inside a button

Movie clip inside a button

2004-02-20       - By Jerome Pennington

 Back
Reply:     1     2  

I have a button that I want to animate when the user mouses over it.
It's not working.

On the stage I have a button, "liz".  Button liz has some AS in it:

on (rollOver) {
   tellTarget ("/liz/lizover"){
       gotoAndPlay (1);
   }
}

The over state of that button contains a movie clip called "lizover".
Inside lizover a 10-frame timeline tweens a graphic, "lizovergraphic",
from alpha 0% to alpha 100%.  



I'm kind of in a rush.  It's possible I haven't thought it through all
the way... ;-)  What am I doing wrong?

Thanks,
Jerome

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>

<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><SPAN class=640050819-20022004><FONT face="Courier New"><FONT size=2>I
<SPAN
class=640050819-20022004> have a button that I want to animate when the user
mouses over it.&nbsp; It's not working.</SPAN></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=640050819-20022004><FONT face="Courier New"><FONT size=2><SPAN
class=640050819-20022004></SPAN></FONT></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=640050819-20022004><FONT face="Courier New"><FONT size=2><SPAN
class=640050819-20022004>On the stage I have a button, "liz".&nbsp; Button liz
has some AS in it:</SPAN></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=640050819-20022004><FONT face="Courier New"><FONT size=2><SPAN
class=640050819-20022004></SPAN></FONT></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=640050819-20022004><FONT face="Courier New"><FONT size=2><SPAN
class=640050819-20022004>
<DIV><SPAN class=640050819-20022004><FONT face="Courier New"><FONT size=2><SPAN
class=640050819-20022004>on (rollOver) {</SPAN></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=640050819-20022004><FONT face="Courier New"><FONT size=2><SPAN
class=640050819-20022004>&nbsp;&nbsp;&nbsp; tellTarget
("/liz/lizover"){</SPAN></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=640050819-20022004><FONT face="Courier New"><FONT size=2><SPAN
class=640050819-20022004>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gotoAndPlay
(1);</SPAN></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=640050819-20022004><FONT face="Courier New"><FONT size=2><SPAN
class=640050819-20022004>&nbsp;&nbsp;&nbsp; }</SPAN></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=640050819-20022004><FONT face="Courier New"><FONT size=2><SPAN
class=640050819-20022004>}</SPAN></FONT></FONT></SPAN></DIV></SPAN></FONT><
/FONT></SPAN></DIV>
<DIV><SPAN class=640050819-20022004><FONT face="Courier New"><FONT size=2><SPAN
class=640050819-20022004></SPAN></FONT></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=640050819-20022004><FONT face="Courier New"><FONT size=2><SPAN
class=640050819-20022004>The over state of that button contains a movie clip
called "lizover".&nbsp; Inside lizover a 10-frame timeline tweens a graphic,
"lizovergraphic", from alpha 0% to alpha 100%.&nbsp;
</SPAN></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=640050819-20022004><FONT face="Courier New"><FONT size=2><SPAN
class=640050819-20022004></SPAN></FONT></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=640050819-20022004><FONT face="Courier New"><FONT size=2><SPAN
class=640050819-20022004></SPAN></FONT></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=640050819-20022004><FONT face="Courier New"><FONT size=2><SPAN
class=640050819-20022004></SPAN></FONT></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=640050819-20022004><FONT face="Courier New"><FONT size=2><SPAN
class=640050819-20022004>I'm kind of in a rush.&nbsp; It's possible I haven't
thought it through all the way...&nbsp;;-)&nbsp; What am I doing
wrong?</SPAN></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=640050819-20022004><FONT face="Courier New"><FONT size=2><SPAN
class=640050819-20022004></SPAN></FONT></FONT></SPAN><SPAN
class=640050819-20022004><FONT face="Courier New"><FONT size=2><SPAN
class=640050819-20022004></SPAN></FONT></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=640050819-20022004><FONT face="Courier New"><FONT size=2><SPAN
class=640050819-20022004>Thanks,</SPAN></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=640050819-20022004><FONT face="Courier New"><FONT size=2><SPAN
class=640050819-20022004>Jerome</SPAN></FONT></FONT></SPAN></DIV></BODY></HTML>