Solved

Dropdown selection places image on another frame

Posted on 2010-11-12
3
599 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Scripting vs. Programming languages 25 179
Output in PHP throwing alignment of data off issue 12 44
asp Google Map 2 33
statistics basics sources 2 12
This article will show, step by step, how to integrate R code into a R Sweave document
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
The goal of the tutorial is to teach the user how to how to record live broadcast.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

821 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