Wrox Programmer Forums
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Flash (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old August 21st, 2006, 12:19 PM
Authorized User
Join Date: Oct 2003
Posts: 96
Thanks: 0
Thanked 0 Times in 0 Posts
Default Using Scenes in Flash?

Some say it's best to stay away from using Scenes in your Flash movies. Any reason why some would say this can cause problems?

Old December 15th, 2006, 05:42 PM
Registered User
Join Date: Dec 2006
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts

From an ActionScripter's point of view, the addition of scenes adds to the complexity of controlling content with ActionScript. For example, with every scene added, you add another frame 1 to root. So a script can no longer look at the frame number alone for an accurate estimation of the current frame being played since it could be frame 1 in one of several scenes. Therefore scenes must then be tracked as a separate entity. The ability to query for and maintain scenes via ActionScript is not as robust as one would hope.

As well, scenes act to separate content in much the same way as developing each scene as if they were their own moviieclip yet without a movieclip's inherent re-usability as a library asset.

So by using Scenes you're not taking advantage of the object oriented possibilities within flash and limiting yourself.

That now begs the question, why does Adobe keep scenes in the IDE a possibility then? There are several reasons you'd want scenes. Many of the older flash 4 files used scenes since the object oriented nature of modern Flash was in it's infancy at the time and scenes was a logical way to separate sections of content. As well, scenes can still help facilitate separation of content for animators wishing to output their frames as a video file such as avi or mov. We all know of course that attempting to use movieclips and actionscript and then outputting to avi or mov can have very disappointing results.

So use frames, but have a specific problem that is being solved by their use.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help In Flash mushahid980 C++ Programming 0 February 21st, 2007 12:20 PM
Flash help! matchew Flash (all versions) 2 February 17th, 2006 02:59 PM
switching scenes in Flash MX nancy Flash (all versions) 1 March 15th, 2005 04:42 PM
New to Flash bmains Flash (all versions) 3 July 2nd, 2004 03:08 AM
Password-Protect Certain Scenes Ben Horne Flash (all versions) 5 April 5th, 2004 11:13 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.