How can I associate unique information/ variables with different instances of attachMovie when creat

I'm creating an interactive animation of an experiment, whereby the user has to detect if there is an oil well lying beneath the surface by selecting and drilling a series of coordination points on a map.
I've done the first stage by setting up a background image containing a grid of 20 x 20 coordinate points, eg columns 1 - 20 and rows A - T. Over the top of this, I've created a dynamic array of clickable objects (open circles) and the centre of each one is  placed over a coordinate point, so when you mouseover a coordinate point, eg C3,  an open circle becomes visible and when you rollout, it becomes invisible again.
However, I'm stuck on the next stage. I need to be able to assign unique variables to one or more clickable objects (open circles). Is it possible to do that? For example:
a)give grid point coordinates to each object (open circle), so for example if someone rolls over the C3 coordinate, the open circle (object) associated with that coordinate, a message will display: "Click on the grid point to drill at C3"
b)assign a variable to one or more objects, so that when an open circle is clicked, the animation associated with that coordination point will be triggered. There will be different animations, depending upon which object (point is clicked)
There are other variables that will need to be setup, but if I know how to assign variables to one or more objects, I can probably figure out the rest.
Here's a copy of my code so far:-
//set up grid for solid array
spacing = 5.75;
cols = 20; // number of columns in grid
rows = 20; // number of rows in grid
leftMargin = 154;
topMargin = 169;
depth = 100; // starting point for depth
for (i=1; i<=rows; i++) {                                                                                                        
for (j=1; j<=cols; j++) {                                                                                                         
current = attachMovie("openCircle_mc", "openCircle_mc"+i+"_"+j, depth++);
current._x = leftMargin + ((i-1) * (spacing + current._width));
current._y = topMargin + ((j-1) * (spacing + current._height));
//open circle initially invisible, visible on rollOver
current._alpha = 0;
current.onRollOver = function() {
           this._alpha = 100;
current.onRollOut = function() {
           this._alpha = 0;
Below is the background and a rolled over instance of the 'openCircle' object at 'C3'.
I'd very much appreciate some help. Thanks very much.
Pippa

you can assign properties (and methods) to movieclips:
//set up grid for solid array
spacing = 5.75;
cols = 20; // number of columns in grid
rows = 20; // number of rows in grid
leftMargin = 154;
topMargin = 169;
depth = 100; // starting point for depth
for (i=1; i<=rows; i++) {                                                                                                         
for (j=1; j<=cols; j++) {                                                                                                          
current = attachMovie("openCircle_mc", "openCircle_mc"+i+"_"+j, depth++);
current._x = leftMargin + ((i-1) * (spacing + current._width));
current._y = topMargin + ((j-1) * (spacing + current._height));
current.row=i;
current.col=j;
current.oil = Math.floor(Math.random()*1.1);  // about 1/10 objects have oil=1, 9/10 oil=0
//open circle initially invisible, visible on rollOver
current._alpha = 0;
current.onRelease=function(){
trace(this.row+" "+this.col+" "+this.oil);
current.onRollOver = function() {
           this._alpha = 100;
current.onRollOut = function() {
           this._alpha = 0;

Similar Messages

  • How can i define a boolean variable with the condition if i got a specific text on a selected column?

    How can i define a boolean variable with the condition if i got a specific text on a selected column?
    Example:
    my select results:
    [id = 102] [Company = 'Microsoft']
    If i got microsoft in 'Company' i want to my another table with the columnName "Microsoft" get "true".
    Can you help me?

    That is called 2-table UPDATE.
    Example:
    http://www.sqlusa.com/bestpractices2005/updatewithcorrelatedsubquery/
    Kalman Toth Database & OLAP Architect
    Free T-SQL Scripts
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • How can I sync my iPad 2 with my new MacBook Pro when it is already synced with my old MacBook? I am getting a message on the new MacBook Pro that says I am not allowed to sync the iPad 2 because it is synced to another iTunes library.

    How can I sync my iPad 2 with my new MacBook Pro when it is already synced with my old MacBook? I am getting a message on the new MacBook Pro that says I am not allowed to sync the iPad 2 because it is synced to another iTunes library.

    1) ensure iTunes is authorized for your iTunes store account(s)
    2) connect your device and right-click or control-click it in the iTunes Source list, then choose transfer purchases from the shortcut menu that appears.
    3) sync the device
    iTunes will wipe the iPad but, since you transferred your purchases in the previous step, your content will be in your library and you can re-populate the iPad with it.
    above works for purchases from the iTunes store. for everything else, check out this post by Zevoneer.
    also, there are PhoneView and iRip.

  • How can I share the home folder with different accounts on the same mac?

    Hi, here's a question:
    How can I share the home folder with different accounts on the same mac?
    The whole point being not to have to install all my apps, and move all my files each time between users.
    The second thing would be to be able to modify one document on one account, and have it changed on the other account without having to copy it.
    I would like to have a pro and a private account on my mac.
    Thanks for you answers,
    Doug

    Your apps should not be installed in your home folder--they should be in /Applications where every user can access them.
    If you want to share things between users on the same Mac, use the /Users/Shared folder. Keep your home folder private. Trying to defeat the protections on the home folder subfolders just gets messy. I've never bothered to figure out all of the problems associated with it so I can't explain how to do it.
    Even with using Shared, you would need to alter the ACLs on the shared folder in order to allow both users to modify the documents.
    You must create a Group in Users & Groups and put each user in that group. Then create a folder inside /Users/Shared where you want to share the various files.
    Then, add an ACL to the shared folder that gives the group special permissions. on that folder.
    sudo chmod -R +a "<sharinggroup> allow delete,chown,list,search,add_file,add_subdirectory,delete_child,file_inherit,directory_inherit" /Users/Shared/<sharing folder>
    Replace <sharinggroup> and <sharingfolder> with the name of your group and your folder. Then, run the command in the Terminal.
    With that ACL, each user in <sharinggroup> will be able to alter the files created by any user in the group in that <sharingfolder>.
    Essentially, the client OS is not designed for true file sharing among the individual users. It is designed to isolate each user account from the others.

  • HT1338 i have apps to be updated but when i try to update them a message pops out saying "You have updates for other accounts, please sigh in with the other id". Can some one help me how can i still update the same with the new apple id ive created.

    i have apps to be updated but when i try to update them a message pops out saying "You have updates for other accounts, please sigh in with the other id". Can some one help me how can i still update the same with the new apple id ive created. As i dont have the access to the earlier id anymore.

    You cannot. The apps are assigned to that Apple ID and there is nothing you can do to change that. You could choose to download them again with the new Apple ID, any paid apps will need to be purchased again.
    Hope that helps.

  • How can I do for ESA work with token RSA, I mean when I entry the login the authentication with RSA

    Hi there,
    How can I do for ESA work with token RSA, I mean when I entry the login, the authentication ask me the token with RSA, Is it possible???
    Regards,

    Hello Miguel,
    RSA tokens are currently not supported for login, neither to the GUI/CLI or access to the spam quarantine. There is currently a feature request"Support SecurID via RADIUS" for the WSA, if you want you can open a ticket and have either add your company to that request, or have it extended for ESA as well.
    Hope that helps,
    Andreas

  • How can I share applications and softwares with different users of the same computer?

    First question: How can I share applications and softwares with different users of the same computer?
    Second : Can I use 2 different I cloud accounts to synt 2 iphones with one computer?

    Applications installed on the admin account are available to all user accounts unless Parental Controls are enabled.
    Yes.   Separate user accounts, help here >   How to use multiple iPods, iPads, or iPhones with one computer

  • How can all of the same subscriber in different instance get the meesages?

    Hi
    I am using MDB to recieve messages from publisher, used for event and notification, I deploy same MDB into different instance, if there is a event, the publisher will publish a message, and all subscribers in different instance are supposed to get the message, but reffer to the message flow, only one of these MDB will recieve the messages.
    One solution is to have different clientID for these MDB in different instances. But unfortunately, the value for clientId should be constant expression.
    Here is my code, any suggestion?
    @MessageDriven(mappedName = "cluster_publisher_adm", activationConfig = {
         @ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge"),
         @ActivationConfigProperty(propertyName = "subscriptionDurability", propertyValue = "Durable"),
         @ActivationConfigProperty(propertyName = "clientId", propertyValue = "test"),
            @ActivationConfigProperty(propertyName = "subscriptionName", propertyValue = "myTest"),
         @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Topic") })
    public class TopicListener implements MessageListener {
        public TopicListener() {
        }How can I have all the MDB in different instances to get the same messages?

    I presume you are using Glassfish and Glassfish Message Queue, and that your Glassfish instances are clustered. If so, then if an MDB (listening on a topic) is deployed into the cluster, each message will indeed be delivered to one MDB per cluster rather then to one MDB per instance. This is a feature known as "shared subscriptions".
    If you are using Glassfish 2.1.1 or 3 (but not earlier versions) you can disable this using an activation spec property. Take a look at the latest documentation at
    http://docs.sun.com/app/docs/doc/821-0027/aeooq?l=en&a=view&q=activationspec
    and scroll down to the new property "useSharedSubscriptionInClusteredContainer". You need to set this to false.
    Nigel

  • How can i compare two excel files with different no. of records.

    Hi
    I am on to a small project that involves us to compare two excel files. i am able to do it but am struck up at a point. When i compare 2 different .csv files with different no. of lines i am only able to compare upto a point till when the number of lines is same in both the files.
    Eg. if source file has 8 lines and target file has 12 lines. The difference is displayed only till 8 lines and the remaining 4 lines in source lines are not shown.
    Can you help me in displaying those extra 4 lines in source file. I am attaching my code snippet below..
    while (((strLine = br.readLine()) != null) && ((strLine1 = br1.readLine())) != null)
                     String delims = "[;,\t,,,|]";
                    String[] tokens = strLine.split(delims);
                    String[] tokens1 = strLine1.split(delims);
                   if (tokens.length > tokens1.length)
                    for (int i = 0; i < tokens.length; i++) {
                        try {
                            if (!tokens.equals(tokens1[i])) {
    System.out.println(tokens[i] + "<----->" + tokens1[i]);
    out.write(sno + " \t" + lineNo1 + " \t\t" + tokens[i] + "\t\t\t\t" + tokens1[i]);
    out.println();
    sno++;
    } catch (Exception exception)
    out.write(sno + " \t" + lineNo1 + " \t\t" + tokens[i] + "\t\t\t\t" + "");
    out.println();
    Thanks & Regards                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    A CSV file is not an Excel file.
    But apart from that your logic makes no sense.
    If the 2 files are of different sizes the files are different by definition, so further comparison isn't needed, you're done.
    If you want to compare individual records, you need to compare all records from one file with all records from the other, unless the order of records is important in which case your current system might work.
    That system however is overly complicated for comparing CSV files.
    As you assume a single record per line, and if one can assume those records to have identical layout (so no leading or trailing whitespace in or between columns in one file that's not in the other) comparing records is simply a matter of comparing the entire lines.

  • How can I associate McBook Air and with iTunes

    would you give me advice how to associate McBook Air with iTunes.
    iTunes shows only iPhone, but not Air.
    Maybe that is the reason why I can't  synchronize calender and contacts between Outlook and iPhone.

    On your MacBook Air's iTunes, use the menu to go to Store > Authorize This Computer
    Sign in with your Apple ID and password.
    That should do it!

  • HT204074 how can i associate my ipod shuffel with my itunes account

    i have an issue makeing purchases from the itunes store becuase i am using a new device so because of that i was prompted to answer my secret sequrity code and i dont remember the answers i provided so i was given the option of having something sent to my emailbut i no longer associte my self with that email so i called apple support and they said that they can help me if i put my ipod shuffle on my itunes account then they can help me a little more i know all my account info but my sequirty ? i made mi account december 2011 so unfortunetly i forgot i just brougth an itunes gift card to shop in the itunes store and i entered my password wicth was correct and every thing seemed fine and when i clicked buy on what i wanted it said i was useing a new computer so because of that i  am unable to shop if it is not possible to add the ipod shuffle to my account is there anything else i can do

    An iPod shuffle is not associated with an Apple ID in any way, so I don't understand what it is you're asking or being told. It's also very difficult to try and decode your post what with the total lack of punctuation. Please post back and explain in more detail - with punctuation, please - what it is you're having problems with. If you're having problems purchasing from the iTunes Store, as it seems from what I can glean from your post, that has nothing to do with your iPod.
    Regards.

  • How can I avoid losing purchases made with an old Apple ID when I authorize my MacBook Pro under my current Apple ID?

    I am very confused!!  When I first used iTunes, I did not own any Apple products.  When I purchased my MacBook Pro and a Mobile Me subscription a few years ago, my email address @me.com became my new Apple ID.  I subsequently purchased an iPhone 3 and eventually an iPhone 4.  Apparently over this time, I have used both Apple IDs at various times.  Sometimes when I upgrade apps, the old ID will already be filled in and other times the new one will be instead.  I always use whichever one is there with the appropriate password.  This was probably a mistake.  I just realized that my MBPro is authorized under the original Apple ID and not the current one.  I tried to authorize it under the current Apple ID, but couldn't, so I was going to deauthorize it from the old one, but got a message about losing any purchases made with the original Apple ID.  I don't want that to happen.  Synching my iPhone in iTunes with my computer has been much more confusing since I got my newer iPhone. However, I don't remember anything about the process I went through to associate it with my iTunes account.  Any helpful suggestions are appreciated.

    Log into the store using the old Apple ID to re-download them, however, you can not switch them into your current Apple ID except by re-purchasing. You can contact Apple support and see if they are able to help you.
    Apple Store Customer Service at 1-800-676-2775 or visit online Help for more information.
    To contact product and tech support: Contacting Apple for support and service - this includes
    international calling numbers..
    For Mac App Store: Apple - Support - Mac App Store.
    For iTunes: Apple - Support - iTunes.

  • I have a mac book 10.6.8 that has been upgraded to Snow Leopard (latest version.) How can I upgrade to mountain lion with 1GB of memory? When I go to buy it, it says that it's not compatible with my Mac but my Mac has all of the qualifications.

    If anyone has any idea I'd really appreciate it. I just bought the iphone 5 and recieved the new nano as a birthday gift and now I'm up a creek without a paddle b/c I can't plug them into my laptop without the new itunes that runs on Mountain Lion.
    Please help, I'm not very tech savvy.

    You don't need anything higher than OSX 10.6.8 to run iTunes 11.  iTunes system requirements - http://www.apple.com/itunes/download/
    You can't upgrade without more RAM.
    MacBook upgrade possibilities - https://discussions.apple.com/message/19577869 - "The Early 2006 model 1,1 Core Duo can only run a maximum of 10.6 Snow Leopard. The models Late 2006 Core 2 Duos 2,1 through Early 2008 4,1 can only run a maximum of 10.7 Lion. The Late 2008 model 5,1 Aluminum Unibody through the Mid 2010 White Unibody model 7,1 can run 10.8 Mountain Lion."
    Kappy 08/2012 post on upgrading to Snow Leopard, then Lion or Mountain Lion -  https://discussions.apple.com/message/19401628 - including how to get Snow Leopard and Lion since Apple removed them from the online store.  (Update 11/2012: SL is now available online again http://store.apple.com/us/product/MC573/mac-os-x-106-snow-leopard - USA http://store.apple.com/uk/product/MC573/mac-os-x-106-snow-leopard - UK)

  • HT202213 how can i do sharing between devices with different IDs?

    one of my kids has an ipod and an own apple ID and i would like to shara my own music with that device too.
    i've tried logging it with my apple ID but got a message saying i would then not be able to share with my own devices for the next 90 days....??
    i guess i'm doing something wrong.... appreciate any help!

    Does he have his own computer to sync with. Is it separate from yours?
    Then you could use Home Sharing to make sure both lots of content are the same on both machines.
    He will have to authorise his machine with your Apple ID for any purchased music to be played
    Store > Authorise this computer
    Then set up Home Sharing
    http://support.apple.com/kb/HT4620
    When it is up and running you can import from 1 library to the other and then your son can sync whatever he wants from his own iTunes

  • How can I make my website compatible with different screen resolutions?

    Here is the page that I'm struggling with:
    http://www.starbuckscollect.com/2013.html
    Everything is pinned to the top and center pin except for the cards.
    My problem is on certain screen resolutions that are not 'wide screen' you are not able to see all of the cards when you scroll down. Some of you may not see my problem when you open up the page which is good. For you guys, the way to see my problem is to 'zoom out' of the screen and to do that press 'ctrl' and '-'
    Is there any way of avoiding this?

    Hi
    I believe you want a responsive design for the page where the page elements , similar discussion here :
    http://forums.adobe.com/thread/1198978
    Thanks,
    Sanjit

Maybe you are looking for

  • How do I create equal space between multiple tabs in Pages?

    I am trying to create four center tabs with equal space between each but can not fiqure out how to achieve this.  I owuld like to avoid using tables becuase I am trying to make sure the document is fully cross-paltform (Word, Pages, Open Office, etc.

  • Personal Web sharing not installed HOW - do I install?

    Hi - I have had an extremely frustrating 4 hours or so between trying to google a solution to the problem and examining the contents of the installation disk with pacifist - I am still none the wiser. I have not tried to set up a localhost server on

  • Oracle user  displaying as Inactive ---

    Hi All, I have a user that submits his request on Concurrent Managers, his session within Oracle becomes Inactive and sits there for dayss! what needs to be done to resolve the issue. I am not able to view any locks within v$lock for his session id o

  • Report to Evaluate the Total Cost of Producing a Meterial

    Dear Experts, Is there any report from where I can generate the total cost incurred for producing a material for a given period of time. Please Help Thanks

  • How to download webdynpro Component in ABAP

    Hi, Can anybody tell How to download Webdynpro component to desktop? is there any Function Module to do so?