Several sprites using the same parameter value

I'll ask the same question " 'contains' doubt in the hexadecimal color value?" but in a different way, because I realized that the solution is more simple than I thought, and the solutions will also. I have this problem:

property pTargetSprite, pBlendValue

on getPropertyDescriptionList me
List = [:]

addProp list, #pTargetSprite, [#comment: ' target Sprite: ',]
[#format: #integer, #default: VOID]

addProp list, #pBlendValue, [#comment: ' mixture value: ",]
[#format: #integer, #default: 100]

back list

end


on mouseDown me

.blend Sprite (pTargetSprite) = pBlendValue

end

I would like to get SEVERAL sprites for 1 parameter, that is to say when the behavior dialog box appears and ask me the "target Sprite:", I entered... Let's say 1, 2, 3,... Regardless of the numbers I want. Therefore, the values of this sprites mix will change according to the mix input value. Right now is perfect, but of course work with only a sprite, but I want to be able to give this value of mixture for several sprites on the same setting.

I guess it must be very simple, but I can't get the answer anywhere in my brain, nor my book Director, or in the forums.

Thank you!!!

Rob, Anders... Thank you very much!!! Now it works perfectly.

spriteList property
blendValue property

on getPropertyDescriptionlist
myPropList = [:]
myPropList.addProp (#spriteList, [#comment: "enter the sprite channel \])
(["the numbers to use, separated by commas:", #format: #string, #default: "1,2,3"]).<>
myPropList.addProp (#blendValue, [#comment: "mixture value:",-])
([#format: #integer, #default: 100])
return myPropList
end

on beginSprite me
spriteList = stringToList (spriteList)
end

on stringToList (thisString)
oldDelim = the itemDelimiter
itemDelimiter = «»
thisManyItems = thisString.item.count
tempList =]
Repeat with n = 1 to thisManyItems
tempList.add (thisString.item [n])
end repeat
itemDelimiter = oldDelim
return tempList
end

on mouseUp me
thisMany = spriteList.count
Repeat with n = 1 to thisMany
.blend Sprite (value(spriteList[n])) = blendValue
end repeat
end

Tags: Director

Similar Questions

  • How do you install the creative cloud on several computers using the same license?

    How do you install the creative cloud on several computers using the same license?

    Installation on multiple computers can be done independently of the subscription.  You only need the lic3ense when it comes to activation, you have two active facilities (signed in).  Just install the desktop application and use it to install the applications, and then connect to activate.

    https://helpx.Adobe.com/creative-cloud/help/download-install-app.html

    Creative cloud to desktop
    https://helpx.Adobe.com/creative-cloud/help/creative-cloud-desktop.html

    Sign out, sign in | Creative office cloud app
    http://helpx.Adobe.com/creative-cloud/KB/sign-in-out-creative-cloud-desktop-app.html

    Help of activation & deactivation
    https://helpx.Adobe.com/x-productkb/policy-pricing/activation-deactivation-products.html#a ctivate-how-to's

    Install, update, or uninstall applications
    http://helpx.Adobe.com/creative-cloud/help/install-apps.html

  • several insert using the same sequence number,

    Hello

    I need to use the same sequence number in several documents (insertion).

    Is this possible and how?

    Thank you

    It depends on how you are doing multiple inserts.  If you then run a bunch of single inserts something like:

    dev1 > create table t (ID, descr varchar2 (10));

    Table created.

    dev1 > create sequence t_seq;

    Order of creation.

    dev1 > select double t_seq.nextval;

    NEXTVAL

    ----------

    1

    dev1 > insert into values t (t_seq.currval, 'Rec 1');

    1 line of creation.

    dev1 > insert into values t (t_seq.currval, "Rec 2");

    1 line of creation.

    dev1 > insert into values t (t_seq.currval, 'Rec 3');

    1 line of creation.

    dev1 > insert into values t (t_seq.currval, 'Rec 4');

    1 line of creation.

    dev1 > insert into values t (t_seq.currval, 'Rec 5');

    1 line of creation.

    dev1 > select * from t;

    ID DESCR

    ---------- ----------

    1 rec 1

    1 rec 2

    1 rec 3

    REC 2 4

    REC 2 5

    You can use a similar approach, if you select data from another table as long as you can make the selection sufficiently selective to retrieve only the lines you need.

    John

  • Several plugins using the same JS file dynamic action

    Hello

    (Apex 4.0.2)

    I created two plugins for dynamic action, say Plugin1 and Plugin2. These two plugins are most of the time used together, so to keep things simple and ease of maintenance that all the JS need to the code specific to each plugin as well as of the common code is in a single file, for example plugins.js. So I download the same JS file to each plugin.

    In the generated page, using two plugins the JS file is loaded twice, as planned. Of course, at Apex, they are two different files even if their content is exactly the same.

    This is not ideal for me. What is the approach suggested in this case? Always keep the JS separate files for each plugin? And on any common code plugins share, duplicate in each JS file?

    Thank you
    Luis

    Hi Luis,.

    apex_javascript.add_library currently does not allow to specify p_key as for example apex_javascript.add_on_load_code is. It automatically calculates the value of 'key' based on the directory and name. I'll add an enhancement request to allow to override this default that will allow both plug-ins use the same 'key' to just load the file once.

    Concerning
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Set up Dreamweaver for several users use the same computer?

    We are using Dreamweaver CS5.5 and it was installed under the user id who bought the software. When this person left, it was uninstalled and reinstalled under the new identification of individuals, etc now a few times as more revenue is produced. Is there a way to install it once and one who gets to use the PC have access? The problem, that we continue to have to publish changes/updates Web site. It allows us only to do under the connection that it was installed under. Other users can go in and work on the website, but won't let them publish updates. Any help would be appreciated.

    Thank you!

    Guessed it. To add the FTP site to the new user information use 'put '.

  • I have several devives using the same GRI?

    Takes forevCan help you get started? ER... The task manager has so many start up programs and I don't have any idea what I can disable safe...?

    Hi Jeffro1ww,

    1. When did you start to question?

    2. did you of recent changes on the system?

    3. you receive messages or error codes?

    You can try running the fixit of performance and see if it helps.

    Difficulty of Windows system performance slow computer problems

    You can also read the following article and see if it helps.

    How to resolve performance issues during startup in Windows Vista

    For more information, you can also consult the following article:

    Optimize the performance of Microsoft Windows Vista

    Hope this information is useful.

  • Closed loop Reporting and several campaigns using the same form

    I hope that I am able to explain it properly.

    We have a webinar and a campaign of follow-up of living room. In the living room campaign, it is a simple 'personal' email to thank those who came to our booth and to invite them to the Web conference or contact us for further examination. So both the webinar and the campaign of trade show, I've added the landing page and the form for the webinar, however, when people register for the webinar, they appear in the living room campaign in Salesforce and campaign Webinar is empty.

    So based on this it seems I can only get the landing page and shape in 1 campaign so that the Common Language Runtime function properly. Can someone confirm this for me? Or should I be doing things differently?

    Thank you!

    Hey Rochelle, Yep you've stumbled upon a serious limitation by using closed loop reporting. This is what is happening. Since you sent your email show campaign, Eloqua adds dynamically the elqCampaignID of the campaign to show links in the email. So when someone clicks on the link, they are inherited from the elqCampaignId related to the trade fair. For example, this is an example of the link that is generated dynamically:

    http:// /LP = 312? elqCampaignId = 467

    In this case, the fair campaign is associated with 467 but your Webinar campaign can be linked to 468.

    The way around this problem to take the ELQ ID associated with the campaign webinar and hard-code it in the email you send. If you take

    http:// /lp = 312? elqCampaignID = 468 and hard code in your email that you send. What happens is that eloqua then dynamically add the other elqID on the tip of the tail so you get this:

    http:// /lp = 312? elqCampaignID = 468 &? elqCampaignID = 467. Fortunately, for the purposes of the CLR, it will take the first elqCampaignID he meets. Allowing you to have all of these authors attached to the correct campaign in SFDC.

  • How to use locate the if function several occurences of the same character

    I try to use the location feature to conclude to the existence of ' ~' in my thong. My channel has several occurrences of ' ~' in there.
    But the location always returns the location of the first. How can I get him back the second occurrence of ' ~' in the string.

    Thanks in advance
    Kris

    Published by: user566193 on October 1, 2010 13:35

    OK, it's not pretty, but it works... I will describe the step-by-step process.

    Getting the first Occurrence

    (1) on the column that you want to find the tilda (~), click the fx button.

    (2) use the LOCATE function: LOCATE ('~ ', tablename.columnname)

    It's will give you the position of the first occurrence of the tilda number.

    Getting the second Occurrence

    (3) in order to find the location of a string in another string from a set position, you use the same function, but in this format: LOCATE (string1, string2, n)

    Note: If you look at the function OBIEE, it says to use LocateN, but actually, it does not work and you will get a syntax error, so use LocateN. Use instead SEE them as I've described, but with the same syntax as in the LocateN function.

    Well, in this function, the value of n must be value just after the first occurrence to find the second occurrence.

    The first occurrence is determined by the LOCATION feature in step 2, we simply need to 'Add 1' to the obtained position. It turns out however that the result of the LOCATION works, although this property returns a number isn't a number format. Therefore, we have to GET the result as an INTEGER. (Still with me? Good.)

    OK, so putting this together, we nest a function LOCATE in a LOCATION feature as follows:

    LOCATE ('~ ', tablename, columnname, CAST (LOCATE('~', tablename.columnname) AS INTEGER) + 1).

    The above formula will give you the second occurrence of your tilda. You can repeat this step for the third, etc.

  • Is it possible under the EULA to have several virtual machines on a single physical hard disk while using the same OS license or do I need a separate license for each virtual computer?

    I have several programs that are not compatible with my 64 bit Windows 7 operating system.  I would like to run each different software under another virtual machine of VMWare (5 packs of different software programs and 5 different virtual machines of Windows XP).  These would all be installed on your laptop.  I can use the same license of Windows XP for each virtual machine, or do I need a separate XP license for each (different XP in case 5 licenses)?

    It is lifted directly from my EULA:

    1. GRANT OF LICENSE.
    The manufacturer that you grant the following rights, provided that
    comply you with all terms and conditions of this EULA:
    1.1 installation and use.  You may install, use, access,
    display and run one copy of the SOFTWARE on
    THE COMPUTER.  The SOFTWARE may not be used
    by more than two 2-processor both on the
    COMPUTER, unless a greater number is
    indicated on the certificate of authenticity.
    Then...
    This means that as long as you are running two or more instances of XP at the same TIME, you agree? Or does this mean that, after you install once, you have reached your limit?
    I imagine that most people (including those who are running Microsoft!) will say that the second interpretation is correct.
    However...
    If this is the case, anyone their hard drive as a backup to clone strategy would violate the EULA!
  • Using the same set processing on several site to site VPN tunnels

    Hi all. I have a rather strange situation about site-to-site VPN tunnel.

    On the one hand, I have a PIX 501 and on the other end an ASA5505 and a tunnel set up between them.

    The problem is that on the side of the PIX, I can't establish a tunnel, but when the traffic starts on the side of the ASA the tunnel established as usual.

    I checked the configurations on both ends and keys, passwords, mirror that LCD seems OK. The only thing that comes to my attention, it's that I have the same set of transformation used for 2 different tunnel on the side of PIX.

    Can I use the same set of transformation on several tunnels or should I set a different transformation for each tunnel? Could be the source of the problem?

    Use it on PIX

    card crypto set pfs group2

    Or on ASA, use:

    card crypto set pfs Group1

  • Pair several devices on the same COM Port that use the stack for windows by toshiba bluetooth?

    I have several instances of the same device...

    I wish that they all use the same COM Port when connecting to my Toughbook.
    The application that will receive data from these devices will only monitor a single COM Port assigned to.

    I have only one active connection both for couples... That's why Ifeel, this should be possible.

    Any help would be greatly appreciated

    Thank you

    Hello

    Please contact the Microsoft Community Forums. I understand you want to pair multiple devices on the same COM Port using Bluetooth.

    Unfortunately, it is impossible to pair multiple devices on the same COM Port using Bluetooth as it is by design.

    With the help of Windows-related issues feel free to post on the Forums of community of Microsoft, we will be happy to help you.

    Thank you.

  • If I buy the adobe cc then can I use it on several laptops at the same time? I use two different computers for my work. as a photoshop and illustrator, for example.

    If I buy the adobe cc then can I use it on several laptops at the same time? I use two different computers for my work. as one for photoshop and Illustrator for example.adobe

    This excerpt from: terms of conditions of use Adobe software should help to clarify the terms for you:

    ..... You can activate the software on up to 2 devices (or virtual machines) at the same time, if these activations are associated with the same Adobe ID for the same person, except http://www.adobe.com/go/activation_fr. However, you cannot use the software on these devices simultaneously.

    You can also see:FAQ: where can I find the terms of membership and the terms of use?

  • How to use develop/Tone/Auto on several pictures at the same time?   v.1.4

    How can I use develop/Tone/Auto on several pictures at the same time?

    Highlighting multiple photos and clicking on it did not work for me, if I can get it to work on a single photo at a time.

    Method 1:

    1. Go to the develop module
    2. Select the photos in the camera roll.
    3. Hold down the Ctrl key and click on the Sync button. He turns to auto sync.
    4. Now, whatever you do develop apply to all photos.
    5. Click on auto sync once more to turn off autosynching.

    Method 2:

    1. The display of the grid of Goto.
    2. Select the photos.
    3. Press Ctrl + U.
  • all of a sudden I can't add images pro go to my fcp schedule.  I did it in the past. using the same equipment... has changed a parameter? How can I return to the addition of the sequence of gp without converting them?

    Once a year, we build a loop to show out of our images. I use the same camera, go pro, same computer, same fcp, BUT this year it won't let me add the pro images go on my calendar to my G-Drive.  I tried to convert it and even if it works... it is very time consuming and frustrating because it was so easy in the past.  ANY IDEAS on if I have accidentally changed a setting on FCP? or on my GP PRO? I read that you have to convert, but why I did not in the past?

    so frustrated... not computer savvy...

    TIA!

    What happens when you try to import the clips? You get an error message? The files are selectable in the import window?

    Russ

  • Use several versions of the same material and the same LabVIEW code

    Here's my dilemma,

    I have many different s NI 9213 (16-channel thermocouple module) that I use in my lab. I only need to use one at a time, but I want to use the same LabVIEW code with each. I use NI MAX to create a task for the NI 9213 I use, but when I plug another 9213 OR in the computer I need to delete the first task and make a second tast with the second 9213 OR.

    My question is, is there a way to plug in different s 9213 OR the computer and without having to reconfigure the NI Max tasks? If so, how?

    Thank you

    Maddie

    Just use Concatinate String using the returned device name as well as the names of channel to build complete path name and then DAQmx create channel to add this channel to your task.

Maybe you are looking for