?
Solved

Dropdown selection places image on another frame

Posted on 2010-11-12
3
Medium Priority
?
602 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
The SignAloud Glove is capable of translating American Sign Language signs into text and audio.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Starting up a Project

765 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