Ask a Question related to Macromedia Flash, Design and Development.

  1. #1

    Default image swap

    I'm trying to do something that's incredibly simple in Director but can't
    figure it out in flash.

    I just want to click a button and change "image 1" to "image 2" (a movie
    clip). But I want to do this without moving to a different frame.

    Thanks!!


    Andy Guest

  2. Similar Questions and Discussions

    1. Need Help with swap image
      :confused; I've got this page with a Spry collapsible panel in it. No problems getting that to work, but I'd like to be able to use an image in the...
    2. Swap Image ?
      I have five images named image1 to image5, and five buttons named butt_1 to butt_5. What I want to achieve is a simple swap image behaivour but...
    3. Swap image also swap link
      Hi, I have a system set up where I have 5 thumbnails and when you roll-over one of the five it makes the large image above change to the...
    4. Fading image swap
      Hey there, Do you guys know how to do a fade in/out image with a swap image activated on over state mode? Im trying to create this effect...
    5. pop-up menu and swap image help
      URL?? -- BR "foosball is th' DEVIL, Bobby Bouchet" "aserecuba2886" <webforumsuser@macromedia.com> wrote in message
  3. #2

    Default Re: image swap

    You can do this by creating a empty movie clip and a assigning it a
    instance name such as mc_holder (Alternately instead of a empty
    movieclip you could have your first picture in it to start out with.)

    Then use the load external movieclip behavior to swap load in your other
    pictures (must be jpeg, and can NOT be interlaced) on whatever event
    (rollover, press, etc) that you want.

    This will let you pull external jpegs in dynamicly at run time, but
    requires that the jpegs be published along with your swf. If you wanted
    to keep everything embedded it could still be done, but would be harder
    to update and require a bit more coding on your own instead of using
    behaviors. (you would have to create multiple movieclips and assign each
    linkage identifiers to begin with.) But I am hoping this simpler method
    will fill your needs.

    Best of luck
    Brandon Bradley Guest

  4. #3

    Default Re: image swap

    > I'm trying to do something that's incredibly simple in Director but can't
    > figure it out in flash.
    >
    > I just want to click a button and change "image 1" to "image 2" (a movie
    > clip). But I want to do this without moving to a different frame.
    You can make a movie clip with two frames. One with image 1 and the
    other with image 2.

    when you click your button, you tell the movie clip to go and stop at
    frame 2 (my_movieClip.gotoAndStop(2)), so the movieclip moves to a
    different frame but your main timeline doesn't.

    Also, you can have both images in the stage at the same time (inside
    their corresponding movieclips). At the begining, you set movie 2 to
    invisible and when you click the button, set movie 1 to invisible and
    movie 2 back to visible with the boolean property: my_movieClip.visible

    Hope this helps or gives you new ways of thinking that lead you to the
    answer.

    JW
    Johnny Walker Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139