Help building image swap in flash cs4?

Hello all,
I've been trying to research 'flash cs4 image swap' but most everything I find is related to dreamweaver, so I appreciate anyone's help to point me in the right direction.
I have a project in which I have an opening scene of a main image and 8 thumbnail buttons.  This opening scene is pretty basic, as the thumbnails would link to a new scene or frame label (however I build it).  This 2nd scene or instance in the timeline is where I would display another large image, and 6 new thumnail images that, upon rollover, would swap the large main image with the large version of the active thumbnail.
Basically I have a main 'menu' of category thumbnails that link to an instance in the timeline that displays the initial large image for that category, and allows the user to mouseover the other thumbnails to see the large images, and then click to go to a specific URL for more information.
The trouble I have with my rusty, limited AS knowledge is how to effeciently write the AS so that the image swap works. I quickly ran into a wall trying to acomplish this using a very OLD method that would require a LOT of jumping around the timeline.  If there is ANYTHING out there that can help me figure out how to do this efficiently, I would very much appreciate the help.
Thanks in advance

that's really what I'm asking, is if there is any such AS to do this.... I would normally do it just using CSS & HTML, but I have to keep it all contained within one page, I can't click to a new page from the opening scene to show the sub category of graphics. I figured I could set the opening scene up easily with a goto frame label 'category 1'.... then at category one is where I need to figure out what to do to swap the images....
If I keep it very simple with no fade effects or anything, yes I could just jump to a frame and back, and so on.... Instead of animating all the different elements, is there a way to activate an instance of a mc,  like a white to transparent fade, and just have that animate in place and out, chaning the images in a layer below it while it's in place?  I'm really green to AS so I may be talking outta my ear on this,
your feedback is greatly appreciated.

Similar Messages

  • (Help) Using Input text in Flash CS4 AS3

    I am trying to take a user's input (His Name) and then greet the user on the next frame using the name he previously entered. I googled for 2days and was unable to find a way to do this on flash CS4 AS3, i guess because im very new to flash (only 2-3weeks )
    Any help would be greatly appreciated, and i am sorry if this was already answered in the forums.
    thanks for reading.

    If your interested... here's some general "rules of the road" that are basically courtesies...
    Don't post the same question in different forums (crossposting).  Folks that help don't like that because they can waste their time providing the same response someone else already offered elsewhere, or their helpful info gets no attention because the OP (original poster) got wrapped up in the discussion elsewhere and never went back to the other forums.  I saw one time where the OP suffered from doing this... the first person to respond in one forum said what they wanted couldn't be done, while my response in another forum showed them how to do it... but they accepted that it couldn't be done and never returned.
    Don't post in someone else's posting unless the exact same situation applies to you and it is a current posting.  It is a bit rude to step into someone else's posting just to get attention, which some people do... some with totally unrelated problems.  Or if your problem is even slightly different, it can end up confusing matters for all involved... trying to juggle helping two people where different solutions are needed.
    If you get one problem resolved and have another you want help with that does not involve the first, start a new posting.  People search these forums so it helps to have topics match the postings, which will not apply if mutliple topics get resolved under one title.  I recently saw one person tell someone to start a new posting even though they were following up to clarify something of the solution they received... that's wrong and is more likely someone with a case of points greed... as useless as points are, it happens.

  • Need help in screen capturing for flash CS4 AS3

    Hi, i need help!!!!!!!!!!!!!!!!!!!!!! URGENT!
    I am currently doing Augmented Reality.
    I got my marker to detect my model but my problem now is how to screen capture the content that is in swf.
    (As in capture the dae model shown in the comp not from webcam.)
    & also i just want to capture the swf window not the whole desktop.
    I read online, they say its impossible?
    Or is it possible to call screen capture function in javascript to flash CS4? (LIke external data)
    (Moreover, does anyone know how to detect multiple dae models with different markers?)
    Anyone can help??? Thanks in adv!!

    My current program (Flash CS4, AS3) only can capture what the webcam sees.
    How do i change it to screen capture (something like print screen) with my .DAE models?
    In the case, when i click on the capture button, it print screen.
    Here's part of the code that capture what the webcam sees.
    private function captureImage(e:MouseEvent):void
       bmd.draw(stage);
       bmp = new Bitmap(bmd);
       bmp.x = 140;
       bmp.y = 40;
       addChild(bmp);
       capture.visible = false;
       saveButton.visible = true;
       discardButton.visible = true;
    Really really need help! URGENT!
    Thanks!

  • Help with Illustrator CS6 and Flash CS4

    Hello I use Illustrator CS6 and Flash CS4. When I export a drawing realized in Illustrator in the size(format) .sof Flash, this one is imported in the library(bookcase) of Flash CS4 but he(it) is created with a multitude of graphic symbols and symbols Bipmap. In the scene(stage) of Flash, the image is illegible it is floutée, apparently it is not a vectorial image. Thank you for your answer. Very cordially.
    Thank You !!!

    Sometimes a picture is better than a description. I had to use a translator to find out that floutee means blurred.
    Generally bitmaps (raster images) are not a strong suite for illustrator. It can do some things with them, just not as much as photoshop. Maybe if you could explain what you want to do with the symbol, then maybe we can give some ideas. Also by posting a screen shot, we might know of where there is a vector alternative.

  • How to Build a Preloader for Flash CS4 and Actionscript 3.0

    With the wonderful help of many people on this site, I have successfully buit a nice website using Flash CS4.  I am wanting to deploy the site this weekend and I'm working on the finishing touches.  I would like to add a preloader so that the viewer will have everything loaded when the action starts.  Can anyone suggest a good tutorial that shows how to make the simple "rotary lines" that are so popular?  I've seen these and they look to be about an inch across and move like the hands of a clock.  I think it may even say "Loading..." or similar.  Since I'm still learning quite a bit, I did not know if Flash actually offers some "preloaded" tools for stuff like this?  Or am I better off going to Lynda.com and taking a tutorial?  Thanks for the help!

    Dark Armor, You mentioned the book Adobe Flash CS4 Professional Classroom in a Book, which I have.  I could not find anything in there.  Did you mean to say Actionscript 3.0 for Adobe Flash CS4 Professional?  I do have that book and it looks like there is information there.  Just wanting to make sure that you meant what you said.  Thanks!

  • Need HELP building a website in Flash CS6

    Hi,
    I need help creating buttons within buttons with interactive capablility and separate timlines. The parent button on rollover will display the child button. The Child button on down state must  be able to display a table that has links to images and other content. I'm a designer not a coder and I believe that this effort will require a lot of code.
    Below is an image of the navigation. The small squares are the parent buttons. The text that is displayed on rollover is the child button. Once the text button is clicked a table will animate out of the little orange square on the side and move off to the right displaying numerous images that are linked to other content. After the table displays it needs to have its own timeline. If the orange square is clicked again or if the user clicks on the white space the table will colapse  and the orange square will retract to it's original up state. I hope that makes sense and I appreciate any feedback.

    To get the kind of interaction and anoimation you identify you will need to use movieclip symbols instead of button symbols.

  • Help With Buttons In Adobe Flash CS4

    Hello, I am trying to create a satellite map where the user scrolls over each satellite button and displays an overlay and some information about the satellite.
    I have got a test site where you can look at what I am trying to do. (home.exetel.com.au/jasdemo)
    The first map has the satellites on the equator and the second one is the map with Overlays of where the satellites cover.
    When the user scrolls over each Yellow spot on the equator I want the overlays and information to be different for each button.
    At the moment I have a problem where you scroll over where the overlay sits and it still comes up which I don’t want only when you scroll over each yellow spot on the equator.
    Each spot on the maps have been converted to buttons, they all have a mouse over keyframe so the name of the satellite can show up.
    The First map on my test site works fine except no overlays for each spot and no information which I need.
    Hope I make sense...
    Please either email me or post me back if you need more information or if you have a solution to this..
    Thanks

    Im not sure what you mean sorry ill link my .fla file and you can see what I have done.
    Link to file
    http://www.mediafire.com/?z3ryzt0za0z
    Justin

  • Adobe Flash CS4 export image default format and dialogue default option

    Dear Adobe users and programmers,
    I  would like to ask You whether there's a way where I can set default  format of exported image from Adobe Flash CS4. Here's image describing  what I mean:
    And than I want to have default dialogue window set to "Yes" except "No" in rewriting old data:
    Is it possible to set it in program, or override in registers somehow?
    Regards
    Bryan

    Thank You for navigating me, please delete my topic, some administrator, or moderator. I already set it in the proprietary part...

  • Flash CS4 support in FB4?

    Hi, all...before the release of FlashBuilder 4, I saw at least two training/preview videos that clearly showed Flash Builder 4 integrating with Flash CS4 Professional via the the new Flash Custom Components feature (where you can drag a Flash Component or Container right to the stage and then create or edit the feature in Flash).
    However, when I try to use this feature in FB4 Premium, I get a message that says: "This feature requires that Flash CS5 or higher be installed." Am I missing an important step? Do I have to import something or change a setting to allow integration with Flash CS4?
    Thanks!

    Ah. Thank you for the reply. So let me get this straight:
    Adobe builds a wonderful new feature into FB4 and advertises it on Adobe TV and on e-Learning sites like Lynda.com.
    Adobe changes their minds and substantially changes this feature so that the $200-$700 piece of software people already own (Flash Pro CS4) no longer seamlessly integrates with Flash Builder 4.
    Adobe does not inform the community about this change, nor does it apologize for it or make some other appropriate concession, nor is the change fully reflected in the FB4 documentation.
    Summary: to use this new feature (custom Flash components and containers), people have to first buy Flash Builder 4 (if you're keeping track, that's another $200 to $700, depending on whether we upgrade or buy standalone). THEN, we have to wait until April 12, at which point we have to shell out at least several hundred more dollars to purchase Flash CS5...at which point we'll be able to use the Flash component integration feature that we already paid for when we purchased FB4.
    Adobe, you ought to be ashamed of yourself. Bad enough that you foisted a rushed, bug-ridden CS4 on us (and some of those bugs still have yet to be fixed). Now, you unabashedly sell a product the requires the purchase of another product that hasn't even been released!  I understand that features may change from beta to released product. But you already had CS4 integration working in the beta. Removing CS4 support seems like a thinly-veiled attempt to drive people to your new product. (I say that because Adobe has known since January (and possibly much earlier) that you didn't plan to support Flash CS4...but you never shared that information. Instead, you let beta users go on testing, blissfully unaware of the bait-and-switch that was to come.)
    Being a monopoly clearly hasn't done you or your customers any good. I am astounded that someone hasn't intituted a class action lawsuit against you for practices like these.
    With each successive creative suite you release, I become more and more bitter about Adobe's almost total lack of concern for their customers. I've spoken to many of my associates and they feel the same. It's strange that you put so much thought into software features but don't actually care about the people who'll be using that software.
    I'm hoping that some company comes along to challenge Adobe in the design/development software space and maybe, just maybe, that'll lead to Adobe being more accountable for business practices like the ones described above...

  • Need help displaying images with List component for Flash CS4 (ActionScript 3.0)

    Hi folks:
    I am an inexperienced user of Flash CS4 Pro (v10.0.2). I am attempting to use the List component with ActionScript 3.0 to make a different image display when a user clicks each item in a list.
    I did find a tutorial that showed me how to make different text display using a dynamic text box and the following ActionScript:
    MyList.addEventListener(Event.CHANGE, ShowSelectedItem);
    function ShowSelectedItem(event:Event):void {
        ListText.text=MyList.selectedItem.data;
    ...where My List is the instance of the List component and ListText is the dynamix text box. In this case, the user clicks an item in the list, defined by the label value in the dataProvider parameter of the List component, and text displays as defined in the data value in the dataProvider parameter.
    However, as I mentioned to start, what I really want to do is make images display instead of text. Can anyone provide me the steps to do this?
    I appreciate your help (in advance)!!
    Cindy

    Hi...thanks for responding! I was planning on using images from the Library, but if there is a better way to do it, I'm open. So far, I just have text in the data property. This is part of my problem. I don't know what I need to put in the data value for an image to display. Do I just put the image file name and Flash will know to pull it from the Library? Do I need to place the images on the stage on different frames? I apologize for the "stupid user" questions, but as you can tell, I'm a newbie.
    Appreciate your patience and any help you can offer!
    Cindy

  • How do you build an image gallery in Flash CS3 actionscript3?

    I am building my entire website in flash cs3, actionscript3
    but I really need help building an image gallery. What I need is a
    horizontal scroll bar that contains thumbs within it and then loads
    the full size image right above the scroll bar. Anyone has any
    suggestions for books, tutorials or even safe places to purchase
    the fla that I can customize it?

    if you want help understanding as3 check:
    http://www.senocular.com/flash/tutorials/as3withflashcs3/
    if you want to purchase a custom fla that does exactly what
    you want send me an email via my website.

  • Flash Builder cannot find Flash CS4!

    I am hoping someone can help me with this issue, it's driving me crazy and I need this working for a project. Whenever I try to use a Flash Container component, Flash Builder shows this message:
    Edit in Adobe Flash error: This feature requires Adobe Flash CS4 or higher to be installed
    I have Adobe Master Collection CS4 installed, and I cannot figure out how to make Flash Builder find Flash CS4, any suggestions?
    Thanks!

    Mmm, no, I haven't tried that but I will, at least it will allow me to work with Flash content. Just so weird that Flash Builder cannot find Flash CS4, and I cannot find a reference to this error anywhere on the web.
    Thanks for the alternative!

  • Newbie in hell...flash cs4 image

    Hello everyone,
    I must warn you I am an absolute beginner with flash, however am proficient in Illustrator / ps cs4 and now have flash cs4. I have a mountain of graphic work for a client and as part of this welcome work I've inherited a flash header that I need to finish for a website. The only problem is, I usually work in print and know nothing about flash, but would like to tackle this if I can. The inherited header is 980 x 230 with 8 images that fade in/out as they change over each other (morph). It was originally done in flash 10 using tweens but I gather flash has changed a bit with regards to this sort of thing.
    I like to learn new things but I have spent HOURS online and just can't find out how to do this. I've had a good look around flash but unfortunately I just can't dedicate days or weeks to learning the entire program.
    From what I can gather so far:
    The images go into flash library (is jpeg ok or do they have to be BMP) then I need to convert them to symbols then they go into the timeline as layers ...OMG I guess my first question is..is this a fairly simple thing to accomplish or should I look at outsourcing it? I'm pretty good with the teaching myself stuff, but my biggest enemy is time. I've looked at the adobe tv tuts but didn't see anything like what I'm after (the image doesn't need to slide, it just needs to fade into another one).
    I'm so buggered, hoping if I get some sleep some kind soul will either be willing to help, or tell me to forget it, either way helping to end my frustration!
    Thanks in advance,
    A bona fide Flash Dummie...
    Lauren

    I
    don't have CS4 so I am not familiar with the new way of tweening, only
    with what CS4 calls classic tweens, which is what I grew up with in
    Flash.  What I described for you is based on classic tweens.
    While those in in the know
    (a few) praise the wonders of the new tweens, general concensus in these
    forums for those that question them is that trying/learning to work
    with the new tweens is not straightforward.
    As far as movieclip versus
    graphic goes, neither is preferable over the other.  Both will perform
    in a tween.  Movieclips are useful when you have more to do with the
    object than just display it.
    The difference with the motion tweens is that the motion tweens are built to be easily scalable and to provide a graphical interface for easily updating/editing the tweens visually (including path, timing etc). Classic tween is what you want for your project so you're on the right track. As far as the difference between a movieclip and a bitmap not mattering, well it depends really on the scale of the project but best practice is to go with the smaller class. The movieclip class is massive, one of the largest because it is a dynamic type and is near the bottom of the chain of inheritance on the flash displayobject list. So, the bitmap class would be probably like 1/10th the file size of the movieclip class, so go with bitmap. Since flash is primarily a web technology and I'm sure you're doing this project for a website, every byte matters.  Imagine the difference in filesize is 5 kb just because of what classes you decide to use but you decide to deploy the project on a website with 5 million users. Thats 25 gigabytes of wasted bandwidth. Anyway that doesn't really apply to you because you're doing timeline tweens and the flash IDE will automatically import all of those bulky classes anyway, but it's good to keep in mind if you decide to pursue getting deeper into flash and working with actionscript.
    Anyway it looks like you've almost got your project all sorted out but there is the problem with doing everything inside flash using timeline tweens. As you're aware, it's a pain if you need to update. Below is some basic actionscript you can paste inside of a new fla file. It's not the best example but I just kind of wipped it up and should be more than enough for you to pick apart and learn how actionscript 3 works in flash. So.. create a new fla set the stage to the size of your project (980 X 230) pixels. Create a new blank movieclip (might as well, read up) and give it an instance name of "imageContainer". That's it for setup in the FLA. In the same folder as the FLA create a folder beside the fla called images. Create a new text document inside that folder and name it "filelist.xml". In that list, paste this:
    <files>
        <file filename="171_2784_2.jpg" />
        <file filename="165_2564_0.jpg" />
        <file filename="171_2690_2.jpg" />
        <file filename="171_2735_1.jpg" />
    </files>
    Copy all of your images for this project into the images folder. Now modify that XML to include the name of each file in the folder.
    Now back in your FLA, click the first frame of the main timeline. Open the actions panel (view -> actions in the menu)
    Now paste this into that frame:
    import fl.transitions.Tween;
    import fl.transitions.easing.Strong;
    import fl.transitions.TweenEvent;
    var listIndex:int = 0;
    var nextImage:Bitmap = new Bitmap();
    var listOfImages:Array = new Array();
    var listLoader:URLLoader = new URLLoader();
    listLoader.addEventListener(Event.COMPLETE, parseFileList);
    listLoader.load(new URLRequest("images/filelist.xml"));
    var imageLoader:Loader = new Loader();
    var cycleTimer:Timer = new Timer(5000, 0);
    cycleTimer.addEventListener(TimerEvent.TIMER, beginImageCycling);
    function parseFileList(e:Event):void
        //trace(e.currentTarget.data); //Uncomment this to debug and see what data is coming in
        var fileListXML:XML;
        try{
            fileListXML= new XML(e.currentTarget.data);
        }catch(e:Error){
            trace("The file list is either not well formed XML or not XML at all");
        var a:Number;
        //Get an XMLList object which will contain all of the children of the fileListXML
        var fileList:XMLList = fileListXML.children();
        for(a = 0; a < fileList.length(); ++a){
            trace(fileList[a].attribute("filename"));
            listOfImages.push(fileList[a].attribute("filename"));
        trace("Done parsing file list XML");
        beginImageCycling();
    function beginImageCycling(e:TimerEvent = null):void
        imageLoader = new Loader();
        imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, showNextImage);
        imageLoader.load(new URLRequest("images/" + listOfImages[listIndex]));
        listIndex++;
        if(listIndex >= listOfImages.length){
            //This will reset the index and begin looping from the images from the start
            listIndex = 0;
    function showNextImage(e:Event):void
        trace("Image loaded, get ready to show it");
        nextImage = e.currentTarget.content as Bitmap;
        var tw:Tween = new Tween(nextImage, "alpha", Strong.easeOut, nextImage.alpha, 0, 1, true);
        tw.addEventListener(TweenEvent.MOTION_FINISH, changeOutImage);
        tw.start();
    function changeOutImage(e:Event):void
        while(imageContainer.numChildren > 2){
            trace("removing old images");
            imageContainer.removeChildAt(0);
        //Add the new image to the container, in this case the stage
        imageContainer.addChild(nextImage);
        var tw:Tween = new Tween(nextImage, "alpha", Strong.easeOut, nextImage.alpha, 1, 1, true);
        //Restart the timer to cycle images
        cycleTimer.reset();
        cycleTimer.start();
    In the menu go to Control--->Play. That should do it, it should cycle through those images over and over. I'm at work doing this on my lunch I'll post a completed project/demo of this later when I get home and give you an intro to actionscript by covering the code I've put here. Anyway so now the benefit of doing things this way is that if you want to adjust the transition time, you simply go to the :Tween = new Tween lines and change this:
    Strong.easeOut, nextImage.alpha, 1, 1, true);
    to:
    Strong.easeOut, nextImage.alpha, 2, 1, true);
    Which will change the transition time from 1 second to 2 seconds. Or, say if you want to add new pictures, all you have to do is change that XML and copy in new pictures, something even your client could do (which is sure to make them happy).
    Anyway I'll post later even if you don't need this anymore it may be useful to somoene else who finds this topic one day. .:)
    -Jesse

  • Need help with Flash CS4 buttons/can't get buttons to control anything

    Hello,
    I need help with Flash CS4. I am making a banner with an animation (Image change into movie clip "3D Spiral") and added buttons but I cannot get the buttons to control the animation. Please help I am frustrated! If someone could help I would be most appreciated.

    Thank you.
    Regards,
    Michael J. Sheehan  allelois
    Date: Mon, 17 Aug 2009 18:48:09 -0600
    From: [email protected]
    To: [email protected]
    Subject: Need help with Flash CS4 buttons/can't get buttons to control anything
    Hi there
    I'm not sure how you wound up where you did. But you wound up in the Adobe Captivate forums. Please stand by as I move your thread to the Flash forums.
    Cheers... Rick
    >

  • HTML swap image command from Flash Actionscript

    Is there a way within Flash, with actionscript, to make an
    image swap on an html page? Help!

    yes it is posible.
    set img id for the image in your html, e.g: Image1
    <img id="Image1" src="pic01.jpg" width="100" height="100"
    alt="" />
    lets say you have a button, when click on it, it swap Image1
    to pic02.jpg
    on(press){
    getURL("javascript:MM_swapImage('Image1','','pic02.jpg',1)")
    and another button, when click on it, restore original image,
    on(press){
    getURL("javascript:MM_swapImgRestore()")
    and the most important thing, add script below in your html
    head tag

Maybe you are looking for