MULTIMEDIA

Adobe Flash Professional CS5 : Publishing Flash Documents (part 1) - Understanding the Bandwidth Profiler

9/13/2012 1:11:07 AM
Testing a Flash Document

Troubleshooting is a skill you develop over time, but it’s easier to identify the cause of problems if you test your movie frequently as you create content. If you test after each step, you know which changes you made and therefore what might have gone wrong. A good motto to remember is “Test early. Test often.”

One fast way to preview a movie is to choose Control > Test Movie > in Flash Professional (Ctrl+Enter/Command+Return), as you’ve done in earlier lessons. This command creates a SWF file in the same location as your FLA file so you can play and preview the movie; it does not create the HTML file or any other files necessary to play the movie from a Web browser.

When you believe you’ve completed your movie or a portion of the movie, take the time to make sure all the pieces are in place and that they perform the way you expect them to.

1.
Review the storyboard for the project, if you have one, or other documents that describe the purpose and requirements of the project. If such documents do not exist, write a description of what you expect to see when you view the movie. Include information about the length of the animation, any buttons or links included in the movie, and what should be visible as the movie progresses.

2.
Using the storyboard, project requirements, or your written description, create a checklist that you can use to verify that the movie meets your expectations.

Note

The default behavior for your movie in the Test Movie mode is to loop. You can make your SWF play differently in a browser by selecting different publish settings or by adding ActionScript to stop the Timeline.

3.
Choose Control > Test Movie > in Flash Professional. As the movie plays, compare it with your checklist. Click buttons and links to ensure they behave as expected. You should click on every possibility that a user may encounter. This process is called QA, or quality assurance. In larger projects, it may be referred to as beta testing.

4.
Choose File > Publish Preview > Default-(HTML) to export a SWF file and an HTML file required to play in a browser and to preview the movie.

A browser opens, if one is not already open, and plays the final movie.

5.
Upload the two files (the SWF and HTML) to your own Web server and give your colleagues or friends the Web site address so they can help you test the movie. Ask them to run the movie on different computers with different browsers to ensure that all the files are included and that the movie meets the criteria on your checklist. Encourage testers to view the movie as though they were its target audience.

If your project requires additional media, for example, FLV or F4V video files, skin files for your video, or external SWF files that are loaded, you must upload them along with your SWF and HTML file.

Note

You can also just choose File > Publish (Shift+F12) to export the SWF file and the HTML file without previewing the movie in a Web browser.

6.
Make changes and corrections as necessary to finalize the movie, upload the revised files, and then test it again to ensure it meets your criteria. The iterative process of testing and making revisions may not sound like fun, but it is a critical part of launching a successful Flash project.

Understanding the Bandwidth Profiler

You can preview how your final project might behave under different download environments by using the Bandwidth Profiler, a useful panel that is available when you are in Test Movie mode.

View the Bandwidth Profiler

The Bandwidth Profiler provides information such as the overall file size, the total number of frames, the dimensions of the Stage, and how your data is distributed throughout your frames. You can use the Bandwidth Profiler to pinpoint where there are large amounts of data so you can see where there may be pauses in the movie playback.

1.
Choose Control > Test Movie > in Flash Professional.

Flash exports a SWF and displays your movie in a new window.

2.
Choose View > Bandwidth Profiler.



A new window appears above your movie. Basic information about your movie is listed on the left side of the profiler. A timeline appears on the right side of the profiler with gray bars representing the amount of data in each frame. The higher the bars the more data is included.

You can view the graph on the right in two ways: as a Streaming Graph (View > Streaming Graph) or as a Frame By Frame Graph (View > Frame By Frame Graph). The Streaming Graph indicates how the movie downloads over the Web by showing you how data streams from each frame, whereas the Frame By Frame Graph simply indicates the amount of data in each frame. In Streaming Graph mode, you can tell which frames will cause hang-ups during playback by noting which bar exceeds the given Bandwidth setting.

Test download performance

You can set different download speeds and test the playback performance of your movie under those different conditions.

1.
While in Test Movie mode, choose View > Download Settings > DSL.

The DSL setting is a type of Internet connection and a measure of the download speed that you want to test. It corresponds to 32.6 kilobytes per second. Choose higher or lower speeds depending on your target audience.

2.
Choose View > Simulate Download.



Flash simulates playback over the Web at the given Bandwidth setting (DSL). A green horizontal bar at the top of the window indicates which frames have been downloaded, and the triangular playhead marks the current frame that plays. Notice that there is a slight delay at frame 1 while the data downloads. Anytime a gray data bar exceeds the red horizontal line (the one marked 1.1 KB), there will be a slight delay in the playback of your movie.

Once sufficient data has downloaded, the movie plays, though you may still see some pauses when the playhead catches up to the downloaded portions.

3.
Choose View > Download Settings > T1.

T1 is a much faster broadband connection than DSL, which simulates download speeds of 131.2 kilobytes per second.

4.
Choose View > Simulate Download.

Flash simulates playback over the Web at the faster speed. Notice that the delay at the beginning is very brief, and the movie plays almost seamlessly as the movie downloads quick enough so the playhead never catches up.

Note

The download speeds listed for DSL, T1, and the other preset options represent Adobe’s estimate of those standard Internet connections. You should determine the actual speed of your Internet provider. You can customize the options and their speeds by choosing View > Download Settings > Customize.

5.
Close the preview window.

Other  
  •  Action Cam For Extreme Sports
  •  Lytro : Snapshot Of The Future
  •  Samsung DV300F : Great Photographic Back-Up Camera
  •  Samsung HMX-H400 Black : More Than Just Taking Snapshots
  •  Argos Curved Computer Desk Trolley
  •  App Of The Week : ZX Spectrum 4.Net
  •  Audioengine A5+ Powered Speakers
  •  Razer Tiamat 7.1 Gaming Headset
  •  Dirty Laundry : Having your bateau and eating it
  •  Dropcam HD: It doesn't get any easier than this
  •  Motu Machfive 3.0.2 : Stonking samples
  •  Moving Images Around Your Work Documents
  •  Skype Vs. Google Video Chat
  •  Hanns.G HL229DBP : Pixels for peanuts
  •  Ultimate Guide To Google Play (Part 2)
  •  Ultimate Guide To Google Play (Part 1)
  •  Open GL : Drawing a lot of Geometry Efficiently (part 3) - Getting Your Data Automatically
  •  Open GL : Drawing a lot of Geometry Efficiently (part 2) - Instanced Rendering
  •  Open GL : Drawing a lot of Geometry Efficiently (part 1) - Combining Drawing Functions, Combining Geometry Using Primitive Restart
  •  Open GL : Using Vertex Array Objects to Organize Your Buffers
  •  
    Top 10
    Windows Vista : Installing and Running Applications - Launching Applications
    Windows Vista : Installing and Running Applications - Applications and the Registry, Understanding Application Compatibility
    Windows Vista : Installing and Running Applications - Practicing Safe Setups
    Windows Server 2003 : Domain Name System - Command-Line Utilities
    Microsoft .NET : Design Principles and Patterns - From Principles to Patterns (part 2)
    Microsoft .NET : Design Principles and Patterns - From Principles to Patterns (part 1)
    Brother MFC-J4510DW - An Innovative All-In-One A3 Printer
    Computer Planet I7 Extreme Gaming PC
    All We Need To Know About Green Computing (Part 4)
    All We Need To Know About Green Computing (Part 3)
    Most View
    Primer - Movie Formats And Conversion
    Beginning Android 3 : Working with Containers - Scrollwork
    Build Mobile Websites and Apps for Smart Devices : Design for Mobile - Establish a Style
    Implement an Observer (aka Subscriber) Pattern
    DSLR Shootout: Advanced Professional Level - Nikon D4, Canon EOS-1DX
    Exchange Server 2010 server roles (part 3) - Edge Transport Server role
    10 Simple Steps To Glamour
    Advice Centre by Photography Experts (Part 1) - Nikon D300
    OTL – a new direction of electric tube amplifier
    Windows Azure and ASP.NET : Creating a Windows Azure Project
    Dirty Laundry : Having your bateau and eating it
    Installing Exchange Server 2010 : Check the Exchange installation
    Bose Introduced The Second TV Series
    Windows 9 : What to expect - 32-bit support , WinRT & XNA
    Using the iPhone Simulator
    Window 8: Why You Should Upgrade
    Cooler Master JAS PRO - A ‘Permanent’ Stand For Home Or Office Use
    Standarlize Desktop Computer (Part 1)
    Samsung Series 9 Notebook – One Step Over And Beyond
    Windows 7 : Using Shared Resources - Creating Network Locations