Rotating and scaling a movieclip withing only its parent width and height

Dear friends,
I'd like to rotate a movieclip within specific area (its parent width and height) and it can't rotate out of it.
How can I achieve that.
When I say for exampe:
mc.rotation = 10;
it rotates also outside the parent area.
How can I restrict it to only parent area.
Thank you in advance.

[OTTOMH]
With each rotation step you could check the bounds of the rotating MC. If it's greater than the containing MC, you can calculate the scale factor and apply it to the x- and y-scale of the rotating clip.
The clip would have to be deadcentre in the containing clip for this to work though.
I suppose there would be some mathimatical way with most primitive shapes to calculate the width and height with a certain rotation, but I suppose this would be easiest.

Similar Messages

  • How can i find my lost iphone 4s with only IMEI...

    I lost my iphone 4s several days ago. Can i track it with only its IMEI?
    I have never signed in at iClouds.com with it...
    Many thx!

    No, you can only track it with Find My iPhone. If you did not turn it on, and did not have iCloud signed onto the device, there is no way to track it. Follow these instructions for a lost or stolen device:
    http://support.apple.com/kb/HT5668
    Sorry about your troubles,
    GB

  • I created a book in iBooks Author using the Photo Book template. When I rotate to portrait orientation, the photo or widget disappears and a table of contents appears with only the interactive media showing.

    I created a book in iBooks Author using the Photo Book template. When I rotate to portrait orientation, the photo or widget disappears and a table of contents appears with only the interactive media showing.

    Thanx for the prompt response, KT. I have indeed seen that thread, only just after I posted the question.
    I have spent hours on the phone with what I now know is a call center in Texas on this question.
    I think Apple could be a little more "hands on" with iBooks Author users, and it should also be pointed out that landscape photos will not display in portrait mode.
    In my case, I used gallery widgets to display vertical photos, since they look better in portrait mode.
    But instead of simply rotating, the page disappears and a TOC of interactive media appears. The gallery behaves as expected when tapped. This is not what I expected, but since the gallery works, I can live with it.
    Right now I have "tickets" telling me to "fix" this "problem or to disable portrait mode.
    I don't want to disable portrait mode.
    Will Apple accept the books if I tell them this is not an "error?"

  • Hi i have updated the 8.1 in my i phone 4s . then i got in my home screen i tunes and charging symbol only . its not getting on . can you help me out to solve the issue with my phone ?? thanks.

    hi i have updated the 8.1 in my i phone 4s . then i got in my home screen i tunes and charging symbol only . its not getting on . can you help me out to solve the issue with my phone ?? thanks.

    Hi vijayanandhtkp,
    It sounds like you are getting the Connect to iTunes screen as discussed in this article.
    If you can't update or restore your iPhone, iPad, or iPod touch - Apple Support
    If so, please check out this article as linked from there.
    Use iTunes to restore your iOS device to factory settings - Apple Support
    Thank you for using Apple Support Communities.
    Nubz

  • Performance issues with Motion (position, scale, rotate) and GTX 590

    I'm experiencing performance issues with my Premiere Pro CC when I scale, position or rotate a clip in the program monitor.
    I have no performance issues with playback! It's only, when i move something with the mouse or by changing the x,y-values of Position in the Motion-Dialog in video effects.
    Premiere then lags terribly and updates the program monitor only about once per second - this makes it very difficult and cumbersome to work and position things.
    On a second Premiere installation on my laptop, performance is fine and fluid - allthough it doesn't have GPU support and is a much slower computer.
    I'm pretty sure this has somehow to do with my graphic card, which is a Nvidia GTX 590.
    I was told by the support, that it is actually a dual graphic card, which is not supported/liked by Premiere.
    The thing is, until the latest Premiere update, I did not have performance issues at all with this card.
    I also read on the forum that others with the GTX 590 did not experience any problems with it
    So where does this come from?
    There is no change in performance whether or not I activate Mercury Playback Engine GPU acceleration.
    I also tried deactivating one of the 2 gpus, but there also was no change.
    Does anyone else know this problem and has anyone a solution?
    I'm running Premiere CC on a Win 7 64bit engine, Nvidia GTX 590, latest driver (of today),

    I am suffering from the same phenomenon since I updated just before christmas, I think.
    I am hardly able to do scaling, rotating and translating in the program monitor itslef - whil motion has been highlighted in teh effect controls.
    In the effect controls I can scale, rotate etc however.
    Also I have noticed there is a yellow box with handles in teh program monitor. I remember it was white before.
    I cannot figure out what to change in my preferences. What has happened?
    best,
    Hans Wessels
    Premiere CC
    Mac Pro OSX 10.7.5
    16 GB 1066 MHz DD3
    2 X NVIDIA GeForce GT 120 512 MB

  • I have a macbook pro with only 128gb of hard drive. I have lightroom installed and all my photos on an external hard drive. Can I store my lightroom library on the external hard drive too?

    I have a macbook pro with only 128gb of hard drive. I have lightroom installed and all my photos on an external hard drive. Can I store my lightroom library on the external hard drive too?

    Yes. Find the LR catalog file by looking in Edit/Catalog Settings/General. Close LR and navigate to that spot. The catalog file is the one that ends in .lrcat - move it to wherever you want. Next to the .lrcat file is a subfolder called Previews.lrdata. You can move that over as well, but if you don't LR will generate new previews. Double-click on the .lrcat file in its new home and LR will open with that catalog. Set Preferences to When Starting Up Use Most Recent Catalog.

  • Since IOS 6 update, malfunction with auto rotate and sounds

    Hello. I'm wondering if others have experienced a problem since updating their IPads. Since the update, I've lost the dual functionality of auto-rotate and sounds. I can only have 1 of the functions operate as per norm.  If I want sounds (for keyboard clicks/games/etc.) my screen will not auto orient. Vice versa for auto orientation. Normal rotation is only possible with NO SOUND for the previously mentioned apps. I've performed reboots, and also endeavoured to make the obvious corrections in the General Settings fields. When I uncheck "MUTE"...it automatically places a checkmark in the lock rotation field!!!
    Can anyone offer a solution, to what i perceive, as a software issue?

    Maybe this will help.
    If you lose sounds for keyboard clicks, games or other apps, email notifications and other notifications, system sounds may have been muted.
    System sounds can be muted and controlled two different ways. The screen lock rotation can be controlled in the same manner as well.
    Settings>General>Use Side Switch to: Mute System sounds. If this option is selected, the switch on the side of the iPad above the volume rocker will mute system sounds.
    If you choose Lock Screen Rotation, then the switch locks the screen. If the screen is locked, you will see a lock icon in the upper right corner next to the battery indicator gauge.
    If you have the side switch set to lock screen rotation then the system sound control is in the task bar. Double tap the home button and in the task bar at the bottom, swipe all the way to the right. The speaker icon is all the way to the left. Tap on it and system sounds will return.
    If you have the side switch set to mute system sounds, then the screen lock rotation can be accessed via the task bar in the same manner as described above.
    This support article from Apple explains how the side switch works.
    http://support.apple.com/kb/HT4085

  • How can I find my lost ipad-2 with WIFI only. I have only its serial no. icloud says alway the device is offline

    how can I find my lost ipad-2 with WIFI only. I have only its serial no. icloud says alway the
    device is offline

    It will only show if the device is turned on. And if someone else has it, they can turn that feature off. Your best options are to return to the location where you think you lost it, and see if anyone returned it. Also contact your local law enforcement.
    Reporting a lost or stolen product
    http://support.apple.com/kb/HT2526
    Report to police along with serial number. Change all your passwords.
    These links may be helpful.
    How to Track and Report Stolen iPad
    http://www.ipadastic.com/tutorials/how-to-track-and-report-stolen-ipad
    Reporting a lost or stolen Apple product
    http://support.apple.com/kb/ht2526
    Report Stolen iPad Tips and iPad Theft Prevention
    http://www.stolen-property.com/report-stolen-ipad.php
    How to recover a lost or stolen iPad
    http://ipadhelp.com/ipad-help/how-to-recover-a-lost-or-stolen-ipad/
    How to Find a Stolen iPad
    http://www.ehow.com/how_7586429_stolen-ipad.html
    Apple Product Lost or Stolen
    http://sites.google.com/site/appleclubfhs/support/advice-and-articles/lost-or-st olen
    Oops! iForgot My New iPad On the Plane; Now What?
    http://online.wsj.com/article/SB10001424052702303459004577362194012634000.html
    If you don't know your lost/stolen iPad's serial number, use the instructions below. The S/N is also on the iPad's box.
    How to Find Your iPad Serial Number
    http://www.ipadastic.com/tutorials/how-to-find-your-ipad-serial-number

  • Acmcneill1ug 14, 2014 7:16 AM I have IMac OSX 10.9.4, 4GB,Processor 3.06 with Intell2Duo. I would like to check for Malware. I run a TechTool Pro 6 every month and that comes up great. When check how much memory I am using, with only Safar

    Acmcneill1ug 14, 2014 7:16 AM
    I have IMac OSX 10.9.4, 4GB,Processor 3.06 with Intell2Duo. I would like to check for Malware. I run a TechTool Pro 6 every month and that comes up great.
    When check how much memory I am using, with only Safari open I am using 3.9 and more of her 4.0 memory. She is very. very slow in processing. I had 4000
    trash to clean out and it took her over an hour to expel. Also for some reason Safari will not allow me to click on a link, in my G-mail, and let it go to the page.
    It has a sign saying a pop-up blocker is on and will not let me do it. I must open the stamp to look at my e-mails and if I have redirected link now I can do it.
    I have not changed my preferences so where is this pop-up blocker?
    I have looked at preferences on Safari and Google, which I do not understand Google, and do not see where this blocker could be.
    Malware is something I want to make sure is not on my computer. Tech Tool Pro 6 is all I know of and it does not detect Malware.
    Help.
    Ceil

    Try Thomas Reed's Adware removal tool. He posts extensively in the communities.
    Malware Guide - Adware
    Malware Discussion

  • Problem with rotation and keyboard click sound

    Ok, there's still a problem with the rotation and keyboard click sound and I thought I had the problem fixed.
    It's a serious bug when you want the keyboard click sound enbabled without having the rotation locked. I noticed this bug started when I had the previous iosinstalled 7.0.6.
    Everytime I wanted to enable the keyboard click sound, I have to always go to settings and have lock rotation checked. And it would stay locked.
    If I wanted to rotate my iPad, I have to have mute enabled, but no keyboard click sound.
    I know it sounds confusing. I'm already confused... beh.

    I completely forgot about that.
    Thank you!

  • I have OS 10.8.2 and use wireless at home just fine. When I visit a friend with only a cable modem internet my Mac Book Pro will not connect. What do I need to do?

    I have OS 10.8.2 and use wireless at home just fine.
    When I visit a friend with only a cable modem internet my Mac Book Pro will not connect.
    I see that the Mac Book Pro is picking up the internet when I check the internet preference section but it will not open Safari.
    What do I need to do connect via a cable modem?

    You need to power off the modem for 15-30 seconds, then power back up and then connect. The modem is remembering the last connection (your friend).

  • I have an older HDTV with only 1 HDMI connection. I use a Bose 3.2.1. GS Series II system and have a HDTV cable box. Bose system has no HDMI. How can I connect an Apple TV to this system?

    I have an older flat panel HDTV with only 1 HDMI connection which is being used through my cable box for TV reception.  I also use a Bose 3.2.1. GS Series II home theatre system.  It has no HDMI inputs. Can I use an Apple TV with my present system?  I'd prefer not hearing, "buy a new flat panel."
    Cliff

    Have you tried adjusting the "Audio Out" and the "Dolby Digital" settings in settings > audio and video? It may be worth trying several combinations of these settings, although typically it is the "Dolby Digital" setting that causes most problems for users.

  • I was trying to add an itunes library to my computer, and now my itunes library can not be found. An ipod can be synced with only one iTunes library at a time. How can I find my Itunes library, complete with playlists ?

    I was trying to add an itunes library to my computer, and now my itunes library can not be found. An ipod can be synced with only one iTunes library at a time. How can I find my Itunes library, complete with playlists ?

    I have the same problem too and tried alot of things like time zone , restarting or changing DNS of wifi connection to 8.8.8.8 still nothing happens .. !!
    iPhone 5s, iOS 8.3

  • How do i set up the time capsule with only a wireless net work? it keeps asking me to plug in a cable and i do not have one.

    how do i set up the time capsule with only a wireless net work? it keeps asking me to plug in a cable and i do not have one.

    Are you using a v6 uitlity.. because it is a toy.. ??
    Get v5 utility and then you can hold down the option key and select the right mode.
    If you have lion, just install it.. For ML follow this.
    How to load 5.6 into ML.
    1. Download 5.6 for Lion.
    http://support.apple.com/kb/DL1482
    Click to open the dmg but do not attempt to install the pkg.. it won't work anyway.
    2. Download and install unpkg.
    http://www.timdoug.com/unpkg/
    Run unpkg on the desktop.. it is very simple.. drag the AirPortUtility56.pkg file over to unpkg.. and it will create a new directory of the same name on the desktop.. drill down.. applications utilities .. there lo and behold is Airport utility 5.6 .. drag it to your main utilities directory or just run it from current location.
    You cannot uninstall 6.1 so don't try.. and you cannot or should not run them both at the same time.. so just ignore the toyland version.. the plastic hammer.. and start using 5.6.. a real tool.

  • HT204088 How how can I synch my ipod + iphone music to my new computer? I get the same error  "my ipod or iphone is synched with another itunes library.An Ipod can be synched with only one itunes library at a time. What would I like to do Erase and Synch

    How can I synch my ipod & iphone music (purchased from itunes on my old laptop) to my new laptop? I keep getting the same message on my itunes on my new laptop: " The ipod/Iphone is synched with another itunes library. An ipod/iphone can be synched with only one itunes library at a time. What would you like to do - Erase and Synch or Transfer Purchases?" What do I do?
    A couple of other items:
    1) I am guessing Apple does not keep a history of all my music purchases? As I did not have my entire library backed-up anywhere, and relying on the music I have on my ipod and my iphone as my only source of itunes music....I have lost over 500 songs!!!
    2) I used to have an Apple account under another account name, and since have switched to a new account name. Is there anyway to find the history of purchases from my old Apple account name and transfer these over to my new account name and onto my new laptop?
    I hope someone can help, I am having a very difficult time trying to obtain answers. Angie

    The iphone/ipod is NOT a storage/backup device.  Not maintaining a backup copy is a big mistake.
    You can transfer itunes purchases from your iphone/ipod to your computer:
    Authorize your computer for all accounts and then click  File>Transfer Purchases

Maybe you are looking for