How to change the registration point on a shape

Hi,
Is there a way to change the registration point on a shape
created in Director? For instance, I created a filled oval, and by
default Director sets the top left corner of the surrounding square
as the registration point. Nevertheless, I need to place that
registration point at the center of the oval.
Best regards.

Hi, if you create a shape vector from director, the reg point
is in the center of it; if you import a vector created in other
aplication (flash), the regpoint is in the top left corner. To
change the regpoint of an imported shape, try this:
put your shape in the stage in x,y = 0,0 position, then, if
your shape rect is 12,8 pixs, and if you want to move the regpoint
to the center of it
on preparemovie me
member("yourshape").regpoint = point(6,4)
end
play and stop the movie, your shape will change the regpoint
to 6,4
remove the script, and that's all.
Best regards.
sayeg

Similar Messages

  • Changing the Registration point via AS3 . how?

    hello,
    is it posseple to change the Registration point via AS3 ?
    Best Regards,
    Crimson

    The Attach Code window isn't working for me on this so I
    pasted the code into the message. Hope the formatting remains
    reasonable.
    public class HomePage extends MovieClip {
    public var frenchieReal:Swimmer; //Swimmer extends
    MovieClip; contains image of French Angel
    public var frenchie:Sprite; //To offset regisration point of
    frenchieReal
    public function loadStage() {
    var timer:Timer;
    var wayPoints:Array;
    //Establish timer for swimmers
    timer = new Timer(100, 0);
    //Create new swimmer supplying: image path, width, heigth,
    and initial x and y location
    frenchieReal = new Swimmer("Photoshop/oceanswimmer.png", 57,
    41, -24, -28);
    frenchie = new Sprite();
    frenchie.x = 244;
    frenchie.y = 532;
    this.addChild(frenchie);
    frenchie.addChild(frenchieReal);
    frenchieReal.setTimerListener(timer);
    //Set waypoints for swimmers
    wayPoints = [[230, 530],
    [240, 520],
    [250, 500],
    [260, 480],
    [298, 480],
    [358, 540],
    [368, 544],
    [388, 520],
    [398, 495],
    [404, 475],
    [420, 500],
    [458, 545],
    [528, 550]];
    frenchieReal.setPath(wayPoints);
    package {
    import flash.display.MovieClip;
    import flash.events.*;
    import flash.utils.Timer;
    import flash.net.*;
    import flash.display.*;
    public class Swimmer extends MovieClip {
    private var path:Array;
    private var pathLength:uint;
    private var pathLocation:int;
    private var loader:Loader;
    private var intercept:int;
    public function Swimmer(imagePath:String, w:uint, h:uint,
    xx:uint, yy:uint) {
    var urlRequest:URLRequest;
    this.x = xx; //Transaltion offsets for image MovieClip (eg,
    -24 and -28)
    this.y = yy; //Image is visible if these two values are
    nonnegative
    this.loader = new Loader();
    this.addChild(this.loader);
    urlRequest = new URLRequest(imagePath);
    if (urlRequest != null) this.loader.load(urlRequest);
    //Sets an array of waypoints
    public function setPath(p:Array) {
    this.path = p;
    this.pathLength = p.length;
    this.pathLocation = 1;
    this.parent.x = this.path[0][0];
    this.parent.y = this.path[0][1];
    this.intercept = -this.parent.y;
    public function setTimerListener(t:Timer):void {
    t.addEventListener(TimerEvent.TIMER, timerListener);
    //this.parent in timerListener is the Sprite object to which
    image MovieClip is parented
    function timerListener(e:TimerEvent):void {
    var i:int;
    var iMinus1:int;
    var xx:int;
    var y1:int;
    var y2:int;
    var rise:int;
    var run:int;
    var rotationAngle:int;
    if (this.path != null) {
    //Move to next segment?
    if (this.parent.x >= this.path[this.pathLocation][0]) {
    this.pathLocation++;
    //Go back to first segment?
    if (this.pathLocation == this.pathLength) {
    this.pathLocation = 1;
    this.parent.x = this.path[0][0];
    this.parent.y = this.path[0][1];
    this.intercept = -this.parent.y; //Minus y to translate
    everything to lower quadrant
    //y = ax + b
    //y = ((path
    [1] - path[i-1][1]) / (path[0] - path[i-1][0])) * this.x +
    path[i-1][1]
    i = this.pathLocation;
    iMinus1 = i - 1;
    this.parent.x += 2;
    xx = this.parent.x - this.path[iMinus1][0];
    y1 = -this.path[iMinus1][1];
    y2 = -this.path
    [1];
    rise = y2 - y1;
    run = this.path[0] - this.path[iMinus1][0];
    this.parent.y = ((y2 - y1) / (this.path
    [0] - this.path[iMinus1][0])) * xx + intercept;
    this.parent.y = -this.parent.y;
    rotationAngle = -(180/Math.PI) * Math.atan2(rise, run);
    this.parent.rotation = rotationAngle;
    trace("rise = " + rise + " run = " + run + " rotationAngle =
    " + rotationAngle + " Intercept = " + this.intercept);
    trace("x = " + this.parent.x + " y = " + this.parent.y + "
    rotation = " + this.parent.rotation);

  • Can I change the registration point of a movie clip?

    I'm loading a movie clip dynamically and its registration
    point defaults to top-left corner. I need to change it to the
    center, is this possible? if so, how?
    Thank you

    Thank you. I tried that and it didn't work too. Please check
    this code:
    loader.loadClip(_global.image_url+this["image1"], image1);
    DynamicRegistration.initialize(image1);
    image1.setRegistration( 20, 20);
    What is wrong with it?

  • Help... how to change the registration of an iPod

    I have seral kids...upgrading iPods for older kids and want to hand down iPod's to the younger kids. How do I change the ownership/registration of an iPod from one kid's name to another?
    Thank you....

    Each Kid has their own play list under their name/iPod. If I give Jane's iPod to Jimmy and Jimmy connects to iTunes, iTunes recognizes the iPod as Jane's and sync's her play list. I know I could change Jane's old iPod to sync to Jimmy's play list...but iTunes still knows the old iPod as Jane. Jane now has a new iPod. When she connects to iTunes it will recognize it as Jane's...but I have changed Jane's old iPod to sync to Jimmy's play list. Janes' new iPod will sync to Jimmy's play list. wow...
    I would like to have iTunes recognize the old iPod as now Jimmy's. How do I do that?

  • How to change the file pointer in random access file?

    I have a file, now I want to add a line at both the beginning and ending of the file. Should I use random access in this case? How can I move the pointer to the end of the file in that case? Thanks!
    ruuram

    I have a file, now I want to add a line at both the
    beginning and ending of the file. Should I use random
    access in this case?That's up to you. RandomAccessFile doesn't allow you to insert data at the beginning of the file, though.
    How can I move the pointer to the
    end of the file in that case? Thanks!
    file.seek(file.length())

  • How to change the endpoint url of the siebel service ?

    Hi All,
    JDev : 11.1.1.5
    I am fetching data from the siebel webservice. I created the proxy client from the Siebel WSDL in the JDeveloper. It was working fine.
    Now the endpoint URL(Server) is changed. This service fails to connect to that server. The service name is same.
    I want to fetch the end point urls from a property file, so that, even again if the server is changed, i have to change it in my property file.
    How to change the End point URL at runtime before calling the service ?
    This is my endpoint URL.
    http://oa8181.us.oracle.com:10800/eai_enu/start.swe/#%7Bhttp%3A%2F%2Fpolicing.oracle.com%2F%7DPolicing_spcQuery_spcIncidents_spcWF?wsdl?SWEExtSource=WebService&SWEExtCmd=Execute&UserName=AUSTINP&Password=AUSTINP
    Now it is pointing to this
    http://oa8023.us.oracle.com:7777/eai_enu/start.swe/#%7Bhttp%3A%2F%2Fpolicing.oracle.com%2F%7DPolicing_spcQuery_spcIncidents_spcWF?wsdl?SWEExtSource=WebService&SWEExtCmd=Execute&UserName=AUSTINP&Password=AUSTINP
    Give me some solution.

    See if this helps:
    http://kingsfleet.blogspot.co.uk/2008/12/controlling-what-service-proxy-uses-at.html

  • How to change the format in shipping point

    Hiii.. When we define shipping point, how to change the format from hours to days for entering loading time & pick pack time.
    Regards,
    Jay

    When you maintain working times in define shipping point, the time is maintained in HRS. This is called precise scheduling.
    If u do not mainatin the workin times field (blank) then the time is maintained in days. This is daily scheduling.
    Vishal

  • HT201274 How do I change the registration of my ipod? I bought a new ipod and want to register it under a different name.

    I just bought a new ipod and when I plugged it in to register it, the name of my son's ipod appeared. How do I change the registration so that I can make it my own?

    It sounds like yu either restored it from a backup of your son's iPod or you set it up via iTunes with iTunes signed into his account.
    I would go to Settings>General>Reset>Ease all content and settings and then set it up with your account. If you do it via iTunes make sure that iTunes is signed into your account.

  • How do you change the registration on an iPhone?

    I just bought an iPhone on eBay that still has 8 months of warranty.  How do I change the registration? Will the warranty stay with the phone?

    Ive tried that multiple time but never get the email confirmation.
    also does the applecare tie to the device too? Thanks again for all your help.
    i have any trouble i guess ill just approach another apple tech at another store. this one perticular store has always gave me a hard time.

  • How can i change the mouse pointer image?

    Hi friends!!
    It's possible to change the mouse pointer image in Swing?
    Thanks a lot.

    There's a setCursor() method on the frame component.

  • How do I change the import point?

    I'm a B-4.1 user, and have moved the root of my LR Database successfully. My 2007 database root shows as "2007 on Photodb2 (L:)" with a date directory structure ...\01\01 through ...\01\27 and ...\02\01 through \02\20. My problem is that all imports are now done at ...\2007\02\20, so the files get added with the directory structure of ...\2007\02\20\ filename. The import dialog has:
    "Copy to: L:\2007db\Managed Photos\2007\02\20"
    Any suggestions on how to change the "copy to" to L:\2007db\Managed Photos\?
    Jeff

    Straight Talk is not a supported carrier. You'll have to work it out with them.

  • How to change the OraSSO login link in webcache/load balance

    Hi
    we have 10gAsR1 installed as a Portal instance. We have 6-server
    load balancer => webcache as loadbalancer (listening port 80)
    Wb ch1 and wb ch2 => webcache (listening port 7777)
    portal1 and portal2 => Portal listening 7778
    infra =>Infrastruture with repository Portal/Oracle SSO (listening 7777)
    This set up is working fine for our intranet setup, now we need to open this for couple of external clients. Well initially we need to open on the load balancer server on port 80 for external team to access, it works fine when we make it publc access.
    Now when we need to make it SSO (siteminder) enables, when users click on login link it first goes oracle sso then it internally redirects the page to site minder sso.
    Well, I have noted that the sso server details are mentioned in global setting sso/oid details. Since we need to open this for external client we have to add a DNS entry for this so that we can allow its access over firewall..
    Now I have made DNS name change at my infrserver level, now I need to update the change at the load balancer server (where wheb chache is running).
    Any one know how to chang the URL at load balancer.
    I am struck at this point please suggest how should i proceed..
    Thanks,

    Extract from Personalization Guide - Page Footer - Personalization Considerations
    * If you wish to personalize the URL that points to the Privacy Statement for a page that displays a standard Copyright and Privacy (that is, its Auto Footer property is set to true), set the Scope to OA Footer, in the Choose Personalization Context page of the Personalization UI.
    * If you wish to personalize the URL that points to the Privacy Statement for a page that displays a custom Copyright and Privacy (that is, its Auto Footer property is set to false), set the Scope to Page in the Choose Personalization Context page of the Personalization UI. In the following Page Hierarchy Personalization page , identify and personalize the Privacy page element.

  • How to change the privacy statement link url

    I looked into the previous threads , could not find the answer to "Changing the privacy statement url to clients privacy statement url".
    I am talking about the privacy statement URL in the page that user see it as soon as user logs into the e-business suite.
    I have read the previous theads and developers guide regading how to show or hide this autofooter thing. but could not find any thing about how to change the one in the login page.I even looked ino personalization but could not find a place to change this url. please HELP.
    Another question is " is it ok to show privacy statement in just the first page and hide it in rest of the application pages?"
    Thanks
    karan

    Extract from Personalization Guide - Page Footer - Personalization Considerations
    * If you wish to personalize the URL that points to the Privacy Statement for a page that displays a standard Copyright and Privacy (that is, its Auto Footer property is set to true), set the Scope to OA Footer, in the Choose Personalization Context page of the Personalization UI.
    * If you wish to personalize the URL that points to the Privacy Statement for a page that displays a custom Copyright and Privacy (that is, its Auto Footer property is set to false), set the Scope to Page in the Choose Personalization Context page of the Personalization UI. In the following Page Hierarchy Personalization page , identify and personalize the Privacy page element.

  • How to change the default currency in CJ32 and CJ33

    Dear all,
    As required by the user, I want to know how to change the default currency from controlling area currency to object currency in TCODE CJ32 and CJ33. Currently, the controlling area currency will be defaulted in the field "Views in".
    Could any one help me? Points will be awarded.
    Thank you.
    Christina.
    Edited by: Virendra Pal on May 5, 2010 8:34 AM

    Hi Christiana ,
    Once you are in tcode CJ30 / CJ32 , Enter either Project definition or WBS element and this shall take you to the Budget screen and once you are here you can find a drop down with two options .One is Controlling are currency and the other one is Object currency.
    Since the Currency is set to Object currency in OPS9, System shall allow the budget values in Object currency and if the user wants to see the same values in Controlling are currency ,then the user needs to view the values in Controlling are currency using the drop down .
    Regards
    Judy

  • How to change the default structure when exporting data in CSV format?

    Hello,
    can some one tell us how to change the default structure in CRM when exporting lists in CSV format (with Option "Always use unformatted list format (CSV) for download" ? Because we want to add a new structure for our own -is it possible ?
    If it is possible where can we find these structure ? In the blueprint customizing ?
    Thank you very much,
    Christian

    There is a workaround to move from 1.5 version to the older 1.4 version. But this could be specific to the browser setting the JRE version.
    Excerpts from sun docs:
    However, a user can still run older versions. To do so, launch the Java Plug-in Control Panel for the older version, then (re)select the browser in the Browser tab.
    Example:
    Assume you are running on Microsoft Windows with Microsoft Internet Explorer, have first installed version 1.4.2, then version 5.0, and you want to run 1.4.2.
    Go to the j2re1.4.2\bin directory where JRE 1.4.2 was installed. On a Windows default installation, this would be here: C:\Program Files\Java\j2re1.4.2\bin
    Double-click the jpicpl32.exe file located there. It will launch the control panel for 1.4.2.
    Select the Browser tab. Microsoft Internet Explorer might still appear to be set (checked). However, when 5.0 was installed, the registration of the 1.4.2 JRE with Internet Explorer was overwritten by the 5.0 JRE.
    If Microsoft Internet Explorer is shown as checked, uncheck it and click Apply. You will see a confirmation dialog stating that browser settings have changed.
    Check Microsoft Internet Explorer and click Apply. You should see a confirmation dialog.
    Restart the browser. It should now use the 1.4.2 JRE for conventional APPLET tags.
    Details are here
    http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/jcp.html
    My system (Windows XP) has the version 1.5_09 set as the default. However i just installed JRE 1.5_06 and would like to revert back to _06 as the default JRE..
    Will update if i find more information

Maybe you are looking for