This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Flash Site Design > March 2006 > Re: Need Help navigating from scene to scene using Movie Clips





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: Need Help navigating from scene to scene using Movie Clips
Peter Blumenthal

2006-03-27, 6:44 pm

> on(press){
> //gotoANDplay ("scene x", frame)
> gotoANDplay("scene 4", 1)
> }



This will cause you problems. Firstly, this is targeting the timeline of the
movieclip with the onPress handler not the movie, secondly scene names are
unreliable when using gotoAndPlay from a movieClip.

You'd be better to give the frame in the scene you wish to go to a name
(select the frame in the timeline, enter a name in the 'Frame' box in the
properties panel) and target that using the relevant scope from your MC. If
the mc is on the _root timeline, you would use:

b1.onPress = function(){
this._parent.gotoAndPlay("myFrameName");
}

Where "myFrameName" is the name assigned to the frame you wish to go to.

--
-------------------------------
Remove '_spamkiller_' to mail
-------------------------------


Peter Blumenthal

2006-03-28, 6:32 am

You're welcome

--
-------------------------------
Remove '_spamkiller_' to mail
-------------------------------


Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews