can someone explain this code

Hello, when I look at this code, I do not understand a code, can someone explain this code?
Thank you very much!!!

The creation of a 'method' for a vector object (in the old style of class definition), which gives it a method with an argument in degrees rotate.

It replaces the vector existing x and properties of y (in the part "with (this)" code) based on the angle that was passed.

I don't know if it gives correct results, because I don't check the math/trig, but it is the interpretation of what I see. What exactly do you want explained more in detail?

Tags: Adobe Animate

Similar Questions

  • can someone explain this code pls!

    speed * =. 98;
    (x = Math.sin(_rotation*(Math.PI/180)) * speed *-1;
    y = Math.cos(_rotation*(Math.PI/180)) * speed *-1;
    If (! _root.granica.hitTest (x, FLF, _x + y, true)) {}
    _x += x;
    FLF += y;
    } else {}
    speed * =-. 6;
    }

    Granica root is an instance name that I used, it can be something else...

    I think that shat speed is a variable or sth, cus I've already used it previously in the code and I guess now I'm just set...

    but someone pleasee help out me by explaining what part of the code, we hear what may...

    BTW I also think it has something to do with the trigonometric functions, that sin and cos...

    TNX in advance

    speed * =. 98; / / decreases the speed - IE, this object slow down gradually
    (x = Math.sin(_rotation*(Math.PI/180)) * speed *-1; / / these two lines cause the object to move in the direction of _rotation, rotation of the object
    y = Math.cos(_rotation*(Math.PI/180)) * speed *-1;
    If (! _root.granica.hitTest (x, FLF, _x + y, true)) { / / This checks no imminent collision with _root.granica }
    _x += x; / / If there is no collision that would happen, advance to this post
    FLF += y;
    } else {}
    speed * =-. 6; / / If there is an imminent collision, not to move on this loop inversion with a lower speed
    }

  • Can someone explain this error message? Or what it's about?

    Hello everyone, he jumped to the top for the last two days APPLICATION and this ERROR reads in the dialog box: Exception Exception EOle

    in the SMS systemAnalyzer.exe to 0014F649 module. Get on my laptop and desktop.  I have both Windows 7 Pro and IE 10, but switch to IE 9 for some features. Topics in accordance with tutorial disc for some software products. I didn't notice any problems or malfunctions of the system. Nor I have I had any other guests or problems with the installation of the updates. This is a mistake as the 'check engine lite' while you are driving to come. Makes you wonder!  Don't know who or where to look under the hood? Any idea what it is or what he considers please pass on. SEWING the two computers to be OK but... I don't like no error messages and not knowing what to look for is a matter of concern and hope to prevent something GREAT, on the road. Thanks for the time and energy... Peace... I was able to do a screenshot of it while typing this... How convenient! good omen!

    Yes, it is an error of System Mechanic. Personally, I do not use these types of programs.

    You can check with them about the error.

    Good luck.

  • Can someone explain this to me? (Spot healing brush)

    While testing on the Checker task tool, I tried to remove a tattoo, but then I played a bit with the hair and it seems as if she managed to reveal part of his tattoo which was not already visible.

    Here's the original photo

    And here is the product of me playing with the spot healing brush and remove some of the hair around his tattoo

    http://imgur.com/fNcXoIj

    . This photoshop is actually add something that never existed, or is this going deeper in the picture and show something that has been 'hidden '. If you don't know where to look, look at the top of his left wing

    Hello

    Spot healing brush draws the closest pixel and replace that pixel to the closest match.

    Also, if you want to clone something, you can use Clone Stamp tool...

    Concerning

    Jitendra

  • Can someone explain this error?

    I needed to maintain the scope and call a method on an inherited class, which is used as a reminder of a HTTPService request. I thought I would try the methods known to JS to assign a variable to this , then using this variable as the reference in the callback.

    That's when I noticed this problem: I had read about how THAT creates a class object for each class defined in an application, but if I do:

    protected var self: class = this;

    or

    Category: auto protected var;

    public function className (): void {}

    this.self = this;

    }

    I get an implicit constraint error: 1067: Implicit coercion of a value of type com.webtop:AdminClass to a type unrelated to class.

    There is no point at all. If a class object is created for my class, my class is a class. This can be proven by:

    Private var activeClass: Class = null;

    .

    .

    .

    Private function someFunction (): void {}

    this.activeClass = CategoryClass;

    }

    where CategoryClass is a class not instantiated.

    If this refers to my class, what exactly is this?

    'This' is always a refferences of not a class instance to remedy this thing to do

    protected var car: Object =; / / instead of the object, you can use more specific type if you wish.

    PS there are more better way to challenge this scope without ussing auto var,

    When you run a function, you can use the .apply or .call methods and explicitly pass the object that will act as a 'this' inside running.

  • My download folder is empty in my computer, but according to firefox my downloaded items are still there. Can someone explain this?

    The files I downloaded are still on the download list (small box). However, the download in my documents folder is empty. These files are still around?

    You can right click on a file in the Download Manager window to check that.

    Open and open the folder that contains are grey in the context menu, then the file is no longer present in the original download location.

  • Can someone explain this use of VM ram?

    I don't see how consumed host memory is 3066,00 MB.

    Almost all of my machines virtual Windows are this way.  Consumed host memory ends up being equal to memory provisioned maximum, although currently in use is much less.

    vSphere 5.5

    Yes, recovery is only considered by the host where it is necessary.

    André

  • Can someone explain this trick of David Blatner?

    Tip.jpg

    Re this trick by David Blatner. I'm trying to follow the instructions, but nothing seems to work. To start I don't seem to be able to select multiple images. If I select in crtrlA then the choice "Turn it again" is grayed out. No idea what I am doing wrong?

    Yes. Try to screw up your prefs see replace your preferences

  • Can someone explain why a 72 dpi, which went to print looked great?

    Not sure if I should post this in Photoshop or InDesign forum.

    I'm working on bringing a book in InDesign that will be printed at one of these free publishing houses. I did a lot in the past. Then my friend I do a lot of work with a book on his own that has a photo to grayscale to a bomber B-24 on the lid. The image was of 72 dpi and the dimensions of the image were 52,389 "X 35,722". In InDesign, the image has been resized to about 7 inches wide. The book is back and the cover photo was beautiful. What is confusing to me, this is why the cover photo looked not all pixelated because he was of 72 dpi. Is it something about the picture that he was so great that it is a dimension, and then it has been scaled down? Can someone explain this somehow?

    Just a note: auto publication companies I beleave not print their books on an offset press. I think they use high range laser printers. But I could be wrong.

    Thank you

    Russ

    iRuss wrote:

    The image was of 72 dpi and the dimensions of the image were 52,389 "X 35,722". In InDesign, the image has been resized to about 7 inches wide.

    How the effective resolution has become something of the order of 538.56 ppi (52.389/7 x 72). What the actual resolution of the image scale changes in proportion reverses with the scale factor. It's exactly the same thing as changing the width of the 7-inch image in Photoshop without resampling. No pixels change, you change just the size you choose to print.

  • I can't find a way to sort the records themselves in alphabetical order by name. I speak not in a display mode, but in how they appear when I click on the tab my favorites. Can someone explain to me how to do this.

    I have a lot of issues of brand book with websites contained in each folder. I'm able to sort sites within each folder alphabetically by name, but I can't find a way to sort the records themselves in alphabetical order by name. I speak not in a display mode, but in how they appear when I click on the tab my favorites. Can someone explain to me how to do other than manually by dragging because it is extremely difficult for me, due to the fact that I am with limited movement tetraplegic hand dexterity

    Folders of bookmarks you created are in the folder Menu bookmarks. "Sort" this folder.

    http://KB.mozillazine.org/Sorting_bookmarks_alphabetically

  • Whenever I try to download a file, I get a message that the internet explore has encountered a problem and need to close. Can someone explain why this is?

    Whenever I try to download a file, I get a message that the internet explore has encountered a problem and need to close. Can someone explain why this is?

    What Service Pack for XP are you running?  You use Internet Explorer 7 or 8?   If so, you can try this article to see if it solves your problem:

    "How to reset Internet Explorer settings"
      <>http://support.Microsoft.com/kb/923737 >

    HTH,
    JW

  • Can someone explain how to order a change of platform, elements PS Windows to Mac? I can't find an option for this in my Adobe ID account

    Can someone explain how to order a change of platform, PS elements of Windows to Mac OS? I can't find an option for this in my Adobe ID account.

    Sorry to hear that.

    Try once link below and check:

    Contact the customer service

  • I try to install FontAwesomePS_1.0.0 for Photoshop CC15. This extension cannot be mounted, it requires the version of photoshop 64 to inclusively between 14.0 and 15.9. Can someone explain why this extension is not installed? Thank you!

    I try to install FontAwesomePS_1.0.0 for Photoshop CC15. This extension cannot be mounted, it requires the version of photoshop 64 to inclusively between 14.0 and 15.9. Can someone explain why this extension is not installed? Thank you!

    Looks like you are installing in the extensions manager that is no longer supported for 2015 of CC. Please refer to the CC app instead.

  • Can someone explain a report refresh using ajax...

    It is an excellent example on this site that someone gave me, but I'm too dump to understand what code goes where. Can someone explain to a simple person like me a step by step.
    Thank you very much advance.
    Doug



    http://Apex.Oracle.com/pls/OTN/f?p=11933:40

    the use of AJAX examples with the on demand application process are very useful I think. The tirgger for the update is not an onblur/keypress/keyup event, but a kind of timer. Javascript tutorials you need to look if there is a kind of code that triggers the meantime ask at regular intervals. Time to turn the crank to the top of your javascript expertise ;)

  • Can someone explain these activities on my computer?

    Hello

    Can someone explain these activities? 2 weeks ago I put my computer again on the apple store, because I had strange things on my computer (disabled USB ports, I could start my computer in safe mode only) as a zombie. Now I have again the strange activities:

    I discovered, that this activity does not appear, when I create a new guest account and we who count for surfing the internet. Can someone explain to me what is happening on my computer?

    Stefan sincerely

    Can someone explain to me what is happening on my computer?

    There is nothing unusual is happening on your computer.

    All these processes are normal.

    Messages in the Console are especially for developers to find bugs and improve performance. They almost never mean anything for a normal user.

Maybe you are looking for