To control when an object is active you can place activation code on the _root timeline. So when your Flash movie gets to a certain point your objects become active. Which is useful for sections on a Flash site where you have objects sitting behind a menu which needs clicking before you can get to the other interactive objects. The splash intro on my site uses this code (the objects which drop into shot are inactive till you click through. Click here to view my site and how this code could work for you.
Put this the the timeline where you want your object to activate.
_root.container.OnestartActive();
Within your Movieclip put your actions inside a function
function OnestartActive()
{
trace("IN MAKE ONE START ACTIVE");
one.onRelease = function (){
gotoAndPlay("starttoonetransition");
}
}
Wednesday, 6 January 2010
Actionscript Inspiration! How to control when a Flash object is and isn't active
Labels:
Actionscript Inspiration
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment