One script for multiple loaded movie clips

Hello,
I am sure that this has been asked or answered before, but
could not locate the correct response.
Problem:
There are 20 movie clips loaded onto the stage through
actionscript. I have 20 different onPress scripts to start the drag
for each (which also contain custom variable).
Problem, I have one single onRelease script which is to be
used for each, but do now wish to give 20 custom handled scripts.
Can I somehow use certain scripting for using one single
generic script for the onRelease? So no matter what was released it
will go through this one script.
Thanks
D

like this...
activate
set the_folder to choose folder with prompt "Select the folder you want to add folders to..."
tell application "Finder"
set the_name to "Name"
set the_count to 3
repeat with this_num from 1 to the_count
set new_num to this_num as string
if (count new_num) is 1 then set new_num to "0" & new_num
make new folder at the_folder with properties {name:the_name & " " & new_num}
end repeat
end tell

Similar Messages

  • OpenScript 9.1 - use one script for multiple environments

    Greetings everyone.
    I am using Openscript 9.1 on Windows XP. I want to record a script on a web application hosted in one environment and reuse the same script (with minimal re-work) against the same web application hosted in a different environment. For example, record in development and reuse in test and production.
    From what I read on the Internet, the only way to do it is to find the URL in the Java code of the script and replace it as needed. Is there a more sophisticated way of doing this? Thanks in advance for your time and response.

    This one could work:
    WITH t AS (SELECT ROWNUM rn,
                      ' abcdefghijklmnopqrstuvwxyz' char_table
                 FROM all_objects)
    SELECT 1000 + ROWNUM - 1 empid,
           'king ' || char_counter,
           100 + (ROWNUM - 1) * 100 sal
      FROM (SELECT char_counter
              FROM (SELECT SUBSTR(t1.char_table, t1.rn, 1) || SUBSTR(t2.char_table, t2.rn, 1) char_counter
                      FROM t t1,
                           t t2
                     WHERE t1.rn <= 27
                       AND t2.rn <= 27
                       AND t2.rn >  t1.rn
             ORDER BY char_counter
    WHERE ROWNUM <= 100
    ; C.

  • Having a loaded movie clip talk to another movie clip

    Here's what I want to do:
    Load a clip into my main movie - "loadedMovie"
    at the end of the timeline in "loadedMovie" i want a
    function, perhaps setColor, which will change the colour of another
    movie clip which sits in the main movie.
    Does this make sense? for a loaded movie clip to change the
    color of an instance of another movie?
    Many thanks,
    Ray

    ponch wrote:
    > Here's what I want to do:
    >
    > Load a clip into my main movie - "loadedMovie"
    >
    > at the end of the timeline in "loadedMovie" i want a
    function, perhaps
    > setColor, which will change the colour of another movie
    clip which sits in the
    > main movie.
    >
    > Does this make sense? for a loaded movie clip to change
    the color of an
    > instance of another movie?
    Sure make sense.
    If the clip you like to target is on main timeline of the
    movie than
    you will use something like :
    on (release) {
    var my_color:Color = new Color(_root.SomeMC);
    my_color.setRGB(0xFF00FF);
    You can also refer to it by level:
    (_level123.SomeMC);
    Best Regards
    Urami
    !!!!!!! Merry Christmas !!!!!!!
    Happy New Year
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Load movie clip

    Whenever I load a movie clip into the target and test my
    movie, the loaded movie clip always loads in the bottom right. I
    think this is a registration error but I am not sure how to fix it.
    My target is 835px by 635px, same as the movie clip I want to load.
    Any help would be much appreciated.

    Position the blank movie clip in the top left corner where
    you want to have
    the external movie clip loaded.
    Note that if the external movie clip has dynamic content
    creation via AS or
    different content size on higher numbered frames you may find
    it will show
    content to the left and top of the blank movie clip because
    initial size is
    not detectable. In particular if you are loading Flash movie
    that you
    created that you used a third party tool such as xCelsius. In
    this case you
    need to MovieClipLoader and once the onLoadInit event fires,
    manually
    position the blank movie clip which is passed as an argument
    for coding
    convenience.
    Lon Hosford
    www.lonhosford.com
    May many happy bits flow your way!
    "northstar_86" <[email protected]> wrote in
    message
    news:e27cer$5i2$[email protected]..
    Whenever I load a movie clip into the target and test my
    movie, the loaded
    movie clip always loads in the bottom right. I think this is
    a registration
    error but I am not sure how to fix it. My target is 835px by
    635px, same as
    the
    movie clip I want to load. Any help would be much
    appreciated.

  • Can i install itunes multiple times on one computer for multiple users?

    Can i install itunes multiple times on one computer for multiple users?

    Like most applications you only need to install it once for it to be available to all users. (That said it is possible to install an application and only make it available to the current user, but that's rarely needed.)
    tt2

  • How to create one delivery for multiple sales order

    Hi!! Friends,
    Can some one explain the steps to be followed in creating one delivery for multiple sales order in SAP SD.
    Regards
    AKASH
    Message was edited by:
            AKASH TAMBI

    Hi.,
                  You can combine different orders in to one delivery ,But for the customer Order combination should be checked in  the sales area data of the shipping tab,we can combine orders but the ship to party,Route,Inco terms,Shipping date,shipping point should be same,you can do in T.code VL04 & VL10
    REWARD if helpfull
    Thanks & Regards
    Narayana

  • How to create one TO for multiple TRs

    Dear All,
    how to create one TO for multiple TRs, kindly suggest me
    Regards,
    balu

    As for your question: it is discussed in sAP online help:
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/c6/f841f24afa11d182b90000e829fbfe/frameset.htm
    Sorry I misunderstood your question.
    The above mentioned solution won't create one single TO from multiple TR.
    Edited by: Csaba Szommer on Aug 11, 2010 9:46 AM

  • One TPV for multiple Countries

    Hi Experts,
    Could you pls share experirnce/knowledge around having one TPV for multiple countries together. The scenario is like below:
    1. There are mutiple Countries in Central America which are small islands for whom we need to roll out the Travel and Expense Solution.
    2. The Company code is only one which contains employees from all these Countries.
    Could you tell us how can we do the setup. Should we create one TPV at the company code level. OR should we rather use some other criteria for selecting the TPV maybe at the Personnel area or Personnel Sub Area level.
    Your help is much appreciated.
    Regards,
    Vijay

    Hi Kiron,
    These things I am aware about too. My real question is if I create only one TPV for the company code and assign the Country of the Company code then what issues would this cause. To name a few pls see below.
    1) The domestic Country would always be the Company code Country so would be treated as Domestic Country and show on the Form also as domestic Country even for the employees who are from other Countries.
    2) There are setting which SAP allows differently for Domestic and International like per diem, miles cumulations. So these necessarily have to be kept as same even though local laws are different in all these countries as Domestic is only the Company code Country.
    So I need detailed analysis of what impact I will have by having only one TPV as against making many TPV like one for each Country by using some other parameter like Personnel area/Personnel sub area etc.
    Appreciate your help!
    Regards,
    Vijay

  • One invoice for multiple deliveries

    Hi Gurus,
    Can any one tell how can i create one invoice for multiple deliveries.
    Regards,
    Vinod

    one invoice for multiple delivers we can do in vf04
    we can do in vf04
    reward points if it is help ful
    Thanks
    mubeen
    Edited by: mahammad mubeen on Mar 5, 2008 10:02 AM

  • One cheque for multiple vendors

    hi,
    is it possible to generate one cheque for multiple vendors ?
    cheque will be sent to bank and bank will deposit the amounts into vendor banks.
    Can you anybody help me?
    regards,
    kalyan

    Hi
    Yes. you can do it 
    First transfer the amount to bank and from there bank will transfer the amount to respective vendors through ther banks.
    Go for implementing automatic payment programme according to your client reqyuirement. Check  TCode F110 which is master transaction for APP.  Check at TCode F110-Environment-maintain Config.....
    Cheers
    Srinivas

  • One lockbox for multiple company codes

    Is it possible to have one lockbox for multiple company codes?

    No, I don't think so. Lockbox is 1:1 for a Company Code.
    You configure Lockbox for a Company Code.
    You can use one of the 2 available Lockbox user exits (not sure which) to write a piece of code that searches invoices against the customer posted to different company codes. You will have to have the intercompany setups.
    You may find an OSS notes for intercompany clearing.
    Hope this helps!

  • One delivery for multiple STO's

    Folks,
    I have multiple STO's for the same ship-to (plant). Items due for shipping would need to be combined into 1 delivery and not 1 delivery per STO.
    Would this be possible? And if yes, how?
    Thanks,
    MZ

    Hi ,
    Yes , We can create one delivery for multiple PO's .
    Go to VL10D tcode --> Purchase order tab -- > enter the STO's and press execute
    Select the STO's and click on background tab. Then it creates the log
    Select the item again and press shift +F4
    It will gives the log inforamation for the STO's and select the item and press on documents tab.
    It will creates only one Delivery for all the STO's.
    Now go to VL02N tcode and enter the delivery number then goto picking tab then enter picking qnty = delivery qnty
    then press on " post goods issue "
    Now go to MIGO to do the goods reciept then enter all the STO's here and check the item then save .
    Only one document will be posted for all the STO's
    Regards,
    Usha.

  • One OCS for multiple Company´s ???

    Hello,
    It´s possible to install multiple "areas" on one OCS? We want to provide a OCS for our customers. They shouldn´t see other caledars or adress-book. Only ther own "area".
    KR
    Mathias

    Hi ,
    Yes , We can create one delivery for multiple PO's .
    Go to VL10D tcode --> Purchase order tab -- > enter the STO's and press execute
    Select the STO's and click on background tab. Then it creates the log
    Select the item again and press shift +F4
    It will gives the log inforamation for the STO's and select the item and press on documents tab.
    It will creates only one Delivery for all the STO's.
    Now go to VL02N tcode and enter the delivery number then goto picking tab then enter picking qnty = delivery qnty
    then press on " post goods issue "
    Now go to MIGO to do the goods reciept then enter all the STO's here and check the item then save .
    Only one document will be posted for all the STO's
    Regards,
    Usha.

  • One inventory for multiple ORACLE_HOMEs ?

    RDBMS version:11.2, 10.2
    Platform : AIX
    In one server , we are going to install multiple ORACLE_HOMEs (both 10.2 and 11.2). I have been asked to configure separate inventory for each ORACLE_HOME (each inventory within its own ORACLE_HOME). But i came across OTN posts which advices one inventory for all ORACLE_HOMEs .
    1. How can i create 1 inventory for all ORACLE_HOMEs . Is it by specifying an inventory directory outside all ORACLE_HOMEs in OUI when you do the very first installation ?
    2. Which one is more professional : one inventory for each ORACLE_HOME or one inventory for all ORACLE_HOMEs ?

    When installing Oracle software for the first time, the OUI will create a "global" inventory under $ORACLE_BASE.
    Depending on you OS, to locate this inventory look at "/etc/oraInst.loc" (AIX+Others) or "/var/opt/oracle/oraInst.loc" (Linux+others).
    You can add/remove Oracle homes from this inventory by using OUI or command line ./runInstaller.
    Each Oracle home may also contain an "$ORACLE_HOME/oraInst.loc" file.
    HTH
    PS: +"One inventory for multiple ORACLE_HOME is a bad practice"+ -- Untrue. Perhaps only for those that don't know how to use it.
    :p

  • Shall I use one datasource for multiple connection pool?

    Hi,
    I need to clarrify that, Shall I use one Datasource for multiple connection pool in distributed transaction?
    Thanks with regards
    Suresh

    No. If its transactions across multiple databases you should use different datasources.

Maybe you are looking for

  • Best way to charge macbook retina ?

    hey guys, what's the best way to charge macbook pro retina ? I know that it actually damages the battery to discharge it but how often should I leave it plugged into a/c ? I heard that if I leave it plugged in for too long, than it could also damage

  • What is an easy way to setup a shared printer to a Macbook?

    I have aqurired a macbook recently and am trying to setup a shared printer with it. The printer connects on all of my Windows based laptops, but not the Macbook. Can any one help me out?

  • Copying Classes

    Hi, Can anybody help in copying the entire class to a text or word file with code and everything

  • Approval Substitution Functionality in SRM portal.

    Hi All, We need to activate approval substitution scenario with respect to PO and shopping cart. But the standard workflow seems to be having an issue with validation. It doesn't validate the substitute and accept any substitute irrespective of its P

  • Craxdrt.dll Error : Application Error.

    Hi ,      we installed VB application on a windows 2003 server. Our Users runs this application and tries to run a report when they get the General Microsoft error. The terminal server is accessed from different location. Some body locally (toronto)a