|
Interactive Flash Actionscript Tutorialback iScreensaver allows designers the ability to create Interactive Flash movies: An interactive movie is one for which the mouse cursor is visible, and the user can move the mouse and click buttons while the screensaver is running without waking up the screensaver. These buttons can do all sorts of things, such as opening a web page, turning off the sound, changing the animation, etc. This tutorial shows two examples: (1) how to link to external web sites and (2) how to exit the screensaver gracefully. Tutorial Goal : Looping, stopping, and referencing external websites from an interactive Flash movie. Techniques : Use only three actionscripts - one keyframe action and two object actions. The keyframe action creates a simple loopback to the beginning of the movie. The object actions are assigned to button symbols targeting mouse releases. Since the usual purpose of an interactive movie is to provide specialized informational/entertainment content to the user, you need to provide a way for user feedback. Using the cursor allows this in the most intuitive manner. About Looping : An interactive movie must loop automatically within the actionscript. The reason for this is that when an interactive movie stops (i.e. by running off the last frame of the timeline), this signals the screensaver engine to exit screensaver mode. In other words, if an interactive movie stops, it signals that the screensaver is over. Therefore, all interactive movies must loop internally. The looping actionscript below shows how to accomplish this. Tutorial Assets : These are installed into the 'Sample Projects' folder when installing iScreensaver Designer. back Looping ActionScript:
This actionscript for Frame 60 causes the movie to loop back and play from the first frame. Website Linking ActionScript:
The actionscript for this Button causes the movie to skip to the last frame, which will stop the screensaver, and to load a website. To assign this action, control-click on the button artwork and choose Actions from the pop-up menu. Exit Screensaver ActionScript:
The actionscript for this Button causes the movie to skip to the last frame, which will stop the screensaver. back Copyright ©1995-2008 Xochi Media Inc. All Rights Reserved. Xochi™, XochiMedia™, iScreensaver™, iScreensaver Designer™, iScreensaver Classic™, and the DoubleRing logo are trademarks of Xochi Media Inc. Apple®, Macintosh®, and QuickTime® are trademarks and/or registered trademarks of Apple Computer, Inc. Adobe® and Adobe Flash® are trademarks and/or registered trademarks of Adobe, Inc. Microsoft® and Windows® are registered trademarks of Microsoft Corporation. ENERGY STAR® is registered trademark of the Enivronmental Protection Agency. ScreenTime™ and CineMac™ are trademarks of ScreenTime Media. All other trademarks are the property of their respective owners. Anti-Spam Warning: This corporation and website operate in the state of California of the United States. The sending of any unsolicited email advertising messages to this domain will result in the imposition of civil liability against you in accordance with California Business & Professional Code Section 17538.45. |
||||||||||||||||||||||||||||||||||||||||||||||||||||