Show inside dynamic text the title for multiple images on mouseover

I have 25 animated movieclips dragged on the stage and they have similar instance names for easier manipulation purposes inside programming using loops. The instance names look like this: image0, image1, image2 and so on.
Each time I go mouseover on one of these unique images I want to show the unique title of that image using for all titles just one dynamic text container named imageTitle.
I have succeeded to make this work image by image but this would require me to copy paste and modify for each image the following code.
image0.onRollOver = function() {
    imageTitle.text = "First image title";
    imageTitle.textColor = 0x000000; // setting the text color here
image0.onRollOut = function() { 
    imageTitle.text = "Choose an image";
    imageTitle.textColor = 0x000000;
Question: The above code would work but seems redundant to me. Since I have similar instance names (image0, image1, ....,image24), how can I put this code inside a loop or something in order to work for all images without repeating this code 25 times.
Update: I have added an array to the project that contains all the titles:
var imagesTitles = new Array("First image title", "Second image title", .... ); 

imageTitle.textColor=0x000000;
for(var i:Number=0;i<imagesTitles.length;i++){
this["image"+i].ivar = i;  // key step
this["image"+i].onRollOver=function(){
imageTitle.text = imagesTitles[this.ivar];  // key step used here
this["image"+i].onRollOut=function(){
imageTitle.text="Choose an image";

Similar Messages

  • Show file name as the title for a photo in Photos app

    If my memory is correct in iPhoto when you hovered the cursor over a photo it displayed the title assigned to the photo, but if you had not assigned a title it showed the file name. In Photos app the only way I have found to see the file name is in the info panel. Other wise it only shows untitled when you hover over the photo. You can copy/paste in the info pane but thats a pain if you have hundreds of pics with no title. I only named a few in iPhoto as I preferred to see the file name assigned by the camera. Any one know if it's possible to see file name and not untitled?

    See this discussion:  Re: Where are photo file names?
    Photos does show the filenames only in the Info panel, and if you wrote the filename into the title field as a title, Photos will suppress it. in some cases

  • How translate alts and titles for a images in dynamic content?

    Hi,
    I have a classic report with a column that shows diff. images based on decode expression for that column in report sql. Is there a way to translate alt and title for those images displayed dynamically?
    Thanks.

    Hello Edward,
    >> Is there a way to translate alt and title for those images displayed dynamically?
    Yes. You can use the APEX Dynamic Translation option:
    http://download.oracle.com/docs/cd/E17556_01/doc/user.40/e15517/global.htm#BABFHCJA
    Regards,
    Arie.
    &diams; Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    &diams; Author of Oracle Application Express 3.2 – The Essentials and More

  • ABAP routine in the infopackage for Multiple Selection

    Hi experts,
    I want to include a abap routine in the infopackage for Multiple Selection so that I can fetch only the required Material Numbers when the InfoPackage is schedule. As I have the constraints that I have to select certain Material Numbers only, that are not in series - so I cannot select"BT' fuction. Tell me what ABAP Code will work in this scenario.
    Kind regards,
    Rajesh Giribuwa

    Hi,
    The Routine will have to use 'EQ' operator and Append each selections to the Structure.
    ABAP Routine
    InfoPackage definition for Bespoke SIS Structure
    Infopackage routine !
    Regards
    Happy Tony

  • How do you set the duration for multiple stills in iMovie 2013?

    How do you set the duration for multiple stills in iMovie 2013?
    Before upgrading to the latest version of iMovie last month, I was able to set the duation of all of the stills included in an iMovie project at one time by clicking the apply to all still box in the adjustment pop up. That option is no longer apparent. If it is available I cannot find it, and I have tried several different ways to accomplish it. I have tried the iMovie help section and can find nothing to help.
    Apple, do I really have to adjust close to 500 pictures to a 5 second duration individually???
    REALLY??!!

    ...why wouldnt people want that level of accuracy when animating, especially when working to music at a specific duration?
    Because often people are animating to words or beats in the music.  Music is rarely performed with a computer-precise beat and tempo.  Musicians aren't robots: they swing the beat sometimes.  They use rubato.  They change tempo.  They change time signatures.  As a result, you have to FIND those words and beats.  It's not a situation where you can say, "There!  I've found the duration of one beat!  Now it's easy to find the rest of them!" 
    If you try it, you will be very disappointed.
    Try finding the precise end of a piece of music that fades or ends on a big chord with a ring-out.  You'll see that it's trial-and-error: what's the point where it becomes inaudible?  It depends on how high your speakers are turned up.  You might have them way up, you set an end point for the layer, and then you do a RAM Preview at a more reasonable volume.  You might say, "Hey!  The music ends before the layer ends!"...  but you KNOW you set the layer's out point when the audio file goes silent.
    AE has layer markers that can be used on an audio layer to mark beats, words, etc. They come in very handy.
    I guess it comes down to this: because AE can do so much different stuff, there are very few automated procedures.  Oh, Adobe tries with effects that convert audio levels to keyframes, but they're not 100% reliable... especially on something like a capella choral works.  For true accuracy, you need  find the timings yourself. 
    If you want something simpler, try a different application. But be prepared for lower level of accuracy.

  • I have an iPod touch 4th gen that is in iOS 6.1 it's showing another update in the settings for iOS 6.1.6 but even if I wait for more than 30mins it won't show. Can anyone help me. Thank you and Godbless

    I have an iPod touch 4th gen that is in iOS 6.1 it's showing another update in the settings for iOS 6.1.6 but even if I wait for more than 30mins it won't show. Can anyone help me. Thank you and Godbless

    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Power off and then back on your router
    .- Reset network settings: Settings>General>Reset>Reset Network Settings
    - Try when connected to another network
    - Update via iTunes on a computer.

  • Dynamically setting the values for the Adapter Configuration in BPEL

    We are configuring the JMS adapter to put into an MQ topic. For this we are giving all the values for the configuration parameters like
    Factory Properties.
    JMS connection Factory
    Transacted
    Destination Type
    Username
    Password
    Destination Name, etc...
    and we are able to produce message on the MQ.
    Our requirement is to dynamically pass the values for the above parameters from some configuraion files(other than oc4j-ra.xml), which will have value for each obove parameters.
    Any help on this is highly appreciated.
    Regards,
    Suman

    Re: JMS Properties setup
    this thread will explain how to do it.

  • Dynamically setting the values for the Adapter Configuration

    We are configuring the JMS adapter to put into an MQ topic. For this we are giving all the values for the configuration parameters like
    Factory Properties.
    JMS connection Factory
    Transacted
    Destination Type
    Username
    Password
    Destination Name, etc...
    and we are able to produce message on the MQ.
    Our requirement to dynamically pass the values for the above parameters from some configuraion files(other that oc4j-ra.xml), which will have value for each obove parameters
    Any help on this is highly appreciated.

    Re: JMS Properties setup
    this thread will explain how to do it.

  • Can I somehow let the user select multiple images from device?

    Is there any way to let the user select multiple images from the device media gallery?
    The CameraRoll only selects one image. And the FileRefernceList doesn't show thumbnails (so you have no idea what you are selecting).
    Is there a way, or maybe some sort of workaround, for this? Is there a way to maybe "read" the users gallery on the SD-card and output your own gallery that the user can select from?
    I'm developing towards both Android and iOS so cross-plattform is a must.
    Thank you guys

    +1 to this question. I'm looking to do the same thing but haven't had any luck yet.

  • Can I search for multiple images simultaneously in Aperture?

    Can I search for multiple images simultaneously in Aperture?  For example, search for 'Image2.jpg, Image3.jpg, Image5.jpg' by image name, out of different folders? 

    dusan -- your best procedure is likely to be to type the first file name (without extension) in the search field of the Photos View, and then mark that file either with a Flag or a color label.  (You might clear all Flags prior.)  If you have a lot of images or a slow computer (or both ) you may have to wait a few seconds.  Aperture will show "Loading ... " on the left side of the tool strip while it churns through your images.
    Then hit backspace twice, and type "60".  Mark the file found.
    Repeat with variations.
    Then go to Flagged view, or filter the whole Photos view for the color-label you used.

  • Toggle Buttons for multiple images

    I just watched a video from lilybiri about standard and simple actions and then followed into her blog for the text caption toggle buttons.
    Now reading through that, there was if statements suggesting you can toggle between the values of 1 and 0 to make visible/invisible. Can this be done with more than 2 images? I am more interested in having a toggle feature where I can have 3 or 4 images and toggle the images to see changes in detail within those images. It seems like it has to be possible, but I'm not getting it.
    Also, is there a way that if you have a toggle button, or two perhaps, that you can have the button be displayed as if it was pushed? I know how to make buttons, I'm just wondering if there is a feature to display the button as the _down version until I re-select it, or toggle it off as it were.
    Thank you!

    You will need a conditional action, perhaps use a variable for each button that will be set to 1 if the button is pushed and to 0 if it is free.
    Didn't check it out but action will be something like this:
    IF v_bt1 is equal to 0
        Assign v_bt1 with 1
        Show im_down1        which is the image of the down-state
        Show Image1             which is the image you want to show
        Hide Image2
        Hide Image3
    ELSE
       Assign v_bt1 with 0
       Hide im_down1
       Hide Image1
    You'll have to test, it is too late over here for me to do some testing. I added the hiding of the two other images, because if the user doesn't toggle the buttons for those images to hide them, I think you want to hide them automatically. Perhaps better also hide their correspondent down-states? Be sure to have the image of the down-state on top of the button in the timeline panel.
    And if you ever want to return to the slide, have an on Enter Slide action that hides all the down and real images.
    Lilybiri

  • Aperture 3.5.1 - applying titles to multiple images?

    I've searched all over for this but can find nothing about it.  As above, is there a short and less labour intensive way to apply the same title to multiple images?  I thought Lift / Stamp metadata would do it but there seems to be no option to add either the Caption or Title to the set of data available to lift.
    I know I could use keywords to get the essentials copied over but I try to avoid using a gazillion keywords, expanding the list daily, when the sole thing I want to do is stamp one set of 50 or so images with the same title.  If i used the keyword approach my keyword list would run into hundreds of entries which I simply don't wan't, from the management side if nothing else.
    Copy and paste is an option I suppose but somewhat labour intensive!

    Thanks.  Yah, been messing around and found it.  Didn't realise it was IPTC data so I never hit the drop down to see what was under it.  Dropped one clanger in that I deleted the Copyright Notice from the dropdown as I didn't want to find it stamped it twice as all the images get it on import.  Because I deselected it though, it actually deleted what was there.  Easy enough to fix of course but, IIRC if you select the Lift / Stamp to lift all the keywords, I seem to recall it stamps them again if you inadvertently re-stamp an image you've already done.
    I try to keep this as uncomplicated as possible, could never decide whether to go with title or caption, I guess it matters neither way, unless doing this professionally in which case I guess there are IPTC conventions.

  • Edit capture time doesn't work for multiple images

    Hi all, hope you can help me.
    I'm trying to edit capture time for multiple images. I select the images using the grid view, and go to Metadata>Edit Capture Time>Adjust to Specified Date and Time, enter the time, and select "change all." However, it seems that some, or perhaps most of the images don't actually have a new Date Created when this process is done.
    I thought perhaps I needed to select 'write metadata to files', but the Date Created seems to revert back prior to writing to the file, or indeed, it doesn't actually change in the first place.
    Any ideas?
    Thanks,
    J

    Think I've fixed this using the following site: -
    http://www.thexlab.com/faqs/helpviewer.html
    Will update if that changes....

  • Metatags for multiple images?

    I thought this was a no-brainer, but... apparently not:
    I needed to add a keyword to several pictures, so I selected them all (from a very large set), clicked the Metadata pane, and entered my keyword, and hit return.
    But it didn't stick.
    So I tried to add the keyword to ONE image, and realized that "return" didn't "enter" the keyword, only put an actually paragraph return in the keyword field. Weird, but okay.
    I then tried entering it for one image, and hitting "tab". Which made the keyword "stick".
    So, I went and selected ALL my images again (very arduous and time consuming), and then entered my keyword, and hit "tab".
    But it only assigned that keyword to the FIRST image of all the images I had selected.
    I ended up having to do "lift/stamp" and choose only "keyword" from the menu. But, am I crazy, or should the way I initially tried to do this work? I mean, it's pretty common sense, right? Select multiple images, enter keyword, and done?
    Hmmmm.
    Is there a better way to do this?
    tx,
    e

    Hi Jimbo
    The User Manual (available directly within Aperture Help, or online) has at least two mechanisms which will address your question: the +Control Bar+ and +Batch Changes+.
    The Aperture Interface > Control Bar
    http://documentation.apple.com/en/aperture/usermanual/#chapter=2%26section=7
    Working with Metadata > Batch Changing Metadata
    http://documentation.apple.com/en/aperture/usermanual/#chapter=11%26section=7
    I've been using both of these techniques, so I know they definitely work for multiple images.
    Hope this helps.
    Regards,
    Gary

  • David Powers Lesson10 - 'doesn't meet the requirements for an image'

    Hi,
    I have a  problem to upload image in lesson10. It always show the error message of 'doesn't meet the requirements for an image' even the image size, width and height meet the validation. Below is upload_images.php
    My upload file size is 160K with width 640 pixels and height 480 pixels. Please help. Thank You.
    upload_images.php
    <?php
    $uploader = new Zend_File_Transfer_Adapter_Http();
    $uploader->setDestination($destination);
    $uploader->setOptions(array('ignoreNoFile' => TRUE));
    $files = $uploader->getFileInfo();
    $filenum = 1;
    foreach ($files as $file => $info) {
      $file = "photo{$filenum}";
      $caption = $_POST["caption{$filenum}"];
      if (isset($_POST["place_id{$filenum}"])) {
        $place_id = $_POST["place_id{$filenum}"];
      } else {
        $place_id = NULL;
      $filenum++;
      if ($uploader->isUploaded($file)) {
              $filename = $uploader->getFileName($file, FALSE);
              $uploader->addValidator('Size', FALSE, '500kB');
              $uploader->addValidator('MimeType', FALSE, 'image');
              $uploader->addValidator('ImageSize', FALSE, array('minheight' => 50, 'minwidth' => 100));
              if (!$uploader->isValid($file)) {
                $errors[$filename] = "$filename doesn't meet the requirements for an image";
              } else {
                $no_spaces = str_replace(' ', '_', $filename, $renamed);
                $uploader->addValidator('Extension', FALSE, 'gif, png, jpg');
                $recognized = FALSE;
                if ($uploader->isValid($file)) {
                        $recognized = TRUE;
                } else {
                        $mime = $uploader->getMimeType($file);
                        $acceptable = array('jpg' => 'image/jpeg' ,
                                                                          'png' => 'image/png',
                                                                          'gif' => 'image/gif');
                        $key = array_search($mime, $acceptable);
                        if (!$key) {
                          $errors[$no_spaces] = "$filename is an unrecognized image type";
                        } else {
                          $no_spaces = "$no_spaces.$key";
                          $recognized = TRUE;
                          $renamed = TRUE;
                if ($recognized) {
                        // get the names of existing files
                        $existing = scandir($destination);
                        // check if the name of the uploaded file is in the array
                        if (in_array($no_spaces, $existing)) {
                          // get the position of the final period
                          // use it to get the base name and extension
                          $dot = strrpos($no_spaces, '.');
                          $base = substr($no_spaces, 0, $dot);
                          $extension = substr($no_spaces, $dot);
                          // initialize a counter
                          $i = 1;
                          // use a loop to add the counter after the base name
                          // check whether the new name exists in the array
                          do {
                                  $no_spaces = $base . '_' . $i++ . $extension;
                          }  while (in_array($no_spaces, $existing));
                          // set $renamed to TRUE
                          $renamed = TRUE;
                        $uploader->clearValidators();
                        $uploader->addFilter('Rename', array('target' => $no_spaces, $info['tmp_name']));
                        $success = $uploader->receive($file);
                        if (!$success) {
                          $errors[$no_spaces] = implode('. ', $uploader->getMessages());
                        } else {
                          $uploaded = "$filename uploaded successfully";
                          if ($renamed) {
                                  $uploaded .= " and renamed $no_spaces";
                          $images[] = array('filename' => $no_spaces,
                        'caption'  => $caption,
                        'place_id' => $place_id);
                          $messages[] = $uploaded;

    I solved it finally. For your infor, I'm using php version is 5.4.3 and MAMP 2.2. Here are the changes:
    1) Open php.ini
        Look for 'extension=php_fileinfo.dll' and remove ;
    2) Download GNU file package for windows from http://gnuwin32.sourceforge.net/downlinks/file-bin-zip.php.
        Extract the zip file.
    3)  Copy 2 file from the extract folder ../share/file/magic and ../share/file/magic.mgc and paste in folder php/extra/magic
         folder. (Create the magic folder as new folder).
    4) Stop MAMP all services and start services again.
    This will work for you !

Maybe you are looking for