Class tween Flash, more than one interpolation for a movieclip?

EDIT:

for (i=0; i<humans; i++) {
        ranDistX = Math.floor(Math.random()*(20-(-20+1)))+-20;
     ranDistY = Math.floor(Math.random()*(20-(-20+1)))+-20;
     var humansMoving = new Tween(_root["human"+i], "_x", Linear, _root["human"+i]._x, _root["human"+i]._x+ranDistX, 2, true);
     var humansMoving = new Tween(_root["human"+i], "_y", Linear, _root["human"+i]._y, _root["human"+i]._y+ranDistY, 2, true);

     humansMoving.onMotionFinished = function() {
          humansMoving.start();
          ranDistX = Math.floor(Math.random()*(20-(-20+1)))+-20;
          ranDistY = Math.floor(Math.random()*(20-(-20+1)))+-20;
     };
}

Interpolation works only once. I need so when the Tween is finished, he made the interpolation (with a different random number(different position)), but after the first two interpolations (x and y) have completed the movieclips just stay there. Someone knows how to do this?

There are a few things wrong in this code.  You can't have two variables named the same and redefine the random values will not change what is entrusted to tweens.  You have to keep redefining interpolations.  Here is a link to a working example of the code I gave you yesterday.

.

http://www.nedwebs.com/Flash/AS2_Random_Motion.fla

Tags: Adobe Animate

Similar Questions

  • My music player has more than one entry for a song and when I buy a song or download to the reader I'm going to finish with three entrances.

    Original title: getting copied songs and resumes somehow

    Because of the settings or something my music player has more than one entry for a song... so when I buy a song or download from my phone to the player so I'll finish with three entries... on an album of 10 songs I get 30.  3 of each song... even with pictures... is it a setting or is there a way to automatically set the drive remove the redundant songs and photos?

    Hello

    1 Windows operating system you are using?

    2 are you facing issue with Windows media player?

    If you are facing the issue with Windows Media Player, you can try the following steps and check if it helps:

    Method 1:

    You can delete the Windows Media Player database and check if the problem persists.

    Step 1:

    a. exit Windows Media Player.

    b. click Start, click Run, type %userprofile%\Local Settings\Application Data\Microsoft\Media Player in start searchand then click OK.

    c. Select all files in the folder, and then click delete on the file menu.

    Note: you don't have to remove the folders that are in this folder.

    d. restart Windows Media Player.

    Note: Windows Media Player automatically rebuilds the database.

    If this does not resolve the problem, disable the Windows Media Player database cache files. To do this, follow these steps:

    Step 2:

    a. exit Windows Media Player.

    b. click Start, click Run, type %LOCALAPPDATA%\Microsoftand then click OK.

    c. Select the folder Media Playerand then click delete on the file menu.

    d. restart Windows Media Player.

    Note: Windows Media Player automatically rebuilds the database.

    For more information, see the article:

    Method 2:

    If you are using Windows 7, you can also try to launch Windows Media Player convenience stores on the library and check if it helps.
    Convenience store open in Windows Media Player library

    Method 3: How to prevent duplicateor entered invalid frombeing added to mylibrary during playback of music files?

    When you move digital media files on your computer, the file name and file path information remain unchanged in your library. Then when you select a file to play to its new location, a new entry is created in your library if you select the option automatically added to your library when played. As a result, your library can quickly contain a large number of entries, duplicate or invalid.

    To prevent it be automatically added to your library of music files
    a. in Windows Media Player, on the Tools menu, click on Options.
    b. on the Player tab, clear music to add to the library when played check box.
    Now, when you play music on your computer or the Internet, the file will not be added automatically to your library.

  • Is it possible to add more than one constraint for a column?

    Dear team,

    Is there any possible to add more than one constraint for a column?
    I add a unique for a column, but I try to only add is not null for the same coloumn.
    His throws error

    ERROR on line 1:
    ORA-01430: column being added already exists in the table

    Thank you
    Augustine

    You can see here

    SQL>CREATE TABLE test_cons( N1 NUMBER);
    
    Table created.
    
    SQL>ALTER TABLE test_cons ADD CONSTRAINT UK_TEST_CONS UNIQUE(N1); 
    
    Table altered.
    
    SQL>ALTER TABLE test_cons MODIFY ( N1 NOT NULL);
    
    Table altered.
    
    SQL>
    

    Concerning
    Arun

  • Slide show, how to select more than one track for background music?

    Hi, my last slide show for about 10 minutes, is it possible that a chosen more than the first track of my music library to play as back ground?  Thank you.  Best bitter

    Could use a music mixing app like garage band to mix two tracks into one.

    R

  • can I load the creative cloud on more than one computer for the same price.  I would like to put on our other computer.

    I have the creative cloud on my laptop, but find I would like to have on my desk where there is more room.  I can load it on a second computer for the same price and if so, how do I change the email address to download?

    Hello

    Creative desktop cloud applications can be downloaded and installed on multiple computers, regardless of the operating system. However, the activation is limited to two machines per person associated with membership. See terms of use for more information. Learn how to turn off a Creative License on a cloud machine.

    You can download creative cloud under the following link: -.

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

  • Can you add more than one photo for a draw image layer draw?

    I can't seem to find a way to add several photos or photo layer to an image to draw, but the draw on Adobe page seems to imply that several pictures can be added. How would I achieve that? Thanks for your time.

    Unfortunately, the draw is currently limited to a single photo layer and only one photo within this layer.

    Hope that helps,

    Frank

    Engineering drawing

  • Is it possible to have more than one source for multiple clips Panel?

    The process of creating, I want to be able to see several clips side by side, able to scrub forward and backward to see the 'weight' of the different scenes and not just imagine in my mind, how they will work together. If first Pro will not allow this, so is there another application, no bridge please allows you to align the viewing more of a clip? The only way I can think to do this right now is to put a clip on the timeline and display it on the program monitor and then discovers the other in the source Panel.

    Forgive me for all the hypotheses.

    I understand what you're trying to do here, but it would still have its limits.

    for example, imagine if you had 10 a, clips or cameras to watch simultaneously.

    and not enough to imagine, in my mind, how they will work together.

    Editors for years have worked through their material doing exactly this. Cutting basically in what works (and looks good) as they see it.

    The NLE was a revolution, because it allows publishers to drop and change a tool for editing anywhere, anytime in a non-linear way.   But it also allows to preview easily both sides to change, as well as a source by.

    Selection of take is usually a simple linear process (logging and selects) with perhaps a bit of trial and error in the timeline.

    Editing several scenes shot in parallel is probably best served by multicam mode.  FWIW... I edit multicam the old-fashioned way and use a video layer master scene and then overlay to senior securities in the source monitor.

  • In the Api Soap Echosign, how can I send more than one file for the signature...

    Some examples of code for sending single document...

    $client = new SoapClient(EchoSign\API::getWSDL());)

    $api = new EchoSign\API ($client, "YOUR API KEY");

    $file = EchoSign\Info\FileInfo::createFromFile('demo.pdf');

    $document = new EchoSign\Info\DocumentCreationInfo ("Test sendDocument", $file ");

    $recipients = new EchoSign\Info\RecipientInfo;

    $recipients-> addRecipient ($recipient_email);

    $document-> setRecipients ($recipients);

    $result = $api-> sendDocument ($document);

    Hello

    You will find the documentation of the DocumentCreationInfo object in the EchoSign API SOAP at https://secure.echosign.com/public/docs/EchoSignDocumentService22#DocumentCreationInfo

    You will see that you can provide an array of files in the field of fileInfos DocumentCreationInfo object.

    EchoSign also provides REST style APIs. You can access the REST API documentation at https://secure.echosign.com/public/docs/restapi/v5. You can use POST reassure API https://secure.echosign.com/public/docs/restapi/v5#! /agreements/ to send the contract and this API operation accepts also several files on demand.

    I hope this helps.

    Thank you

    Nikhil

  • Can I use more than one flash drive to ready boost on Satellite L650/0ed

    Hello

    I have a toshiba Satellite L650/0ed, it's good if I use more than one drive 8 GB flash for "ready boost" - what is the maximum number of using flash-drives can devote to the "ready-boost.

    In addition, if I use a 16 gb flash drive, will this affect more memory "ready boost".

    Why the 3.5 drive seagate expansion 1 TB is not compatible for ready-boost.

    Thank you
    -Brent907

    Hi mate

    Please check this Microsoft page that describes the ReadyBosst
    http://Windows.Microsoft.com/en-us/Windows7/products/features/ReadyBoost

    There, you can find this statement:
    + ReadyBoost works with storage devices more flash. In Windows 7, it can handle more memory and even multiple devices * eight *, for a maximum of 256 GB of additional memory. +

    I hope this can be useful!

  • Can I use more than one html5/js animation produced with Flash/createjs in a Web site?

    Hi, I produce animations with Flash which will be delivered in createjs html5/js hollow. The problem is that after including the first animation in my html Web site, the rest of the animations are crushed with the first, that is why, if I attempt to insert a second animation in my site, in fact, it will replace the first animation, I had already placed...

    I already tried the following:

    -change the default canvasID to another

    -Change the resources and namespaces Javascript in Createjs export settings

    -manually change the name of the functions (lib, img, syc) in the Javacript file

    None of them seem to solve the problem. So I'm now wondering if it is actually possible to insert more than one animation in a Web site...

    I would appreciate a quick response because I am working on a project with a very tight schedule and really need to address this question right.

    Thank you very much in advance for the help.

    Then, you have made a mistake.

    Start with the two different FLAS.  one with a red rectangle on the stage and the other with a blue onstage rectangle and nothing else.  publish your html and js files.

    combine the two into one and, if you have a problem, the postcode of your a single html file and two js files.

  • Can I have more than one player iCloud folder in my finder? One account for work and one for personal use.

    I want to synchronize my work to my home mac mac but don't want my work and personal files of mixture in the same iCloud drive. I want to be able to simply select the folder in the finder and access my files to work with my staff connected to iCloud services. I have 2 sets of devices. A working iPhone and a personal iPhone. My work requires that I have strictly for work purposes only to get rid of my phone personal is not an option. Is there a way to have the disc records hard icloud of two different accounts on the same mac under the same profile?

    ICloud there than one disc for each Apple ID. You can, however, create more than an Apple ID, but that creates other issues as demanding that you trade ins iCloud to access the content of the newspaper reader.

    You can create subfolders in your drive to iCloud for work and personal use. You can also purchase a subscription to more storage if you need.

    No solution to this question. Each has its compromise.

    Could you use, say, iCloud for your personal files, but use Dropbox for those work-related?

  • I have more than one firewall installed product. How I can for deleete all and keep only the MSN Firewall?

    I got like Norman antivirus programs and now I move to Msn essintials. but the computer turned out to be very slow. I scanned the computer with the MacAfee Scan more and I got a message that I have more than one firewall installed, product that could create problems on my Pc I have bleive that I only have widows Firewall now. but the analysis said the contrarey.

    (1) using a router?  They usually have a firewall.

    2) go to control panel and click on security.  Click the down arrow next to firewall and windows will tell you what is running

    (3) you could also look in Control Panel > programs and features for the firewall software like McAfee, ZoneAlarm, or any that you have previously installed.  You can uninstall then from there.  Use the Norton uninstaller to remove the software and/or the traces that were left during uninstall.

    http://us.Norton.com/support/kb/web_view.jsp?wv_type=public_web&docURL=20080710133834EN&LN=en_US

    If the computer is slow, check programs and features for applications that are installed but you never or rarely use.  Uninstalling those who help you in speed.  And if you go in program files, search for files left behind from applications already installed.  If more than six months, it is safe to remove them.  Remove temporary files, run disk cleaner, empty the trash, defrag your unit.

  • can we have more than one type of topology for a rule?

    Hello

    5.6.4 can we have more than one type of topology for a rule? How insert and separate?

    Thank you.

    Try something like this, but be very careful that you understand the implications of the scope of the rule to a very large number of objects:

    $objectsbytype(/Host|) VMWVirtualMachine | VMWESXServer | VMWCluster | VMWDatastore /) If you do not need to check each type separately

    or

    the ((hôte où name like 'a%') Union (VMWVirtualMachine where name like would be %')) If you need condition the type of each object separately, and then join the results)

  • You can download the programs (photoshop, illustrator etc) to more than one computer if you own 2 for example?

    You can download the programs (photoshop, illustrator etc) to more than one computer if you own 2 for example?

    Cloud license allows 2 activations http://www.adobe.com/legal/licenses-terms.html

    -Install on a 2nd computer http://forums.adobe.com/thread/1452292?tstart=0

    -Windows or Mac has no importance... 2 on the same operating system or 1 on each

    -Two activations on one account CAN NOT be used at the same time (to be noted in the link above of the license)

    -An individual account is for one person and may not be shared with anyone else

    .

    Remove the license on a computer http://forums.adobe.com/thread/1442423?tstart=0 clouds can help

    -read http://helpx.adobe.com/x-productkb/policy-pricing/error-maxium-acitvation-exceeded.html

    -or https://helpx.adobe.com/x-productkb/policy-pricing/activate-deactivate-products.html

  • Can I manage more than one license of creative cloud on the same adobe ID account or better create many ID adobe for my employees? Thanks for your response

    Can I manage more than one license of creative cloud on the same adobe ID account or better create many ID adobe for my employees?

    Thanks for your response

    In addition:

    Adobe uses based on the identity of license with a technology that will not support multiple licenses of the same type on an AdobeiD.  You can buy only one membership per Adobe ID. If you need two memberships creative cloud, you can buy each with a unique Adobe ID. You can also buy a creative cloud for membership of the teams, which allows you to buy and manage several places under an own account.

    Creative cloud for teams is for small and medium size organizations and is available as full a membership. Cloud creative teams is available on Adobe.com and through a global network of resellers. Learn more about Creative Cloud to teams.

    http://www.Adobe.com/creativecloud/business/teams.html

    FAQ: Where can I get information on creative cloud for the enterprise, education, Government and teams?

    I hope this helps.

Maybe you are looking for

  • Update of Snow Leopard Mountain Lion, Lion or El Capitan

    MAC MINI (MID-2010) C07F80TXDD6L My Mac mini The serial number of the Mac Mini's, C0 * D6L The model number is, A1347 and the part number is Z0H5001MP. Mac OS X 10.6.8 Snow Leopard Version Order date: February 16, 2011 Apple online. Disk utility:-cap

  • Can someone help me find the product key Office 2007 pre-installed trial?

    Can Hello - anyone advise, please? My laptop came with a preinstalled trial of Office 2007, which must be activated with a 25 digit code. The message on the screen says to follow the hotlnk to a Microsoft site, where advice on getting the code. Howev

  • Yoga 260 do not SLEEP when the lid is closed

    Hello Sometimes when I close the lid off my Yoga 260 Windows 10 do not go to sleep. The behavior is really weird because the red light on the cover flashes like when it is in "standby", but I can hear the rotating fan. When I open the cover, it's eve

  • compatibility for windows XP

    I use windows XP service pack 3. how to change a compatibility of programs in it? I tried by right click on the desired program and then properties

  • How to detect an incomming SMS? -HELPPPP

    Hello everyone, This is my first post in this forum. So far, it has helped me a lot. But since a few days, I have had a problem. I want to detect an incomming SMS. I read some post and I found a few pieces of codes that are interesting. But, I failed