MovieClip, addChild and Position

Hi!! I'm having a problem with a MovieClip...
I have 2 different MovieClips... that I'm putting into another MC (mc3)..... the new MC's position is x=0 y=0.... I assume this is default....
what I'm trying to do is change the position of my MC.... but I want the other 2 movies inside (mc and mc2) to be on x=0 and y=0 inside the new movieclip....
I hope it's not too confusing.... I'm doing this because I'm trying to save the movie as a jpg.... and the only way i can see the file complete is when I set the size of all the stage (1024 x 768).... I only want to save the mc3....
here's my code.... hope you can help me
var mc3:MovieClip=new MovieClip();
addChild(mc3)
mc3.addChild(mc)
mc3.addChild(mc2)
mc3.x=292;
mc3.y=126;
//this is what's happening when i save the file

Thanks but no, that's not doing anything.... it's moving the contents....
what I'm doing is a game of drag and drop, where children can choose an undefined number of houses and buildings, and arrange them over a city... that's done.... the background and houses are inside mc and the buidings are inside mc2.... I'm working  like that 'cause I must be able to erase everything on each step of the way... erase houses.... then erase buildings..... finally, when everything is over, I have to be able to save the map with the houses and buildings as a jpg file... and also I have to be able to print the map..... that's why I put both mcs inside a new one (mc3) to deal with only one movieclip............  the print part is going fine.... but I can't make the jpg to be just the map.... in order to see the map complete I have to save the file with a size of 1024 x 768... and the idea is to save a jpg with just the map......
so I was wondering if there is a way to change the position of the movieclips inside my new movieclip.... or any other way I can fix this....
thanks!!!

Similar Messages

  • HTML5 Canvas: addChild and position

    Hey Guys
    I have an item on the stage called 'square1', I have added a symbol from the library and given it the name 'circle1'.
    I wish to position circle1 at the exact location of square1, my question is - how would I go about doing that?
    Thanks

    Knowing JavaScript is going to be essential for you to use Canvas. If you really don't want to get your hands into the code you should do your best with the timeline.
    If you're ready to take the canvas plunge then JavaScript has to become a tool for you. The second page of what I linked would show you that for almost every bit of ActionScript you might be used to, there's a translation over to JavaScript that's necessary. So every time you go to do something you're going to be right back here.
    The best option just might be for you to take a look at EaselJS. There's lots of very simple demos that can get you started with HTML5/Canvas and will give you answers you want in Flash. Take a look:
    CreateJS | A suite of Javascript libraries and tools designed for working with HTML5

  • Set specific size and position of preloader's empty movieclip on main stage

    hey, just wondering if it's possible to script an external preloader's empty movie clip to be of a specific size and position on the main stage? here's the script i've got for the preloader so far:
    var my_pb:mx.controls.ProgressBar;
    my_pb.mode = "manual";
    this.createEmptyMovieClip("Portfolio", 999);
    var my_mcl:MovieClipLoader = new MovieClipLoader();
    var mclListener:Object = new Object();
    mclListener.onLoadStart = function(target_mc:MovieClip):Void {
        my_pb.label = "LOADING: " + target_mc._name;
    mclListener.onLoadProgress = function(target_mc:MovieClip, numBytesLoaded:Number, numBytesTotal:Number):Void {
        var pctLoaded:Number = Math.ceil(100 * (numBytesLoaded / numBytesTotal));
        my_pb.setProgress(numBytesLoaded, numBytesTotal);
    my_mcl.addListener(mclListener);
    my_mcl.loadClip("Creative-Outrage_External.swf", Portfolio);
    thanks in advance.

    i could load the movies that way or if i tell my main movie to load the same preloader in an empty movieclip, instead of on the main timeline. however, this way it all looks great, but the buttons on the main timeline won't respond to user events from the external swfs.

  • Difference between addChild and internal movieclip

    Hi all,
    What is the difference bettween addChild and the movieclip which is in the movieclip.
    we can get those instance from getChildAt() but
    as per the internal movieclip we can get instance from "mc.mcInternal".
    But when i addChild in "mc" we unable to get that instance from this method "mc.mcInternal".
    what is the diffecenct between addChild and internal movieclip.
    Thanks in Advance
    flashgeeks.

    When you create child movieclips inside a parent movieclip, Flash Pro automatically declares member variables for them, so you can access them by "mc.mcInternal". If you add child to a movieclip at runtime, member variables are no longer declared automatically.
    You either declare member variable yourself (public var myMc:MovieClip;) or you can always access it by myParentMc.getChildByName("myChildMcName");
    Otherwise, there's no difference between the two. Only one more thing to keep in mind: If you put movieclip into another movieclip, you control its z-orderby its layer. When you add child by addChild() method, children are put into "depths", not layers anymore. The lowest depth is just above the highest layer. If you want to addChild() to a specific layer, you have to create an empty movieClip (a holder) in Flash Pro, put it in desired layer and then call myHolder.addChild(childMc).

  • Need help loading and positioning a swf into a swf

    This is the swf  I'm trying to load.
    These actions load and position a small simple swf just fine and the trace in the onLoadProgress function indicates that it loads completely
    but I can't see it.  What am I doing wrong?
    this.createEmptyMovieClip("container_mc", this.getNextHighestDepth());
    var my_listener:Object = new Object();
    my_listener.onLoadComplete = function(target_mc:MovieClip) {
    target_mc._x = 150;
    target_mc._y = 100;
    my_listener.onLoadProgress = function(target_mc:MovieClip) {
    trace(target_mc.getBytesLoaded() + " out of " + target_mc.getBytesTotal());
    var my_loader:MovieClipLoader = new MovieClipLoader();
    my_loader.addListener(my_listener);
    //my_loader.loadClip("little.swf", container_mc);
    my_loader.loadClip("cam01.swf", container_mc);

    do you see a rotated swf if you use:
    this.createEmptyMovieClip("container_mc", 1);
    var my_listener:Object = new Object();
    my_listener.onLoadInit = function(target_mc:MovieClip) {
    target_mc._x = 150;
    target_mc._y = 100;
    target_mc._rotation = 22;
    var my_loader:MovieClipLoader = new MovieClipLoader();
    my_loader.addListener(my_listener);
    my_loader.loadClip("cam01.swf", container_mc);
    if yes, either:
    1.  you are repositioning your swf and for some reason don't recognize that or
    2.  you're changing container_mc or one of its parents _x,_y properties elsewhere.

  • AddChild and removeChild with MouseEvent

    Hello, I am a newby at AS3. I need help with addChild and removeChild.
    I want to make a two buttons one addChild and other removeChild . Friend helped me a little bit, but I didnt uderstand the script ;]
    Here is the example script which my friend gave to me. In other words I want to make a button that attached hair and the other that removes.
    Should I make a separete custom class for Hair? And if do, can someone help? :]
    ActionScript Code:
    public function changeHairs (newHair: Hair): Hair
    Face.removeChild (oldHairs);
    oldHairs = newHair;
    Face.addChild (newHair);
    newHair return;
    Or modify this code. I know how to change text, but dont know how to change objects
    ActionScript Code:
    package  {
        import flash.display.MovieClip;
        import Button;
        import flash.text.TextField;
        import flash.events.MouseEvent;
        public class Faces2 extends MovieClip
            public var arr:Array = new Array("a1","a2","a3");
            trace("aab");
            public var txt:TextField = new TextField()
            public var btnBack:Button = new Button();
            public var btnFwd:Button = new Button();
            public var arrPos:Number = 0;
            public function Faces2()
                setupInterface();
                setupData(arrPos);
            public function setupInterface():void
                btnBack.x = 100; btnBack.y = 10;
                btnFwd.x = 200; btnFwd.y = 10;
                btnBack.addEventListener(MouseEvent.CLICK, back);
                btnFwd.addEventListener(MouseEvent.CLICK, fwd);
                addChild(btnBack);
                addChild(btnFwd);
                txt.textColor = 0xFF0000;
                txt.width = 300;
                txt.border = true;
                txt.x = 100; txt.y = 100;
                addChild(txt)
            public function fwd(evt:MouseEvent):void
                arrPos ++;
                if(arrPos >= arr.length)
                    arrPos = 0;
                setupData(arrPos);
            public function back(evt:MouseEvent):void
                arrPos --;
                if(arrPos < 0)
                    arrPos = arr.length - 1;
                setupData(arrPos);
            public function setupData(pos:Number):void
                txt.text = arr[pos];
    P.S. sorry for my bad english

    did you create your hair movieclip and assign it a class?

  • Object Size and Position values not being retained

    Hi,
           I'm trying to set the size and position of a picture object in a report. This logo, should appear on the top right corner of the report.
    The margins of the report are Left - .79 in, Right - 0.79 in, Top - 0.79 in and Bottom - 0.39 in.
    The size of the picture object should be 1.574 x 0.79 inches.
    I have ensured that File -> Page Setup -> dimensions are in INCHES.
    I right click the logo and select 'Size and Position'.
    I set 'Y' (distance between top of object and top margin) = 0. This is to perfectly align the object with the top margin.
    Now, i set the height of the object = 0.79 inches. Ok the dialog and close.
    The strange thing happening is, when i re-open the size and position dialog, i see that the values i set are not being retained.
    0.79 becomes 0.810
    and
    0 become -0.010.
    What am i doing wrong here? How can i make sure the values i specify in the size and position dialog are  retained.
    Thanks.

    Ensure File | Options | Layout tab has the following UNMARKED!!!!
    Design View
      Guidelines
      Grid
    Preview
      Guidelines
      Grid
    Ensure that "Snap to Grid" is turned off.
    Make your grid size larger (.5 inches for example)
    What is occurring (I suspect) is that your objects are snapping to the grid - thus changing the position and possibly size due to the Snap to Grid being turned on.

  • Can you change the units used for size and position in layout editor?

    Hello,
    In Aperture 3.4, does anyone know if you can change the units used for size and position in layout editor?  The page is set in inches, but the image size and position are given in centimetres and I would prefer to work all in inches to create custom layouts.  I can't see any way to change this.  If anyone knows how it would be much appreciated.  Thanks!

    Aperture uses the unit settings defined in the System Preferences.  Set the "Measurement Units" in the "Region" tab of the "Language & Text" preferences to "US"; the Aperture will display the Size & Position in inches, if it is the "Book" layout manager you are asking about.
    Merry Christmas!
    Léonie

  • Is there a way to remove the size and position readout when moving Lines in Keynote?

    When moving the endpoints of lines while creating a presentation, a size and position readout appears on the screen. This obscures details below it, often making it difficult to precisely position a line. Is there a way of disabling this? The option in Preferences for disabling this readout for objects does not work for lines. Is this a bug, or am I missing something?

    sberman wrote:
    I'm not completely sure I understand, but ...
    Might Settings > General > Accessibility > Reduce Motion = "On" do what the customer wants?
    I will tell him about that, but I don't think that would be it if that is related to animation.
    We're talking about the wallpaper background that get blurry during the phone screens like http://www.tekrevue.com/wp-content/uploads/2013/09/20130923_ios7emergencycallfla w.jpg (left side) and http://i.i.cbsi.com/cnwk.1d/i/tim2/2013/09/20/ChangingYourTheme.png ... You can see there are background images that got blurred out.

  • Error while assigning the user to orgunit and position

    Hi,
    We are having the below issue :
    1.       Obtain the HR master record (P Ids) created by interface - ECC
    2.       Assign a valid user to this HR master record -ECC
    3.       Do the position/Org assignment against this P Id or personnel master record - ECC
    4.       Transfer the Org Id, then the position ID and then the personnel master ID (P Id) to SRM u2013 ECC
    5.       Check if the user is in SYNC in SRM  - Ideally he should inherit the mandatory parameters from the above Orgs in the structure without which he shall not be able to shop in SRM u2013 step executed in SRM
    Please let us know if this process is as per the expectation.
    If so, we are ending up with error in the third step where the assignment is not allowed since the personnel master record is created with prior date than the position and the Org units.
    Actually we are getting the idoc with user alone from other system, org and position ids are blank. So we are assigning the user in the system and we are getting above error.
    Is this the correct process to bring the users alone into the system and doing the position/organization assignment in ECC now?
    Or the Idoc comes with this data as well? 
    Regards
    Venkatesh P
    Edited by: Venkatesh Padarti on Mar 5, 2012 5:33 AM

    Thank you vikas for your reply.
    So we should bring all the data in the idoc(O,S,P). Even though O, S are present in the receiving sytem?
    Regards
    Venkatesh P

  • Any idea while updating job and position --I am getting the following error

    Hi, I am trying to update job and position to the existing employee but getting the following error
    Error report:
    ORA-20001: The primary key specified is invalid
    Cause: The primary key values specified are invalid and do not exist in the schema.
    Action: Check the primary key values before attempting to carry out the operation again.
    ORA-06512: at "APPS.HR_ASSIGNMENT_API", line 16616
    ORA-06512: at line 35
    Code which I am using is as below
    declare
    l_assignment_id number;
    l_object_version_number number;
    l_special_ceiling_step_id number;
    LC_EFFECTIVE_END_DATE DATE;
    LC_EFFECTIVE_START_DATE DATE;
    LC_DATETRACK_UPDATE_MODE VARCHAR2(100);
    LC_GROUP_NAME VARCHAR2(1000);
    LC_CONCATENATED_SEGMENTS VARCHAR2(1000);
    L_ENTRIES_CHANGED_WARNING VARCHAR2(1000);
    LC_GSP_POST_PROCESS_WARNING VARCHAR2(1000):=NULL;
    LC_PEOPLE_GROUP_ID NUMBER:=NULL;
    LC_OBJECT_VERSION_NUMBER NUMBER:=NULL;
    LC_SOFT_CODING_KEYFLEX_ID NUMBER:=NULL;
    LC_SPECIAL_CEILING_STEP_ID NUMBER:=NULL;
    LC_GRADE_ID NUMBER:=NULL;
    LC_OTHER_MANAGER_WARNING BOOLEAN:=NULL;
    LC_SPP_DELETE_WARNING BOOLEAN:=NULL;
    LC_ORG_NOW_NO_MANAGER_WARNING BOOLEAN:=NULL;
    LCTAX_DISTRICT_CHANGED_WARNING BOOLEAN:=NULL;
    L_EMP_START_DATE DATE:=NULL;
    J_LOCATION_ID NUMBER;
    J_PAY_BASIS_ID NUMBER;
    J_SEGMENT5 number;
    J_SEGMENT3 number;
    J_SEGMENT2 number;
    J_GRADE_ID number;
    J_PAYROLL_ID number;
    begin
    l_assignment_id := 214;
    hr_assignment_api.update_emp_asg_criteria
    P_VALIDATE => FALSE
    ,P_EFFECTIVE_DATE => TRUNC(sysdate)
    ,P_DATETRACK_UPDATE_MODE => LC_DATETRACK_UPDATE_MODE
    ,P_ASSIGNMENT_ID => l_assignment_id
    ,P_GRADE_ID => J_GRADE_ID
    ,P_POSITION_ID => 5062
    ,P_JOB_ID => 3063
    ,P_PAYROLL_ID => J_PAYROLL_ID
    ,P_LOCATION_ID => 142--J_LOCATION_ID
    ,P_ORGANIZATION_ID => 81
    ,P_PAY_BASIS_ID => J_PAY_BASIS_ID
    ,p_segment5 => J_SEGMENT5
    ,p_segment2 => J_SEGMENT2
    ,p_segment3 => J_SEGMENT3
    ,P_OBJECT_VERSION_NUMBER => LC_OBJECT_VERSION_NUMBER
    ,P_SPECIAL_CEILING_STEP_ID => LC_SPECIAL_CEILING_STEP_ID
    ,P_PEOPLE_GROUP_ID => LC_PEOPLE_GROUP_ID
    ,P_SOFT_CODING_KEYFLEX_ID => LC_SOFT_CODING_KEYFLEX_ID
    ,P_GROUP_NAME => LC_GROUP_NAME
    ,P_EFFECTIVE_START_DATE => LC_EFFECTIVE_START_DATE
    ,P_EFFECTIVE_END_DATE => LC_EFFECTIVE_END_DATE
    ,P_ORG_NOW_NO_MANAGER_WARNING => LC_ORG_NOW_NO_MANAGER_WARNING
    ,P_OTHER_MANAGER_WARNING => LC_OTHER_MANAGER_WARNING
    ,P_SPP_DELETE_WARNING => LC_SPP_DELETE_WARNING
    ,P_ENTRIES_CHANGED_WARNING => L_ENTRIES_CHANGED_WARNING
    ,P_TAX_DISTRICT_CHANGED_WARNING => LCTAX_DISTRICT_CHANGED_WARNING
    ,P_CONCATENATED_SEGMENTS => LC_CONCATENATED_SEGMENTS
    ,P_GSP_POST_PROCESS_WARNING => LC_GSP_POST_PROCESS_WARNING);
    end;
    Thanks in advance
    Rajini

    Please post the details of the application release, database version and OS.
    What HRMS patchset you are on?
    Please see if these docs help.
    Getting "ORA-20001: The primary key specified is invalid" Error Using HR_ASSIGNMENT_API.UPDATE_EMP_ASG_CRITERIA API [ID 737145.1]
    Hr_assignment_api.Update_emp_asg_criteria Gives Ora-20001, Ora-06512 [ID 334491.1]
    Thanks,
    Hussein

  • Creating a new job and position prompts customizing request...

    Dear All,
            I created a Job and Position through PP01 transaction. I am facing 2 issues while doing so...
    1. System prompts for Customizing request when i try to save the new entry.
        What table/settings do i need to maintain for turning of the customizing request promptings.
    2. Once i save the entries(after entering some dummy customizing requests), when i check the
        HRP1000 table for the new jobs and positions... The table entry shows 2 records for each Job and     
        position. One entry with Plan version '.:' and another with active Plan version '1'.
        I need to have just one entry in HRP1000 table for each job/position with ACTIVE plan version.
       I checked T77S0 table, it has active plan version maintained against the PLOGI-PLOGI entry.
       Please let me know what table i need to maintain to handle my requirement.
    Regards
    Nanda

    Hi Nanda,
    When you create new job or position in sandbox system it will not ask for the request number,since you generally dont transport the objects from sandbox to test system.
    When you create a new job or position in development system, it will always ask for request number. This is because, in most of the cases, you need to transport the job and position to test system and then to production system.
    Without a customizing request  you wont be able to transport those changes to next system.
    Thanks,
    Supriya.

  • I've recently messed up my Mac OS X Lion by deleting Aperture, but I need to get my data out of the computer. And by the way, I've got an important project in Final Cut Pro X. Is there any way I can back it up (including fxs and positions of the clip) ?

    Hello everyone
    I've recently messed up my Mac OS X Lion by deleting Aperture, but I need to get my data out of the computer. I've tried to repair it using DU, but it said I needed to backup all my data and reinstall the OS. How do I backup my data to an external drive?
    And by the way, I've got an important project in Final Cut Pro X. Is there any way I can back it up (including fxs and positions of the clip) ?
    Hope you guys can help me!

    You need to back up 2 folders, Final Cut Events and Final Cut Projects which by default are located on your Movies Folder. You can always check by clicking on a clip inside Fianl Cut X and selecting Show in Finder in the contextual menu for the selected clip.

  • Extending the End Date of Relationship Org. Unit and Position

    Hi All,
    Please help me below.
    Problem: The end date for the relationship between org. unit and position should be set back to 31.12.9999. It was accidentally been set to 31.03.9999 and results to two records in infotype 0001, which the wrong record should be deleted.
    This can only be deleted by changing the relationship end date in PO13 but unfortunately, the user doesn't have any access to this transaction.
    Request: Can you explain to me on how the end date can be change in transaction PPOME or PPOM_OLD as these are the only transactions the user has an access. I'd already explored these transactions but I can't find on how it should be deleted here.
    Thanks!

    Hi Raju,
    Thanks for this information. This was a very helpful answer. But I only need to extend the end date of a particular infotype 0001 record of a particular employee. I think the report will extend all of the records of all the employees in the system. I can't find any parameter in the report wherein I can set the employee number I wish to extend the end date.
    Thanks!

  • Aarrrghh - can't find image size and position in captivate 8!

    I was using Captivate 8 and it was under a tab in properties (don't remember the name of the "sub-tab").
    Now, I'm using a newly downloaded version and cannot find size and position (x, y, width, length, etc.).
    This should NOT be so hard
    Any suggestions?

    Totally agree, don't like the UI change neither. One of the reasons I'm happy to know all moving and resizing shortcuts by heart, they still work in CP8. But wouldn't it be wonderful to have rulers?
    Shortcut Keys: Moving and Resizing Objects - Captivate blog
    It is not as simple neither, because it is in a different location for a normal and for a responsive project.
    For the normal project it is under the Options tab, for responsive projects you need the Position panel, both for Size and Location.

Maybe you are looking for

  • RFC Destination Tables

    Hello, Which are the table where I can find the RFC Destination with the Logical system names from SRM to R3  and R3 to SRM.

  • Click on an Image to see the .flv in popup.

    Hi, I have done 90% of this project. All I want now is to swap image with .flv. In the project I have 9 pictures. When I click on either of them, the big picture opens in the pop up window and closes up when I click on it. What I want it to click on

  • Down Payment Posting

    Help On this please. 1. Billing plan is set up in the sales order 2. Sales Order is saved 3. VF01- created the down payment request 4. Posted Down Payment F-39 5. In the sales order  document flow- shows accounting document generated and cleared Ques

  • Clone, spot healing tool, content aware will not work on 11 or 12

    The following tools will not work on PSE 11 or 12: clone, spot healing, content aware. Using 3 yr old iMac with latest OS. Same problem on Mac Book. I must be something wrong.

  • RFC Vs Webservice

    In R/3 if a Function Module needs to be available for the other Applications then I am declaring that as an Remote Enabled Function and then it becomes accessible from the Remote Applications. How can I convert this Function Module in R/3 as an Web S