Connect Gallery buttons rather than thumbnails?

This seems like it should be easy, but I cannot figure out how to do this in AS3. And after pouring through several books and lots of sample projects, no one quite seems to be using this method to create galleries.
The goal: A gallery with circles for buttons that, when clicked, move already loaded images into view.
I have built a widget that creates the buttons and loads the images, but how do I make a connection between one dynamically created sprite (the button) and another (the corresponding image)?
When adding children, is there a way to find its reference in the display object list? The buttons are named and will trace their names when clicked, but I don't see this when I'm listing the display objects. And I'm not sure how I can use these names or provide similar names for my loaded images. (My confusion is becoming evident here -- or at least clouding my mind -- so I'll just leave it at that.)
BTW, I have come across several tools/players that do something similar to what I want, but I'd prefer not to use someone else's controller. (It seems like the time to code this should be less than the time to skin/understand/customize someone else's FLA/SWF.)
Thanks,
Tim

It's no problem to use an index to link these. Ideally, I want Button_1 to control Image_1 and so having Loader_1 do this makes sense.
What I'm not seeing is how to do this with event listeners. I'm going to have lots of different functions referring to the loaders, and the only way I've used this so far in my AS3 career is with globals defined outside of functions on the timeline. (I've never used classes of my own creation.)
I've tried creating a global array of loaders, but Flash kicks out tons of errors, telling me I can't use null objects. Or I try doing something like this:
        var pictLdr+i = new Loader();
and get a syntax error.
I can envision that this is easier with classes (for an experience object oriented programmer!). But is there a way to do this without classes?

Similar Messages

  • On an iPad with iTunes, do you know if you can edit/delete all your tunes on your device with a "clear all" button rather than having to delete a song one by one like you have to do on an iPhone if not synching via a MacBook/ PC with iTunes account?

      I'm signed up to the Cloud and itunes match - the whole game. But I cam getting annoyed with having to delete songs one by one on my iPhone once dowloaded from the cloud as I only have a 16GB phone....yes I listen to music non-stop!  So, I am thinking about getting an iPAD as I rarely use my MacBook Pro for anything other than surfing and music now...  so the question is:  "On an iPad with iTunes, do you know if you can edit/delete all your tunes on your device with a "clear all" button rather than having to delete a song one by one like you have to do on an iPhone (if not synching via a MacBook/ PC with iTunes account where I know you can clear down and refill with ease)????

    Have you tried
    Settings > General > Usage > Music > Edit > Delete

  • Is there a way to have numbers in a row show below your slideshow rather than thumbnail images?

    I'd like to have just a row of numbers for the viewer to tick through, rather than thumbnail images, to save space around my slideshow...have checked the counter but that must not have been the thing

    Hello,
    Slideshow thubnails won't accept anything else apart from images. Slideshows only accept images. Use compositions if you wish to insert text etc.
    Cheers
    Parikshit

  • Videos on ipad  in list format rather than thumbnail

    how do i get videos on ipad  in list format rather than thumbnail

    If anyone from Apple reads this- why can't you give us the option of a list view?
    Apple does NOT read this board. If want a change, you need to submit your displeasure via Feedback at:
    http://www.apple.com/feedback/
    I've already complained about this. But they'll need here this from multiple people to make a change. If not enough people complain, they assume no one cares, and list view (like lyrics) will dissappear forever.

  • Adobe reader opens "save as" box when clicking on save button rather than saving in the same file

    Hi everybody,
    I have a fillable PDF form designed in Livecycle designer and it is reader extended. When I fill that form on MAC it let me fill and save the form as many times as I like. Everytime I make any change I just click the save button it saves changes in the same form. BUT is is behaving differently on Windows. After filling the form out when I click on save button it opens up "Save as " dialogue box to save a new copy with those changes. I have Adobe reader XI and Adobe Acrobat XI installed on windows. I know I can do that with Acrobat but I want that in reader for users who dont have acrobat.
    Please help me.....
    Thanks

    What are you filling out the form with on the MAC?

  • Why is PS 6 showing hourglass/egg timer rather than thumbnails in the organizer?

    I have uploaded some pictures using Photoshop Elements 6 and they usually show up as thumbnails.  They are showing as an hourglass/egg timer instead.  All previously uploaded pictures are still showing as thumbnails.  How do I correct this problem?  BTW - in the lower left hand corner of the organizer - it does not say "generating" thumbnails.  I have also tried right clicking the thumbnail, then update thumbnail, but this does not work.  I can, however, view the pictures is full screen mode.

    See this FAQ:
    http://www.johnrellis.com/psedbtool/photoshop-elements-faq.htm#_Recreate_Organizer_thumbna ils

  • I'd like to modify how recently visited site are shown: Listed like before rather than thumbnails, and sorted by most recent rather than most frequent. Thanks.

    I did find one thread on creating a custom bookmarks folder that contains the recently visited sites sorted by recency, but I can't figure out how to create it. I'm pretty computer-savvy but the links provided don't go to a clear path on achieving what the topic is about.
    And I found nothing on changing back to the former list view that existed before the recent update that went to thumbnails. Note this is not an issue new browser windows but it is when opening a New Tab -- the new version shows thumbnails, but I'd prefer the list.
    Thanks!

    Firefox (version 13 and higher) shows thumbnails when opening a new tab. If you saw a list view at some point, then that feature was provided by an extension you've installed. Check if the extension in question has been updated for Firefox 13. Setting the new tab page to open ''about:blank'' may also restore the extension's functionality. See the following article for details:
    * [[New Tab Page – show, hide and customize top sites]]
    To create your own smart bookmark folders, you can use the following extension.
    * [https://addons.mozilla.org/firefox/addon/searchplaces/ addons.mozilla.org/firefox/addon/searchplaces/]

  • Radio Button Rather then DropDown

    Hello,
    I have a column with Boolean value, I know there is a way to display column in DropDown/EditBox/Multiselect. Is it posible to display Radio Button rather than Drop Down and it should work the same way as DropDown.
    - Rahul

    Hey Rahul,
    Throw the following script in a text box on your dashboard page and enable html. It'll turn any dropdown box into radio buttons.
    Cheers!
    -Joe
    <script type="text/javascript">
    var create_radios = function (debug){
         if (debug === 1) { document.write("Begining Create_radios function"+"<BR>");}
         // Get an array of all the tables
         var tables = document.getElementsByTagName('table');
         if (debug === 1) { document.write("Get tables"+"<BR>");}
         // loop over the array
         if (debug === 1) { document.write("Loop over tables"+"<BR>");}
         for (var t = 0; t < tables.length; t++){
              // Check to see if we encountered a DB Prompt
              if ( tables\[t\].className != 'DashboardPromptViewTable'){
                   if (debug === 1) { document.write("Object is not a prompt.  Continue to next table."+"<BR>");}
                   continue; // This table isn't a DB Prompt. Continue to the next one
              // Get an array of all the table select
              var selects = tables\[t\].getElementsByTagName('select');
              if (debug === 1) { document.write("Get selects"+"<BR>");}
              // Check to see if there are any drop downs
              if ( selects.length == undefined || selects.length == 0){
                   if (debug === 1) { document.write("No selects found.  Continue to next record."+"<BR>");}
                   continue; // This DB Prompt doesn't have any select statements
              if (debug === 1) { document.write("Loop over the selects"+"<BR>");}          
              // Loop over the select elements to copy the values
              for (var s =0; s < selects.length; s++){
                   // Create a new form element
                   var new_form = document.createElement('form');
                   if (debug === 1) { document.write("Created the new form object"+"<BR>");}
                   // Get all the options associated with the drop down
                   var options = selects\[s\].getElementsByTagName('option');
                   if (debug === 1) { document.write("Created the options array"+"<BR>");}
                   // Copy over form related details
                   new_form.name = selects\[s\].name+"_radio";
                   new_form.id = selects\[s\].id+"_radio";
                   if (debug === 1) { document.write("Copy over the name and id attributes"+"<BR>");}
                   if (debug === 1) { document.write("Loop over the options."+"<BR>");}
                   for (var o=0; o<options.length; o++) {
                        // Create the input object
                        var new_input = document.createElement('input');
                        if (debug === 1) { document.write("Create a new input element"+"<BR>");}
                        // Update the type to radio
                        new_input.type = 'radio';
                        if (debug === 1) { document.write("Set the type to radio."+"<BR>");}
                        // Get the value from the exisitng dropdown
                        new_input.value = options\[o\].value;
                        if (debug === 1) { document.write("Copy the value over"+"<BR>");}
                        // Set the name
                        new_input.name = selects\[s\].name+"_radio";
                        if (debug === 1) { document.write("Set the name"+"<BR>");}
                        // Set the onclick value
                        //new_input.onClick = updateDropdown(selects\[s\].id,options\[o\].value);
                        new_input.onclick = function () {
                        // get a handle to the appropriate object
                             var sel = document.getElementById(this.name.substr(0,this.name.length-6));
                             // Check if no result is found
                             if ( sel == null){
                                  // No match was found
                                  alert("No match on : "+this.name.substr(0,this.name.length-6));
                                  return;
                             // Get the options
                             var opts = sel.getElementsByTagName('option');
                             // Loop over all the options
                             for( var opt = 0; opt < opts.length; opt++){
                                  // Check if we've found the requested value
                                  if( opts\[opt\].value == this.value){
                                       // We found the requested value. Set the selectedindex
                                       sel.selectedIndex = opt;
                        if (debug === 1) { document.write("Set the onClick value: updateDropdown("+selects\[s\].id+","+options\[o\].value+")<BR>");}
                        // Get the innerHTML from the existing data
                        var new_text = document.createTextNode(options\[o\].innerHTML);
                        if (debug === 1) { document.write("Set the new text object to the innerHTML"+"<BR>");}
                        // Append this to as a child to the form
                        new_form.appendChild(new_input);          
                        if (debug === 1) { document.write("Append the input element to the form"+"<BR>");}
                        // Append text as a child node to the new input object
                        new_form.appendChild(new_text);
                        if (debug === 1) { document.write("Append the text element to the form"+"<BR>");}
                   } // end options for loop
                   // insert the new form before the select object
                   selects\[s\].parentNode.insertBefore(new_form,selects\[s\]);
                   if (debug === 1) { document.write("Insert the new form into the document"+"<BR>");}
                   // hide existing select statement
                   selects\[s\].style.display="none";
              } // end selects for loop
         } // end table foor loop
         if (debug === 1) { document.write("Completed the create_radio function"+"<BR>");}
    create_radios(0);
    </script>

  • Can I use thumbnails rather than the {sitename} to load different galleries?

    Hi all-
    I'm new to Spry and all things Javascripting but I'm attempting to construct a image gallery using Spry in Dreamweaver CS3. I've used the "Original Photo Gallery" from the Spry Demo folder as a jumping off point and everything works correctly.
    I would like to know if it is possible to use representative thumbnails rather than the select dropdown to launch the different galleries? I'm sure it is, but I'm a total neophyte and have no idea what to do. I'd like to set up a AP Div with 9 thumbnails in a table that would each launch a different gallery. How do I do that?
    Jimmy

    Hello, because you're SELECTing tournament.tourtype in the SELECT list, the answer is not really. If you didn't need t.tourtype in the SELECT list, you could have:
    select m.memberid, m.lastname, m.firstname
    from member m
    where exists (select 1
            from entry e inner join tournament t on (e.tourid=t.tourid)
            where m.memberid=e.memberid
                and upper(t.tourtype)='OPEN');And you know the t.tourtype is 'OPEN' anyway, so you don't need to SELECT it. So you could have this, and the answer is yes:
    select m.memberid, m.lastname, m.firstname, 'OPEN' tourtype
    from member m
    where exists (select 1
            from entry e inner join tournament t on (e.tourid=t.tourid)
            where m.memberid=e.memberid
                and upper(t.tourtype)='OPEN');Edited by: SeánMacGC on May 7, 2009 2:09 AM

  • Outlook clients are connecting to different site public folder rather than same site public folder on exchange 2010

    Team,
    users are unable to expand public folder from outlook, but they are able to navigate through outlook web access.
    noticed the outlook connections are connected to other child domain PF server rather than local site public folder server.
    due to this issue, users are unable to navigate to pf's , by restarting RPC Client access service , now users are able to connect to local public folder servers.
    all the databases are pointed to local pf database. all the settings looks good.
    any suggestions would be appreciated.
    Regards
    Srinivasa K
    Srinivasa K

    Hi Srinivasa,
    How about OWA?
    If it works in OWA, it seems an issue on the Outlook client side.
    I suggest run Outlook under safe mode to avoid some AVs and add-ins.
    I also suggest make sure the Outlook client has the latest patch.
    Also try to re-install Outlook.
    Thanks
    Mavis
    Mavis Huang
    TechNet Community Support

  • I am creating a form on LiveCycle Designer and I am trying to create a form that has a e-mail submit button.  When the butten is utilized it attaches the form to the e-mail in an plain text .xml format rather than the pdf format.  Is there a quick fix?

    I am creating a form on LiveCycle Designer and I am trying to create a form that has a e-mail submit button.  When the button is utilized it attaches the form to the e-mail in an plain text .xml format rather than the pdf format.  Is there a quick fix?

    Hi,
    You have the choice between xml or pdf, in later versions of designer you can choose with a dropdown on the email button Object palette, the "Submit As";
    In earlier version you had to edit the XML Source and change the format from xml to pdf (or vice-versa);
    Regards
    Bruce

  • In popup step how do I get the "text on the button" in the report rather than button index?

    (1)
    How do I configure the POPUP step in "SEQ MAIN.seq" to execute the second
    step (IS OUT PUT IS 20?) in "SEQ 1.seq" when "IS OUT PUT IS 20?" button
    hit and execute the third step (IS OUT PUT IS 30?) in "SEQ 1.seq" when "IS
    OUT PUT IS 30?" button hit.
    (2)
    In popup step how do I get the "text on the button" in the report rather than button index?
    File attached
    Attachments:
    test_stand.zip ‏32 KB

    The handle to the Step.Button1Label gets you the data, but there are several ways to get it into the actual report.
    The easiest is to use the reporttext.
    In a post expression, you can use something like
    Step.Result.ReportText = Evaluate("Step.Button" + Str(Step.Result.ButtonHit) +"Label")
    and then the default report generation will include it in the report. Otherwise, you need to get the text into the Resultlist by various means (check the user manual, or the TestStand II customisation course) and handle the report generation yourself inside of the appropriate sequence in the process model.
    Just my 2cents
    S.
    // it takes almost no time to rate an answer
    Attachments:
    IncludeButtonTextInReport2_0.seq ‏18 KB

  • Can 'track list' button show your playlist rather than album track list?

    Hi all
    My 3GS iPhone has my music on it in the form of whole albums which live in individual playlists on my Mac, but I also have playlist 'mixes' which I've created from various songs from multiple albums.
    When selecting to play a 'mixed' playlist on my iPhone I tap on it, tap the first song to start the music playing, but then if I tap the top right 'track list' button, instead of showing all the tracks in my created playlist it just shows the entire album tracks from where this particular song has come from. Visually I prefer the 'track list' screen but it seems I can't use it if I'm playing a 'mixed' playlist. Is there any way around this?
    Also, this is the same if I have a double CD album: once I hit the 'track list' button it shows just CD 1 (or 2 if I'm further down the play list of course), rather than all the tracks even though on they all live in one single playlist on my iTunes. I've even taken the starts of the track names off (some of them start with '1_01 Song Title' for example) when importing them into iTunes to see if that helps but it doesn't: the iPhone KNOWS how that track was originally supplied!
    Any help or clarification on this would be very helpful!
    Markos

    sadly, that kind of customization is only easily doable on a computer. the iPhone and it's core apps can not be changed by users. you can request the feature be put in, but unless there are a LOT of requests, you shouldn't get your hopes up as there are a lot of these kinds of requests, and by implementing it, how many other users would be angry and demand it be changed back? http://www.apple.com/feedback/
    if you are playing a song that you selected in a playlist, you should be able to hit the 'back' button in the top left to go back to the playlist and view your songs in the playlist.
    in regards to the 'cd 1 of 2' thing, you will need to change your song info to get this to show in the format you want. to see the song info, select a song and go to 'file -> get info'. that will show you all of the ID3 tag information, which you can edit to do whatever you want.

  • I want to place an image in my InDesign document that can work with an address like this (\Resources\Thumb) rather than this (C:\Users\JSmith\Desktop\InDesign thumbnail Test\001\Resources\Thumb) is this possible?

    I want to place an image in my InDesign document that can work with an address like this (\Resources\Thumb) rather than this (C:\Users\JSmith\Desktop\InDesign thumbnail Test\001\Resources\Thumb) is this possible? In a nutshell I want to point the link to an image in a directory that uses just part of the address.

    I know this is something you can do in Maya with linked files. I guess InDesign just isn't there yet.
    MW Design -  Yeah I think "Relative paths" is the right term! I want to create a Layout with an image in the center of the page - and then duplicate my folder structure with that file. With that, I want to replace the Linked image file with a diferent image file of the same name. In effect having multiple files of the same layout with different images.  I hope that made sense.  

  • CBMA issue in PI 7.31 - Connection type is RFC rather than JMS.

    Hi,
    I am facing issue with CBMA in production PI 7.31 which is working perfectly in quality system. I configured alert rules and scheduled AlertConsumerJob also. Configured alerting.isactive to true and alerting.target to '1'.
    I observed that Message Alert configuration from PIMON is routed to alert framework rather than to the page where rules that are created in ID are displayed. From nwa->soa->monitor->Message Alert Configuration, able to see the rules created in ID. Does correcting this helps me?
    Not sure if this is correct or not, but i even tried pinging the url http://host:port/AdapterFramework/alerting/ping.jsp, which shows Connection type as RFC in production. In quality it was JMS. Is this the issue? Please guide me.
    Thanks,
    Prasanna.

    Hi,
    Did you run the CTC wizard for this ?
    Configuring Component-Based Message Alerting - Configuring Process Integration After Installation - SAP Library
    Also, refer - Create new Alert consumer and its next steps in PI7.31 dual stack
    Regards,

Maybe you are looking for

  • How can i fix my itunes because i can't see my ipod on it but i can see him in windows documents ?

    i can't put music on my ipod touch help meee itunes can't find my ipod touch so what do i need to do i already reinstalled itunes but same probleme

  • PROC*C(10.2.0.1 client) WITH DATABASE(11.2.0.3).

    Hi, We are in the process of upgrading the database from 10.2.0.2 to 11.2.0.3 database. Currently Client is using pro*c(from 10.2.0.1 client) on different machine connecting to 10.2.0.2(Will be upgraded to 11.2.0.3) database. I gone through certifica

  • Macbook pro retina display white spot(LCD Mura)

    i have a macbook pro retina mid 2012 and i was traveling for 9 months and i had this problem for a while that my screen has a 2 bright white spots on the lower left quadrant of the screen it is an LG display and i researched online and people seem to

  • Roles for cProjects

    Dear All, We are using cprojects for creation of project,staffing a team members to an project. currently we have an SAP_All in CRM server for doing the above activities and we dont want to keep the same in future.So we would to like to know the role

  • SEM BPS/IP Best Practice

    Hi Guru's, Regards, Plz any body can give some links to Best Practice of SEM BPS/IP would be great full. many thanks Mohan