Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

play() action won't work

Status
Not open for further replies.

NIA2

Technical User
Aug 30, 2006
137
0
0
AU
Hi everyone,

I have a very simple question - I think.

I have a movieclip on the main timeline called "intro_mc". Within this movieclip is another movieclip called "corpcat_mc". There are several instances of corpcat_mc on different layers which animate at different times.

I've put a stop action on the first and last frames of intro_mc, then on frame 1 of the main timeline I tried to add some actionscript that will tell intro_mc to play. The actionscript is as follows:

this.intro_mc.play();

Problem is it doesn't play when I test it. Does anyone know why?

Appreciate any help.
 
click your mc and add this code
on(rollOver)
{this.gotoAndPlay(2);}

You can even target the movieclips inside that movie from any button by:(this plays frame 2 of corpcat_mc.

on(rollOver)
{_root.intro_mc.corpcat_mc.gotoAndPlay(2);}

I'd gladly pay you on Thursday
for a hamburger today!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top