Using a combobox to navigate to scenes with as3

I'm a novice.  I'm trying to use a combobox to navigate to different scene in my .fla.  I was able to use a conditional (if) statement which seems to work but it only allows me to use the "if" and "else if" statement once before giving an error.  i examined information on using a "switch" but haven't had any luck understanding the coding or getting it to work.  The following is the code I've wrote.  Can anyone provide me some guidance?  Thanks in advance.
cb1.addEventListener(Event.CHANGE, home_dl);
function home_dl(e:Event)
    if (cb1.selectedItem.label == "A - B")
        gotoAndPlay(65, "a-b");
    else if (cb1.selectedItem.label == "C - D")
        gotoAndPlay(65, "c-d");

At a quick glance it looks like you are missing an opening curly brace following your second if()
else if (cb1.selectedItem.label == "C - D") {
Also, while it is probably just a copy/paste error, you are short one closing brace for the function
function home_dl(e:Event)
    if (cb1.selectedItem.label == "A - B")
        gotoAndPlay(65, "a-b");
    else if (cb1.selectedItem.label == "C - D") {
        gotoAndPlay(65, "c-d");

Similar Messages

  • Non-XML slideshow with AS3?

    Hello,
    I am looking for a way to run a slideshow without using XML, but controlling the entire show with AS3. I have all of the resources and code to run a dynamic show, but I am attempting to build this on Oracle's Content Management System – Stellent. Stellent does not allow us to access our external XML files or external assets such as images, js, swf, etc.
    The best way to go about building our slideshows for use with this CMS is to make them fully integrated in themselves. The downside, obviously is a larger filesize, but does anybody know how I would go about building this into itself, instead of externally?
    I would like to keep all functionality of the XML (specifically the links and timer)
    I would also like to keep the automatic button generation.
    If anybody can help me out with this it would be greatly appreciated. I have attached a file enclosing all of my working dynamic elements.
    Thank you!!
    Nick
    I am unable to load a zip file, but within the parent directory there should be an assets folder with an images folder inside.

    there must be some way to use external data to feed applications or that wouldn't be much of a cms.
    but if you want to keep all the data in swf, just hardcode all the data in your swf.  actually, with as3, you can copy and paste the contents of an xml file into flash and assign it to an xml instance.

  • Can I use photoshop text styles and photoshop actions with creative cloud photography?

    I'm really confused by this subscription pricing. If I purchase the $9.99/month, do I get the full desktop app of Photoshop and Lightroom? But I see on this page Products they list something called Photoshop CC that costs twice as much. How is that different from the Creative Cloud Photography?
    My main question is whether I can use photoshop text styles and photoshop actions with Creative Cloud Photography, since I just purchased a bundle that includes these and I want to be able to use them. But I'd also like to understand what comes with all of the various products and how they are different.
    My other question is how is Lightroom different from Photoshop? I have a sense of what you can do in Photoshop but I don't know much about Lightroom at all.
    One more question: the free trial -- is it limited in any way besides the time length? If I do that, will I get a clear idea of all that I will be able to do once I subscribe, or are the functions limited in the trial?
    I tried to just send an email to Adobe to ask these questions but apparently they are not interested in responding to emails from people who are not yet paying customers, so I was directed here. Thanks very much for your help!

    I always like to trot this bit about Bridge once in a while or in the voice of the "Two Bobs" from Office Space,
    "Can you tell us exactly what it is you do around here?"
    What Adobe Bridge does:
    Bridge is the coordinating hub of the Creative Suite. Synchronizing color management settings for all suite programs is done from Bridge, and can only be done from Bridge, to take one important use.
    Bridge displays actual thumbnails of many more file types than Finder or Explorer. It also allows instant play of sound or video files more readily than the native OS file managers.
    Bridge allows direct access to file metadata, to embed copyright information  and keywords where appropriate (e.g., for corporate logo vector and raster files). It also displays the fonts used in an InDesign file, the swatches in an INDD or AI and the output plates (including spot color plates) they use.
    When managing the assets for a design project, Bridge allows quick and simple sorting, rating and custom labeling (with color flash indications) of assets. I can rate images according to whether they are rejects, possibles, for review by client, or approved. The filters built into Bridge allow instant isolation of only the approved images or designs in a folder, only the rejects (for deletion) or only files with certain ratings, no matter how many files it contains. It recognizes aspect ratios, so if I only need a landscape or a 16:9 image in a folder of hundreds of images, I turn off the aspect ratios I don't need.
    Once filtered, the remaining visible files can be selected and copied, moved, or deleted without affecting the rest of the contents of a folder.
    Collections are a massively useful feature. One of my clients is a performing arts center, and in a season we turn out dozens of ads, flyers, brochures, web banners, playbills, billboards and other collateral using the same assets over and over. These assets are organized by artist and/or show on disk, but I set up each season's repeating assets as a Collection in Bridge, so that I just have to open the collection and drag and drop these assets into new INDD, AI, PSD, HTML (in Dreamweaver), FLA or AE projects without having to navigate from folder to folder picking up individual files.
    Bridge's Favorites is another place I stack frequently-accessed folders, such as stock photography, backgrounds, and top-level folders for active projects.
    Assets can be divided into subfolders, but a quick toggle of "Show items from subfolders" exposes all of the assets in a single view while maintaining their organization. I will typically keep AIs, PSDs, EPSs, stock photography and client images in separate subfolders within a project. When I'm ready to start pulling assets into an InDesign layout, I toggle this on and simply drag what I need into the layout.
    Bridge comes with Adobe Camera Raw built in, which is many times faster than using Photoshop to adjust jpegs or tiffs for things like tonal range, white balance, cropping, spotting and sharpening, and is non-destructive.
    One tremendously useful Bridge function for InDesign CS5+ users is the "Show linked files" feature, which opens all the linked files in a layout into a single view, regardless of where they are physically located. I often use this when doing alternative layouts from a client-approved mockup for a campaign, to be certain the same assets are used in each piece, or when creating a motion graphic or interactive piece for the campaign in After Effects or Flash.
    The batch and image processing scripts built into Bridge automate things like creating web-ready small jpegs from multiple images, renaming large numbers of files in place or by copying to an alternative location, creating sets of PSD, png, jpeg or other file types from an assortment of image files, and so on.
    Bridge is so much a part of my daily workflow that on my main workstation I have one monitor dedicated to it almost 100%. Bridge just sits open 24/7, ready for use. I would run at half speed without it, no question.

  • Acrobat X Pro 10.1.12 under Yosemite crashes when trying to use arrow keys to navigate.

    Acrobat X Pro 10.1.12 Mac
    Yosemite OS X 10.10.1
    Acrobat now crashes when attempting to use arrow keys to navigate. This is true on both MacBook Pro 15 retina and Mac Pro.

    I ended up upgrading to Acrobat XI. This works, but Adobe is up to its old tricks changing the interface from what we're used to using. They now have decided to hide all the tools. You have to delve deep into the program to find the tools, then set up your own tool menus. Lord help you finding a tool that you use too occasionally to put on a custom menu.
    Adobe has been doing this for years now. In Photoshop of olden days, it was simple to set up a brush, say, that you used frequently. Quite a few updates ago they made that vastly more difficult. And they've replaced words with happy little icons, that are not at all intuitive to use. I challenge you, too, to look at the icon for the airbrush and tell me whether it is on or off. (Sorry, this is mainly about Photoshop, but what they've done to the latest Acrobat is just as bad.)
    Of course, their ultimate cuteness in making things difficult for the user is their essential abandonment of a Help system. You can't do a simple look-up of a function -- you have to go to an internet site and sort through a bunch of forums and user comments to get any information.
    JEEZ Adobe!

  • Can I take a frame from my project and use it as a custom menu background with CS4 and its Encore

    My project is edited in CS4.
    I moved it to Encore CS4.
    I don't want to use any of the supplied menu templates in CS4 Encore.
    I was hoping CS4 would be all I needed to create custom menus using scenes from my project.
    My question is: Can I take a frame from my project and use it as a custom menu background with CS4 and its built in Encore or do I need some other element from the Adobe catalog to make these custom chapter menus and sub-menus?
    Thanks Jim

    OK, I'm back. Here are my steps for creating Custom Menus with PS, En and PrPro:
    In PrPro, move the CTI (Current Time Indicator) to the desired Frame. Check Frames on either side, with the Program Monitor’s Magnification to 100%, or maybe even 200% (you’ll need to scroll, but get a really clear picture). You want the clearest Frame in that area. With AME, in CS4, you’ll want to Export that Frame as .TIFF, or .BMP. I use .TIFF for this.
    Now, for a caveat. When you Import this Exported Frame into Photoshop, be sure to check the specs., especially the PAR. You may have to use Image>PAR to adjust this to match your Project’s specs. Or, all might be perfect - just check this out.
    Now, at this point, I choose the Library Menu, Blank, so that everything is setup. One can create the Menu from scratch, but careful attention needs to be paid to the exact naming conventions. At the very least, unless you’ve done this dozens of times before, use that Blank Menu, or similar as a guide, so you get things done, as they must be done.
    Using that Blank Menu, just drag the Layer from your Exported Frame to your Menu image. It will appear above the black Background.
    Add, or manipulate your Button Layer Sets, as is required, keeping them together. Remember that Button #1 will be the Button Layer Set, that is lower down in the Layers Palette. This can play a roll with Button Routing, back in Encore. Lower Button Layer Sets will have lower Button numbers.
    Now, I always rename my Button Layer Sets, keeping the required characters - just changing the name. I also do all of my Button text in PS, and make sure to turn OFF Sync Button Names.
    When done, Save_As .PSD, and then Import_As_Menu into Encore. Note: if you start with the Blank Menu, you can choose Edit in Photoshop, and then when done in PS, you just need to Save, and it will update in Encore. This is a personal workflow choice. I do the Edit in Photoshop route, but it is not necessary. One just needs to Import the resulting .PSD into Encore with Import_As_Menu, so that Encore does all the things that it needs to and recognizes the .PSD as a Menu.
    When deciding what to base your Menu on, remember that you can "populate" your Menu with Buttons from the Functional Content. I’d suggest studying these Assets, and picking the ones that work best for you. You can still alter/edit those back in PS, so you just need to "get close."
    Pay special attention to the required naming conventions. You cannot deviate from those first characters in the Button Layer Sets. They MUST be followed.
    If you have any questions, do not hesitate to ask.
    Good luck,
    Hunt

  • Hi ya'll! I'm still learning how to navigate my way with Lightroom. (Last time I wrote, I did get some responses that work. Thanks so much!) Now, I have another question. When I try to copy pics from my external drive to a CD/DVD, no matter if do it from

    Hi ya'll! I'm still learning how to navigate my way with Lightroom. (Last time I wrote, I did get some responses that work. Thanks so much!) Now, I have another question. When I try to copy pics from my external drive to a CD/DVD, no matter if do it from LR or my drive, I keep getting the message; "Disk burning is not supported by LR on this computer." I've tried everything I can think of, so, I thought I'd see if anyone may know if there's anything I can do. Or could it be that my computer just can't handle it? Help!!! So frustrating!!  I have a PC Lenovo computer, I don't know if this makes any difference. Any ideas? Thanks so much for your help!!!

    Have you burned Discs with other programs using this computer? Are you certain that you have a drive that will burn discs?

  • Cannot find my "Pictures folder" in Finder and was using the "all Images" selection to fiddle with my pictures.  Now I think I may have screwed iPhoto up

    Cannot find my "Pictures folder" in Finder and was using the "all Images" selection to fiddle with my pictures.  Now I think I may have screwed iPhoto up

    Hi jamesxio,
    Do you still have the Pictures folder in your home folder? If not, create a new folder in your home folder and name it Pictures. Make sure the iPhoto Library folder is in the Pictures folder.
    Now launch iPhoto with the Option key depressed until you get a message screen. Choose to open another library and navigate to and highlight the iPhoto Library folder. Click the Open button.
    You didn't move anything around or rename anything in the iPhoto Library folder in the finder, did you?

  • How do I use the AirPlay Mirroing on my mac with Mountain Lion ?

    How do I use the AirPlay Mirroing on my mac with Mountain Lion ?
    I watched the video about Mountain Lion, but the airplay icon can't appear on my menu bar.
    WHY ?

    i have a MacBook Air (Early 2011)
    and it doesn't support the airplay mirroring ,,, the only things that the failed to do is  " MENTION IT "
    it wouldn't hurt anyone if they just say it's limited to Late macs ,,,, i really wanted that feature and i updated my mac so i can watch movies on my HD screen ,,,,
    i hope they made and update for it ,,, otherwise i have to wait another 4 months to get a new macbook pro

  • My iPhone 5 won't let me use my apps until I connect them with iTunes after downloading ios7. Solutions?

    My iPhone 5 won't let me use my apps until I connect them with iTunes after downloading ios7.  There's just a thing that pops up and says that in order to activate banners and push notifications I have to connect the app with iTunes. The thing won't go away no matter how many times I push ok, and it doesn't give me another option. Solutions?

    Oh my gosh I had the EXACT same problem, and for ages I couldn't figure out how to fix it until today. Here's what I did:
    First I went onto my computer, opened itunes, and un-installed tumblr, vine and kik. These were the apps I was having problems with (it said I had them on my phone but, like you, they didn't show).
    Then I went to the itunes store, searched for each one, and it said I could update them so I did (just FYI: for tumblr a window popped up saying "please click ok to confirm you are 17 years or older", so I did that also)
    When I went back to my phone and tried installing them again (still on my computer), it worked!
    I hope this helps, because it was incredibly frustrating. Good luck!

  • Can I use my Macbook Air 13" mid 2013 with plugging charger even at 100 % battery full charge?

    I can't decide whether using My Macbook Air 13" mid 2013 with charging power adapter connected even though it is fully charged Or using Macbook Air with unplugging charger after fully charged. Please advice me to maintain my Macbook's battery at good condition.

    It will not hurt it as long as you do not leave it on the charger for an extensive period of time (say, days).

  • I used to share one apple ID/account with my ex but made a new one for myself recently and logged out of the old one but when I try to update my iBooks it asks for the old account's password(which my ex changed by now)

    I used to share one apple ID/account with my ex but made a new one for myself recently and logged out of the old one but when I try to update my iBooks (only happens with this app)it asks for the other account's password(which my ex changed by now). I don't understand why this happens when I'm logged into my account and it only happens with that app. Please help, I need to update. :/

    Content (apps, music, ibooks, films etc) is tied to the account that originally downloaded it, so if the iBooks app was downloaded using the account that you used to share with your ex then only that account can download updates to it. As it's a free app you could delete it and re-download it under your own account - and then re-download your ibooks into it (or copy the books to your computer's iTunes first via File > Transfer Purchases and then sync them back to the app).

  • Hi all, I'm trying to connect my macbook pro to Sony Bravia tv using Kanex Mini DisplayPort to HDMI Cable with Audio Support , when connected to the HDMI on tv I get a picture of the mac screen saver ( the starburst ) no video/audio,thanks, Derek

    Hi all, I'm trying to connect my macbook pro to Sony Bravia tv using Kanex Mini DisplayPort to HDMI Cable with Audio Support , when connected to the HDMI on tv I get a picture of the mac screen saver ( the starburst ) no video/audio,any ideas? thanks, Derek

    Dave I'm glad to say that it works perfectly but I'm embarrassed to say that my 12 year old nephew hooked it up in about 10 minutes.
    If you have the Kanex Mini DisplayPort cable it will work, what confused me was changing the display settings in System Preferences,
    and dragging the mac screen from the mac onto the tv. Sorry I cant be more helpful but you have the right cable now you need a 12 year old nephew.
    Good luck Derek

  • There is a lot of talk aout there about using a 27" iMac as a display with the mini displayport to displayport cable. It is so exciting! I am trying to connect a PC laptop with a VGA port to a 27" Dell Latitude D620?

    In 2010 there was a question about using a 27" iMac as a display with a Dell laptop.
    I am trying to connect a work Dell laptop Running Windows XP via a VGA cable to my personal iMac 27"
    running iMac 27", Mac OS X (10.6)
    Has anyone tried this or know if imac 27" Mini port with a VGA adapter can work?
    I apologize if I missed this discussion already
    Kind Regards
    Gilly

    Hi Gilly,
    I have no proof, but I think it will not work with an adapter, only Mini Display Port or Thunderbolt.

  • Can I use the Apple ADC to DVI adapter with a VGA monitor?

    Hey everybody,
    I have a quick question. I work on computers fr friends and family as a hobby. I have an ADC monitor and need ot be able to hook up computers with a VGA port on them to it. Can I use the Apple ADC to DVI adapter along with an Apple DVI to VGA adapter to successfully connect VGA computers to my ADC display? I was assuming this would work and ordered both adapters but now I have made myself nervous about weather or not this will actually work. Has anybody out there successfully done this? Thanks for your help in advance everybody.

    You can't run an ADC display with a VGA computer without a converter. Adapters won't do it.
    a VGA to ADC converter will drive the ADC display directly
    <http://www.gefen.com/kvm/product.jsp?prod_id=1301>
    If you have the Apple DVI to ADC adapter
    <http://store.apple.com/1-800-MY-APPLE/WebObjects/AppleStore.woa/wa/RSLID?mco=18 72D402&nplm=M8661LL/B>
    you could use it with a VGA to DVI converter
    <http://www.gefen.com/kvm/product.jsp?prod_id=1310>
    It might be cheaper to get DVI graphics boards for the computers and use the Apple DVI to ADC adapter.
    <http://store.apple.com/1-800-MY-APPLE/WebObjects/AppleStore.woa/wa/RSLID?mco=18 72D402&nplm=M8661LL/B>
    Your title says "Can I use the Apple ADC to DVI adapter with a VGA monitor?". If you want to connect a VGA monitor to a computer's ADC port you need the ADC to VGA adapter
    <http://www.gefen.com/kvm/product.jsp?prod_id=1299> You can't use an ADC to DVI adapter followed by a DVI to VGA adapter, because the ADC to DVI adapter doesn't pass the analog video signals needed for VGA.

  • I have 12 core with Quatro 4000 and 5770, I want to use dual monitor setup, monitors are NEC with Spectraview-II.  How do I connect?  4000 only has 1 Display Port and 1 DVI.  5770 has 2 of each, if I use both 5770 Display Ports, does the 4000 contribute?

    I just bought a 12 core with Quatro 4000 and 5770, I want to use dual monitor setup, monitors are NEC with Spectraview-II.  How do I connect?  4000 only has 1 Display Port and 1 DVI.  5770 has 2 of each, if I use both 5770 Display Ports, does the 4000 contribute any work at all?  I read where on a PC they would work together, but on a MAC they do not.
    I read that Display Port has higher band width than DVI, NEC monitors for best performance they recommend using DIsplay Port.
    When I was setting this up I looked at a Nvidia Quadro 4000, unfortunately it was for PC, it had 2 Display Ports, in the Mac version they reduce it to one.  I did not think there could be a difference.
    Mainly want to use it for CS6 and LR4.
    How to proceed??? 
    I do not want to use the Quadro 4000 for both, that would not optimize both monitors, one DP and 1 DVI.  Using just the 5770 would work but I do not think the 4000 would be doing anything, and the 5770 has been replaced by the 5870.more bandwidth.
    Any ideas, I am a Mac newbie, have not ever tried a Mac Pro, just bought off ebay and now I have these problems.
    As a last resort I could sell both and get a 5870.  That would work, I'm sure of that, it's just that I wanted the better graphics card.
    Thanks,
    Bill

    The Hatter,
    I am a novice at Mac so I read all I can.  From what I understand the NEC monitors I bought require Display Port for their maximum performance.  The GTX 680 only has DVI outputs.  Difference from what I understand is larger bandwidth with the DP.
    You said I have the 4000 for CUDA.  I am not all that familiar with CUDA and when I do read about it I do not understand it. 
    A concern I have is, that if I connect the 2 high end NEC monitors via the 5770, using it's 2 Display Ports I would have nothing connected to the 4000.  Is the 4000 doing anything with nothing connected?  I read where in a PC system the 2 cards would interact but in a Mac system they do not.
    Bottom line, as I see it, the 4000 will not be useful at all to me, since I want a dual monitor set-up.
    So far the 5870 seems the best choice, higher band width than the 5770, and it has 2 Display Ports to optimize the NEC monitors.
    I'm not sure how fine I am splitting hairs, nor do I know how important those hairs are.  I am just trying to set up a really fast reliable system that will mainly be used for CS6 and LR4.  Those NEC monitors are supposed to be top notch.

Maybe you are looking for

  • Screen cutting to black

    Hi, recently my iphone screen has been cutting to black at random, for example if i open photos, snapchats, videos, facebook the screen with just shut off but the backlight will still be on and im having to press the lock button to lock it then again

  • PO no. field is mandatory PO, purchaser has to create a Down Payment Reques

    Hi Guyas whenever an advance is to be released against a PO, purchaser has to create a Down Payment Request through t. code F-47. Right now, PO no. field is not mandatory & system allows users to create a down payment request due to which same cost i

  • JpegImagesToMovie - Exception in thread "JMF thread: SendEventQueue: com.su

    I am trying to create a movie file from a bunch of images I have using Sun's JpegImagesToMovie class found here: http://java.sun.com/products/java-media/jmf/2.1.1/solutions/JpegImagesToMovie.html I can't post all 500 lines of the sample code here but

  • How do create a script that chooses a random swatch?

    My idea is...instead of using math to create a random rgb number I want to choose specific color by hex or rgb and assign them a number 1-10 then use random() to choose a random number between 1-10 to choose one of those colors and place as foregroun

  • SPAM_UI_QUEUE causes a dump

    Hi I have installed the SAPWAS successfully but am having problems importing the transports/SPAM Update and patches.  Basically the RDDIMPDP job does not get kicked off automatically, I have to do it manually.  I have updated the kernel, tp and sapev