How do you evolve mc of the Center?

Howdy.

I created a movieclip with programming and added an image via the xml loader. I'm scaling down using tweenlite. But he played as if the registration point is in the upper left corner of the image. Do you know how to change it so it puts the Center-wide?

Thank you for any intelligence that you give!

Basically what you need to do, it is have a movieclip to accommodate the image and then look the image as it is centered about alignment of the movieclip.  Then you manipulate the movieclip as if it were the image.  In the code example below an mc of the rectangle of the library with a class ID of AnImage is used instead of an image for demonstration purposes...

var eMC:MovieClip = new MovieClip(); create empty mc to contain the image
eMC.x = 200;
eMC.y = 200;
var img:AnImage = new AnImage(); incorporate the image
eMC.addChild (img);  Add images as child of empty mc
IMG.x = - 1 * img.width / 2; Center of the image on the CTM registration point of the image
IMG.y = - 1 * img.height / 2;
addChild (eMC); Add the mc to the display list

function turnBox(evt:Event):void {}
eMC.rotation += 5;
}
box.addEventListener (Event.ENTER_FRAME, turnBox);

Tags: Adobe Animate

Similar Questions

  • How can you get rid of the "new tab" page that flashes what you did recently? I don't like this option...

    How can you get rid of the "new tab" page that flashes what you did recently? I don't like this option. If I wanted to Flash all the pages I've visited, I would. It is not YOUR place to do it for me. I'll change the browser if it is not changed.

    Hello, please refer to customize the page new tab to turn off the function.

  • Can someone tell me how do you remove or change the name of a library on the opening?

    Can someone tell me how do you remove or change the name of a library on the opening?

    You remove an Aperture library by selecting it in the Finder and delete it like any other file.

    To rename an opening, library, use the Finder-click on the name of the library and enter a differnet name.  You can also select the library in the Finder, then enter the ⌘I key combination to open the information panel. Then change the name in the Info Panel.

  • How do you keep icons on the desktop to move?

    Original title: the desktop icons

    How do you keep icons on the desktop to move?

    Hello

    Right-click on an empty area of the desktop

    Select display

    Select the icons snap to grid

    It should align them to the left

  • How do you put applications on the windows desktop as a shortcut form?

    How do you put applications on the windows desktop as a shortcut form?

    You can not put shortcuts to applications from the store to the desktop. Press the Windows key when it is on the desktop to quickly return to the start page.

  • If you have CC on two different computers and you forget to sign out how do you use CC on the second computer?

    If you have CC installed on two different computers and you forget to sign out how do you use CC on the second computer?

    Please see this link for more information on the installation of creative cloud on multiple computers:

    FAQ: Can I install Creative Cloud on several computers?

  • Several images can be viewed at once, each in it so how can you images floating in the workspace has a window, which can be moved on

    How can you images floating in the workspace, so several images can be viewed at once, each in its own window, allowing the images to be moved. This function doesn't seem to work in items 12

    Go in Edition > Preferences > General. Check ": allow Documents floating in its entirety in Edit Mode."

    I hope that will allow you to view the 3 files simultaneously via the available option.

  • How do you download InDesign using the Adobe Download Manager?

    How do you download InDesign using the Adobe Download Manager?

    With Adobe Download Wizard installed, you should be able to start the download at http://www.adobe.com/cfusion/tdrc/index.cfm?product=indesign.  If this doesn't work for you then please try another browser.

  • How ban you a computer for the software Adobe digital editions

    How ban you a computer for the software Adobe digital editions?

    ban the computer: ctrl-shift-D

    ban the device: ctrl-shift-E

    Unfortunately, the software designers ADE never attended a course on usability 101: no possibility of discovery.

  • How to create a circle from the Center?

    Hello. I'm using PS CS3 and I want to create a perfect circle around the Center. How do you do that?

    I know not pressing SHIFT while dragging makes it perfectly round. I also read that pressing alt at the same time he draws in the Center, but it does not work, it just all just with the eyedropper tool. Am I missing something or is there another way to do it?

    Thank you.

    Hello

    If you click and hold the mouse pointer and press the Alt key and drag, it should work.

    In addition, once you start dragging, add the SHIFT key to constrain to a circle.

  • How to align a bearing at the Center? CS5

    Hello.

    I tried for hours to align a button bearing to the center of my container, but no matter what I tried, the reversal did not move.

    That's how I inserted the animated button:

    I clicked Insert > Image objects > rollover, Image type the name of the Image, image, image rollover, text replacement and URL in the dialog box insert a Rollover Image , and clicked OK.

    I looked my index.html in design mode file and saw that the reversal has been aligned to the left.

    I then looked at my index.html file in Code view and saw that the reversal has been placed as follows under < / head >

    < onload of the body = ' MM_preloadImages ("'email button 2.png") ' >
    < a href = "index.html" onmouseout = "MM_swapImgRestore()" onmouseover = "MM_swapImage ('email_button',", 'email button 2.png', 1) "> ". < img src = "email button 1.png" alt= "reversal of email button" name = "email_button" width = "118" height = "47" border = "0" id= "email_button" / > < /a >

    < / body >

    What should I do for align the reversal at the Center?

    I'll be so happy if someone can help me!

    Insert the bottom directly above the closing tag.

    I think, unfortunately, that you won't get very far without understanding bassic html and css.

  • How do you take control of the Firefox icon in the middle of the home page directly on the search engine

    There is usually a large icon of Firefox, then it changed to a map, now it's a shooting gallery. How can you check this?

    If you prefer not to see excerpts on the topic: home page, you can set the pref browser.aboutHomeSnippets.updateUrl an empty string on the about: config page.

    Delete the storage\moz-security-about + House in Firefox with Firefox profile folder closed to remove code snippets stored in IndexedDB and do use a default set of Firefox.

    You can use this button to go to the Firefox profile folder currently in use:

    • Help > troubleshooting information > profile directory: see file (Linux: open the directory;) Mac: View in the Finder)

    You can reset the browser.aboutHomeSnippets.updateUrl the default pref to reactivate the code snippets.

  • Firefox 4 seems to have forgotten the small progress bar at the bottom right of the screen that shows how close you were to get the web site that you just clicked to retrieve. What happened to him?

    In older versions of Firefox, there was a small rectangular window at the bottom right of the screen which got progressively filled with green squares, that your last order has been processed. This allowed you to know that the computer had received the order and close about how it would carry out the requested task. No such window does appear in Firefox 4. That has been omitted or what I have to do something to get it back?

    Click on View - Toolbars - then the module Bar, and your progress bar will be there.

  • How to detect "to bring to the Center" graphic cursor events

    I have a XY chart where I update a table of the data values on the graph when the user moves the cursor.

    I want to detect when the user selects the 'bring to the Center' in the menu cursor, but it doesn't seem to be a case of for this event.

    I already have a case for "Move cursor", "Capture cursor" and "Slider Release", but none who manages the 'bring to the centre".

    Short put a button near the chart to move the cursor to the Center and to update my table then, is there a way to detect this?

    Thank you.

    OK, we're going to 2012 (on our 100 facilities) in a few weeks.

    We can wait until then to it :-)

    Thanks again.

    Brian Smith

    Advanced light source

    Lawrence Berkeley National Laboratory

  • How do you get and replace the hp pavilion 3CR3050D6K LCD flat screen 20-b010

    Pavilion 20-B010 screen has been damaged and is cracked. I would like to get a replacement manual or instructions on execution of Assembly and disassembly.

    Hello @VB_Richard,

    I understand that you need to replace the LCD screen on your desktop HP Pavilion 20 - b010 all-in-One PC and you would like a manual or instructions on how to perform the installation.  The number of product of the screen, you'll need is 652255-001, which is the 20 "TN N-glare W - LED Non - ZBD Sam 250nits. With regard to the steps needed to install it I am you provide those below:

    Before you begin: remove the back cover and bezel.

    Removal of LCD Panel Kit

    1. place the entire middle frame on a smooth flat surface.

    2 detach the connector from the LCD backlight to the LCD.

    3. remove the four screws that attach the LCD Panel to the Central frame - the screws will be on the high or low or the sides of the Board according to the manufacturer of Panel. Each manufacturer will have its own stencils for the location of the screw holes.

    4. partially lift the bottom of the middle frame off the LCD screen.

    5. unplug the LVDS cable from the Control Panel before completely up the average frame off the LCD screen.

    Replacement LCD Panel Kit

    1. to install a new LCD Panel, align the top of the middle frame on the LCD Panel.

    2. connect the LVDS cable to the LCD screen.

    3. lower the average frame completely on the LCD screen.

    4. replace the four screws on the sides or the top and bottom of the Panel to fix the Panel on the Central frame. Use the location of the screws to the stencil for the manufacturer of the Panel that you are installing.

    5. replace the backlight of the LCD screen connector.

    If the new LCD Panel comes from a different manufacturer that the old LCD Panel, remove old backlight converter card connector and install the new connector on the card. The jury has stencils indicating the location of the connector backlight by manufacturer.  Configure the jumpers on the card of converter to match the Panel manufacturers. Painted stencil on the chassis of the Middle table configuration of rider by the manufacturer.

    I hope that I have answered your question to your satisfaction. Thanks for posting on the HP Forums. Have a great day!

Maybe you are looking for

  • Fan of 0 RPM Macbook pro early 2015 13.3' MF840

    I used Istat Menus 5.11 to watch the temp of my Mac pro. This morning, IStat Menus display temp sen has 50 degrees but fan is ablout 0 rpm 1.5 hours. I thought that this is auto config to Apple. But that restart my macbook, my fan ran with 1300 RPM a

  • Time capsule backups are in red

    I just started to use time machine yesterday with a 5 TB partitioned HARD drive. We have 3 TB and one had 2 TB. The time machine is using the 2 TB partition. When I get time machine, restore is dimmed and all my backups are in red. Why is this? Thank

  • Generation of SSB AM acoustic

    The vi in the file (mt_nifgen_am_ssb_signal_gen.vi) can be used to generate an acoustic one AM SSB signal through a 5401 pxi and labview 2012 student? If not, can someone recommend another example vi the vi above would be reduced 80% development time

  • Do not accept HP ink cartridge

    My F4180 all-in-one printer will not accept a new HP ink cartridge. I only use HP cartridges. The computer gives me the message that my cartridge is defective or incompatible with my printer.

  • My Sansa e260 seems to freeze when I start. Help, please?

    Hello For the last two days, my Sansa e260 refused to start completely. It starts, goes to the black screen that sansa logo and then freezes. I took out the battery and turned it works a couple of times. I even let the batteries run out and reload it