?
Solved

Dropdown selection places image on another frame

Posted on 2010-11-12
3
Medium Priority
?
604 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 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
When you discover the power of the R programming language, you are going to wonder how you ever lived without it! Learn why the language merits a place in your programming arsenal.
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to how to record live broadcast.

807 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