How can I create a button "Reset"?

So I did a drag and drop the game, once the 'square' is placed at his target, he's there.

How can I do so when I click on a "Reset" button it returns all forms to its original starting position?

Copy and paste the trace output the following after trying to drag instead:

var tl:MovieClip =;

forms of the var: Array = [square, rectangle, circle, polygon, triangle, start];

for (var i: Number = 0; i<>

shapes [i] .initX = shapes [i] ._x;

shapes [i] .initY = shapes [i] ._y;

shapes [i] .onPress = startDragF;

shapes [i] .onRelease = stopDragF;

trace (Shapes [i]);

}

reset.onRelease = resetF;

function startDragF (): Void {}

trace (this +': ' + square);

this.startDrag (true);

}

function stopDragF (): Void {}

this.stopDrag ();

{if (this.) HitTest (TL [+ This._name 'target']))}

This ._x is tl [this ._name + "target"] ._x;.

This ._y is tl [this ._name + "target"] ._y;.

} else {}

resetF (this);

}

}

function resetF(mc:MovieClip):Void {}

{if(MC==undefined)}

for (var i: Number = 0; i<>

shapes [i] ._x = shapes [i] .initX;

shapes [i] ._y = shapes [i] .initY;

}

} else {}

MC._x = mc.initX;

MC._y = mc.initY;

}

}

Tags: Adobe Animate

Similar Questions

  • How can I create a button that will execute some SQL such as UPDATE, DELETE ststements

    Hi all.
    I'm new on ADF.
    I start with this example from oracle
    [http://www.oracle.com/technology/obe/obe11jdev/ps1/ejb/ejb.html]

    My question is how can I make a button that executes sql statements like "set 'name' = last_name employees where employee_id = 111; updated"
    any hint will help you.
    Thank you

    If you are using JPA/EJB then you can write in your session bean method to access the EntityManager and using createNativeQuery to perform the update:
    http://download.Oracle.com/docs/CD/E17477_01/JavaEE/5/API/javax/persistence/EntityManager.html#createNativeQuery (java.lang.String)
    This method will be exposed in your ADF data control and you will be able to drag it to your page.

    If you use ADF BC then you can use the methods of service level AM:
    See 9.7 to 9.9 in the Fusion developer's Guide:
    http://download.Oracle.com/docs/CD/E15523_01/Web.1111/b31974/bcservices.htm#sm0206
    http://download.Oracle.com/docs/CD/E15523_01/Web.1111/b31974/bcadvgen.htm#BABEIFAI

  • How can I create a button 'Next' with database insertion action

    Hello

    I want to create a button "Next" will redirect to another page, and at the same time to do a database INSERTION action. I searched on google but I can't find anything specific that would help me.

    Here are a few screenshots:

    http://imagizer.imageshack.us/v2/800x600q90/22/2yqj.jpg

    http://imagizer.imageshack.us/v2/800x600q90/585/wbn6.jpg

    Thank you.

    Fund a process at the level of the page with the SQL to insert values, when click the button (NEXT) and then redirect the page.

    or

    set the item & values to the landing page that passes the values for page location.

  • How can I create a button print a PDF using Acrobat Pro, that will also work on iOS?

    I created a button to print a PDF document using Adobe Acrobat Pro on my Mac.  The Print button works perfectly on different browsers on my Mac and Windows (running under Parallels Desktop) as well.

    When I open the document on my iPad button print does not yet appear.  I'm guessing that it is a problem with Flash, but it can be informed about East of the action of the button to access the print menu item that does not exist in iOS.

    Is it possible to create a button print using Acrobat Pro, which works on a Mac and Windows, but also on iOS?

    To start printing by clicking on a button, the button must have either an action of type "run the menu item" or use the method JavaScript 'print '. As you may have guessed, the former will not work because there is no menu item to run, and may not work if the particular PDF Viewer you're using supports. I'm not aware of all that are on iOS.

    The button does not appear because you are probably opening in the default PDF Viewer, which does not support forms. If you open the form in Adobe Reader, you will see the button but it wouldn't work.

  • How can I create another button run in vi?

    Is it possible to have a separate in my own vi execution button? I tried to disable some controls in my vi the vi runs, but when I stop running, the controls were not in the same State (always off). This is why I would like to create a housing structure to set the Boolean type of the run button. If it is stopped, my controls are enabled again.

    I hesitate to provide this link, because it is NOT the solution to your problem. But I can't resist simply because of the novelty of it. Christian post this earlier. It shows how to run a VI using a X-Control. Pay attention to its disclaimer clause - even if something is possible does not mean that it is a good idea

    Looking at your original post, it looks like the problem you are trying to overcome is that you have disabled certain controls and you want what they reactivated the next time that you run the VI. The answer is simple - turn them back on when the program starts. This is an example of how you can activate all the controls.

  • How can I create a button to an e-mail form is completed

    I created a form using Adobe Acrobat DC.  I want to be able to provide a button so that the user can simply click on the button and have saved and sent by e-mail form

    out to our purchasing manager after they fill it out.  Is this possible?

    I managed to do it in the shape tool prepare.  Add a button (click the OK button in the top menu), and then double-click the button you have space in your pdf file.  Under Actions, select Action, scroll to submit a form.  Change the submit the form and add a mailto link: [email protected].  Check document PDF The Complete to send the entire form.

    Options: Put the text in the section of the label (such as submit or email).

    Save the PDF file.

    When your users click this button, it will prompt you to use their e-mail application and also give them an option to save the document.

    This is different from the distribution function which I hope to figure out soon.

  • How can I create a button with alpha background and text? When the alpha element group influence all elements, but the text remains 100%

    When the alpha element group influence all elements, but the text remains 100%
    I try with the Group of elements and no group, but include elements in the 'State' of the widget library button. Nothing!

    Explain dough my problem and please excuse my English...
    I need to have a transparent background with text (name and job) at the start. When I rollon with the cursor of the mouse on the button background should take a color with 60% alpha, required text full color stay, but if I group or insert State of the item on Rollo button mouse everything take alpha 60%

    I need to regroup or insert in elements went State button because if they are ungruoped to mouse Rollo on bottom its all is ok, but when the mouse passes over the background of text out you of you initial state.

    Can someone help me please?

    I think I know your problem - are you using the opacity of the 'effects' rather than opacity to "fill" - one of the effects will affect the entire element rather than just the rectangle.

    Use this opacity

    not this one

  • How can I create a button that remains in the active state when you click on it?

    As a follow-up, which remains following when I click on it, without reloading the whole page?

    Thank you!

    I'm not what you're trying to do. Can you provide an example of a site that does what you need to do?

  • How can I create extensible components for re-use?

    How can I create a button that stretches (such as the scale-9) with the text label? I create all of my graphics in illustrator rather than photoshop to get real FXG markup instead of embed all images?

    This has been addressed in the FAQ.

    Please see if the discussion he answer your question.

    -Bear

  • How can I create a column 2 "vertical on the left side of my rhythm of House for the installation of the buttons?

    How can I create a column 2 "vertical on the left side of my rhythm of House for the installation of the buttons?

    How can I create a column 2 "vertical on the left side of my rhythm of House for the installation of the buttons?

    With a column CSS floated.

    But ask yourself this important question.  How this column 2 "wide will look on smaller web devices like tablets and mobile phones using the portrait?   2 "on a mobile phone is a big part of the space.

    Nancy O.

  • How can I create a download button on Muse?

    How can I create a download button on Muse. I like people to download a voucher from my Web page.

    What type of file this is what they download?

    If it is a PDF file for example then you use the file---> files for download location and click your button and go to the drop-down list of hyperlinks and you will see that what listed there to link to.

  • How can I create a 'go-back-to-previous-page-button '.

    How can I create a 'go-back-to-previous-page-button '.

    Select your button or text and hyperlinks tool type in:

    JavaScript:History.Back()

  • How can I delete a button that appears just to the right of the help link.

    In the blue field just to the right of the gray box that has the file, Edit, View, history, Favorites, tools, and help links is a blue button with a circular logo white. When you click on it it will link to a full site which seems being written East. How can I remove this button? I have a screen shot that shows the key mystery but don't see a way to reach this question

    How to show or hide various toolbars?

    Most toolbars can be shown or hidden according to your needs. To show or hide a toolbar, click an empty section of the band to tabs and check or uncheck it from the context menu.

       Menu Bar: This toolbar at the top of the Firefox window contains the browser menus (File, Edit, Help, etc.). On Windows Vista and 7, the Menu Bar is hidden by default, and its features are contained in the Firefox button. If the Menu Bar is hidden, you can temporarily show it by pressing the Alt key.
    
       Tab Strip: This is where your tabs are displayed. You can't hide it.
       Navigation Toolbar: This toolbar contains your web site navigation buttons, the Location Bar, the Search Bar, the Home button and the Bookmarks button.
       Bookmarks Toolbar: This toolbar contains your Bookmarks Toolbar Folder bookmarks. For more information, see Bookmarks Toolbar - Display your favorite websites at the top of the Firefox window. On new installations of Firefox, the Bookmarks Toolbar is hidden by default.
       Add-on Bar: This toolbar at the bottom of the Firefox window contains buttons associated with your extensions (if they are made available by the add-on developer). See The Add-on Bar gives you quick access to add-on features for more information.
    

    Toolbars - win1
    How to customize or rearrange items on the toolbar?

       Right-click an empty section of the Tab Strip and select Customize.... The Customize Toolbar window opens.
       Change the toolbar items as necessary. For an explanation of what each item does, see Customize navigation buttons like back, home, bookmarks and reload.
           To add an item, drag it from the Customize Toolbar window onto the toolbar where you want it to appear.
           To remove an item, drag it to the Customize Toolbar window.
           To rearrange an item, drag it to the spot where you want it.
       When finished, click Done.
    

    Toolbars - win2

    Try it: experiment with different arrangements. You can always restore the default toolbar settings by clicking on restore the default value defined in the window to customize the toolbar.
    Icon appearance options

    There are additional options to change the appearance of your icons in toolbar at the bottom of the window to customize the toolbar:

       Show: From the Show dropdown menu, you can choose what to display in the toolbars: icons, text, or icons and text together. By default, Firefox shows icons only.
       Use Small Icons: Check this option to make the toolbar smaller.
    

    How can I add additional toolbars?

       Right-click an empty section of the Tab Strip and select Customize.... The Customize Toolbar window opens.
       At the bottom of the Customize Toolbar window, click Add New Toolbar. The New Toolbar window opens.
       In the New Toolbar window, enter a name for your toolbar and click OK.
       Add items to the toolbar as described above. If you don't add any, Firefox won't create your toolbar.
       When you're finished adding items, click Done.
    

    Your new toolbar appears under the Navigation bar.

    Try it: make a new toolbar. You can always remove additional toolbars by clicking on restore default set in the window to customize the toolbar.
    I ran out of toolbars, toolbars or unwanted toolbars that reset itself

  • How can I create a full recovery for OS and preinstalled software media?

    Hello
    My son´s accompanying the new Satelite L855-10U preinstalled OS and much other software already installed on the HARD drive, but no installation media, the client is supposed to create a tool from Toshiba.

    I created 6 Swedish recovery for the operating system using the tools Toshiba had installed on the HARD drive.

    To do this 6 Swedish, I created with the Toshiba Recovery tool contain the operating system and all other preinstalled software?

    How can I create the installation media full and usable if not for the operating system and all other preinstalled software?

    I can´t find all the information on the backup software pre-installed with the exception of the BONE. Is there complete information how to do the above, in the manual of the computer, or have you missed this information?

    I would like to know how I can create media backup complete and usable for the operating system as well as for all other preinstalled software, so I can recreate all the facilities of the plant at a new disk if/when the original HARD disk crashes.

    Is there a partition hidden with pre-installed software, and if so, how can I create a backup of this partition, or all the software, so I can reinstall everything if the HARD drive fails, if it is already not with the Swedes 6 Toshiba tool created for me?

    Forward to your response and to complete your customer documentation about the complete instructions for installation and recovery media creation.

    Thank you very much!

    Baltazar

    Hello

    On this forum, you will find a lot of useful comments on the recovery image saved on the HARD drive and its operation to the facility and the creation of recovery disks.
    All this is clearly and simply.

    Front of Toshiba offer new people for laptop in software development create recovery image. This recovery image will be created for each laptop model (specific hardware configuration). Recovery image contains the operating system, all necessary drivers, tools/utilities Toshiba specific and some other software like DVD/Blu-Ray, Microsoft Office test drive and the antivirus application. With this configuration every laptop owner can begin to use the laptop without having to install important applications.

    This package is then saved on the HARD drive and can be used for the installation of HARD drive recovery - http://aps2.toshiba-tro.de/kb0/HTD1303440001R01.htm. In other words, if something is wrong with HARD drive recovery facility you can reset the preinstalled operating system and reinstall recovery imae. After that make you have absolute same settings you had after purchase and first start of the laptop.
    HARD drive recovery image can not be used if:
    -HARD drive is defective
    -you have installed the version of the own BONE
    Structure of the HARD disk partitions - is changed
    Recovery image - HARD drive is deleted or moved to another partition or copied to the external device.

    To avoid all this Toshiba recommends the creation of recovery disks. Using these disks, you will be able to install the OS on the new drive HARD or in any other situation listed above.
    Please note: the use of recovery disks will remove all HARD drive, create the new recovery partition and install image recovery, so you still have the same settings.

    I hope I can help you with my explanation. If you have any other questions you are welcome.

  • How can I create a pause in my inspection so that I can change a setting on my DEGREE, and then resume with the rest of the inspection?

    New to Labview and NI Vision in general here.

    How can I create a pause in my inspection so that I can change a setting on my DEGREE, and then resume testing?

    I want my inspection to execute algorithms on the acquisitions of two different images, where the break to change the settings of my DUT.  I thought that the breakpoint was working well when I'm in the configuration interface and I run the State, but it seems that when I run the inspection he jumps on the breakpoint and continues on the next stage of the inspection immediately.

    Are you running Vision Builder AI on Windows or on a remote target? If you have a remote target, which?

    On Windows, you can use a step of user input in the last tab of the Vision Builder AI tool palette.

    It will display a dialog box that is paused the inspection until you click on a button.

Maybe you are looking for

  • You close the applications on your Apple Watch?

    When you open an application on your watch and you return home after using it, the app will automatically close on its own, or must you close an app Im just find that when my watch is not in use and its just sitting on my night stand his continue to

  • Upgrade - laptop HP Pavilion 15-p033TX RAM

    IM planning to buy a HP Pavilion p033TTX-15 computer laptop (J2C73PA). It comes with 8 GB of memory. Is it possible for me to upgrade to 16 GB? The motherboard and the operating system will support 16GB? Data link system- http://h20386.www2.HP.com/Ma

  • HP Color Laserjet 2840: Drum lines

    Hello In recent weeks, a black band appeared on all printed pages.  I was in a black band on the main print drum. Then I took the drum, cleaned carefully and replaced it.  The black stripe continued to appear on the printed copies. The next step was

  • NAC OOB AD SSO

    Hello I am configuring SSO OOB of the NAC with AD. The software on my CASE and the CAM is 4.7 (2) and my ad is Windows Server 2008. I have some information I must not run ktpass with this version of the software of the NAC (4.7.2) on the AD server. I

  • Identification of Panel LCD X200T

    Installed in a system 7448-CTO: Manufacturer: LTN121AP03001Product ID: LEN4011Manufacturing: Week 45 of 2008Video input type: digital in 0,7 / 0, 3VMax. Horiz. / Green. size: 26 cm / 16 cmScreen size: 12 inches (estimated)Aspect Ratio: 16:10Factor of