Welcome!

Adobe Flex Authors: Matthew Lobas, PR.com Newswire, Shelly Palmer, Kevin Benedict

Related Topics: Adobe Flex

Adobe Flex: Article

The Low-Down on Pop-Up Menus in Fireworks 8

The creation of a menu in various modes

Those of you who follow the Fireworks forum postings will probably recognize my name. I suppose I may have gotten a reputation as a crusader who opposes the use of the original Fireworks Pop-Up Menu as implemented in Macromedia Fireworks MX 2004 and earlier. I'm here to tell you that you are absolutely right. There are more than a few reasons not to use those pop-up menus, in my opinion, and I have spent a fair amount of time posting to this effect.

So why am I writing this article, then? Well, I have an agenda, as follows:

  • I want to tell the Fireworks team that I appreciate the effort that they have devoted to making this new menu system.
  • I want to tell you that I will no longer bore you with my usual posts about not using this menu system.
  • I am very hopeful that the Dreamweaver development team will take these comments to heart and focus on the pop-up menu feature in future releases of that program.
To cut to the chase, I am happy to tell you that this feature is greatly improved in Fireworks 8.

In this article I briefly describe the creation of a menu in various modes. I examine and discuss the markup created by Fireworks ready for import into Dreamweaver, and describe what I think might be useful improvements to consider in the resulting markup.

Building a Pop-Up Menu
Those of you who have used the pop-up menu feature in earlier versions of Fireworks will be right at home in the current one. The setup and dialog panel are identical in Fireworks MX 2004 and Fireworks 8, offering exactly the same options and choices. Using this feature in Fireworks 8, you can build visually pleasing menu sets. It's easy to see its appeal.

To examine the pop-up menus that Fireworks 8 creates, you will need to create several extremely simple files. For the first one, open Fireworks and select File > New to create a new page - say, 640 x 400 pixels. Select the text tool and enter Link1 anywhere on the page.

Exit the text tool and then draw a slice around Link1 (I made mine 41 pixels wide and 23 pixels tall). Select it, name it link1button, use the selected slice's bull's-eye to drop the context menu, and select Add Pop-up Menu from the menu choices. A panel will open, and you will make this slice show a simple, single-option submenu. In this panel enter Sub1-1 under the Text column head. There is no need to enter a link or a target.

Now click the Next button to advance to the Appearance tab (or just click the tab), where you can select that this is a vertical menu. With no further adjustment, the submenu will be drawn on top of the top menu choice, so you should advance to the Position tab and click the second position icon from the left. Leave the rest of the settings in this and the other tabs at their default values, and conclude this menu by clicking Done. Save this file as singlebutton.png.

Preview the menu by selecting File > Preview in Browser and then choosing your browser of choice. You should see a single-button menu which, upon rollover, drops a single-option submenu. With singlebutton.png still open, you can now add more buttons to the menu. For the purposes of this tutorial, you will add three more menu buttons and give each of them a single pop-up submenu. To do this, deselect the visible slices option in the Web Layer tools, double-click Link1, and append Link2 Link3 Link4 to it (I have put two spaces between each link name).

Now exit text mode, enable the visible slices option, and select the slice tool to add a slice of similar dimension to link1button to each of the three new menu options. Beginning with Link2, name each new slice using a nomenclature similar to that used previously: link2button, link3button, and link4button. One by one, select each new slice and use the bull's-eye to add a pop-up menu with a single submenu: Sub2-1, Sub3-1, and Sub4-1. Save this new menu arrangement as fourbutton.png.

A preview in browser should once again reveal what good work you do.

Importing the Pop-Up Menu into Dreamweaver
Now that you have two menus created - one with a single button and a single pop-up menu, and one with four buttons, each with a single pop-up menu - it's time to get these into Dreamweaver and examine the markup.

Open singlebutton.png and select File > Export. Choose a landing site for the files from this (I created a folder called single and placed these files into that folder). Looking closely at the Export panel, make sure that the Export field is set to HTML and Images, the HTML field is set to Export HTML File, and the Slices field is set to Export Slices, with the Include Areas Without Slices check box also enabled.

Click the Options button and choose your favorite HTML style and extension. Of the four check boxes on that HTML Setup panel, you need to have at least the bottom two selected (Use CSS for Popup Menus and Write CSS to an External File). Click OK to get out of this HTML Setup panel and the previous Export panel to save the files.

Do the same for fourbutton.png (I created a folder called fourbutton and placed these files there). You have now created all the files you need for the remainder of this tutorial. For me, this process gets the following relevant files in the single folder (and analogous ones in the fourbutton folder): singlebutton.html, singlebutton.css, and mm_css_menu.js. The singlebutton files will be used to describe the details of the menu and its construction. The fourbutton files are there to examine the CSS needed for this slightly more "real-world" example.

The process of inserting these menus into Dreamweaver is exactly the same as it has been for several releases now. Open your Dreamweaver page, place the insertion point where you want the menu inserted, and select Insert > Image Objects > Fireworks HTML. For the remainder of this tutorial, you will examine the code written by Fireworks to understand how these menus are built and how they work. I will use the original files written by Fireworks 8 for this explanation.

Looking at the Code
A glance at the HTML immediately reveals that these menus are very different from those built in earlier versions of Fireworks. The most significant difference is that the links are not written into plain HTML markup on the page.

More Stories By Murray Summers

Murray Summers is a biochemist by training, but has spent the last 20 years working in the computer industry. In 1998, Murray started Great Web Sights (www.great-web-sites.com). As a Team Macromedia Volunteer, he also participates in the sponsored newsgroups for Dreamweaver and other Macromedia products. Murray is a Macromedia Certified Web site Developer and Dreamweaver Developer

Comments (1) View Comments

Share your thoughts on this story.

Add your comment
You must be signed in to add a comment. Sign-in | Register

In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.


Most Recent Comments
SYS-CON Italy News Desk 02/27/06 07:14:38 PM EST

Those of you who follow the Fireworks forum postings will probably recognize my name. I suppose I may have gotten a reputation as a crusader who opposes the use of the original Fireworks Pop-Up Menu as implemented in Macromedia Fireworks MX 2004 and earlier. I'm here to tell you that you are absolutely right. There are more than a few reasons not to use those pop-up menus, in my opinion, and I have spent a fair amount of time posting to this effect.

@ThingsExpo Stories
What sort of WebRTC based applications can we expect to see over the next year and beyond? One way to predict development trends is to see what sorts of applications startups are building. In his session at @ThingsExpo, Arin Sime, founder of WebRTC.ventures, discussed the current and likely future trends in WebRTC application development based on real requests for custom applications from real customers, as well as other public sources of information.
SYS-CON Events announced today that Massive Networks will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Massive Networks mission is simple. To help your business operate seamlessly with fast, reliable, and secure internet and network solutions. Improve your customer's experience with outstanding connections to your cloud.
"The Striim platform is a full end-to-end streaming integration and analytics platform that is middleware that covers a lot of different use cases," explained Steve Wilkes, Founder and CTO at Striim, in this SYS-CON.tv interview at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
SYS-CON Events announced today that Calligo, an innovative cloud service provider offering mid-sized companies the highest levels of data privacy and security, has been named "Bronze Sponsor" of SYS-CON's 21st International Cloud Expo ®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Calligo offers unparalleled application performance guarantees, commercial flexibility and a personalised support service from its globally located cloud plat...
IoT is at the core or many Digital Transformation initiatives with the goal of re-inventing a company's business model. We all agree that collecting relevant IoT data will result in massive amounts of data needing to be stored. However, with the rapid development of IoT devices and ongoing business model transformation, we are not able to predict the volume and growth of IoT data. And with the lack of IoT history, traditional methods of IT and infrastructure planning based on the past do not app...
SYS-CON Events announced today that DXWorldExpo has been named “Global Sponsor” of SYS-CON's 21st International Cloud Expo, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Digital Transformation is the key issue driving the global enterprise IT business. Digital Transformation is most prominent among Global 2000 enterprises and government institutions.
SYS-CON Events announced today that Datera, that offers a radically new data management architecture, has been named "Exhibitor" of SYS-CON's 21st International Cloud Expo ®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Datera is transforming the traditional datacenter model through modern cloud simplicity. The technology industry is at another major inflection point. The rise of mobile, the Internet of Things, data storage and Big...
With tough new regulations coming to Europe on data privacy in May 2018, Calligo will explain why in reality the effect is global and transforms how you consider critical data. EU GDPR fundamentally rewrites the rules for cloud, Big Data and IoT. In his session at 21st Cloud Expo, Adam Ryan, Vice President and General Manager EMEA at Calligo, will examine the regulations and provide insight on how it affects technology, challenges the established rules and will usher in new levels of diligence...
In his session at @ThingsExpo, Sudarshan Krishnamurthi, a Senior Manager, Business Strategy, at Cisco Systems, discussed how IT and operational technology (OT) work together, as opposed to being in separate siloes as once was traditional. Attendees learned how to fully leverage the power of IoT in their organization by bringing the two sides together and bridging the communication gap. He also looked at what good leadership must entail in order to accomplish this, and how IT managers can be the ...
DX World EXPO, LLC., a Lighthouse Point, Florida-based startup trade show producer and the creator of "DXWorldEXPO® - Digital Transformation Conference & Expo" has announced its executive management team. The team is headed by Levent Selamoglu, who has been named CEO. "Now is the time for a truly global DX event, to bring together the leading minds from the technology world in a conversation about Digital Transformation," he said in making the announcement.
Everything run by electricity will eventually be connected to the Internet. Get ahead of the Internet of Things revolution and join Akvelon expert and IoT industry leader, Sergey Grebnov, in his session at @ThingsExpo, for an educational dive into the world of managing your home, workplace and all the devices they contain with the power of machine-based AI and intelligent Bot services for a completely streamlined experience.
In the enterprise today, connected IoT devices are everywhere – both inside and outside corporate environments. The need to identify, manage, control and secure a quickly growing web of connections and outside devices is making the already challenging task of security even more important, and onerous. In his session at @ThingsExpo, Rich Boyer, CISO and Chief Architect for Security at NTT i3, discussed new ways of thinking and the approaches needed to address the emerging challenges of security i...
While the focus and objectives of IoT initiatives are many and diverse, they all share a few common attributes, and one of those is the network. Commonly, that network includes the Internet, over which there isn't any real control for performance and availability. Or is there? The current state of the art for Big Data analytics, as applied to network telemetry, offers new opportunities for improving and assuring operational integrity. In his session at @ThingsExpo, Jim Frey, Vice President of S...
"DX encompasses the continuing technology revolution, and is addressing society's most important issues throughout the entire $78 trillion 21st-century global economy," said Roger Strukhoff, Conference Chair. "DX World Expo has organized these issues along 10 tracks with more than 150 of the world's top speakers coming to Istanbul to help change the world."
"We provide IoT solutions. We provide the most compatible solutions for many applications. Our solutions are industry agnostic and also protocol agnostic," explained Richard Han, Head of Sales and Marketing and Engineering at Systena America, in this SYS-CON.tv interview at @ThingsExpo, held June 6-8, 2017, at the Javits Center in New York City, NY.
"We are focused on SAP running in the clouds, to make this super easy because we believe in the tremendous value of those powerful worlds - SAP and the cloud," explained Frank Stienhans, CTO of Ocean9, Inc., in this SYS-CON.tv interview at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
"We've been engaging with a lot of customers including Panasonic, we've been involved with Cisco and now we're working with the U.S. government - the Department of Homeland Security," explained Peter Jung, Chief Product Officer at Pulzze Systems, in this SYS-CON.tv interview at @ThingsExpo, held June 6-8, 2017, at the Javits Center in New York City, NY.
The financial services market is one of the most data-driven industries in the world, yet it’s bogged down by legacy CPU technologies that simply can’t keep up with the task of querying and visualizing billions of records. In his session at 20th Cloud Expo, Karthik Lalithraj, a Principal Solutions Architect at Kinetica, discussed how the advent of advanced in-database analytics on the GPU makes it possible to run sophisticated data science workloads on the same database that is housing the rich...
Internet of @ThingsExpo, taking place October 31 - November 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA, is co-located with 21st Cloud Expo and will feature technical sessions from a rock star conference faculty and the leading industry players in the world. The Internet of Things (IoT) is the most profound change in personal and enterprise IT since the creation of the Worldwide Web more than 20 years ago. All major researchers estimate there will be tens of billions devic...
"MobiDev is a Ukraine-based software development company. We do mobile development, and we're specialists in that. But we do full stack software development for entrepreneurs, for emerging companies, and for enterprise ventures," explained Alan Winters, U.S. Head of Business Development at MobiDev, in this SYS-CON.tv interview at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.