How can I make reference to the parent, without using _parent or _root?

I can't use the following in my ActionScript because of conflicts with the host application:

_level0

_root

_parent references

A pop-up window I have a button closure with an absolute reference:
closeBtn.onRelease = function () {}
unloadMovie ("_level0. Page_1.holderBox");
}
Is there another way to do this job without use _level0 or _parent?
I read that it is possible to use a global variable on the main timeline and ref, but cannot get that to work.

You may need to try several different approaches (it's what I would do), but you may be able to target just the owner directly using the variable global and not necessary to include the reference Page_1 with her...

section 1:

_Global.mcVar = null;

later...

_level0. Page_1.imgholder.image0_0.boxS.onRelease = function() {}

createEmptyMovieClip ("holderBox", getNextHighestDepth ());

holderBox.attachMovie ("boxSound", "boxSound_mc", 0);

_Global.mcVar = holderBox;

};

If this does not work, try to move in after every time holderBox is added in Page_1 and include Page_1 in the assignment as I showed earlier.

Tags: Adobe Animate

Similar Questions

  • How can I make reference to the parent object of a checkbox?

    I have a checkbox called P105_CBX, with 10 boxes. I have an onClick = "RunThisFunction (this) ' in the attributes of elements in HTML form for this object." When I click on one of the boxes, this function is triggered. An alert at the top of this function tells me that the argument passed to this function is something like P105_CBX_2, which indicates how box has been checked.

    I would LIKE to pass just the name parent of the object checkbox, P105_CBX, as the argument to this function, instead of the name of the box that was checked and I cannot quite understand how. I tried arguments such as this.container this.parentNode, this.parent, this.parents (), this.closest ('ul') and I've yet to find the magic word. After two hours of searching on Google, I'm turning to the experts.

    Thank you!

    Published by: Mark T. 17 March 2012 09:14

    Hello

    I couldn't reproduce your behavior. Maybe this is related to your prob? http://seanmonstar.com/post/707125202/parentNode-misbehavior-in-IE, but more likely, you have already seen it.

    In your code, you may also like to try the function $x_UpTill: http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/javascript_api.htm#CHDEGGGI

    function RunThisFunction (cbx) {}
    Alert ($x_UpTill(cbx,_'FIELDSET').id);
    }

  • How can I make Pages capitalize the first word in a sentence?

    How can I make Pages capitalize the first word in a sentence? The I phone t - it, the iPad does, why not not iMac using Pages capitalize the first word on a new sentence?

    Pages of IOS and IOS itself remain different implementations of Pages v5.6.1 for Mac and OS X. In any version of Pages v5, if there was an option to preferences in Pages ' 09, there is no auto-capitalisation function.

    See my previous post is launching an OS X App Store free application, which can be applied to auto-capitalisation to your Pages v5 documents.

  • Why I can't update my credit card payment information? It shows the error in the server. How can I make contact with the staff of Adobe?

    Why I can't update my credit card payment information? It shows the error in the server. How can I make contact with the staff of Adobe?Screen Shot 2016-08-29 at 9.18.44 PM.png

    Hi Purple % 20Lambs,

    Please contact Adobe support:Contact customer service

    * Be sure to stay connected with your Adobe ID before accessing the link above *.

    In case you can't reach Adobe support, please see:

    Contact the technical support FAQ: Impossible to reach support via the link "contact us".

  • I received my annual renewal notice is imminent. However, it does not say how much I pay. How can I make a decision to continue without this knowledge? Feels like a scam?

    I received my annual renewal notice is imminent. However, it does not say how much I pay. How can I make a decision to continue without this knowledge? Feels like a scam?

    As far as I know, prices have not changed, so it's what you paid the first year.

  • How can I access Siri on my iMac without using the icon?

    How can I access Siri on my iMac without using the icon?  Can I say "Hey Siri"?

    There is no option "Hey Siri" on a Mac because they do not have the necessary pickups. You must use the icon in the menu bar or Dock.

  • Icon of Yahoo disabled of blackBerry Smartphones. How can I get rid of the icon without hide it?

    Very well done on my BB before I got my job and my Yahoo put email in place.  Later, I have disabled Yahoo mail and I remember he was difficult to understand how to do it and remove the icon.  I thought about it however.

    Now I have synced my new 8900 and the Yahoo icon is there yet.  He is not receiving or sending of email which is good, but how can I get rid of the icon without having to hide it?  I want that he gone forever!

    Thank you!

    You must remove this account from your carrier's BIS site yahoo email:

    http://www.BlackBerryFAQ.com/index.php/How_to_add_/_delete_email_addresses

    Good luck.

  • How can I download adobe first 11 items without using the DVD?

    How can I download Adobe Premiere elements 11 without using the installer from the DVD

    PE 10, 11, 12, 13 - https://helpx.adobe.com/premiere-elements/kb/premiere-elements-downloads.html

    You can also download the demo version of the software through the page linked below and then use your current serial number to activate it.

    Don't forget to follow the steps described in the Note: very important Instructions in the section on the pages of this site download and have cookies turned on in your browser, otherwise the download will not work correctly.

    Photoshop/Premiere Elements 11: l http://prodesigntools.com/photoshop-elements-11-direct-download-links-pse-premiere-pre.htm

  • How can I download software Adobe, like Dreamweaver, without use of cloud to Adobe?

    Greetings,

    How can I download software Adobe, like Dreamweaver, without using cloud Adobe?. I need the application .exe to install this software on a PC, which is not an Internet connection.

    Hi Anderson,

    You can try to download Dreamweaver CC among the direct download links available at: http://prodesigntools.com/adobe-cc-direct-download-links.html

    Please make sure that you follow the steps mentioned on the page before you start the download.

    Kind regards

    Rave

  • How can I make characters follow the mouse?

    Hello, I am designing a new game. I wanted to add the feature to have the character be controlled mouse. I tried different ways, but none of them does not seem to work. How can I do for where the character following the mouse at a constant speed?

    package

    {

    import flash.display.Stage;

    import flash.events. *.

    import flash.ui.Keyboard;

    import flash.display.MovieClip;

    SerializableAttribute public class extends MovieClip Hero

    {

    public var stageRef:Stage;

    public var health: Number = 6;

    public var speed: number = 2;

    public var leftPressed:Boolean = false;

    public var rightPressed:Boolean = false;

    public var upPressed:Boolean = false;

    public var downPressed:Boolean = false;

    public void Hero()

    {

    stage.addEventListener (KeyboardEvent.KEY_DOWN, keyPressed);

    stage.addEventListener (Event.ENTER_FRAME, loop, false, 0, true);

    stage.addEventListener (KeyboardEvent.KEY_UP, keyReleased);

    }

    public void loop(e:Event):void

    {

    {if (leftPressed)}

    x = speed;

    } else {if (rightPressed)

    Speed x +=;

    }

    {if (upPressed)}

    y = speed;

    } else {if (downPressed)

    y += speed;

    }

    }

    public void keyPressed(event:KeyboardEvent):void

    {

    Switch (Event.keycode)

    {

    case Keyboard.LEFT:

    leftPressed = true;

    break;

    case Keyboard.RIGHT:

    rightPressed = true;

    break;

    case Keyboard.UP:

    upPressed = true;

    break;

    case Keyboard.DOWN:

    downPressed = true;

    break;

    }

    }

    public void keyReleased(event:KeyboardEvent):void

    {

    if(Event.keycode == Keyboard.Left)

    {

    leftPressed = false;

    }

    If (event.keyCode is Keyboard.RIGHT)

    {

    rightPressed = false;

    }

    If (event.keyCode is Keyboard.UP)

    {

    upPressed = false;

    }

    If (event.keyCode is Keyboard.DOWN)

    {

    downPressed = false;

    }

    }

    }

    }

    :

    package

    {

    import flash.display.Stage;

    import flash.events. *.

    import flash.display.MovieClip;

    SerializableAttribute public class extends MovieClip Hero

    {

    public var stageRef:Stage;

    public var health: Number = 6;

    public var speed: number = 2;

    private var angle: Number;

    public void Hero()

    {

    stage.addEventListener (Event.ENTER_FRAME, loop, false, 0, true);

    }

    public void loop(e:Event):void

    {

    angle = Math.atan2 (x-MouseX, MouseY-y);

    x = speed * Math.cos (angle);

    y = speed * Math.sin (angle);

    If (Math.ABS (x-MouseX) + Math.ABS (y-MouseY)<>

    x = mouseX;

    y = mouseY;

    }

    }

    }

    }

  • How can I make maximized window the default size

    I have a notebook file which amounts to about half the size of the full window, enlarged. I tried "stretching" to the maximum and then close the file. However, it does not. How can I do optimize by default when I open it?

    Hello

    You can try to manually stretch it corners to save size. The forum of Windows would be useful.

  • How can I make reference to a linear number chart?

    Hello

    I'm trying to do is switch the reference to the values in the x-axis as the lines themselves.

    See screenshot.

    Basically I want, it's my x-axis designate the year and lines to refer to the race. I tried to move the rows with the columns, within my reference table and another graphic line of the Fund but then it just kept using the year as a reference for the line.

    Can anyone help?

    Much appreciated!

    AW

    Without seeing your data table, it's hard to visualize what you're trying to do, but you have experienced with this?

    Get you to it by clicking on the chart, and then edit references and look down on the left.

    SG

  • How can I make reference to a context menu in 2010?

    I try to use a context menu to change the values in a tree control in LabVIEW 2010 and can not find a way to refer to this menu for the "Set Menu Item Info" feature. I wish I could 'grayed out' of the menu items based on the data selected in the tree control. I can access the item (required) tag, but can't find any way to access the reference of the menu (also mandatory). Can anyone help?

    Thank you.

    Chuck

    Oops, never mind. It turns out that I was looking for in the event of incorrect menu for reference.

  • How can I get rid of the parent login screen that keeps appearing on my son's computer?

    He accepts my login information but after some time he comes again, saying: "ask your Parent to sign in so control parental can get the last parameters.

    the program sees that I do to the green list no matter, that I am enrolled in or no updates.

    OS: Windows 7 x 64,
    security settings: only green list
    Thank you

    Hello

    To isolate the cause of this problem, can you please answer the following questions:

    -What is this error began to occur?
    -Have there been changes to the client of Windows Live family safety before this error?
    -Can you confirm please if you use the latest version of the Windows Live Family Safety customer? To check the version of the Windows Live Family Safety client you use, kindly sign parental control with the parent account, once connected client, click the icon of questionmark located at the top right of the customer and select On Family Safety.
    The current version is 15.4.3555.0308
    -Have you updated your client to get the latest settings that you changed on the Family Safety website?

    Thank you!

  • Drive on which Windows XP to reside is always labeled as a system drive. How can I make one of the other disks that has Vista or 7 that the new system?

    Change the system drive

    I'll try to explain my situation better than I can.

    My situation is that when I used to have XP installed, I had installed the only drive I had back then which is now the drive D, for a long time, so I have Windows Vista Home Premium 32-bit, Windows 7 Home Premium 32 bit installed on two different discs, Vista is installed on drive C and 7 is installed on drive E , but I don't have XP that I had managed to get rid of it.

    My problem is that the drive on which Windows XP to reside has always left this disc marked as system in the disk management window, and I was wondering how to do that one of the other readers who has Vista or 7 that the new system?

    I already managed to change the startup disk from drive where Vista is installed to, it's just that I need to change the disk that is marked as system to another drive, such as D drive begins to show signs that it comes at the end of his life and I would like to move the startup folder as well as the other files needed to start on the other.

    I assume that you installed Windows XP 1, then Vista, 7 (these 2 OS not in order)?

    And Vista and 7 was by all means upgrade installation?

    Since originally, that you have installed Windows XP on drive D, it should be marked as 'system' and retains so the tag 'system '.

    The volume of the 'system' should be identified as the first primary partition active. It may or may not have the files it contains.

    The fact that the system considers "system drive" does not mean that there are files that it contains.

    Now, you want to delete the existing volume and create a new volume. Needs to be done outside the facility.
    When you start the cd or DVD to start the installation list us readers, if you remove the volume the volume drive letter is already booked, so you get the next available drive letter, do not re-use the deleted volume drive letter.

    If he removed during installation and then recreated as a new volume (formatting does not remove the volume, you need to delete the volume and recreate it)

    -[Posted by Darrell Gorter [MSFT] in another forum.]

    Try to format the XP partition and change the drive letter.

Maybe you are looking for