Referencing what is in a movieclip

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

  1. #1

    Default Referencing what is in a movieclip

    Hi,

    I am calling an image from a server to be displayed in flash using php, mySQL.
    If the image is in part of a browsing gallery where there are eight images on
    screen all in movieclips how do I get it so when a movieclip is clicked it
    recognises what image it contains and then goes to another frame where it can
    have just that one image?

    thanks

    Gavin

    thahip Guest

  2. Similar Questions and Discussions

    1. Referencing web service
      Hi I have just uploaded my first web service to a remote host. So I am very new to this. I am now trying to reference the ws by putting the ws...
    2. referencing scenes
      Hi Can anyone tell me how to reference a scene from another scene If you just want the next scene its: nextScene(); but what if you want to target...
    3. scrollpane referencing
      How do you reference a movie located inside a scrollpane. Since the movie in the scrollpane is from an external file, I am having difficulties...
    4. Picture referencing???
      Hi All Can I embed a picture in a form and then reference that picture from other forms?? I do not want to have a seperate picture in the folder...
    5. a movieclip to control another movieclip???
      Well, try to trace the _x coordinate or print it onto screen so you can see what it is. What is pc_move? If you want to move the clip, you must...
  3. #2

    Default Re: Referencing what is in a movieclip

    you may put a variable in each mc containing the name, id, or path to the
    image. afterwards as the user clicks the mc you can get from that variable wich
    image to load. i hope it's clear. :) something like:



    // let's say you have an array called imageArray containing filesystem paths
    to the images
    for (i=0; i<imageArray.length; i++){
    //here you create the mc for the image, position it and load the image into
    it. let's say you are naming these mcs like: image1, image2, and so on and they
    all are in a mc called thumbnails
    current = thumbnails["image"+i]
    current.imagePath = imageArray[i];
    //now you have the path to the image in every mc, so you can refer to it if
    the user clicks, like:
    current.onRelease = function(){
    imageToLoad = this.imagePath;
    gotoAndPlay("bigsize");
    }
    }

    BorosAdam 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