Adobe
Products
Acrobat
Creative Cloud
Creative Suite
Digital Marketing Suite
Digital Publishing Suite
Elements
Photoshop
Touch Apps
Student and Teacher Editions
More products
Solutions
Creative tools for business
Digital marketing
Digital media
Education
Financial services
Government
Web Experience Management
More solutions
Learning Help Downloads Company
Buy
Home use for personal and home office
Education for students, educators, and staff
Business for small and medium businesses
Licensing programs for businesses, schools, and government
Special offers
Search
 
Info Sign in
Welcome,
My cart
My orders My Adobe
My Adobe
My orders
My information
My preferences
My products and services
Sign out
Why sign in? Sign in to manage your account and access trial downloads, product extensions, community areas, and more.
Adobe
Products Sections Buy   Search  
Solutions Company
Help Learning
Sign in Sign out My orders My Adobe
Preorder Estimated Availability Date. Your credit card will not be charged until the product is shipped. Estimated availability date is subject to change. Preorder Estimated Availability Date. Your credit card will not be charged until the product is ready to download. Estimated availability date is subject to change.
Qty:
Purchase requires verification of academic eligibility
Subtotal
Review and Checkout
Adobe Developer Connection / Fireworks Developer Center /

Exploring the Demo Current Document command in Fireworks CS3

by Viktor Goltvyanitsa

Viktor Goltvyanitsa
  • zaporozhye.org/dreamworld/

Modified

27 August 2007

Page tools

Share on Facebook
Share on Twitter
Share on LinkedIn
Bookmark
Print
extensibility Fireworks CS3

Requirements

Prerequisite knowledge

You should have a working knowledge of the basic concepts behind vector and bitmap graphics and intermediate to advanced knowledge of ActionScript 2.0 if you decide to customize the presentation command in Adobe Flash CS3 Professional.

User level

Intermediate

Required products

  • Fireworks CS3 (Download trial)
  • Flash Player 9

Additional Requirements

Demo Current Document command (v. 1.0)

  • Download (ZIP, 112K)

Source code (only for advanced users):

  • dcd_source.zip (3.8 MB)

One of my favorite new features in Adobe Fireworks CS3 is its ability to include several pages in the same document. Not only can this feature help you be more productive with the work you do, but it also spawns new ideas and concepts for Fireworks extensions—in this case, the Demo Current Document command.

Here is what inspired me. When I was ready to discuss my designs with my clients, it wasn't always easy for me to present my Fireworks pages in a format other than separate HTML files and images exported from Fireworks. One common workflow that I and others followed to show clients our designs was to build a small site in Dreamweaver that linked all the mockups together in one place, or even exporting the images and generating a PDF. This process was time-consuming, and did not sit well with us when other firms were bidding on the same project. I thought it would be ideal to be able to view the Fireworks pages as a single presentation with only a couple of clicks.

Enter the Demo Current Document command, which makes it really easy to export your mockups and wireframes into a slick slideshow geared for giving presentations to clients or colleagues. This command has many uses. For example, one document can contain various templates for a website. Maybe you are prototyping a user experience for a specific workflow, or you are using pages to contain several design comps of one template. Pages can even act as a project containing multiple designs such as a banner, column ad, or site design. For more information about using pages, read Using Fireworks CS3 to design effective, interactive website presentations by Hoang Dinh.

Introducing the Demo Current Document command

After you install the Demo Current Document using the Adobe Extensions Manager, you will find it in the Commands menu. Select Commands > Demo Current Document to open the panel (see Figure 1). You use this panel to automatically export pages from the Fireworks document as a lightweight slideshow that you run in the browser using Adobe Flash Player 9 or later.

Demo Current Document panel
Figure 1. Demo Current Document panel

Creating a presentation

Here's how you create a slideshow presentation:

  1. Select Commands > Demo Current Document

    Note: Make sure you have multiple pages within the document, or the command will only export one page, which is not useful.

  2. Select a background color.
  3. Click Create Demo and browse for a location to save the presentation files (preferably in a new folder).

    Note: If you select your desktop, all the files will be placed on the desktop.

  4. Browse to the location where you saved the presentation, double-click demo_player.htm to start the presentation (see Figure 2), and you're done!
HTML page with Demo Current Document player in full-screen mode
Figure 2. HTML page with Demo Current Document player in full-screen mode

The Demo Current Document player has a simple style that will not get in the way of your presentation. Once the HTML page (demo_player.htm) opens in the browser, the player reads all the data from the generated images.xml file to display the slideshow. Here is a sample generated XML file:

<?xml version="1.0" encoding="UTF-8" ?> <demo background="000000" title="demo_current_document" maxW="706" maxH="500" bottomLineBgColor="000000" textColor="FFFFFF" lineAlpha="25" > <slide pathToImg="page0.jpg" /> <slide pathToImg="page1.jpg" /> <slide pathToImg="page2.jpg" /> <slide pathToImg="page3.jpg" /> <slide pathToImg="page4.jpg" /> <slide pathToImg="page5.jpg" /> <slide pathToImg="page6.jpg" /> <slide pathToImg="page7.jpg" /> <slide pathToImg="page8.jpg" /> <slide pathToImg="page9.jpg" /> <slide pathToImg="page10.jpg" /> <slide pathToImg="page11.jpg" /> </demo>

The player then loads the first image and automatically plays the slideshow by default.

Move your mouse pointer to the lower part of the screen to display the navigation strip. Click the Toggle Fullscreen, Prev, Next, Play, or Stop buttons to navigate through the presentation (see Figure 3).

Navigation buttons in the slidedshow
Figure 3. Navigation buttons in the slidedshow

Note: You can also control the slideshow by using the keyboard. Press the Page Up, Page Down, P, S, or left and right arrow keys. Unfortunately, keyboard control doesn't work in full-screen mode because the player blocks all the keyboard events in this mode, for security purposes.

A simple preloader is integrated into the player, so that you can place your slideshow on a web server and view it over a slow or fast connection.

Customizing the player and presentation

If you know ActionScript 2.0 and have the desire and motivation to improve on this command, it shouldn't be too hard for you to edit the included source files. I did my best to make the source code simple and clean for you to customize for your own presentations if you know how to develop in Flash CS3 Professional.

The following is a useful reference to get you started:

Fireworks CS3 API

fireworks_cs3_extending.pdf (PDF, 3 MB)

If you want to study the player in more detail, I recommend reviewing the SlideshowPlayer.as file in the player folder. The code for this class is far from ideal, but it works without errors and I will improve it in the near future.

Once you generate a presentation, you can manually edit it without Fireworks. The images.xml file has a very simple structure, so you should be able to edit it easily by hand. Simply change the names of the loaded image files and also their maximum width (maxW) and height (maxH) setting. If you intend to place the images in a folder within the same directory as the slideshow, make sure you use a valid path for the images or the slideshow will not play properly.

Where to go from here

I have no doubt that this command will help you present your work to clients or even to fellow designers and developers. It's very useful!

Studying the source files is also a simple way to learn and create your own extensions:

  • dcd_source.zip (3.8 MB)

In the future I'm going to make an improved Demo Current Document command. Today, for instance, there is no functionality in the page list. Here I could add the ability to sort pages and delete pages from the slideshow. Also, currently there is no easy way to give each slide a different background color.

Some features and improvements that I'm planning to implement include the following:

  • Adding a slideshow interval
  • Adding thumbnails into the player for slide previews
  • Adding a background image
  • Adding slide transitions
  • Rewriting the code for ActionScript 3.0

More Like This

  • Foundation Fireworks excerpts: Visual effects and extending Fireworks
  • Developing an effective Fireworks workflow
  • Using the Color Palette panel in Fireworks CS3
  • Using the 3D Rotate command in Fireworks CS3
  • Using the Fireworks to XAML panel in Fireworks CS3
  • Using the Gradient panel in Fireworks CS3
  • Handling Fireworks events with ActionScript 3.0
  • Using the Guides panel in Fireworks CS3
  • Creating Fireworks Panels – Part 2: Advanced Custom Panel Development
  • Enhancing rich symbols in Fireworks CS3

Tutorials & Samples

Tutorials

  • Creating jQuery Mobile website themes in Fireworks
  • Extracting CSS properties from Fireworks design objects
  • Working with CSS sprites in Fireworks CS6

Samples

  • Twitter Trends
  • Flex 4.5 reference applications
  • Mobile Trader Flex app on Android Market

Fireworks Forum

More
04/19/2012 How to center multiple text in a button
04/22/2012 What exactly needs to be done to have my browser output text into a path that the user cannot type..
04/21/2012 Website Ranking
04/20/2012 Link problem with Fireworks CS5 - net::ERR_FILE_NOT_FOUND

Fireworks Cookbooks

More
09/07/2011 How do I use FXG XML markup in Shape subclasses?
10/15/2010 Flex4 Dotted Line
06/25/2010 ComboBox that uses a NativeMenu (Air API)
05/21/2010 Localizing a Creative Suite 5 extension

Products

  • Acrobat
  • Creative Cloud
  • Creative Suite
  • Digital Marketing Suite
  • Digital Publishing Suite
  • Elements
  • Mobile Apps
  • Photoshop
  • Touch Apps
  • Student and Teacher Editions

Solutions

  • Digital marketing
  • Digital media
  • Web Experience Management

Industries

  • Education
  • Financial services
  • Government

Help

  • Product help centers
  • Orders and returns
  • Downloading and installing
  • My Adobe

Learning

  • Adobe Developer Connection
  • Adobe TV
  • Training and certification
  • Forums
  • Design Center

Ways to buy

  • For personal and home office
  • For students, educators, and staff
  • For small and medium businesses
  • For businesses, schools, and government
  • Special offers

Downloads

  • Adobe Reader
  • Adobe Flash Player
  • Adobe AIR
  • Adobe Shockwave Player

Company

  • News room
  • Partner programs
  • Corporate social responsibility
  • Career opportunities
  • Investor Relations
  • Events
  • Legal
  • Security
  • Contact Adobe
Choose your region United States (Change)
Choose your region Close

North America

Europe, Middle East and Africa

Asia Pacific

  • Canada - English
  • Canada - Français
  • Latinoamérica
  • México
  • United States

South America

  • Brasil
  • Africa - English
  • Österreich - Deutsch
  • Belgium - English
  • Belgique - Français
  • België - Nederlands
  • България
  • Hrvatska
  • Česká republika
  • Danmark
  • Eastern Europe - English
  • Eesti
  • Suomi
  • France
  • Deutschland
  • Magyarország
  • Ireland
  • Israel - English
  • ישראל - עברית
  • Italia
  • Latvija
  • Lietuva
  • Luxembourg - Deutsch
  • Luxembourg - English
  • Luxembourg - Français
  • الشرق الأوسط وشمال أفريقيا - اللغة العربية
  • Middle East and North Africa - English
  • Moyen-Orient et Afrique du Nord - Français
  • Nederland
  • Norge
  • Polska
  • Portugal
  • România
  • Россия
  • Srbija
  • Slovensko
  • Slovenija
  • España
  • Sverige
  • Schweiz - Deutsch
  • Suisse - Français
  • Svizzera - Italiano
  • Türkiye
  • Україна
  • United Kingdom
  • Australia
  • 中国
  • 中國香港特別行政區
  • Hong Kong S.A.R. of China
  • India - English
  • 日本
  • 한국
  • New Zealand
  • 台灣

Southeast Asia

  • Includes Indonesia, Malaysia, Philippines, Singapore, Thailand, and Vietnam - English

Copyright © 2012 Adobe Systems Incorporated. All rights reserved.

Terms of Use | Privacy Policy and Cookies (Updated)

Ad Choices

Reviewed by TRUSTe: site privacy statement