Groups | Blog | Home
all groups > flash (macromedia) > june 2006 >

flash (macromedia) : onRollOver


Mister Peanut
6/3/2006 9:26:47 PM
Okay, I've been looking at past onRollOver help topics for a while, and trying
different variations in my own page, but I can't get anything to work.

I have a MovieClip animation named 'photoclip' placed on my page with an
instance name of 'blankpic', The movie clip has my picture swinging back and
forth. I want to have the movieclip start swinging when the mouse passes over
it. I am using the following actionscript:

blankpic.onRollOver = function(){
gotoAndPlay ("photoclip");
}

I'm sorry, this must be so simple. I'm just a newbie, but I really can't
figure it out. Should I put the Actionscript in the movieclip timeline???

Confused & Frustrated

Motion Maker
6/4/2006 12:10:31 PM
blankpic.onRollOver = function(){
gotoAndPlay ("photoclip");
}
The above needs to be on a frame that also contains blankpic.

The gotoAndPlay seems odd. It says "blankpic go to and play the frame label
photoclip". You might meant photoclip.play(); But then is photoclip a
library symbol name? You cannot reference library symbol names in
Actionscript. Perhaps you mean just simply play(); if you are trying to get
blankpic to play.

blankpic.onRollOver = function(){
play();
}

--
Lon Hosford
www.lonhosford.com
Flash, Actionscript and Flash Media Server examples:
http://flashexamples.hosfordusa.com
May many happy bits flow your way!
[quoted text, click to view]
Okay, I've been looking at past onRollOver help topics for a while, and
trying
different variations in my own page, but I can't get anything to work.

I have a MovieClip animation named 'photoclip' placed on my page with an
instance name of 'blankpic', The movie clip has my picture swinging back
and
forth. I want to have the movieclip start swinging when the mouse passes
over
it. I am using the following actionscript:

blankpic.onRollOver = function(){
gotoAndPlay ("photoclip");
}

I'm sorry, this must be so simple. I'm just a newbie, but I really can't
figure it out. Should I put the Actionscript in the movieclip timeline???

Confused & Frustrated

Mister Peanut
6/11/2006 5:56:15 PM
Thank you!

I knew it was simple. I just need to find some good, basic tutorials, I suppose.

AddThis Social Bookmark Button