A Flash Developer Resource Site

Results 1 to 1 of 1

Thread: [F8] Pulling Custom Image From 2 ComboBox Option Lists

  1. #1
    Junior Member
    Join Date
    Jun 2007
    Posts
    3

    [F8] Pulling Custom Image From 2 ComboBox Option Lists

    I'm working on a project where a client has customization options for their product. The two options are the Cabinet Woodgrain, and the Backlighting Color. All-in-all, there are 40 different options that are possible. We are developing an ad that shows off a few of these, but I would love it if viewers could "customize" their product right within the banner ad.

    Obviously, these need to be loaded seperately, or the loading would take too long for a banner ad. I have created two comboBox components with the options filled in already, a component button, and a Loader component. I want someone to be able to choose their two options, click customize, and have the correct photo load.

    My code isn't working below, but I'm more of a designer than coder. Would anyone have a better suggestion on how to accomplish this? Much thanks!

    Code:
    on (click) {
    	var cabinet = cabinetbox.selectedItem;
    	var backlight = backlightbox.selectedItem;
    	var jpglocation = (cabinet+backlight+".png");
    	VoyagerLoader.contentPath = jpglocation;
    }
    This image should clarify some confusion:
    Last edited by TheJester12; 06-07-2007 at 12:57 PM. Reason: took something extra out of script

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center