I have a problem with a school task

I have a problem https://onedrive.live.com/redir?RESID=16106437D5EF76FF%21107


I want to put the Start button so that when you click on Exchange positions, please help me!

Oh, it's even easier:

import flash.display.MovieClip;
import flash.geom.Point;
var mcs:Array = [n1, n2, n3, n4, n5, n6, n7, n8, n9, n10];
// array that contains objects positions
var coordinates:Array = [];
bton_Start.addEventListener(MouseEvent.CLICK, fclick);
collectCoordinates();

/**
 * Collects current objects postions and puts them in an array
 */
function collectCoordinates():void
{
          for each (var mc:MovieClip in mcs)
                    coordinates.push(new Point(mc.x, mc.y));
}

function fclick(e:MouseEvent):void
{
          shuffle(coordinates);
          var len:int = coordinates.length;
          for (var i:int = 0; i < len; i++)
          {
                    var mc:MovieClip = mcs[i];
                    var point:Point = coordinates[i];
                    mc.x = point.x;
                    mc.y = point.y;
          }

}

/**
 * Repositions array elements randomly
 * @param          a
 */
function shuffle(a:Array):void
{
          for (var i:int = a.length - 1; i >= 0; i--)
          {
                    var r:int = Math.floor(Math.random() * (i + 1));
                    var t:Object = a[r];
                    a[r] = a[i];
                    a[i] = t;
          }
}

Tags: Adobe Animate

Similar Questions

  • problem with the windows Task Manager.

    Hello.i uses windows 7 64 bit and I have a problem with my windows task manager.i am still able to use the windows task manager but when it appears, the tab all lack .it s display only a program this running.i hope you can help solve this problem.thank you.

    To regain the tabs and information, double-click on the outside edge of the window.

  • I have a problem with Windows Update instalking.

    kb2756822 fails to download... kind regards

    original title: kb2756822 fails to download d

    Hi Gary,.

    Thanks for posting your query in the Microsoft Community.

    You have a problem with the installation of the updates on the computer. It can be difficult when something that is important to you does not work as expected. It's pretty simple and we're here to help you solve the problem. We work as a team and get this sorted out.

    Please answer these questions-

    (1) is limited to kb2756822 update?

    (2) what is the exact error message or error code?

    (3) have you made changes on the computer before the show?

    I would like more information about the issue.

    Method 1-

    Note: This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:

    How to back up and restore the registry in Windows

    http://support.Microsoft.com/kb/322756/

    Method 1 and 2 provide for changes in the registry. Save before continuing.

    I would have you look at the article-

    How to reset the Windows Update components?

    http://support.Microsoft.com/kb/971058#top

    Method 2-

    I would have you look at the article-

    Solve common installation issues in Windows Update, Microsoft Update and Windows Server Update Services

    http://support.Microsoft.com/kb/906602

    You cannot install some programs or updates

    http://support.Microsoft.com/kb/822798

    Note: Make sure that get you the computer to a Normal startup after performing all the troubleshooting steps.

    Make sure that you back up the data on the computer before you continue.

    Let us know if you have other questions about Windows in the future. We will be happy to help you. We at Microsoft, strive for excellence and provide our customers with the best support.

    Thank you.

  • I have a problem with my HDD to fill without no reason.

    I have a problem with my HDD to fill without no reason.  I should have about 340 GB free and it reads now only 18 GB free.  Can I have found the culprit (Revo Uninstaller Pro) because he stop to fill in after I removed it.  I can't find where all the "whatever" went.  I don't see anything funny in the registry and cannot find the strange files on the C drive under computer.  I wouldn't mess with the registry too but I as I am limited in my understanding of what's there.  I scanned the hard drive with my Avast Anti Virus and the Microsoft Emergency scan engine and found nothing.  If someone could give me an idea of what happened and how to get my rear disc space, I would be grateful.

    Avoid Revo Uninstaller Pro software type (including the registry cleaners "" and system optimizer).
    Programs and features does the job quite well.
    -There is no advantage to playing in the registry.

    -First run Disk Cleanup defragment the HARD disk in order to have a 'clean' basis of work form.

    -Treesize will show exactly what is there and how much of it.
    http://www.Jam-software.com/treesize_free/

    -Check how much space is used by System Restore.
    Restoration of the system- How do I

    -Indexing research is supposed to implement a very large file as well. You can limit where it indexes
    or turn it off completely in - Control Panel > Indexing Options
    -Check there is no software constantly writing/rewriting something. These activities have
    view in Task Manager-process.

    -Have another look through programs and features and see if there is has than nothing installed, you
    do not use or need and to uninstall, but software doesn't generally use a lot of space.

    .

  • I have a problem with the DVD drive not detected on Windows 7.

    I built a new PC (I've built a few of them).  This time is not considered my ASUS BD player with Windows 7 DVD burner.  It is not in either Device Manager just do not at all recognized.  The BIOS for the ASUS P9X79 of luxury see the SATA drive without problem.  Sometimes after restarting the BD Player looks and functions perfectly, but when the computer goes to sleep or shuts down is usually not there when it is restarted.  Please help me solve this problem :-)

    Original title: optical drive not recognized...

    Hello

    Please contact the Microsoft Community.

    You have a problem with the driver DVD being missing on the computer. It can be difficult when something that is important to you does not work as expected. It's pretty simple and we're here to help you solve the problem. We work as a team and get this sorted out.

    Please answer these questions-

    (1) that you get an error message or error code?

    (2) did you have performed the steps in troubleshooting?

    (3) have you made changes on the computer before the show?

    I would like more information about the issue.

    Method 1-

    I wish that you are running the fixit-

    Hardware devices do not work or are not detected in Windows

    http://support.Microsoft.com/mats/hardware_device_problems/en-us

    Method 2-

    Note: Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs.
    Back up the registry - http://windows.microsoft.com/en-US/windows7/Back-up-the-registry

    I would have you look at the article-

    Your CD or DVD drive is missing or is not recognized by Windows or other programs

    http://support.Microsoft.com/kb/982116#top

    Let us know if you have other questions about Windows in the future. We will be happy to help you. We at Microsoft, strive for excellence and provide our customers with the best support.

    Thank you.

  • I have a problem with IBM Lotus Symphony - the program crashing several times every 5 seconds

    Original thread - I have a problem with IBM Lotus Symphony.  I am trying to edit a document, and I can't get any task done without the program crashing several times every 5 seconds.  What can I do to fix this?

    The program crashes every 5 seconds.  I started having this problem last night, but I didn't even know that first of all, there was a problem until today.

    Hello
     

    You receive an error message/code when you edit a document in IBM Lotus Symphony?
     

    I suggest to put the computer in a clean boot state and then try to open the program and check if it helps.
    Note: when you perform a clean boot, you may temporarily lose some functionality. When you start the computer as usual, the function returns. However, you may receive the error message, or you can experience the original behavior.
    How to solve the problem by running the clean boot in Windows 7:
    http://support.Microsoft.com/kb/929135
    Note: once you have completed troubleshooting, perform the steps in the step 7: to reset the computer as usual.
    If the problem persists please contact the IBM Lotus Symphony support for assistance. See the link below.
    http://www-03.IBM.com/software/Lotus/Symphony/ForumnsHome.nsf/home
     
    It will be useful.
  • I have some problems with a ONE_TO_MANY relationship, can not insert the record

    I have some problems with a ONE_TO_MANY relationship:

    Imagine the following entities:

    -J' have an operational entity with a relationship to workers one_to_many something like:
    @SecondaryKey(relate = Relationship.ONE_TO_MANY,
        relatedEntity = Worker.class)
        private Set<String> workers;
    -The category of workers is a simple annotated entity.


    Now, I want to do the following and I get the error:

    -Create a bunch of tasks
    -Insert tasks into the entitystore
    -create a set containing all the tasks of primary key
    -involve workers to tasks
    -Insert the task in the database


    The above procedure works fine, but when I try to associate the same set of workers with another task I get an exception like:
    com.sleepycat.je.DatabaseException: (JE 3.3.75) Could not insert secondary key in persist#Sample#sample.Task#workers OperationStatus.KEYEXIST
            at com.sleepycat.je.SecondaryDatabase.insertKey(SecondaryDatabase.java:887)
            at com.sleepycat.je.SecondaryDatabase.updateSecondary(SecondaryDatabase.java:807)
            at com.sleepycat.je.SecondaryTrigger.databaseUpdated(SecondaryTrigger.java:42)
            at com.sleepycat.je.Database.notifyTriggers(Database.java:1735)
            at com.sleepycat.je.Cursor.putInternal(Cursor.java:1368)
            at com.sleepycat.je.Cursor.putNoOverwrite(Cursor.java:498)
            at com.sleepycat.persist.PrimaryIndex.put(PrimaryIndex.java:366)
            at com.sleepycat.persist.PrimaryIndex.put(PrimaryIndex.java:315)
    Can someone please clarify what my problem is and where I should change for this case study work?

    Thank you

    The above procedure works fine, but when I try to associate the same set of workers with another task I get an exception like:

    The table in this javadoc should help. Please think about whether they are 1 of many, many 1 or many is the appropriate link.

    http://www.Oracle.com/technology/documentation/Berkeley-DB/je/Java/COM/Sleepycat/persist/model/SecondaryKey.html#relate)

    -mark

  • I have intermittent problems with iphoto importing from iphone since 0sx 10.11.6. Update

    I have intermittent problems with iphoto importing from iphone since 0sx 10.11.6. -Update

    1 iphoto sees not iphone - restart

    2 iphoto sees iphone but says "no pictures" - restart

    3 Iphoto sees phone and photos and I click Import all or import selected - then I have problem of file format and nothing is imported

    NOTE: I have similar problems with image capture - sometimes you can see the phone and photos, and sometimes is not

    I have an imac 2015 - execution of yosemite

    Help my new iphone because 7 is coming today and I am terrified of the transfer.

    Not sure, but in any case iPhoto is a dead - it would be really smart to learn pictures (a totally new and different program with a learning curve and different workflows)

    With the help of pictures with my new iPhone 7 and iCloud photo library all works well without any problem - nothing different photos with my iPhone except the news and the best quality Photos 5

    LN

  • Sierra Siri, «I have some problems with the connection...» »

    Guys,

    I just installed Sierra on my MacBook Pro (retina, 13 inches, early 2015) version 10.12. I can't get Siri at work, the app tracks, he hears what I'm saying, but after awhile, he returns with two messages, both on the screen and verbally "I have some problems with the internet connection. Please try again in a moment. "&"Sorry, I'm having problems with the connection. Please try again in a moment. »

    Any ideas?

    Thank you

    N

    It's a network problem.

    Check the proxy settings that blocks maybe, or a firewall.

    System Preferences > network > Advanced (for your current connection) > Proxies

    Something there?

  • I have a problem with backing up my iPhone iPad iPod

    I have a problem with the backup of my iDevices! When I tried to backup my iPhone 6 + 128 GB phone iTunes says that I didn't have enough memory. My Macbook has more than a hundred free GBs the phone was not backed up! We need an external option to BU on hard drive. My macbook is limited, and when I go out at sea there is no internet. I have a 128 GB iPhone an ipod 32GB one iPad 64-32 and 256 GB. Not having is not an option for using the disc in iTunes is to limit this I'll have to rethink my support of apple products and recommendations to buy. Quote the file number *.

    < personal information deleted by host >

    One that tells you that you can not keep the iTunes library on an external drive is incorrect.

    iTunes: how to move your music to a new computer (Mac or Windows):

    http://support.Apple.com/kb/HT4527

    The process of moving iTunes from a computer on an external drive is the same.

  • I bought the new iphone 6 s more and I have not configured, I just opened the phone and charged, but after some time it stop by itself, is this normal or I have a problem with my phone?

    I bought the new iphone 6 s more and I have not configured, I just opened the phone and charged, but after some time it stop by itself, is this normal or I have a problem with my phone?

    You need to activate the phone. There is nothing that the phone can not be activated.

  • I have a problem with the content of spam. Somewhere in the Fox appeared script that's choking me audio spam. Every 30 minutes he's playing an audio clip that is malicious.

    Hello.
    I have a problem with the content of spam. Somewhere in the Fox appeared script that's choking me audio spam. Every 30 minutes he's playing an audio clip that is malicious. I can't find the settings as it eliminated. Now, I don't have any plug-ins and Add-ons strange that were not initially in the Fox, but the problem is there.
    I use the Fox years. The problem, he had 1.5 months after Fox cleaning. If the problem can't win, I'll be forced to give up the browser, and I wouldn't.

    Could test you mode without failure of Firefox? It is a standard diagnostic tool to disable some advanced features of Firefox and extensions. More info: questions to troubleshoot Firefox in Safe Mode.

    Does not work if Firefox: Hold down the SHIFT key when you start Firefox.

    If Firefox is running: You can restart Firefox in Mode safe mode using either:

    • button "3-bar" menu > "?" button > restart with disabled modules
    • Help menu > restart with disabled modules

    and OK reboot.

    Two scenarios: A small dialog box should appear. Click on 'Start mode safe' (not update).

    Any improvement?

    If the problem persists in Mode without failure, could reinstall you Firefox in this way:

    Clean reinstall it

    We use this name, but it isn't about deleting your settings, this is to ensure that the program, files are clean (not incompatible, corrupt or exotic code files). As described below, this process does not disrupt your existing settings. Don't uninstall NOT Firefox, that does not need.

    (1) download a fresh Installer for Firefox 38.0.5 of https://www.mozilla.org/firefox/all/ in an ideal location. (Scroll down your preferred language).

    (2) close Firefox (if applicable).

    (3) to rename the program folder, either:

    (Windows 64-bit folder names)

    C:\Program Files (x86)\Mozilla Firefox
    

    TO

    C:\Program Files (x86)\OldFirefox
    

    (Windows 32-bit folder names)

    C:\Program Files\Mozilla Firefox
    

    TO

    C:\Program Files\OldFirefox
    

    (4) run the installer you downloaded in the #1. It should automatically connect to your existing settings.

    Any improvement?

    Note: Some plugins can only exist in this OldFirefox file. If it is missing something essential, present in these files:

    • \OldFirefox\Plugins
    • \OldFirefox\browser\plugins
  • I have a problem with icloud sharing photos that the photos are NOT sorted by the State but by the date of the transfer (which is very illogical for a trip Album,..)

    Dear all!

    I hope you can help me out here - I have a problem with a picture of icloud sorting in shared albums

    We took pictures to a trip with iphone5s and iphone6 + a Nikon J5 date and time everything is OK

    Loadin was don ewhilst travelling and at home, but the sorting is mixed seems to be loading date

    (even only took pictures of the iphone as a reference)   (all on iOS 9.3.2)

    you know a way the album gets re-sync or software where I could sort the photos in

    and then re - download to get the sorting so that by the time and date of the...

    Thank you very much in advance - it would be a big help (gibbest album with this problem is the honeymoon ;-))

    Shared albums are essentially photo streams. They will always show the photos in the order that add you them to the album.  If you want your photos to appear in a specific order, you must add them to the album individually, one by one, exactly in the order of your choice.  You cannot add all photos in an album at once - which will give unpredictable results.

    For example, to create a new album with your photos.  Then ctrl-click on the album and select "Keep arranged by Date, oldest first" to sort the album.  Now add each photo from the album shared individually.  There will be a lot of work.

  • Hi, I have a problem with FF, when I click on a google site, opening in a new tab and I don't want to, can you help me?

    Hi, I have a problem with FF, when I click on a google site, opening in a new tab and I don't want to, can you help me?

    Hello, this may be a preference in your google search parameters. go to google.com/preferences and disable the option to search results open in a new browser window.

  • Using an IP191 monitor, have random horizontal stripes on the screen - have no problems with other browsers. also no problem with FF on the other PCs on the family

    Using an IP191 monitor, have random horizontal stripes on the screen - have no problems with other browsers. also no problem with FF on the other PCs on the family.

    These "streaks" seem to be the domain of the high frequency analysis; they can be eliminated by scrolling upwards or downwards.

    Hello, maybe it's a problem with hardware acceleration - try updating your graphic driver, or in case this does not solve the problem, or there is no new version available at the time, disable hardware acceleration in the firefox menu

    > options > advanced > General.

Maybe you are looking for