Setting Depth of MenuComponent

Hi All,
I am having trouble with the monu component - specifically
with controlling its depth. From the documentation my assumption is
that the depth is determined by the MovieClip that the menu is
attached to - however this does not seem to be the case.
What am i missing, how does one control the depth of the
MenuComponent?
Regards, Neil

No. PDFs always render in front of everything else.

Similar Messages

  • Setting Depth of PDF displayed in HTMLLoader

    Is there anyway to set the depth of the HTMLLoader that is displaying a PDF in my air application?
    Right now the PDF seems to be on top of everything.
    Thanks.

    No. PDFs always render in front of everything else.

  • Setting depth of movie clips

    I have 4 movie clips on the stage. They are named logo1,
    logo2, logo3, logo4. I have them set out cascading. So the only
    clip that is fully visible is the front clip but the top of the
    other clips can still be seen. When a user clicks on one of the
    back clips i want it to appear in front of the clip that is
    currently at the front.
    Can someone help me out?
    Thanks.

    You can use swapDepths() (look it up in the Help Reference
    for more info - it's a movieclip method). Putting something like
    this in each clips onPress handler, or whatever you are using....
    this.swapDepths(this._parent.getNextHighestDepth()-1);
    However, if you have components, something, I think
    "focusManger" is created at the highest possible non-reserved depth
    and things can get kinda funny... can't remember all the details
    exactly.

  • How To Set Depth For Certain Layers

    I'm trying to create a menu for my game, it is a tile-based game, and it draws my tile game ontop of everything. So how can I make my menu layer be above the tile game?
    I just want to set its depth so its above the tiles.

    If you look up swapDepths in the AS2 documentation (or even Google it) you will find the details of how it works explained as well as examples of how to use it.  The documentation is one of the best tools you have available to you.
    Since I don't know the details of what you are using, it might be something like this, though both pieces have to exist when it executes...
    onClipEvent (load){  
      menuName.swapDepths(gameName);

  • Depth in Drag and Drop

    Hi!
    I was wondering if there are any ways to put an object in
    front or behind another based on its position in relation to the
    other one, to create the illusion that there is depth. This would
    be used in a file to create a 'room', where the x and y positions
    of the objects would be saved in a database. That bit I can do. I
    just need to know how to create the illusion of depth within the
    'room'.
    I'd like this in isometric view, please.
    Thanks in advance.
    ~Zac

    i can't answer that specifically because i don't know the
    rationale you should use to set depths.
    but, in general, you can store all the depths in an array
    (using getDepth() and iterating all your display objects), sort()
    that array and create another array of your objects.
    then use a custom sort on your object array using the
    criteria that suits your project and finally iterate through your
    object array assigning depths (using swapDepths() ) from the sorted
    depth array.

  • Urxvt -depth 32 / Intel graphics = input lag

    I have a very strange behavior with urxvt at color depth 32: when I press a key and wait for it to repeat and release it, then the last input lags for about one second. For example, moving in a terminal/vim, the cursor stops when I release the key, then moves one second later. Same thing with mouse scroll. If I set depth to its default value, it works just fine.
    Does anyone have this annoying problem?
    00:02.1 Display controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)
    xorg-server : 1.9.2-2
    xf86-video-intel : 2.13.0-4
    rxvt-unicode : 9.09-1

    The i915 isn't a graphics powerhouse - what are you comparing with when you say its slow? Glxinfo says direct rendering is enabled and your Xorg log looks ok.
    Try sudo gpasswd -a <username> video to add yourself to the group for /dev/dri/card0. Logout and back in and see if that helps.

  • How to deal with the depth testing of Iterator Patch?

    Recently I use Iterator Path to make my effect. I met some problem. I couldn't deal with the Sprite depth testing. I found it useless to set depth testing of the Sprite Patch. And also I don't know how to deal with the layer of the subpatch in Iterator.

    rp0428 wrote:
    All you can do is remove any reference to it:
    myGame = null;If that was the last reference then it will be eligible for garbage collection and it MAY be collected.And note that there's rarely a good reason to do this. In most cases, simply letting things go out of scope when the method that uses them ends is sufficient. About the only time you need to explicitly set something to null like this is, for example, if you're implementing a collection class and you want to remove an entry.

  • Keynote Export "Transparent video"

    This maybe a some tip and trick how to export form Keynote transparent chart animations and what ever...
    i looking for answer around the network, but no answerts of this question! So i figure out how to do this and i like to share it (maybe helpful for others)
    1. Create a transparent .png file (i take for example my steps) i created in Photoshop transparent image 1024x576 for PAL Widescreen. Export as .png
    2. Open Keynote, make your own animated chart, pie or whatever you like.
    3. Open inspector > Document inspector set your size. (For my situation i choice 1024x576)
    4. Go to Slide inspector. Under Background choice Image Fill and use your transparent .png image
    5. File/Export.
    6. check include transparency. Under formats choice "Custom"
    7. Choice Settings!
    8. In Video Compression Settings Choice Animation Set your frame rate. Set Keyframes to Automatic. Set Depth to Millions Of Colors + (Quality - set to Best)
    Thats all!
    Transparency are not working by default - it works only when you set a transparent Color Fill
    this is some kind of Keynote Bug or so...

    This also works if in your step 4, you choose "Color Fill", then using the Color well, choose any color you want, AND set its Opacity to 0%.  No need for the transparent .png file this way.
    (I sure wish the Include Transparency check box would stay checked from one export to the next!)
    Cheers, and thanks for the post.
    Keith

  • Drawing and some layout help for a simple control: thin lines and application start

    I am trying to create a new, simple control. The control should act as a grouping marker much like that found in the Mathematica notebook interface. It is designed to sit to the right of a node and draw a simple bracket. The look of the bracket changes depending on whether the node is logically marked open or closed.
    After looking at some blogs and searching, I tried setting the snapToPixels to true in the container holding the marker control as well as the strokewidth but I am still finding that the bracket line is too thick. I am trying to draw a thin line. Also, I am unable to get the layout to work when the test application is first opened. One of the outer brackets is cut-off. I hardcoded some numbers into the skin just to get something to work.
    Is there a better way to implement this control?
    How can I get the fine line drawn as well as the layout correct at application start?
    package org.notebook;
    import javafx.beans.property.BooleanProperty;
    import javafx.beans.property.IntegerProperty;
    import javafx.beans.property.SimpleBooleanProperty;
    import javafx.beans.property.SimpleIntegerProperty;
    import javafx.scene.control.Control;
    * Provide a simple and thin bracket that changes
    * it appearance based on whether its closed or open.
    public class GroupingMarker extends Control {
      private final static String DEFAULT_STYLE_CLASS = "grouping-marker";
      private BooleanProperty open;
      private IntegerProperty depth;
      public BooleanProperty openProperty() { return open; }
      public IntegerProperty depthProperty() { return depth; }
      public GroupingMarker(boolean open) {
      this();
      setOpen(open);
      public GroupingMarker() {
      open = new SimpleBooleanProperty(true);
      depth = new SimpleIntegerProperty(0);
      getStyleClass().add(DEFAULT_STYLE_CLASS);
      // TODO: Change to use CSS directly
      setSkin(new GroupingMarkerSkin(this));
      public boolean isOpen() {
      return open.get();
      public void setOpen(boolean flag) {
      open.set(flag);
      public int getDepth() {
      return depth.get();
      public void setDepth(int depth) {
      this.depth.set(depth);
    package org.notebook;
    import javafx.scene.Group;
    import javafx.scene.paint.Color;
    import javafx.scene.shape.FillRule;
    import javafx.scene.shape.LineTo;
    import javafx.scene.shape.MoveTo;
    import javafx.scene.shape.Path;
    import com.sun.javafx.scene.control.skin.SkinBase;
    * The skin draws some simple lines on the right hand side of
    * the control. The lines reflect whether the control is considered
    * open or closed. Since there is no content, there is no
    * content handling code needed.
    public class GroupingMarkerSkin extends SkinBase<GroupingMarker, GroupingMarkerBehavior> {
      GroupingMarker control;
      Color lineColor;
      double shelfLength;
      double thickness;
      private Group lines;
      public GroupingMarkerSkin(GroupingMarker control) {
      super(control, new GroupingMarkerBehavior(control));
      this.control = control;
      lineColor = Color.BLUE;
      shelfLength = 5.0;
      thickness = 1.0;
      init();
      * Attached listeners to the properties in the control.
      protected void init() {
      registerChangeListener(control.openProperty(), "OPEN");
      registerChangeListener(control.depthProperty(), "DEPTH");
      lines = new Group();
      repaint();
      @Override
      protected void handleControlPropertyChanged(String arg0) {
      super.handleControlPropertyChanged(arg0);
        @Override public final GroupingMarker getSkinnable() {
            return control;
        @Override public final void dispose() {
        super.dispose();
            control = null;
        @Override
        protected double computePrefHeight(double arg0) {
        System.out.println("ph: " + arg0);
        return super.computePrefHeight(arg0);
        @Override
        protected double computePrefWidth(double arg0) {
        System.out.println("pw: " + arg0);
        return super.computePrefWidth(40.0);
         * Call this if a property changes that affects the visible
         * control.
        public void repaint() {
        requestLayout();
        @Override
        protected void layoutChildren() {
        if(control.getScene() != null) {
        drawLines();
        getChildren().setAll(lines);
        super.layoutChildren();
        protected void drawLines() {
        lines.getChildren().clear();
        System.out.println("bounds local: " + control.getBoundsInLocal());
        System.out.println("bounds parent: " + control.getBoundsInParent());
        System.out.println("bounds layout: " + control.getLayoutBounds());
        System.out.println("pref wxh: " + control.getPrefWidth() + "x" + control.getPrefHeight());
        double width = Math.max(0, 20.0 - 2 * 2.0);
        double height = control.getPrefHeight() - 4.0;
        height = Math.max(0, control.getBoundsInLocal().getHeight()-4.0);
        System.out.println("w: " + width + ", h: " + height);
        double margin = 4.0;
        final Path VERTICAL = new Path();
        VERTICAL.setFillRule(FillRule.EVEN_ODD);
        VERTICAL.getElements().add(new MoveTo(margin, margin)); // start
        VERTICAL.getElements().add(new LineTo(margin + shelfLength, margin)); // top horz line
        VERTICAL.getElements().add(new LineTo(margin + shelfLength, height - margin)); // vert line
        if(control.isOpen()) {
        VERTICAL.getElements().add(new LineTo(margin, height - margin)); // bottom horz line
        } else {
        VERTICAL.getElements().add(new LineTo(margin, height-margin-4.0));
        //VERTICAL.getElements().add(new ClosePath());
        VERTICAL.setStrokeWidth(thickness);
        VERTICAL.setStroke(lineColor);
        lines.getChildren().addAll(VERTICAL);
        lines.setCache(true);
    package org.notebook;
    import com.sun.javafx.scene.control.behavior.BehaviorBase;
    public class GroupingMarkerBehavior extends BehaviorBase<GroupingMarker> {
      public GroupingMarkerBehavior(final GroupingMarker control) {
      super(control);
    package org.notebook;
    import javafx.application.Application;
    import javafx.scene.Node;
    import javafx.scene.Scene;
    import javafx.scene.control.Label;
    import javafx.scene.control.TextArea;
    import javafx.scene.layout.BorderPane;
    import javafx.scene.layout.VBox;
    import javafx.stage.Stage;
    public class TestGroupingMarker extends Application {
      public static void main(String args[]) {
      launch(TestGroupingMarker.class, args);
      @Override
      public void start(Stage stage) throws Exception {
      VBox vbox = new VBox();
      BorderPane p = new BorderPane();
      VBox first = new VBox();
      first.getChildren().add(makeEntry("In[1]=", "my label", 200.0, true));
      first.getChildren().add(makeEntry("Out[1]=", "the output!", 200.0, true));
      p.setCenter(first);
      p.setRight(new GroupingMarker(true));
      vbox.getChildren().add(p);
      vbox.getChildren().add(makeEntry("In[2]=", "my label 2", 100.0, false));
      Scene scene = new Scene(vbox,500,700);
      scene.getStylesheets().add(TestGroupingMarker.class.getResource("main.css").toExternalForm());
      stage.setScene(scene);
      stage.setTitle("GroupingMarker test");
      stage.show();
      protected Node makeEntry(String io, String text, double height, boolean open) {
      BorderPane pane2 = new BorderPane();
      pane2.setSnapToPixel(true);
      Label label2 = new Label(io);
      label2.getStyleClass().add("io-label");
      pane2.setLeft(label2);
      TextArea area2 = new TextArea(text);
      area2.getStyleClass().add("io-content");
      area2.setPrefHeight(height);
      pane2.setCenter(area2);
      GroupingMarker marker2 = new GroupingMarker();
      marker2.setOpen(open);
      pane2.setRight(marker2);
      return pane2;

    The test interfaces are already defined for you - the 3rd party session bean remote/local interfaces.
    It is pretty trivial to create implementations of those interfaces to return the test data from your XML files.
    There are a number of ways to handle the switching, if you have used the service locator pattern, then I would personally slot the logic in to the service locator, to either look up the 3rd party bean or return a POJO test implementation of the interface according to configuration.
    Without the service locator, you are forced to do a little more work, you will have to implement your own test session beans to the same interfaces as the 3rd party session beans.
    You can then either deploy them instead of the 3rd party beans or you can deploy both the test and the 3rd party beans under different JNDI names,and use ejb-ref tags and allow you to switch between test and real versions by changing the ejb-link value.
    Hope this helps.
    Bob B.

  • DragImage in drag-and-drop

    I've managed to get drag-and-drop working using the file-list array approach example pointed to on this forum. What I can't get to work, however, is a dragImage to show feedback of what is being dragged into the main canvas. In actual fact, the drag operation fails silently if I even try to add a dragImage.
    Is this a known issue that isn't currently supported, or has anyone managed to get this to work?
    I'm targeting Illustrator CS5 on the Mac.
    Thanks
    Richard

    i can't answer that specifically because i don't know the
    rationale you should use to set depths.
    but, in general, you can store all the depths in an array
    (using getDepth() and iterating all your display objects), sort()
    that array and create another array of your objects.
    then use a custom sort on your object array using the
    criteria that suits your project and finally iterate through your
    object array assigning depths (using swapDepths() ) from the sorted
    depth array.

  • Zoom item renderer out of scroller boundaries

    Hi everyone, hoping someone has the easy Answer.  I want to have an item renderer that can zoomIn and display outside the scroller boundaries for which it resides in. 
    I have
    Scroller  set depth property =1
    |
    Datagroup (tile layout) depth=2
    |
    custom zoomable LabelItemRenderer depth=3  (depth=4 when zooming in so it overlaps the other renderers in the datagroup) ....these tiles, when zoomed, will increase in size by 50%.
    So in other words, the datagroup is wrapped in a scroller, and I extended the LIR to zoom.
    If I take the scroller out of the picture, everything works great...if I zoom on an IR(tile) that is on the very border of the datagroups boundaries, it will display over the DG's boundaries so that the whole zoomed tile is shown.
    Now if I wrap the DG in a scroller, the IRs will zoom, but any tiles on the boundary will get clipped by the boundary, like it is underneath the scroller.
    I want a zoomed tile to display completely, even if that means overlapping the boundaries of the scroller.  Like I said, works great when the DG doesn't have a scroller wrapped around it.
    Is this possible?
    I should add its a 4.6 mobile project.

    I don't use jbuilder
    This is what apears at the commandpromt:
    Exception occurred during event dispatching:
    java.lang.OutOfMemoryError
            <<no stack trace available>>
    Exception occurred during event dispatching:
    java.lang.OutOfMemoryError
            <<no stack trace available>>
    java.lang.OutOfMemoryError
            <<no stack trace available>>
    java.lang.OutOfMemoryError
            <<no stack trace available>>This is the version of java i use (I use the compiler that comes with it it does not answer to -version itself)
    java version "1.3.1"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24)
    Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode)This is my ListCell renderers get method:
         public Component getListCellRendererComponent(JList list,Object value,int index,boolean isSelected,boolean cellHasFocus)
              String[] ss=((arrayjanus) value).getArray();
              JPanel p=new JPanel();
              p.setLayout(new BoxLayout(p,BoxLayout.X_AXIS));
              for(int i=0;i<lenghts.length;i++)
                   JTextField jt=new JTextField(lenghts);
                   jt.setText(ss[i]);
                   jt.setCaretPosition(0);
                   p.add(jt);
              return p;
    I run in the same problem if i switch of the DB access and on a selection do nothing but System.out.println the count of selections (I get it after ~ 800 clicks in rapid succession under theese circumstances)
    I am having about 50 items in the list.

  • XY graph memory length

    How do you set depth of XY Graph? After a while I cannot scroll to the first measurement. On Chart you can change "Chart History Length" but I didn't find something like it for XY Graph.
    Thanks

    Well, I have never use the express VIs and probably never will. Using the normal xy graph is not that hard.
    Message Edited by Dennis Knutson on 02-04-2009 02:38 PM
    Attachments:
    XY Graph.PNG ‏11 KB

  • CS6 3D error (bug?) "Could not complete your request because the path is too complex."

    I'm running into a bit of a problem with having a shape extruded in 3D.
    If I draw a rectangle shape set to path over an image and then choose "source - work path" and "3D extrusion" I will get a 3D rectangle with the image on the front side.
    If I draw a 3 sided polygon (triangle) set to path over an image and then choose "source - work path" and "3D extrusion" I will get a error telling me that the path is too complex.
    I'm doing the exact same thing.
    Now, if I have 4 sides plus, on the polygon it will extrude just fine.
    Something seems to be happening with 3 sided polygons.
    This holds true with the pen tool as well. Three points will give you the error, 4 and above seem not to.
    Any ideas and to why this is happening?
    Thanks!
    Lux
    CS6 - latest build
    Mac 12 core
    24gigs Ram
    Cloud subscriber

    Work around. (CS6)
    (1) Draw your trangle shape.
    (2) Convert one of the corners to a smooth corner (just barely). If you doesn't work, bend flex it a little more, and try again.
    (3) 3D/New 3D extrusion from selected layer.
    (4) Switch camera to top view.
    (5) With 3D layer selected, in the coordinates menu of Properties panel, set X angle to 90.
    (6) Snap object to ground plane.
    (7) Set depth to 0.
    (8) In the Cap menu of the Properties panel, adjust cap width to 100%.

  • Removing dynamic MCs

    Hi
    I have some code that generates dynamic MCs and attaches a
    linked library item. It is created inside of a faux loop, where
    i equals
    0,1 or 2, and these correspond to values in an array: If
    i==1 use
    array[1] etc...
    The problem I am having is with a dynamically generated MC
    with an instance name corresponding to the value of
    i, like this
    "genImg_mc"+i. I can use
    removeMovieClip() to remove a hard-coded MC (eg:
    genImg_mc2), but I cannot find the correct syntax to remove an MC
    with the value of
    i. I hope this makes sense. The code below is the function
    that is called on a setInterval, and everything works, but after
    severall minutes the dynamically created MCs build up to the point
    of bogging down the player. I want to remove the MC on the depth
    below the MC just created, hence using it inside the
    onMotionFinished function.
    Please any help will spare my sanity here.
    mm66

    Hi kglad
    Thanks for that. It is basically what I had been trying to
    do, but the square brackets syntax for me always failed. I know I
    have i defined as that is what sets depth, and instance naming
    throughout and I have traced several objects at various stages of
    dev.
    I'll revisit with your code and see if it fixes something
    cheers
    mm66

  • Quicktime Movie HELP!!

    I am running Final Pro 6 and have a DVCPRO HD 1080/60 timeline. When I export to quicktime movie, it plays fine in the quicktime player on the Mac. However, when I transfer the file over to my PC, where I am running After Effects, it does not play in quicktime, nor does it display anything when I import the file into After Effects. I have all the latest updates for the player and the software. Do I need to export in another format out of FCP6 to import it into After Effects running on a PC? Any help would be greatly appreciated.
    Ray

    Two ways to do this:
    Trash your render files for the sequence in question - I'd suggest selecting all clips, Command-A then pressing Control-B twice to disable, then renable your clips.
    Then File > Export > QT Conversion.
    The QT dialog, once you've selecting the File to QuickTime Movie setting, hit the Options button.
    In the Movie Settings dialog, hit the Settings button, then select Animation as your Compression Type. In case it doesn't do this automatically, set Depth to Millions of Colors+ and exit the Compression Settings dialog
    Now, back in the Movie Settings dialog, hit the Size button and select the HD 1920x1080 setting. No other options in the Size dialog should be active.
    Get back to the Save dialog in QT Conversion and save your movie. Since it has to render out your timeline in Animation while it saves, this might take a while.
    Or, alter your Sequence Settings so that your Compressor is set to Animation (be sure to click on the Advanced Options and set Color Depth to Millions of Colors+) and then render.
    You can then do a File > Export > QuickTime Movie at Current Settings.
    Once your movie is rendered and exported, since you're working with DVCProHD, you'll need to open your movie in QT Pro, press Command-J, then alter Visual Settings to 1920x1080 to correct the frame size.
    One thing to be aware of: depending on the file system your PC is using, you might be limited to a file size of 2GB (if it's NTFS, I believe) or 4GB (if it's FAT32) and that's real issue because Animation codec files are not lean.

Maybe you are looking for

  • Forms 10g.

    Hi , i am facing problem in forms 10g. I have an application in which I have to FTP file from my local folder to unix server(not an Application server) ,for that i am using plink utility. so i need command which will get execut on client m/c. coz web

  • Java.lang.NumberFormatException

    2010-07-02 12:58:35     Error     Could not execute statement for table/stored proc. "sp_PalletBackflushAcknowledge" (structure "Acknowledge") due to java.lang.NumberFormatException: For input string: "393006000111122222" 2010-07-02 12:58:35     Erro

  • SQL 2014 Failover Cluster

    Hi All, I am having permission issue while bringing sql cluster resource online. I had the cluster setup and working with ENT edition, inorder to change the SQL edition, I removed the node from the cluster, uninstalled all the binaries and create a n

  • Calling multi application packages in custom menu

    Hi, I am trying to open a data management and custom package in a custom menu for different applications. My custom menu is set for application A and the custom package is in application B. Is there a way to call this package without changing the CV

  • Will not load transparent SWF

    I have problems using an SWF i have made. The SWF is displayed with an absolute layer above it. This means it must be set to transparent. This works fine in Safari and Opera, but in Firefox the SWF will not load at all when the property is set to tra