Basic question, making me go bald

I am trying to get some buttons to communicate with some movie clips. Specifically, I want button 1 to tell movie clip 1 to move, button 2 to tell movie clip 2 to move, etc. If I hard-code it, I have no problems. But this is, as a friend used to say, an inelegant solution.
Here's the code as it stands.
If I test the movie, ALL the clips move in at once. I have been searching online forums and have found nothing.
Could I please ask for some help?
Thanks!
import flash.events.MouseEvent;
import fl.transitions.Tween;
import fl.transitions.easing.*;
import fl.transitions.TweenEvent;
var btnArray:Array=[button1_btn, button2_btn, button3_btn, button4_btn];
var mcArray:Array=[art1_mc, art2_mc, art3_mc, art4_mc];
for(var j:int=0; j < btnArray.length; j++)
    btnArray[j].addEventListener(MouseEvent.CLICK, shiftImage);
    function shiftImage(event:MouseEvent):void
            for (var k:int=0; k < mcArray.length; k++ in mcArray)
            var shiftThing:Tween=new Tween(mcArray[k], "x", Elastic.easeOut, 550, 160, 1, true);

Here's one way to do it... assuming you do not want to move all of the movieclips like your code was trying to do.  You do not want to bury the function in a loop.
import fl.transitions.Tween;
import fl.transitions.easing.*;
import fl.transitions.TweenEvent;
var btnArray:Array=[button1_btn, button2_btn, button3_btn, button4_btn];
var mcArray:Array=[art1_mc, art2_mc, art3_mc, art4_mc];
function shiftImage(event:MouseEvent):void
var mc:MovieClip = mcArray[btnArray.indexOf(event.currentTarget)];
var shiftThing:Tween=new Tween(mc, "x", Elastic.easeOut, 550, 160, 1, true);
for(var j:int=0; j < btnArray.length; j++)
    btnArray[j].addEventListener(MouseEvent.CLICK, shiftImage);

Similar Messages

  • Idiotic Basic Question - making a circle with transparent bg driving me nuts!

    OK, disclaimer - I have been using an old version of elements and just upgraded to Photoshop CS5 Extended.  All I want to do is:
    1)  Create a circle for a logo.
    2)  Add text and drop shadow.
    3)  Make bg transparent.
    Why am I getting the white line around the circle?  (The circle will be the logo.  Right now it is a 240 x 240 gif that is floated on top of the header using CSS).
    Thanks,
    Gary

    In addition to Noel's advice, there is no need to rasterize the shape layer
    to change the color, just double click on the solid fill color to change the color
    of your circle. Also move your shape layer above the white layer and turn off the
    visibility or delete the white background layer before saving as a png-24.
    You might also try Image>Trim to crop the circle. Pick transparent pixels in
    Image>Trim dialog.
    MTSTUNER
    Message was edited by: MTSTUNER

  • Basic questions about Logic Pro

    Reading the topics and discussion groupes in this Logic Pro community is a tiny bit scary to me I admitt.
    Yet I will launch my basic question into the air, hoping to get an answer.
    I am a complete beginner in this field and only read something about this Logic Pro program a day ago.
    My question is simple: Is Logic Pro useful for people like me?
    I do not play an instrument, I have no editing and other skills mentioned in the forums, I never put a note on paper or computer before.
    I would only love to find a way to get some music out of my head. That's all.
    Should I take a course first and maybe then get the program? Or is this not what i am looking for?
    Thank you community!
    Eduard

    Your question is impossible to answer. Although... maybe you should just try Garageband first. It's free, and what you learn on it transfers to Logic (Garageband is now in fact Logic Lite).
    And making Dance music really is not that hard, here's a brilliant tutorial from a countryman of yours:
    http://www.youtube.com/watch?v=_N8vSo6gvGg

  • Basic questions about recovery/repair preparation

    When I got my machine, over two years ago, I made repair disks on DVD's per Toshiba's instructions. Now, with my nightly backups, I have it make a system disk image on a NAS device. 
    If I were to have a large failure and need to restore my system,  is there anything I can do now that would prevent me from having to go back to my inital system install of two+ years ago and start reinstalling everything?  
    I guess what I'm wondering is if would making another set of more recent repair disks be useful at all in giving me a "jump start" on recovery and how my scheduled system disk image fits into the picture. I've heard some folks say system disk images from a NAS device can't be used but they were not particularly credible sources so I don't know.
    Probably pretty basic questions, but having recently had a scare with my machine, I want to be sure I'm as prepared as I can be.
    Thanks.
    Solved!
    Go to Solution.

    Now, with my nightly backups, I have it make a system disk image on a NAS device.  ....  I've heard some folks say system disk images from a NAS device can't be used...
    If you cannot boot from an optical disc or flash drive to a program that restores from that NAS image, Sally, then it's useless. What system/procedures are you using? Read the manual.
    The original recovery discs in my view are not very helpful. I would use them only to establish whether hardware is at fault when debugging a problem. Daily backups are the best source of recovery. We keep ours for ten days and test the recovery procedure from time to time.
    Most of us who make backup disk images create them on an external drive connect via USB. Windows 7 already has such a backup program. One can boot from a repair disc to restore that image.
    As you realize, this is important Let's sort it out.
    -Jerry

  • DVD studio basic questions...

    HI!
    I have mostly used FCP to make web videos, so making a DVD is new for me. I used iDVD in the past for family videos, but that's about it.
    Some basic questions...
    1) Does DVD Studio work from different FCP files? Meaning, can I create all the "chapter sections" in my dvd in different FCP files? Is that the best way to do it? Or does it all have to be done in one FCP file with some sort of chapter marker system?
    2) Does DVD Studio read from FCP direct or from exported .dv files?
    3) Do I have a choice of using FCP or exported .dv files?
    I ask these so I know the right way to approach my FCP project.
    Also, if it can use .dv files, then I can outsource the authoring of making the DVD to someone else to save me some time. This is harder to do with the FCP files.
    FINALLY...
    4) When I used iDVD in the past and dvds I buy in the store, all I could get was about 1 hour on a dvd.
    With DVD studio, how can you make a longer DVD that can fit more than 1 hour, as I am making a professional product for duplication.
    Thanks sooooooooo much for your wisdom..... john

    Hi John - in response:
    1) yes, it can certainly do so. However, you can also use a single timeline in FCP, set chapter markers and add the DVDSP meta data (click 'm' twice in the FCP timeline to get the chapter marker window, and add the data there). You might also add the markers when in DVDSP - all fairly easy to do. I often use lots of different FCP clips to make a single track in DVDSP - you have to think of a DVDSP timeline very differently to a FCP one... in DVDSP the timeline can hold completely different films and you use chapter markers to help delineate it all. You only need to use a new track in DVDSP if it helps with the overall structure for the disc, or if you've used 99 chapter markers in the first one already.
    2) yes, it can. Using a FCP reference file is possible, as is using an exported .dv file. The difference is a matter of preference, largely. I tend to export out of FCP as a QT self-contained file, encode it using compressor to be mpeg2, and then import into DVDSP. You can, of course, go from FCP directly to compressor without making the QT file. The output from compressor is what you are after for DVDSP - you can use QT or .dv files right into DVDSP, but they get compressed to MPEG2 as the disc is built. The encoder in DVDSP is not a particularly refined tool, and Compressor will give you so many more options, including encoding the audio to AC3 (dolby digital) which is a very important thing to do!
    3) yes again... see above? You can't use the FCP project files, you certainly can use other file types, but you really ought to use MPEG2 files from Compressor. You'll get a better looking result.
    4) yes... this all comes down to the way the footage is encoded (I'm labouring the point, but Compressor is your friend here again). There are lots of ways you can squeeze more onto a standard 4.37Gb disc - it is easy to get 2 hours on if you know what you are doing. This could be an entire thread of it's own, but the basics are that you need to use Dolby Digital audio (AC3) which has a tiny file size but a decent audio sound. This leaves you with more space on your disc for the video. The more you compress the video (use lower bitrates like 3Mbps) the smaller the file will be, and therefore the more footage you can fit onto the disc.
    The problem is that lower bitrates can result in lower quality. This is especially true if your footage includes pans, zooms, shimmering water, leaves on trees, fades and so on. You tend to get blocky areas that look poor. Higher bitrates certainly help, but you get larger file sizes and thus can fit less on the disc... it's always a trade off between file size and quality. With iDVD the encoding decisions are taken for you, and you can't control it, but it fortunately does a pretty decent job.
    There is no set or enciding rules that will work for every piece of video you have got, however you can go a long way using variable rate encodes (VBR) that have a range from 4 - 7.4Mbps. In order to know whether the resulting file will fit onto your disc you have to do some good old 'bit budgeting'. There are online tools to help you where you type in the length of your footage in minutes, and the size of your DVD capacity, and it tells you what the bitrate needs to be in order to fit the space available. Be careful though - it cannot tell what your footage is, and you have to preview the results yourself to judge if the quality is right.
    A tip is to find the 'problem' areas in the footage, make a short (2mins) clip and encode that at different bit rates. When you find one that works well, use that for all of the footage. As long as you use 2 pass (VBR) encodes in Compressor, it will assign lower bitrates to the easier sections, and higher bitrates to the problem areas.
    There are many other encoders out there which are better than Compressor - have a look at Cinemacraft on a PC for a start - but you pay a premium for them. They also take a while to learn, but the trick to making a great looking DVD is to use great looking source footage and encode it well before making the DVD. If you encode as part of making the DVD then you've missed the point and you'll get 'average' results at best!

  • Basic Question on Copy and Delta link which one to use when?

    Hi
    Its basic question
    My understanding about copy and Delta link is
    Copy doesnot ahve direct relationship with source object (but it acts as a sibling) any changes done to spurce object does not affect target object.
    Where as Delta link will have a parent child relation ship between source object bacially its a copy of source and inherits id properties. in case if i change source object does this affect target object, we can delete, add content to delta link target object.
    let's say if i want to use standard quickpoll iView do i need to use copy or delta link similarly for other iviews, worksets, roles which one will be better.
    Regards,
    Murali

    Murali,
    Yes, your understanding is right.
    Case 1 : Copy
    A- Object
    B- Copy of A
    Both of them are independent.Any changes in A are not dependent on B and vice versa.
    Case 2 : Delta Link
    A - Object
    B - Copy of A (via Delta link)
    Any changes to A are reflected in B, as A is a parent and B a child.
    But B would be an independent entity.Any changes to B would not effect A.
    When you use either of them, depends on your need. When you are working with standard iviews or roles or workset, you can do a copy of the original, because in most cases we would not make changes to the standard roles or worksets or iviews. There by eliminating the process of making a delta copy.
    But, if you are dealing with the roles that you have created and want to make a copy of it, you can use a delta link, because, even if you want to add more iviews and worksets to that role, they would get reflected when you make a delta copy.
    Hope that helps.
    Consider rewarding points for handy posts!
    Cheers,
    Sandeep Tudumu
    Edited by: Sandeep Tudumu on May 6, 2008 2:10 AM

  • Basic question

    Hello, i have a basic question. if i have defined 2 fields in a cube or a dso:
    Name Quantity
    and from the external flat file i get some characters for my quantity field. would my load fail?  for standard dso and for write optimized?
    NOTE: quantity field is a keyfigure defined as numeric.
    and the load coming in has "VIKPATEL" for Quantity field and not numbers.
    thanks

    Hi Vik,
    Yes, the load will fail.
    May be you coud first load this data into BW (into PSA) and set both fields as characters fields. Then you can create DSO, do transformation from this PSA to the DSO, and put your logic as to what do you want to do with those Quantity that is not number (e.g. convert to 0, or 'Not assgined', etc).
    You can use transfer rule, or a clean up ABAP code in the start routine.
    Hope this helps.

  • Pl/sql vs sql basic question

    Hi,
    I have a very very basic question, so excuse me for that... I just would like to know the difference ( and the difference in usage) between sql and pl/sql?
    thank you
    Yann

    SQL - the structured query language - is the language available for extracting data from the database. It is a 4GL, and each command stands alone and performs a database action.
    PL/SQL is the 3GL primarily intended to control the flow of a series of SQL commands. PL/SQL does not, in any way, interact with the data in the database. It does, however, allow SQL statements to be called, or even created, in a specific order.
    SQL is capable of a LOT more than people usually realize. Unfortunate, as people often create PL/SQL programs when single SQL statements will do the job. I encourage reading the O'Reilly 'Mastering Oracle SQL' book ... only after fiunishing that book do I recommend any of Feuerstein's excellent PL/SQL books.

  • Basic questions on data modeling

    Hi experts,
    I have some basic questions regarding data modeling within MDM. I understand the available table types and the concept of lookup fields. I know that the MDM data modeling concept is different to the relational concept. But having a strong database background my first step was to design a relational data model which I would like to transfer to a MDM repository. Unfortunately I didn't found good information material on this. So here are some questions maybe you can help me:
    1) Is it the right approach to model n:m relationships with multivalued lookup fields? E.g. main table Users with lookup field from subtable SapAccounts (a user can have accounts in different SAP systems, that means more than one account).
    2) Has a record always be unique in MDM repositories (e.g. should we use Auto ID's in every table or do we have to mark a combination of fields as unique)? Is a composite key of 2 or more fields represented with marking these fields as unique?
    3) The concept of relationships in MDM is only based on relationships between single records (not valid for all records in a table)? Is it necessary to define all relationships similar to the relational data model in MDM? Is there something similar to referential integrity in MDM?
    4) Is it possible to change the main table to a sub table later on if we realize that it has also to be used as a lookup table for another table (when extending the data model) or do we have to create a new repository from scratch?
    Thank you for your answers.
    Regards, bd

    Yes you are correct. It is almost difficult to map relational database to mdm one. But again MDM is not 'just' a database. It holds much more 'master' information as compared to any relational db.
    1) Is it the right approach to model n:m relationships with multivalued lookup fields? E.g. main table Users with lookup field from subtable SapAccounts (a user can have accounts in different SAP systems, that means more than one account).
    Yes Here you need to use MV look up tables or can also try Qualifier tables if it gets more complex
    2) Has a record always be unique in MDM repositories (e.g. should we use Auto ID's in every table or do we have to mark a combination of fields as unique)? Is a composite key of 2 or more fields represented with marking these fields as unique?
    Concept of uniqueness differs here that you also have something called Display Fields (DF). A combination of DF can also be treated as Unique one. For instance while importing records if you select these DF as a combination, you will eliminate any possible of duplicates based on this combination. Auto Id is one of the ways to have a unique id once record is within MDM. While you use UF or DF to eliminate any possible duplicates at import level
    3) The concept of relationships in MDM is only based on relationships between single records (not valid for all records in a table)? Is it necessary to define all relationships similar to the relational data model in MDM? Is there something similar to referential integrity in MDM?
    Hmm... good one. Referencial Integrity. What I assume you are talking is that if you have relationships between tables then removing a record will not be possible as it is a foreign key for some record. Here MDM does not allow that. As Relationships within MDM are physical and not conceptual. For instance material can have components. Now if material does not exist then any relationship to components is not worthwile to maintain. Hence relationshsip is eliminated.  While in relational model relationships are more conceptual. Hence with MDM usage of lookups and main table you do not need to maintain these kind of relationships on your own.
    4) Is it possible to change the main table to a sub table later on if we realize that it has also to be used as a lookup table for another table (when extending the data model) or do we have to create a new repository from scratch?
    No. It is not possible to convert main table. There is only one main table and it cannot be changed.
    I went for the same option but it did not work. What I suggest is to look up your legacy system one by one and see what fields in general can be classified as Master, Reference, Transactional - You will start getting answers immediately.

  • HT1311 I know this is a basic question, however, how do i change my pass word on itunes to stop my kids from automatically buying tunes from the I store... as my card details are already saved they just log in with their ipods and download via my account

    I know this is a basic question, however, how do i change my pass word on itunes to stop my kids from automatically buying tunes from the I store... as my card details are already saved they just log in with their ipods and download via my account

    http://support.apple.com/kb/HE36
    Regards.

  • HT1848 Forgive such a basic question, it's easier than looking it up.  I have my iTunes music on macbook pro and have only synced it to one iPod.  I want to buy a new iPod and want to know will I be able to sync my music from computer to new iPod at no ch

    Forgive such a basic question, it's easier than looking it up.  I have my iTunes music on macbook pro and have only synced it to one iPod.  I want to buy a new iPod and want to know will I be able to sync my music from computer to new iPod at no charge?

    will I be able to sync my music from computer to new iPod at no charge?
    Yes, you will.

  • Basic question regarding SSIS 2010 Package where source is Microsoft Excel 97-2005 and there is no Microsoft office or Excel driver installed in Production

    Hi all,
    I got one basic question regarding SSIS 2010 Package where source is Microsoft Excel 97-2005. I wanted to know How this package works in production where there is no Microsoft office or Excel driver installed. To check that there is excel driver installed
    or not, I followed steps: Start-->Administrative Tools--> Data Sources(ODBC)-->Drivers and I found only 2 drivers one is SQL Server and another one is SQL Server Native Client 11.0.
    Windows edition is Windows Server 2008 R2 Enterprise, Service Pack-1 and System type is 64-bit Operating System.
    We are running this package from SQL Server Agent and using 32-bit (\\Machine_Name\d$\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\DTExec.exe /FILE "\\Machine_Name\d$\ Folder_Name\EtL.dtsx" /CONFIGFILE "\\Machine_Name\d$\Folder_Name\Config.dtsConfig"
    /MAXCONCURRENT " -1 " /CHECKPOINTING OFF /REPORTING E) to run this package. I opened the package and tried to find out what connection we have used and found that we have used "Excel Connection Manager" and ConnectionString=Provider=Microsoft.Jet.OLEDB.4.0;Data
    Source=F:\Fares.xls;Extended Properties="EXCEL 8.0;HDR=YES"; and source is ‘Excel Source’
    I discussed with my DBA and He said that SSIS is having inbuilt Excel driver but I am not convinced.
    Could anyone please clear my confusion/doubt?
    I have gone through various links but my doubt is still not clear.
    Quick Reference:
    SSIS in 32- and 64-bits
    http://toddmcdermid.blogspot.com.au/2009/10/quick-reference-ssis-in-32-and-64-bits.html
    Why do I get "product level is insufficient..." error when I run my SSIS package?
    http://blogs.msdn.com/b/michen/archive/2006/11/11/ssis-product-level-is-insufficient.aspx
    How to run SSIS Packages using 32-bit drivers on 64-bit machine
    http://help.pragmaticworks.com/dtsxchange/scr/FAQ%20-%20How%20to%20run%20SSIS%20Packages%20using%2032bit%20drivers%20on%2064bit%20machine.htm
    Troubleshooting OLE DB Provider Microsoft.ACE.OLEDB.12.0 is not registered Error when importing data from an Excel 2007 file to SQL Server 2008
    http://www.mytechmantra.com/LearnSQLServer/Troubleshoot_OLE_DB_Provider_Error_P1.html
    How Can I Get a List of the ODBC Drivers that are Installed on a Computer?
    http://blogs.technet.com/b/heyscriptingguy/archive/2005/07/07/how-can-i-get-a-list-of-the-odbc-drivers-that-are-installed-on-a-computer.aspx
    Thanks Shiven:) If Answer is Helpful, Please Vote

    Hi S Kumar Dubey,
    In SSIS, the Excel Source and Excel Destination natively use the Microsoft Jet 4.0 OLE DB Provider which is installed by SQL Server. The Microsoft Jet 4.0 OLE DB Provider deals with .xls files created by Excel 97-2003. To deal with .xlsx files created by
    Excel 2007, we need the Microsoft ACE OLEDB Provider. SQL Server doesn’t install the Microsoft ACE OLEDB Provider, to get it we can install the
    2007 Office System Driver: Data Connectivity Components or
    Microsoft Access Database Engine 2010 Redistributable or Microsoft Office suit.
    The drivers listed in the ODBC Data Source Administrator are ODBC drivers not OLEDB drivers, therefore, the Excel Source/Destination in SSIS won’t use the ODBC driver for Excel listed in it by default. On a 64-bit Windows platform, there are two versions
    of ODBC Data Source Administrator. The 64-bit ODBC Data Source Administrator is C:\Windows\System32\odbcad32.exe, while the 32-bit one is C:\Windows\SysWOW64\odbcad32.exe. The original 32-bit and 64-bit ODBC drivers are installed by the Windows operating system.
    By default, there are multiple 32-bit ODBC drivers and fewer 64-bit ODBC drivers installed on a 64-bit platform. To get more ODBC drivers, we can install the 2007 Office System Driver: Data Connectivity Components or Microsoft Access Database Engine 2010 Redistributable.
    Besides, please note that 2007 Office System Driver: Data Connectivity Components only install 32-bit ODBC and OLEDB drivers because it only has 32-bit version, but the Microsoft Access Database Engine 2010 Redistributable has both 32- bit version and 64-bit
    version.
    If you have any questions, please feel free to ask.
    Regards,
    Mike Yin
    TechNet Community Support

  • If I upgrade to Mountain Lion on the computer that will install it, will my WIFI still work on the computer that cannot be upgraded? I know this is a very basic question

    If I upgrade to Mountain Lion on the computer that will install it, will my WIFI still work on the computer that cannot be upgraded? I know this is a very basic question. Trying to hold out as long as I can, but purchasing an iPhone for Christmas and new iMac next year when warrently expires.

    Thank U very much for the quick reply, I wanted to upgrade this weekend, but still on the fence. I can live with the software that is not compatible, they are on another compuetr, just didn't want the obvious stuff to stop working.

  • Basic questions about Infocube

    Hi, everyone.
    I got very basic questions about infocube data handling.
    With infopackage, I extracted all the data about employees from R/3.
    But there were some mistakes during inputting employee data, like positions,
    so I just extracted those employees data once more.
    Now I have two requests in infocube, where the first one has some wrong data.
    Is there any solutions about this?
    I might got it all wrong, so as beginner, any suggestions and explanations will
    be grateful.

    Hi,
    You can manually delete the earlier request by going in the Manage option of the cube. select the request and click on delete icon at the bottom.
    Other option is to make setting in the Infopackage to delete similar or overlapping request.
    Data target tab --> 6th column Automatic loading / deletion of similar request. --> click on the blank icon --> you will get a pop-up --> select the radio button - "delete existing request" --> Select Conditions --> Infosource are same, datasource are same and source system are same, --> selections are "Same or  More Comprehensive "
    Assign points if useful
    Regards
    Venkata Devaraj !!!

  • Basic Questions

    Hi all,
    I´ve some basic questions - we are seeking for an alternative for our MS Exchange System. So I need some more information before going to hot testing Oracle :-)
    - Does Oracle Coll. support multiple Domains? Not only subdomains - either completley different Domains?
    - Is it possible to create multiple Users via SQL (Massgeneration)?
    A more technical question:
    On my first testing (Solaris 10, Sparc) I run into a strange phaenomen - my FQDN hast an '-' interated and the installation process interpreted it as '_'? I mean I have read something about that but couldn´t find that in the doc. anymore. I think it is a big problem for sending mails if the system change my domain name from [email protected] to mail@fq_dn.com ... ;-)
    Is it my fault or is it a "feature"?

    Hi Eisfalke!
    Oracle Collaboration Suite supports multiple domains.
    You will not create users with SQL but with some other commandline tools as their data goes into the OID and the CS database. But yes, it has tools for bulkcreation.
    I have not yet had the pleasure of working with a domain with a - but you should be capable of creating a new domain with a dash and remove the domain with the underscore.
    cu
    Andreas

Maybe you are looking for

  • Mini dvi to hdmi

    I just purchased an adapter to connect my imac (intel core duo) to my lcd hdtv. I am using a mini dvi to hdmi adapter. When i plugged it into my imac and macbook it recognized my tv right away as another display. Is this the best way to get video to

  • Error while importing java class into oracle forms 10g

    Hi I have generated a web service client using jdeveloper 10g. It consists of complex type methods. I am trying to import the class files using java importer in oracle form 10g. I am able import all of them successfully except one. That one is the ma

  • To Trigger a mail into my outlook when i get a mail to my SAP Bussiness WP

    Hi ,, I want to trigger an email to my oulook when i get a mail into my SAP Bussiness Workplace Tcode So01. Please help me on this. Regards Srinivas Manda

  • Is there a way for mac os 10.8 to become a white background with black text in dockmenu like it was in os x 10.5?

    the black dockmenu which was introduced with os x 10.6 is difficult to read for me, i would back the white version which was used in os x 10.5. is this possible or would it eventually possible under os 10.8.2 or a newer version? thanks

  • Open pdf file in IE

    Hi All, I want to open a pdf file in browser.I am using navigateToURL(URLrequest) to accomplish that. pdf is always opening in firefox becoz it is my default browser but i want open it only in IE. Instead of changing the default browser to IE is ther