Solved

Dropdown selection places image on another frame

Posted on 2010-11-12
3
596 Views
Last Modified: 2012-06-22
I'm using a combobox selection to determine which image will be placed on the stage in a different frame.  Is it better to use case statements or some sort of array?

ALSO: I'm playing with either having all images on the stage but have visible set to false and showing them based on the selection OR having to place the mc's on the stage based on the selection???
0
Comment
Question by:pixystk
  • 2
3 Comments
 
LVL 8

Expert Comment

by:section25
ID: 34124246
It all depends on what you are trying to accomplish.

How many objects are we talking about?
Is run time speed an issue or just coding efficiency?

Either placing the objects on the stage and making them visible based on the selection or placing then on the stage when needed is going to accomplish the same thing. Using the alpha channel (visible/invisible) consumes more resources than moving the object, but if it is just a few objects the difference is not going to be noticeable.
0
 

Author Comment

by:pixystk
ID: 34125246
I have nine different selections for images to be placed on the stage.
I should also mention that these images could be fairly large.

Boss wants a cover sheet generator for training courses.

We have a different types of criteria for projects:
plane model (1,2,3)
course type(1-9)
course classification(1,2,3)

Our course developers will choose these criteria from the dropdowns and enter in their text (course name, etc.) in the appropriate fields.

When he/she clicks submit, the course goes to a new frame which displays the text they've input and the images they've selected.

Note: later on I'm going to work on how to either print (keeping image integrity) or how to create a PDF using alivePDF (I'm not there yet).
0
 
LVL 8

Accepted Solution

by:
section25 earned 500 total points
ID: 34125859
The case statement and the array will both work. The case statement will be easier to program, but the array will give you more flexibilty. I say use the array.

Also, it would probably be better to move your images on an off the stage rather than change thier visiblity. You don't want objects on the stage unless they are being used. The entire stage gets redrawn every frame (whether the objects are visible or not). If they are invisible, that is just another step in the process (rendering the alpha channel).

0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article will show, step by step, how to integrate R code into a R Sweave document
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now