Rotate a 360º mc step-by-step 'smooth' 45 degrees with the left and right buttons

Hello world

I thought it should be easy.

I have a circular mc (wheel2) and this must turn "smooth" in increments of 45 °, left and right (buttons).

The script I use on the button (to the right);

{We (Release)}
var turn: function = function (obj:MovieClip) {}
obj._rotation += 3;
If (obj._rotation == 45) {}
clearInterval (interval);
}
};
var interval: Number = setInterval (rotation, 10, wheel2);
Stop();
}

He moves ok "once" and then turns 360 °. Should I set a new value for my mc?

Thank you

Pascal

To disable the buttons you will need to assign instance names in the properties panel, let's say that you name them leftBtn and rightBtn...

{We (Release)}

leftBtn.enabled = rightBtn.enabled = false;

var turn: function = function (obj:MovieClip) {}
obj._rotation += 3;

stepCount += 1;
If (stepCount == 15) {}
clearInterval (interval);

stepCount = 0;

leftBtn.enabled = rightBtn.enabled = true;
}
};
var interval: Number = setInterval (rotation, 10, wheel2);
}

Tags: Adobe Animate

Similar Questions

  • accidental-all view on my screen rotation rotates 90 degrees to the left

    My Toddler hit on the keyboard and suddenly everything on my screen rotates 90 degrees to the left.  Please, how to undo it?

    For the rotation of the view, you can use CTRL + ALT + arrow keys

    Or

    Click Start > Control Panel > display > definition tab > Advanced button

    Now search for Orientation button and choose your desired direction

  • Accelerometer reading is not being updated smoothly when you move your device on the left to right or right-left in the Horizontal plane

    I'm developing an app for BB 10 devices using the accelerometer. I tested on a BB 10 Dev Alpha device.

    When I move the camera in LANDSCAPE MODE on the left to right or from right to left direction in the Horizontal plane, the accelerometer readings are not updated day smoothly as they do in other directions.

    In addition, the update in the Vertical plane is not as by expectations, is not through with Android, Iphone or other blackberry devices.

    I even checked BlackBerry example project of the accelerometer. It has the same problem. Has anyone else facing the same problem? Is there any solution for this?

    Accelerometer reading is not updated because the example provided on github at this rate of accelerometer is set to very high. code: ACCELEROMETER_RATE = 25000 which is high. As directed by their document

    Is the rate at which the data from the updates of the material. The rate of update of the material
    is defined below using sensor_set_rate. If we set this to 1000, then it properly updated and gives the readings that we arrive on the java BB device.

    Replace the code: ACCELEROMETER_RATE = 1000, then it updates corretly.

  • In the library of images are rotated 90 degrees to the left... How to cancel that?  Thank you

    In my library all the photo are rotates 90 degrees to the left... How to cancel that?   It happened all of a sudden.    Thank you

    1. Select all images to rotate

    [2. press CTRL +]

    CTRL + A selects all images in a folder or visible in the grid of the library.

    CTRL + [turn left

    [CTRL +] turn right

    also the rotation arrows can be made visible on the bar tools (press T) and the menu drop-down selects visible on the toolbar.

  • How to make an object to rotate when it moves up and down or left and right of the key to the other?

    How to make an object to rotate when it moves up and down or left and right of the key to the other?

    Just animate the rotation property, you animate the position property of the same way.  Very easy.

  • Non-Null Validation step does not work with the hidden field?

    Hello

    I have a field that is a selection list.

    I have another field, which is also a selection list, but which is masked by the dynamic loading of the page Action (if the value of the first field is 'False').

    If the value of the 1st select list is 'True', the 2nd selection list appears and the user must select a value.

    I have created a "Item Not Null" Validation, because I need to force the users to select the value in the 2nd, select list.

    However, the Validation does not work! I guess it's because the 2nd selection list is hidden / display by dynamic action!

    The 2nd selection list is null to display the value 'NULL '.

    How can I solve it please?

    It has nothing to do with the dynamic Action.

    Try to delete "NULL" in the value of the Null display field. Just leave it blank.
    In this case, "specified element is NOT NULL" must be selected in the Validation.

  • are there problems of compatibility with the V6 and Norton 360 as there were in the past?

    When I tried upgrading to a newer version, a number of my functions of Norton 360 would not work and I got a pop-up message indicating that there is some sort of compatibility issue. I got eventually back to V4.

    No there aren't any 'problems' with Norton. Norton has released a fix for compatibility for Firefox 6 last Tuesday, a few hours after Firefox 6 is out.

    http://community.Norton.com/T5/Norton-360/update-available-Firefox-6-0-compatibility-patch/TD-p/512484

  • I pressed two or three keys at the same time which resulted in rotation of my screen 90 degrees to the left. How to rotate my screen back!

    I was in the process of pressing control, alt, delete keys to open the the Task Manager and entered in another sequence of keys.  I don't know what keys I entered actually well.  I have what keys to press on to unrotate my screen?

    Rotation screen

    1. right click on your desktop
    2. click on screen resolution
    3. under Orientation change the setting
    4. click on OK

  • view 360 degrees with the cleaner of the invisible

    I'm looking for a tutorials that illustrates everything first import a png of an animation sequence. Once the sequence is inserted, I would like to make a symbol and add a hidden scrubber. Instead of a scrubber, I want to be able to touch and drag the object itself.

    I wrote a tutorial about this here:

    MJ Page Design - Tutorial 1 - Spin 360

  • Help with the lasso and auto smoothing...

    I must have done something by mistake - all of a sudden when I make a selection with my lasso tool, click on out of her, photoshop automatically smooths my selection (makes it smooth as in an oval or circle, ignoring my detailed selection).  How to remedy this situation, or disable auto-smoothing (?)?  Thanks for any help you can give.

    Set the value of the pen to a few or zero in the options bar.

    Paulo

  • HP Jet 11 X 360: How can I put a 11 flow with the anniversary of 10 Windows Update?

    I know that Windows Update is unable to do so.  I think that the media creation tool box.  But I would like to see a pointer explicit instructions that are considered as complete, effective and safe by HP.

    As I did now successfully upgrade, I'll follow upward in describing my experience for someone else who cares about this and found this thread.  The short version is that if you can free 8 GB of storage, the media creation tool can do the upgrade and it requires no additional storage at all.

    I had the intention of putting it off until I learned more.  However, to my surprise, Windows Update downloaded the "update" and indicated that he wanted to install it, but had difficulties regarding disk space.  Contrary to what kyle_b said, he suggested, pointing to the extra storage space, and I pointed to a 32 GB SD card which had plenty of room.  He proceeded to create a 3 GB $WINDOWS. ~ TMP file on it.  After that, he tried the installation.  Which failed.  When I hunted that in history all the update I could find is a statement that was not without any explanation.  I was not surprised, because I had heard that Windows Update is unable to do so.  What surprised me, is that she is never even committed to do in the first place on the machine so attached to the disk space that he could not work.

    I thought it was too stupid to stop trying and it would be a chore, and if I had better go ahead and see if I could make it happen with the creation of media tool.  I had to tinker with removing some stuff and uninstalling programs to get my unused space up to 8 GB.  Then I made a few support upward to another computer on my LAN to a few files, that I couldn't afford to lose, and I've been duped on this other computer for awhile.

    I came back to the computer laptop, downloaded media creation tool, and it began.  He balked, saying: I do not have enough free storage.  Indeed, I discovered that I had more free 8 GB!  Windows Update has downloaded the "update" (about 3 GB) again for the update of the anniversary.  It took me a while to find that.  So I just deleted the download of the update folder to return at least 8 GB free.

    I tried again the media creation tool, and everything went well.  Surprisingly, he didn't need additional storage next to the 8 GB that was free on the main drive.  (For example, I plugged never in any USB stick or SD card.)  Also amazing after you delete the files needed to get back to the old version of Windows, my disk space is now up to 10 GB.  That is, I actually took a little space.  Not what one would expect.  Apparently MS has managed to remove some fat.

  • My new Apple TV v4 does not smoothly on Airplay with my MacbookPro and Air laptops but with the iPhone and iPad Airlay gets so juddery and then goes off - laptop computer WiFi connections all that happens on clues?

    Devastated to find that the new AppleTV works great on Airplay / mirroring with the iPhone and iPad devices but completely useless on the NEW laptops.

    Trying to show any video for example utube creates immediately hop on the TV screen when you use the Macbook and in no time the WiFi connection is stunned.

    What is going on?

    I use ElCapitan, and the last 15 "16GB i7 Macbook MacbookPro and not expect a problem with streaming media.

    Absolutely well on Airplay with bith an iPhone 6 Plus and also an Air iPad

    This will be due to a network problem. There is a difference between mirroring of a phone/Tablet and grow to a full desktop in real-time

    Mmake that there is no other activity (other streaming, web browsing, backup network etc.)

    Try to connect the Apple TV via ethernet

    To see a current state of the network to obtain a report of istumbler or similar. Look for the strength of the signal, noise, networks nearby

    Test on another network

  • Trouble Shooting basic steps if the printer cannot communicate with the computer.

    Here are the steps to follow if your printer has problems to connect to a computer for basic troubleshooting.

    USB:

    1. Make sure that the USB cable is connected sucurely at both ends.
    2. Make sure that the USB cable is connected directly to your computer.  If you have a USB hub between the printer and the computer, it can cause communication problems.
    3. Make sure that your do not plug the USB key into a USB 3.0 port.  HP printers do not work with USB 3.0 connections and can prevent the computer to see the printer.
    4. Make sure that the USB cable is less than 6 ft.  No more 6 ' can generate signals lose who will cause problems of miscommunication.
    5. Have a backup USB cable.  The truth is USB cables are good markets for be sold at low prices.  Sometimes they last for years without any problem.  Sometimes they are bad when buy you them.  It's really just a matter of chance.  The chances of getting a bad store fees are quite low, but it happens and it never hurts to prepare.

    Wireless and Ethernet:

    1. Follow all the steps in this document.  Do step in the document will ensure that your printer on the network and has a stable connection.  The only thing to change is under the fifth step.  Under the fifth step, it tells you how to set DNS information on your printer.  It tells you to use the IP of your router.  Do not.  Use the public DNS to Google for favorite 8.8.8.8 and 8.8.4.4 for the alternate.  The reason why I use Google DNS is twofold.  (1) HP printers seem to connect better with Google DNS.  (2) If your printer has web services, web services have a better chance to connect with Google DNS.
    2. If your anti-virus software has a firewall, disable it.  Anti-virus firewall can block network communication between devices on the same network, and disabling the firewall may allow communication to flow normally.  If the firewall is the problem, there are ports you need to open once you activate the firewall again.  These ports will be listed at the end of this post.

    These are the basic things that you can do if you think you have problems with the printer and computer to communicate with one another.

    HP printer ports

    UDP

    TCP

    Acronym

    Definition

    Used for

    137

    137

    NetBIOS

    Network Basic Input/Output System - (basic communication)

    UDP: Card printing, Photo Upload

    138

    NetBIOS

    Network Basic Input/Output System - (basic communication)

    UDP: Photo card download

    139

    NetBIOS

    Network Basic Input/Output System - (basic communication)

    TCP: PhotoCard Upload

    161

    SNMP

    Simple Network Management Protocol - monitoring network devices

    UDP: print

    427

    427

    SLP

    Service Location Protocol (know what things can do on the network)

    UDP: Card printing, Photo Upload, scan, fax, Installation

    9100

    PDL

    page description language - print control language (how the printed page you want to watch)

    TCP: print

    9220

    TCP: Scanning, fax

    9500

    TCP: scanning

    I hope this helps.

  • How do you determine the steps to use when they need to change the info in the diaglog box "WINDOWS SECURITY" of win 7, which asks the user and the password?

    My background: I can only see this dialog box titled WINDOWS SECURITY when I want to access my log to router with my office router connection. The dialog box refers specifically to my router, and asking a user and a password.

    A long time ago that I asked to remember and, of course, I forgot it and the location that I wrote. Now I am unable to determine what I thought, would be a simple reset and the steps that allow me to perform a reset. After a series of search phrases on Bing, and in the community of the SP as well as Win 7 Pocket administrator index I can't find the steps because the dialog box, it seems with the title of the WINDOWS SECURITY is too general.

    I need to install a new router and need to change the user and password. I don't know if user and password are unique to the company of router or Microsoft Win 7. Nevertheless, I can reset thinking them they are unique to me and Microsoft because there is no query such as, "you forgot your password?', whereby get you a temporary.  These steps are already stationed in the community and I just can't get into the research phase right? (What is related to IE 11?) Thank you.

    > I need to install a new router and need to change the user and password.

    Do you want to connect to your old router?  If Yes, most routers have built-in switch you tripping with a paper clip or similar to force a reset to the factory settings.  You can then access the default connection.

    If it's the new router, it should be accessible with the factory default login. If you don't know please post that make the exact and the model of the router.

  • Rotation of the image with the first element 9

    I am trying to create a short video with video clips recorded with a mobile phone of Nokia Lumia. The video clips are recorded in "vertical Position".  Video clips important without problem to my Win 10 computer with the correct orientation.  When I import video clips in first item 9 video clips automatically ROTATE 90 degrees to the left (horizontal projection).  I have not found a way to turn the video clips to the vertical projection.

    I'd appreciate any help to solve this problem.

    The simplest solution is to add the video to your calendar, right-click on it and select Rotation 90 ° to the left or do rotate 90 degrees to the right.

Maybe you are looking for

  • iPhoto 9.4.3 frequent crashes

    Could use the help of the community.  Recently affected by frequent crashes of iPhoto 11 9.4.3.  Understand what happens as well to others.  Not affected by other applications at this time, nor iPhoto crashes at any point in the past.  Can sometimes

  • HP p077tx: missing in Device Manager Wifi adapter

    I have a HP p077tx laptop and it is under warranty. As for 2 months I have problems with wifi as my wifi adapter used will be unavailable after that I woke up my laptop from sleep. I mean the wifi was not simply disconnected, but there was no adpater

  • failed to download update vista of making

    I tried safe mode and it does give me not all downloads to install the update is a vista Error 80070020 KB970653 update #.

  • Load profile with the temporary account from today

    original title: temporary user profile problem! Desperately need help! I have windows vista. All user profiles are loading with temporary account from today. I lost all my data. Help, please. Usually when I restart my computer, the profiles are back

  • need help please help

    I have a PORTABLE PC of HP ENVY m6 when I tried to connect the three times bios administrator password and the code I got was 63182113 please can do something to help me solve this problem