Noob question - how to align 2 objects to their rotational points?

for example the rotational points of clock arms that are not in the center or edge of the arms to get aligned to the center of the clock face?

I want the rotational point of the clock hand to align or snap in the middle of the circle.

Similar Messages

  • Noobie question: How do I add something to the display list from a non-main class?

    I know how to use addChild() within the main class to add
    something to the stage display list and have it appear on the
    screen, but how do I add something to the stage display list from
    code within another class?
    So for example say I want to add some text (myTextField) to
    the stage's display list from within NotTheMainClass' code, could
    you give an example of the necessary code?

    you must pass a reference to a display list object or create
    one that's available to your class.
    there are so many ways to do this i'm not sure how you want
    to proceed. but you can create a globally available reference to
    the stage and root timeline:

  • Extreme Noob Question-How do I make it run by itself?

    Well recently I found the source code for Asteroids so I copy it into JCreator and save it as a .java file. Than I make a html file so I can play it. Everything runs fine but how do I make it a stand alone program? I want to be able to put Asteroids on my desktop and click on it and I want the game to run. Well I've been having some trouble. 1. I don't know which file I put on my desktop the .java one or the html one? Also no matter which one I choice, when I click on it, it still asks me what to run it with. I find Java and click on it. That a message poops up on the screen that says "Unable to launch the specified application" and than I remember that when I was looking at Asteroids' source code it said that it was a applet. So I don't know how to change it into an application and I�m not completely sure what I use to run it with. Yes I know in know I rambled (In my topic) but can some help me out?

    Yes I know I should learn to make programs without using JCreator but that might take a while (I'm guessing months, if not more) but I just want to do this one program. So does it need to be a application? Or if it okay that it's a applet? Also when I make it into a JAR file well it be able to run by itself?

  • Super Noob question, how do i share photos?

    My girlfriend and I bought our very first mac yesterday and we love it! We are in the slow transition of putting all our digital files from our PC to our mac and I have come across one problem.
    Do we have to upload every thing twice to put it on both accounts? I Figured once she loaded all the pics on her account I would be able to view and access them with mine.
    There must be some way to do this. If not my memory seems like it would fill up having all the same files loaded twice.
    Again, Super noob here, but loving it so much.
    Thanks.
    Message was edited by: Clearkidc

    Clearkidc
    Welcome to the Apple Discussions.
    There are two ways to share, depending on what you mean by 'share'.
    If you want the other user to be able to see the pics, but not add to, change or alter your library, then enable Sharing in your iPhoto (Preferences -> Sharing), leave iPhoto running and use Fast User Switching to open the other account. In that account, enable 'Look For Shared Libraries'. Your Library will appear in the other source pane.
    Remember iPhoto must be running in both accounts for this to work.
    Frankly, as you are brand new to Macs I suggest you use the above until you're more familiar with the machine and the Operating System.
    If you want the other user to have the same access to the library as you: to be able to add, edit, organise, keyword etc. then:
    Quit iPhoto in both accounts
    Move the iPhoto Library Folder to an external HD set to ignore permissions. You could also use a dmg.
    (Some people have had success putting the library in the Users/ Shared folder. If you do this make sure the file permissions are set to allow read/write access to everyone.)
    In each account in turn: Hold down the option (or alt) key and launch iPhoto. From the resulting dialogue, select 'Choose Library' and navigate to the new library location. From that point on, this will be the default library location. Both accounts will have full access to the library, in fact, both accounts will 'own' it.
    However, there is a catch with this system and it is a significant one. iPhoto is not a multi-user app., it does not have the code to negotiate two users simultaneously writing to the database, and trying will cause db corruption. So only one user at a time, and back up, back up back up.
    Regards
    TD
    Message was edited by: Terence Devlin

  • Noob question - How can I copy a specific time sequence from an audio file

    Hello, I want to chop up an audio file
    into time-specific lengths.  How can I accomplish this precisely?  I know I can position the playhead precisely but
    how can I copy a chunk of an audio file, for example, if I wanted the segment from 00:02:34.7
    to 00:05:42.1?  Is my only option the "drag" selection of the
    Time Selection tool?  Is there not an option to do some start and end point setting so I can be as arbitrarily precise as necessary?
    Thanks in advance for any help.

    Copy from Messages.
    Paste into Notes.
    Copy the desired sentence from Notes.
    Paste as desired.

  • Noob question: How do I make a loop of frames?

    So I'm trying to make an walking animation but I don't want to move a symbol in motion tween for each part of the leg each time. So how can I make a loop of it? Thanks!

    I'm trying to like, idk how to explain, like for example if I animate animate 1 second of walking, but I want to have 60 seconds of walking and I want an easier way of repeating the same walking sequence, how would I Do that? I can't end the layer or else it blanks out.

  • Noob question: How to update very basic as2 code to as3.

    I've been asked to update a web banner with old as2 code, and not being a coder or a regular Flash user, I'm stuck with what I'm sure is a simple problem. The code in the opening frame is;
    function timeOut(pauseTime) {
      stop();
      pauseTimer = setInterval(this, "goPlay", pauseTime);
    function goPlay() {
      play();
      clearInterval(pauseTimer);
    After that there are a few frames that include timeOut(500); code, which seems basic enough, so I imagine my problems are all in the opening code.
    I get 4 errors that all refer to Frame 1;
    1120: Access of undefined property pauseTimer.
    1067: Implicit coercion of a value of type CapOne_MM_648x480b_fla:MainTimeline to an unrelated type Function.
    1067: Implicit coercion of a value of type String to an unrelated type Number.
    1120: Access of undefined property pauseTimer.
    Can anyone help or point me in the right direction? Thanks.

    For the code you show there would be no need to convert to AS3 since between AS2 and AS3 it hasn't changed.  One thing you do need to do is declare variables and since pauseTimer is used in mutliple functions it needs to be declared outside any functions.  Another thing you need to do is specify the variable types, including the arguments passed into function.  As for the setInterval call itself it appears to be written incorrectly....
    var   pauseTimer:Number;
    function timeOut(pauseTime:Number) {
          stop();
         pauseTimer = setInterval(goPlay, pauseTime);

  • Noob Question: How Do I Resume Downloads

    I started downloading a couple of podcasts through Safari yesterday just before I turned off my Mac. Now I have got the downloads window back up but I can't see where I click to resume the downloads. There's no orange icon to start downloading again and when I right click on one of the podcasts there are only four options appear: open; show in finder; copy address and remove from list.
    Thanks for any help in advance.

    I started downloading a couple of podcasts through Safari yesterday just before I turned off my Mac
    What an strange thing to do.
    You will have to download in full again.

  • Noob question, how to avoid this runtime error,please help..

    Im new to java. Im using a JOptionPane in getting the user an input/a number, which is in String,. and to use it, im converting it by Integer.parseInt. When I run it everything seems ok, but whenever i inputted other data types other than integer(e.g char), i get a runtime error message "exception in main thread java.lang.NumberFormatException blah blah.....,. Is theres a way or a method or something that i can filter the users input when they type a character or when they inputted nothing that will not resulted to a runtime error, instead, an error message box will said that it is an invalid input. thanks in advance

    Ah, well, after an evening of rest and reflection, I have to conclude that we are all partially correct. I never meant to imply that NumberFormatException should not be caught. I have had to repair too many classes in which just-in-case or programming-by-exception was a rule, rather than a valuable technique for handling exceptional or error situations.
    As far as this example, I was not attempting to write a parser, or even start one. We are talking about a very simple situation ... determine if a String represents an integer. My example was overly simple, too. As pointed out, too simple. *\d+* would have eliminated empty strings, and with a few relatively minor changes, could handle all legal integers easily, including '-' and ',' characters, while excluding floating point and other invalid inputs. I did mention that regexes were an advanced technique. A Scanner could be used to test for the existence of an integer in a string. None of these rise to the level of parsing, IMO, but, as I have frequently said in these fora, the arguments of the mages are infinite. Of course, that implies that I consider myself a mage, which is not actually the truth.
    In any case, as pointed out, this is an example where catching a runtime exception is probably a good idea, as long as we don't give the OP the idea that this is the only technique, or that code can be written to ignore the causes of exceptional situations, because we can always handle them in the catch block. I have seen way too much of this to be comfortable with even the suggestion of this.
    I come here to learn. Sometimes, I learn interesting, complex things. Sometimes, I learn interesting, simple things.
    Sincerely, thanks for helping me to learn.
    ? {?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Animation: how can I move objects (and their transform keyframes)?

    Hi,
    I have created a project with a group of layers which all move (have transform keyframes set up).
    Now I want to move the group, but when I do this and then run the animation, the position of all the transform keyframes I have set up remain in the same place.
    Is there some way to move a group of objects and the location of their transform keyframes at the same time, or will I have to go through each keyframe and move them individually?
    Thanks!
    Jack

    > PLEASEEE HELPP
    You need to get some understanding of HTML and CSS to know
    why building a
    web page is not like using a page layout program or even a
    word processor.
    Unfortunately that will require some effort on your part.
    You cannot just place things on the page in HTML - you need
    to build an HTML
    infrastructure to hold the elements you want to appear on the
    page, and to
    hold them in the location where you want them to appear. As a
    simple
    example, consider a 1 row by 2 column table, where each
    column is set to 50%
    width, and the table itself is 800px wide. An image placed
    into the second
    column will be located exactly 400px from the left margin of
    the page
    (assuming a) the image is less than 400px wide, b) the table
    has zero
    borders, cellspacing and cellpadding, and c) there is nothing
    wider than
    400px in the first column.
    Make sense?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "afsheenm" <[email protected]> wrote in
    message
    news:fftbo8$cok$[email protected]..
    > hi, its my first time making the website so i have no
    clue about anything.
    > how
    > can i move text box? i mean i wrote something and want
    to move its
    > position
    > like up or down, how can i move it? also tables??????
    sometimes i can move
    > them
    > , by chance but i have no clue how i did it? PLEASEEE
    HELPP.
    >

  • Table Question:  How do you make text in cell rotate?

    Hi....
    I'm working with tables for the first time.  I'm doing a publicity schedule with a simple table. 
    On the top row.....  I put in cells with diagonal lines, so I could fit it many publication along the top row.  I got the diagonal lines in there.  But, when I'm typing the names of the publications (that should go along those diagonal lines), at about 45 degree angle, it just types straight text that fills the cell.  What am I doing wrong, or how do I achieve what I'm trying to do???

    http://indesignsecrets.com/diagonal-headings-in-indesign-tables.php
    Look at the second comment for another method that may well work best for your purposes.
    Take care, Mike

  • How to see the object while moving on the artboard?

    hello everyone;
    maybe a silly question; how to see the object while moving on the artboard? i dont wanna see only the objects bounding box(outline of the object). i wanna see the object it self. thank you.

    What have they gone and messed up now?
    When I drag an object (with bounding boxes turned on), the object moves and the bounding box stays still until I stop dragging, upon which it snaps to the object’s new position.
    If I don’t have bounding boxes turned on (as I usually work), the object moves when dragged.
    If what Bedri says is right, they’ve gone and mended something that wasn’t busted.

  • Indesign CS5 - how to align objects

    Dear All,
    I have a problem with Indesign that is present from CS2 trough CS3 & CS4 version. I thought that CS5 version finaly will solve this issue, but it seems to me that nothing changed.
    When we have to align two objects lets say in Illustrator,  we may always mark the reference object by second click (then it is locked). In different software the sequence of marking objects for aligment is important (even better solution in my opinion than in Illustartor). But in Indesign things work different. If we align objects to the top - the most top object is reference. When we align to the left the object most to left is the base for aligment.
    I think that everyone learned to live with that by right placing the objects before aligment. Sometimes by centering (in past versions) we were forced to lock one of the objects before aligment. But now in CS5 locked object is not selectable. Besides that I never liked this long "work around" method.
    My question is how to easy align vertical centres of the objects shown on the picture below when I want object A to stay on place and object B to be centered to A. I don't want to use smart guides.
    Paul

    Hello Peter,
    thank you for fast feedback. I appreciate it.
    I don't want to use smartguides because when there are more objects around it will be confusing to guess if you have right center or not.
    Changing preferences for locked objects will not help much I guess. I like the way the locked objects are unselctable now and of course, as you mentioned, it is time consuming way to go.
    The case is, that I would like Adobe to add this issue to the wish list. If this "double click" way is good for Illustrator, why it is not implemented in Indesign, forcing users to use some magical, time consuming, workarounds.
    To be honest, I hopped that I miss the point in this case and someone will tell me some obvious shortcut to use by selecting the objects to get the things right.
    Paul

  • Alignment tool - how to set reference object?

    I am new to Flash but have used Illustrator and InDesign for years. I am wondering if someone can explain how to set the reference object by which all other objects are aligned; e.g. Illustrator ->select all objects then a second click on the reference object and all other objects take their cue.
    InDesign you lock the reference object and that determines the rest.
    In Flash it seems that either both objects move or the one that I wish to remain in position jumps rather than the other way around.
    Thanks

    I don't know if you can set a reference object in Flash.  I have always just followed the general rule of aligning into the direction where the alignment basis would not move... meaning if I am aligning to the left, then the leftmost item I would select would be the reference, and if need be I would move other objects to the right of it first.

  • How to create an object for this Question...

    i want to create an object to Factorial.java, but the class is in String object... how can i do that
    please help me with code how to create an object
    String str = Factorial.java;
    i tried to do like this
    str s1 = new str();
    this way is not working...
    thank u

    yes sir am trying to instantiate and retrieve the metadata, am a student am asked to do Program Analyzer, while fullfilling the application requirements i came across this situation, like i have to find total number of public methods in any source file that is entered as input.
    Am taking the input in String variable, i can have the details of the source class only of i instantiate and create an Object to that....
    Please suggest me some way to do that... JAVA is so interesting am working on the project since 2 weeks am done with all other classes but struck here finding the total number of methods...
    Thank you

Maybe you are looking for