[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Dropdown selection places image on another frame

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying 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

In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
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 …
Progress
Starting up a Project

649 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