hard to follow the point at the top of the display list

Hey there.

All day yesterday I tried to find a way to do something and I finally gave! I hope you can help me!

I have a folder that contains all the code for a main menu. This code shows how to load the other as a file which initializes the code for general items that will be on the scene throughout the entire flash.

But when I initialize the code for one of the menu items when he clicks on I don't know how to get 2 of the elements from the code of scene elements to be at the top of the display list. Because, as the code for the menu item load the elements of two stages will cover the elements of this code and after loading his will open and show them things that are loaded from the menu item code.

If you do not understand quite what I said here pls let me know if I can explain in more detail.   I appreciate any help or instructions that you can give me!

As you know, we use to define the depths with swapDepths() within the AS2.

In AS3 the setChildIndex allows you to set the depths of your symbol (s).

send to back

setChildIndex(myMC,0);

bring to front

setChildIndex (myMC, numChildren - 1);

So if you have 3 clips (myMC1, myMC2 myMC3) and you want them to appear in this order of depth, simple call them in that order.

setChildIndex (myMC1, numChildren - 1);
setChildIndex (myMC2, numChildren - 1);
setChildIndex (myMC3, numChildren - 1);

I'm sure that you must use the setChildIndex() within the display object container class.

http://www.Adobe.com/LiveDocs/Flash/9.0/ActionScriptLangRefV3/Flash/display/DisplayObjectC ontainer.html#setChildIndex%28%29

I hope this helps?

Anyone else want to add to this answer more in detail?

Best,

Mark

Tags: Adobe Animate

Similar Questions

  • Is it possible to use the getObjectsUnderPoint of a DisplayObject that is not added to the display list?

    My situation:

    I have a DisplayObject (objA) added to the display list and a DisplayObjectContainer (objB) not added to the display list. When objA receives a MouseEvent.CLICK event, is it possible to use the localX and localY to the event of objA to get objects under the same point in objB?

    Sample:

    var objA:Sprite = new Sprite();

    objA.graphics.beginFill (0);

    objA.graphics.drawRect (0, 0, 100, 100);

    objA.graphics.endFill ();

    addChild (objA);

    var objB:Sprite = new Sprite();

    var childA:TextField = new TextField();

    childA.text = "This is the child.";

    objB.addChild (childA);

    objA.addEventListener (MouseEvent.CLICK, handlerClick);

    function handlerClick(e:MouseEvent):void {}

    var pt:Point = new Point (e.localX, e.localY);

    var objs:Array = objB.getObjectsUnderPoint (pt);

    trace (objs. Length);

    }

    so your test/trace environment can deliver it.

    Use the following code, publish your swf file and test the swf file in your standalone player (or publish a html and swf and test it in your browser).

    package {}

    import flash.display.Sprite;

    import flash.events.MouseEvent;

    to import flash.geom.Point;

    import flash.text.TextField;

    SerializableAttribute public class extends Sprite {Main2

    private var _objA:Sprite = new Sprite();

    private var _objB:Sprite = new Sprite();

    private var childA:TextField

    public void Main2() {}

    _objA.name = "a";

    _objA.Graphics.beginFill (0xdddddd);

    _objA.Graphics.drawRect (0, 0, 100, 100);

    _objA.Graphics.endFill ();

    addChild (_objA);

    _objB.name = 'B ';.

    _objB.Graphics.beginFill (0xdd0000);

    _objB.Graphics.drawRect (0, 0, 100, 100);

    _objB.Graphics.endFill ();

    _objA.addEventListener (MouseEvent.CLICK, handlerClick);

    Stéphane = new TextField();

    childA.name = 'tf ';

    _objA.addChild (childA);

    childA.multiline = true;

    }

    private void handlerClick(e:MouseEvent):void {}

    var pt:Point = new Point (e.localX, e.localY);

    var objs:Array = _objB.getObjectsUnderPoint (pt);

    childA.text = "";

    for (var i: int = 0; i

    childA.appendText(objs[i].name+"\n");

    }

    }

    }

    }

  • RemovePopUp method removes the object from the display list?

    I'm setting up an AIR application that uses several pop-up windows, and I get as much memory as possible windows pop up closed at each Garbage Collection.  Reading through forums / Articles / documentation, I see instances of object created by pop ups stay in memory (No GC would be) up to:

    -all references to the object are = null (cancelled)

    -all receivers on the object are removed (or are weakly referenced)

    -l' object is removed from the display list.

    My question is:

    Does

    PopUpManager.removePopUp (this);

    remove the object from the display list?

    I use PopUpManager.createPopUp () to instantiate a container to display mx:TitleWindow objects.

    The pop-up closed deletion function, however, I'm not sure if it is 'removed from the display list' completely.

    A simple answer is the best, what moves me in the direction of answering the question. (Also useful: How can I see the objects in the display list at a certain point during execution of the application?)

    Thank you all!

    He,

    Yes, removePopUp removes it from the display list.

    Alex Harui

    Flex SDK Developer

    Adobe Systems Inc..

    Blog: http://blogs.adobe.com/aharui

  • Simple class and the display list

    I have a very simple code for a class:

    package
    {
    import flash.text.TextField;
    import flash.display.Sprite;

    SerializableAttribute public class Greeter extends Sprite
    {
    public void Greeter()
    {
    var txtHello:TextField = new TextField();
    txtHello.text = "Hello World";
    trace ("HI");
    addChild (txtHello);
    }
    }
    }

    The above file is saved as Greeter.as say folder C:\test

    I then create a Fla file, named test_display.fla (recorded in C:\test) and its content is:

    import Greeter;
    var tt:Greeter = new Greeter();

    Now, the output window displays salvation because of the trace statement but should show the addChild method

    Hello World in the Flash movie, but it does not work. The only way to get Hello World to the Flash movie

    is to change the test_display.fla to:

    import Greeter;
    var tt:Greeter = new Greeter();

    addChild (tt);

    In other words, I have to use the method addChild twice (once in the Greeter.as and once in test_display.fla)

    to get the Hello World to be displayed in the Flash animation. Does anyone know why this is so?

    Because each DisplayObject must be explicitly added to the display list. Text field is on the display of the banner of host list and in order for him show that he has relatives (Greeter) should be added to the other display list-timeline in this case).

    In other words, it is insufficient to simply create an instance - it must be added via addChild. It begins to make more sense if you remember that not all classes are DisaplayObjects and can perform other that just display objects functions.

  • Help remove events on a part of the display list

    Hey all

    Basically, I'm looking for a 'switch' that I can use for valves of all events for a display object and all of its descendants in the Flash display list / scene graph.

    I have a display object with a good number of descendants who have various Auditors/managers MouseEvent assigned to them. I would like to be able to remove/disable all these events related to mouse (or just all types of events so it's easier) at some point in time without knowing the number of descendants or how much and what type of event listeners were recorded with each node.

    So apart from writing a method of removal of single event for each node and market then the list display, call this method for each node, how do I? Pixelation this object to a Bitmap object, and then exchange the two in the list view to get a version of 'static' with none of the managers is a work-around I don't really want to do either (sorry).

    any ideas?

    For mouse events, perhaps a combination of
    DisplayObjectContainer.mouseChildren and InteractiveObject.mouseEnabled

  • Access to the objects in the display list

    I have a scene with instances of bauble_mcs to this topic that are attached by the class of document on the main timeline (can someone tell me what the right term is here?  I don't know what I call the main timeline in AS3).

    I then instances of attached snow_mc of the same class.  Inside of the snow_mc I want to test to see if it's hitting all bauble_mcs but I don't know how!

    inside the snow_mc I am trying:

    {if (this.hitTestObject (this.parent.bauble_mc))}

    }

    flashing says:

    1119: access of property may be undefined bauble_mc through a reference with static type flash.display:DisplayObjectContainer.

    For your posting earlier I would have tried the following:

    {if (this.hitTestObject (MovieClip (this.parent) .bauble_mc)))}

  • I get a disk hard disk at the end of my slider and my tooth blue mouse and keyboard are inadmissible

    I have a Toshiba Tecra M7 tablet. It works with Windows XP Professional. It was working fine until yesterday and then the Blue Tooth keyboard and mouse becomes inadmissible. It works with the keyboard of the LT and pointing the finger, so the system is OK but the keyboard and mouse (the two blue tooth) do not work and I get what seems to be a drive leading the pointer?

    I also tried to use a hard wire on the USB mouse and it does not work either. I use a dock and a powered USB 4 port hub.

    Hi 1033whitney,
     
    -Did you of recent changes made to your computer before this problem?
     
    Try these methods in order:
    Method 1: If your USB port does not work, follow the steps listed in this article to resolve the problem:

    USB port may stop working after you remove or insert a USB device

    Method 2: Run the troubleshooter from the link given below and if that helps.

    Hardware devices not detected or does not

  • Access denied when using the docking station hard drive to read old hard drive from the laptop

    I had an HP computer with Windows XP Home Edition on which crashed and recently replaced him with another HP laptop with Windows 7. I had a docking station hard drive to recover the files from my old laptop and followed the steps listed in this question but am still encountering the same problem. I have thousands of pictures on this hard drive, can I get back them?

    Hello

    a: Please make sure that the computer used must have an administrator account and administrator account must be connected while giving permissions. Also, same administrator account should appear in the folder properties.

    b: First of all, we need to take ownership of the folder, select replace the replace the owner of subcontainers and objects .

    c: Then check if the above changes have taken effect.

    d: Then give all permissions.

    Hope this information helps.

  • In Windows Media Player 11, album art 'disappeared' the display of album content.

    I've lost the ability to see a "covers" album when in the (what I call) 'track view information of content"(found by selecting library-> library-> music-> artist, then album).

    ("Follow the display of the information content" is the view which lets you modify the columns that display track info for example of note, length, type and many other "choose columns)  In fact, under "Choose columns" the 'Album Art' box is grayed out.

    So, how can I get that back? Maybe I've changed something, but I have no idea.

    I'm running XP (SP3).

    Thanks in advance.

    Eric

    Must be something changes, I don't know what.

    I meant button just to the left of the search box, sorry.
    "JRosenfeld" <*** email="" address="" is="" removed="" for="" privacy="" ***="">writes in the new message: * e-mail address is removed from the privacy... *

    Check the display (button just to the right of the search box), click expanded tile

    writing in the new message: * e-mail address is removed from the privacy... *

    I've lost the ability to see a "covers" album when in the (what I call) 'track view information of content"(found by selecting library-> library-> music-> artist, then album).

    ("Follow the display of the information content" is the view which lets you modify the columns that display track info for example of note, length, type and many other "choose columns) In fact, under "Choose columns" the 'Album Art' box is grayed out.

    So, how can I get that back? Maybe I've changed something, but I have no idea.

    I'm running XP (SP3).

    Thanks in advance.

    Eric

    Must be something changes, I don't know what.

  • How can I get the 'Pocket List View' button? It is NOT in my bookmarks menu.

    I only have the "Save button in the Pocket". Cannot find the Pocket anywhere display list.

    Hello, see Pocket button is under the favorite button. You must click on the bookmark list. Which will bring you to the display list of Pocket

  • Extend the Windows desktop in the DISPLAY AREA?

    Cannot find or do not? Why? try using a different monitor and can not find how to switch the default monitor to a secondary monitor! Help!

    Hello

    You need to configure Windows display adapter to extend your desktop:

    Right click on the desktop and then click Properties.
    In the DisplayProperties dialog box, click the settings tab.
    Click the display list and select your external monitor. If you don't see more monitors listed, your hardware may not support Dualview. You can still use MaxiVista to set up a second computer as an additional screen, however.
    Select the extend my Windows desktop on this monitor option. Click on apply or OK.

    You can also make reference to: http://www.microsoft.com/windowsxp/using/setup/learnmore/northrup_multimon.mspx for more information.

  • Is it possible to lock the display on a PDF file for other users?

    I created a PDF form with an attachment. Is it possible to lock the display list is attached, so that when the form is sent to others, they will automatically see the attachments?

    Evergreen Environmental salvation,

    One option is to put on the first page of the PDF to view the attachments Panel:

    1. Choose file > properties.
    2. Click the initial view tab.
    3. Choose the attachments Panel and Page from the context menu of the Navigation tab.
    4. Click OK.

    Let us know how it works for you!

    Best,

    Sara

  • Most of the OAMessageChoice list

    Hello world

    I have a big problem with the display list of the choice of the message in the OPS, first the messagechoice empty sound, when a settings conclude of the PFR, the AM method fills the VO, then in the PR messagechoice with the VO asociates, but cams them problem when the load of choice of message as the 'select from' list without where clause... How can I load the messagechoice forcing the where clause
    Here is my code

    This is the code of the PFR

    This sound event to grab the parameter and save it in a global variable
    {if (PageContext.GetParameter (EVENT_PARAM). (Equals ("FAM"))}
    String cveFam = pageContext.getParameter ("IdCatFams");
    AM. TRANS = true;
    AM.fam = cveFam;

    }

    in the PR charge parameter then calls the method AM and asociate the choice of the message and the VO

    / * METHOD to populate the LIST of POPS (select drop-down list)
    */
    If (am.fam! = null & & am.trans! = false) {}
    JEM OAMessageStyledTextBean = (OAMessageStyledTextBean) webBean.findChildRecursive ("tituFamTX");
    String m = pageContext.getParameter ("NomDeFam");
    mje.setText (m);
    String cveFam = am.fam;
    am.invokeMethod ("cargarActivos", new Serializable [] {cveFam});
    Choice of OAMessageChoiceBean = (OAMessageChoiceBean) webBean.findChildRecursive ("popList");
    choice.setPickListCacheEnabled (false);
    choice.setPickListViewUsageName ("ActivosPopListVO1");
    choice.setListDisplayAttribute ("description");
    choice.setListValueAttribute ("ClaveActivo");

    }

    and the code for the AM method:
    / * Method load dropdown
    @param familiaID
    */
    {} public void cargarActivos (String familiaID)
    If (familiaID! = null)
    FAM = familiaID;
    getActivosPopListVO1 () .setWhereClause ("ID_CATALOGO_FAMILIAS =" + fam);
    getActivosPopListVO1 () .executeQuery ();
    }

    Published by: mentor on 26/08/2010 15:10

    Mentor,

    How you bind parameter to the query is not a standard approach.

    Use the code below in your AM method:

    {} public void cargarActivos (String familiaID)
    If (familiaID! = null)
    FAM = familiaID;
    getActivosPopListVO1 () .setWhereClause ("ID_CATALOGO_FAMILIAS =: 1");
    getActivosPopListVO1 () .setWhereClauseParams (null);
    getActivosPopListVO1 (.setWhereClauseParam(0,fam));
    getActivosPopListVO1 () .executeQuery ();
    }

    This should solve your problem.

    Kind regards
    Anand

  • I use MozBack to the top, when I followed the instructions of the wizard a file on my portable hard drive. I went back to Thunderbird and my Inbox was deleted

    I use MozBack to the top, when I followed the instructions of the wizard a backup file on my portable hard drive. I'm back to Thunderbird I found the content of my Inbox was deleted. Sent and deleted files have not been removed. I then returned to MozBackup and followed the instructions to restore the information from my Inbox, but it didn't happen.
    What I did wrong.

    as incredible as it may seem. MozBackup has nothing to do with Mozilla or Thunderbird. If you have any questions about mozbackup I don't really know where you're going.

  • How to make default in the address bar of research follows the selection of the top search bar right

    Hello

    at the time, my default firefox location bar search engine is dynamic, it always follows the preferred search engine on the right upper search bar

    but I clicked some ads in accident, and just go wrong

    my default address bar search engine always uses google, back then, it searches in wikipedia when I use the wikipedia on the top right search engine bar even when I'm just typing "firefox" to search in the address bar, it will be automatically redirected to wikipedia search for "firefox".

    TL; Dr., how can I make a default address bar search engine follows the search engine in the search bar?

    Thanks for your attention

    You can now move on to the beta version of Firefox which is Firefox23 already.

    Don't know exactly what your old configuration were able, but whatever happens and in the near future it must always be easy to change the right hand search bar to use the various search engines.

    At some point in the future there are possibilities the search address bar may be combined and there is also the possibility of a new system of Search-tab under development.

Maybe you are looking for

  • Cursor crazy

    I am a journalist and typing very quickly, usually using an Apple Mac.I have just started using a Toshiba netbook on the move and am pleased that it aside from the crazy jumping cursor.I will be typing in full skin only to discover that the cursor ju

  • Synchronize a wireless keyboard comfort 5000 for a new wireless dongle

    So I bought a package of wireless comfort keyboard/mouse 5000.  The mouse has gone wrong and Microsoft sent me a new mouse.  The dongle comes with the new mouse only works with the new mouse and dongle supplied with the package works only with the ke

  • Media Player 11.0.6002.18111 error

    My media player v11 on Vista home premium 32 bit will not start now, don't remember when exactly. The following message appears on the screen.The file wmploc.dll has a version number of 11.0.6002.18111 where 1.0.6002.18065 was expected. Windows media

  • After adding a subscriber to the CUCM, Sx20 Sip URI field empty cluster

    Hello After adding a subscriber to CUCM Cluster, all the restarted cluster devices, then sip uri field sx20 features seemed to "Null", simply enter the SIP registrar one by one for all devices sx20 IP.  Anyone else facing this problem? In my view, is

  • BlackBerry Smartphones LED questions!

    When I upgraded yesterday, I had problems trying to access the browser, and also, I stopped being the LED indication when I receive e-mails or text Messages.  I solved the problem of browser, however, does anyone know how I can fix the problem of LED