Control Stacking Order with Actionscript?

How can you control the stacking order of objects using
acitionscript? That is, objects
already added to the stage. I know how to add something at a
certain level with addChildAt, but I'm wondering if someone adds an
item to the stage in the wrong order, I want to force it to be on
top (or at a specified z-index).

Use setChildIndex().

Similar Messages

  • COPY CONTROL: SALES ORDER WITH REFERENCE TO QUOTATION

    Hi.
    We are creating a sales orders with reference to a quotation. When copying, we'd like to be able to include another new position type in the sales orders.
    For example:
    QUOTATION:
    POSITION 10: TYPE ZTAB
    SALES ORDERS:
    POSITION 10: TYPE ZTAB
    POSITION 20: TYPE IRSS.
    Where could we place this change?. We suppose when saving the sales orders. Does anybody know how could we make this change?.
    Thank you very much!.
    Raú

    What do you mean by position type?
    Please use the language used by SAP so that it could be easily understood.
    What is ZTAB & IRSS. Are they materials?
    Regarding copying, this is a brief theory
    In copy control, you define control data for the document flow of sales documents.
    You can specify for a particular sales document type, which document type is to be assigned to copied reference documents, and which item categories or schedule line categories are to be copied.
    You must also make specifications for copying requirements and data transfer, as well as quantity and value updates in document flow.
    In precise, you are telling the system what data to copy from QT to sales order. It copies data from Quotation order type to Standard order type basing on settings you indicated in copying control.
    System won't do anything more than copying from preceding documents and it would transfer data based on copying rules in copy control.

  • Controlling Delete Order with One-To-Many

    I have a class that has six 1-M mappings. All of them have a 1-1 back reference. I would like to control the order of deletion to ensure that one of the child collections is always deleted last.
    It was suggested to me to use an after-load method to call addConstraintDependencies on the parent descriptor to control the order. This method is being called (before login) but it did not change the order. I added the after-load to the parent descriptor, adding the constraint dependency of the class I want deleted last.
    I also tried using "multi-table info" (in addition to the regular one-to-many mappings) but that seems to cause the valueHolder to retrieve the items from the table twice, giving me a list with "doubles" of every item.
    What can I do to control the order of the deletes of the children?
    Thanks,
    Allen

    Hi Don,
    This is with reference to your comments on the following oracel forum query "http://forums.oracle.com/forums/thread.jspa?messageID=508819��" regarding 1:M mapping insertion problem.(Same one)
    Actually I also have the same kind of scenario but the data in not getting inserted to the detail table. It always gives ORA-1400 error as it is unable to populate the foreign key of parent in child table.
    Can you suggest if I am missing something.
    Your quick response will be appreciated.
    Message was edited by:
    user466708

  • Controlling external flv with ActionScript

    I'm using the NetStream Class to control the playback of an
    external flv. I've got a Pause/Play button using .pause, and Fast
    Forward and Rewind buttons using .seek. What I want to do is once
    the video is done playing to automatically reset back to the
    beginning of the video, allowing the user to press play to view the
    video again without having to reload the page. Right now when the
    video finishes, the user has to rewind the video in order to watch
    it again. I thought I could use .time to determine when the video
    reaches the end to go back to "0" in the video playhead but so far
    I have not been able to get this to work. Any ideas would be
    appreciated. Currently everything is done in frame one of the swf.
    Thanks.

    >>I think obviously there is a difference between FMS
    and Flash MX04. The documents I
    >>refer to are built into the help menu in Flash 7 and
    8 both include the onStatus event
    >>and absolutely no onPlayStatus event.
    Yeah you're right onPlayStatus isn't in the NetStream class
    Flash documentation as this is more about using this class for
    progressive download, whereas the documentation i linked to
    referred to the NetStream class used in FMS Client-side scripting
    for streaming video.
    >>I made a mistake. I meant NetStream.Play.Stop –
    which was very poorly named. That
    >>is what onStatus will return when it reaches the end.
    It isn't really "stop" it is "complete."
    >>So I tend to read it as such!
    NetStream.Play.Stop does seem to be very similar to
    NetStream.Play.Complete in progressive downloads. however i know
    you can't guarantee that NetStream.Play.Stop occurs at the same
    time as NetStream.Play.Complete in a streaming video through FMS,
    as a NetStream.Play.Stop can occur for reasons other than
    completion.
    >>...My guess is that when they took the bits from FMS
    into Flash MX04 they didn't do a
    >>very good job. They purposefully renamed onPlayStatus
    to onStatus...
    onStatus does still exist in FMS Client side scripting...
    >> – with a limited variety of events returned
    (What is Switch?)
    switch refers to playlists - only relevant to FMS streams.
    Anyway, it appears as though all of this talk of the FMS is
    moot regarding the original poster, as I've just had a look at
    skauty's posts in the Flash Media Server forums, ironically, and
    discovered that skauty is using progressive download and not FMS...
    Simple but important distinction...

  • DataGrid column order - with actionscript?

    I can't seem to find an effective way to get the data laid
    out the way I want.
    Imagine this scenario:
    I have a single-column list of all the fields in a database
    table on the left, and a display table on the right (which starts
    with no columns in it).
    When I drag an item from the left grid to the right one, I do
    a remote call (with AMFPHP) that returns me the primary key for
    each row in the table, along with each column that's been dragged
    onto the right grid (which I'm keeping track of in an array).
    For some reason I can't seem to find a way to prevent the
    visible columns from being sorted by their array keys, no matter
    what I do. I'd like to set it up so that as a user selects fields
    from the left grid, those items are shown as the rightmost column
    in the grid. Does anyone know a way I can dynamically load in
    columns to the datagrid so that I can set their order (or at least
    have the option of loading them in from left to right by putting
    them into a new array or something)?
    Because of the dynamic nature of the app, I can't be sure
    what table I'm going to be viewing, so hard-coding the fields isn't
    an option.

    Hi,
    See if this thread helps:
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=585&threadid=1237299
    Cheree

  • Controlling Movie Clip with actionscript Question

    Dear All,
    I have a movie clip named A which inside this movie clip
    there is another Movie clip named B and inside B there is a listbox
    component.
    Inside Movie clip A there are 20 frames which at frame 10
    there is a stop() script.
    My question is how to control Movieclip A to run
    gotoAndPlay(11) from MovieClip B when there is a click action to
    the listbox?
    Please Advise,
    Ozhee

    if A is on the _root timeline from anywhere in your _level0
    swf you can use:

  • Control loaded movie with actionscript

    Is it possible to get a button in my main movie to effect a
    loaded movie. I need to make one element inside a loaded swf become
    transparent. What would the code for that look like?

    lets say you loaded your SWF into holder_mc and the the
    element is inside another movie clip in the SWF named your_mc and
    the actual element is name element_mc
    yourbtn.onRelease = function(){
    holder_mc.your_mc.element_mc._alpha = 0;
    }

  • Help needed with layers stacking order

    Hi all
    I have been using Photoshop for 5 years and feel confident in its use, however, and you may think this is a little strange, I have never understood stacking order.
    I some how just fell into the habit of applyng a layer and flattening. Now i really want to get over this hurdle so that i can save important images unflattened for further re-adjustment later.
    I have browsed the web for two days and found nothing that helps me. The crux of the issue is that i get to a point where i have applied maybe three adjustment layers and then aaply say a sharpening layer only to find i cannot see its effect on the image due to its order in the stack. This is what i reall need help with.
    Can anyone point me in the right direction?
    Thanks
    Peter

    The way I deal with issues like this is by toggling the "eye-cons" in the
    layer palette to hide and show the various layers. In general, sharpening
    should be done on the uppermost layer, but this can be problematic if you
    have several layers, each with pixel data.
    One technique that might interest you would be creating a sharpening layer.
    For the simplest case, duping the original image, applying the high pass
    filter, using the same radius you would for Unsharp Mask, and set the mode
    to Overlay. I have this assigned to an action, attached to a function key.
    Set the transparency to the amount (up to 100) that you would use for that
    filter as well. If you need more sharpening, you can approximate this by
    duping the sharpening layer. Use a layer mask and/or erase the sharpening
    layer to control which areas are sharpened. Adjustment layers and other
    changes can be applied either above or below the sharpening layer.
    For more complex images, for example a group portrait with several layers
    for the different people in the image, the sharpen layer needs to be
    created by duping the entire image, flattening it, running high pass,
    dragging the resulting layer onto your original image, and setting the mode
    to Overlay.
    If you clone or otherwise change the objects in the image, the sharpen
    layer needs to be recreated.

  • HOW TO CONTROL ON CREATION OF SALES ORDER WITH REFERENCE TO EARLIER SO?

    Dear All,
    I want to contol on creation of Sales order with reference to earlier SO?  While creation of sales order our enduser are creating sales order with reference to earlier month SO which I want to restrict. Recently I made changes in sales order like payment terms is grayed, system will atomatically pick pay terms from customer master.Now I am getting correct data also but enduser is using old SO no while creating new SO and old payment data is reflecting in fbl5n.
    I want to restrict enduser while creating new SO with ref. to old SO. Only for returns they should be able to use Billing refrence. Pl. suggest how to control the with reference to ealier SO.
    Nikhil

    Nikhil Deshpande,
          If you dont want allow create a sales order in referent to other one, just delete the copy control between these sales order type, so when the user tries to create a SO in reference to other one a message is displayed that is not possible.
    Thanks,
    Mariano.

  • [CS5.5] issue with stacking order on spreads when pages change

    Have recently had a situation where items on a right hand page have "disappeared" behind an item placed over the reader's spread in a layout using facing pages.
    For example,
    this spread has 3 elements: an item of type per page, both brought to front; and a green background sent to back. all fine so far.
    i have then deleted the last two pages from the file... still going great guns...
    i then delete the first two pages from the file... then the preverbial hits the fan.
    the type on page two is gone! oh no!!! the reality is that the type is now BEHIND the green background.
    I am aware that had the green background been split in two at the spine, the result would be this:
    but it's too late now.
    has anyone else experienced this phenomenon and is it safe to call this a "bug"? anyone wanting to attempt the following steps can download a PDF containing the indesign file as an attachment within the pdf from this url: http://colecandoo.files.wordpress.com/2012/06/spreadfail.pdf
    colly

    Although the green block is, for practical purposes, on both pages, to InDesign, it's really only assigned to the left page of the spread. For example, if you start with this:
    …which has a green box in the background, spanning both pages of each spread, and yellow boxes on odd pages and magenta boxes on odds…
    …and you delete page one, you get this:
    …where the yellow and magenta boxes have switched sides, but notice that the green box that had been across both pages is now only on the odd pages. That's because the green boxes were actually assigned to the even pages, which have now shifted to become the odd pages, and the box stayed with it's page.
    Now, here's what happens when you delete page 2:
    Except for page one, which hasn't moved or changed, the screen shots from removing page one and page two look the same, because I only removed one page at a time. That caused the pages to switch sides.
    Now, here's what happens when you remove pages one and two at the same time:
    This is what you are getting. As best as I can guess, the reason that the green box is above the yellow boxes is because the left page of the spread is higher in stacking order than the page on the right. My guess is that the stacking order of the objects on each page is reaffirmed when pages are deleted. And in this case, I don't think it matters whether you delete them one at a time or two. Here is a screen shot of what it looks like when I delete page one, then delete page two right afterward (actually, since page two had become page one, I had to delete page one the second time to delete the original page two, but you know what I mean):
    This screenshot looks the same as the previous, even though this one had two pages deleted one at a time, and the previous one had two pages deleted together. I can't say whether this is a bug or not, but I assume that the engineers at Adobe didn't choose this behavior on purpose. It's probably a side-effect of some other choice that probably makes perfect sense.
    I think the answer is to either  place objects that span a spread on the master, or to use layers if the master option isn't practical for the job you are doing.

  • Controling Column Order for Report with Dynamic SQL

    Hi,
    I have a report region using Function block returning the SQL.
    The output of the function will look like the following
    SELECT NAME, CLASS1, CLASS2,CLASS3,CLASS4, AVERAGE_SCORE FROM XXXX;
    The number of CLASSn column will be determine by the function based on the data. If the person doesn't have any score on CLASS4, the the SQL would not have CLASS4 column.
    My problem with this is I can't control the order of column appearance.
    For e.g : If my previous SQL is without CLASS4, when I query a person with CLASS4. The CLASS4 column will appear after the AVERAGE_SCORE.
    NAME---CLASS1---CLASS2---CLASS3---AVERAGE_SCORE---CLASS4
    I want it to maintain AVERAGE_SCORE as the last column.
    Can you guys give a suggestion how to handle this?
    Additional info :
    - I am disabling the report header, setting it to None as the first row of the sql returned records is the header.
    Cheers,
    Joel

    Hi all,
    My report seems to be behaving correctly once i set it to "Use Generic Column Names (parse query at runtime only)" :)
    Cheers,
    Joel

  • Purchase order with out PR Reference controlling to control

    Dear All
                  I wants to control purchase order creation without PR Reference. i want to control this via standard settings is it possible through standard.
    Purchase order creation Through PR only. if user enter powithout pr reference it should through the error.any standard setting available for this.
    Regards
    Kumar.

    Dear,
    I am giving you step wise details
    Step 1.
    1. Goto SPRO --> Materials Management --> Purchasing --> Purchase Order --> Define Document Types.
    Check the "Field selection Group" of the "Purchase Order Document Type" (optional Step)
    2. Enter T-Code OMET.
    3."Change View "Functional Authorizations: Purchase Order" : Overview Screen comes up
    4. Click on "New Entries"
    5. Give 2-digit "Code (01)" and a "Description" for "Functional Authorization".
    6. Select the Check Box " Ref. to Purchasre Requisition".
    7. Enter the "Field Selection Group from Step 1. in the Field Selction (optional Step)
    8. Save and Back
    9. Enter T-Code SU3
    10. Select "Parameters" TAB
    11. In Parameter ID enter EBF
    12 In Parameter Value enter the 01
    13 Save.
    Now when you try to Create a Purchase Order the System will give and Error "You have no authorization to create without reference to another document"
    Hope this will Solve the Problem
    Regards,
    R.Brahmankar

  • Hi there, I new with AE script (I much familiar with ActionScript in Flash, not an expert though). I try to control my solid object using GUI Slider I made but it's doesn't work. I need help here. Here is my code:

    myComp = app.project.item(1);
    mySolid = myComp.layers.addSolid([1.0,1.0,0], "my square", 50, 50, 1);
    var myWin = new Window("palette", "Transform", undefined);
        myWin.orientation = "row";
    var myOpacity = myWin.add("panel", undefined, "Opacity");
        myOpacity.orientation = "column";
        myOpacityText = myOpacity.add("statictext", [290, 20, 380, 40], "Current value:");
        myOpacityDisplay = myOpacity.add("statictext", [385, 20, 425, 40], "100");
        myOpacity.add("statictext", undefined, "Kontrol Opacity");
        theOpacity = myOpacity.add("slider", [20, 20, 230, 45], 50, 0, 100);
        var layerOpacity = mySolid.property("opacity");
        theOpacity.onChanging = function()
             var val = Math.round(theOpacity.value);
      myOpacityDisplay.text = val;
             layerOpacity.value = val;
    myWin.center();
    myWin.show();

    I don't write scripts that do this because the features are already available with Expression Controls and expressions. That's the route I would suggest. You are reinventing the wheel. If you want specific help on scripting then try asking some questions in the scripting sub forum for AE. You'll find the forum under sub communities.
    If you just want to create a slider for opacity that you can add to any layer you select first add an expression control slider to the layer, then press t to reveal the opacity property, then hold down the Alt/Option key and click on the stopwatch to start and expression, then drag the pickwhip to the slider control. Now, with transparency selected select Animation>Save Animation Preset and give it a name. Now when you need a slider to control a layer, or to control a bunch of layers simply select them and apply your preset.
    You could also put your expression control slider on a null, give the name a null, apply the expression to a layer and then save the transparency property as an animation preset. Now if you have 50 layers you want to control with a single slider just add the null, change the name, then select all 50 layers and apply your animation preset.
    I have a library of about 200 custom animation presets that use expressions to do most of my repetitive  tasks. It saves a ton of time. Heres one that fades a layer in and then out based on the in and out point of the layer. I use this one daily. You'll see what I mean if you apply it to a layer. fadeIO.ffx

  • How to Restrict Return Sales Order with reference to a cancelled invoice

    SAP Standard is allowing to create Return Sales Order with reference to a cancelled invoice which practically should not be allowed.
    Has any body worked on this problem and what could be the possible solutions so that return sales orders can not be created against a cancelled invoice.
    Kindly share your possible solutions.

    Hi Standard Process will not allow to create a Sales Order With Cancelled invoice,
    Kindly go through at Copy Controls
    T.CODE:VTAF
    in that some body might have maintained between S1 invoice to RE Sales Document.
    Remove the settings then u will be not able to create Sales Order w.r.t to Cancelled Document.
    Rewards if Usefull
    B.Shyam Sunder
    SAP SD Consultant

  • Load a sales order with delivery date in the past

    Hi,
    We want to load in the system a sales order with delivery date in the past, and maintain the schedule delivery date in the past. To do that, in the customizing Sales And Distribution / Basic Functions / Delivery Scheduling and Transportation Scheduling / Define Scheduling By Sales Document Type, I selected the flag Blackwards. But the problem is that the rest of the dates in the scredule line: goods issue date, loading date, material avail.date and transportation Plan Date, are in blank and you cannot enter any data because the system deletes it.
    How can I have these dates informed with dates in the past?
    Thanks in advance,

    You can control this using the "Message Control" in the SAP IMG.
    Supplier Relationship Management>SRM Server>Cross-Application Basic Settings>Message Control>Influence Message Control
    Using this you convert Error to Warning or even swith off this message.
    Please refer this thread for complete steps:
    Re: How to change an error message to a warning message in SRM
    Note: you need to suppress the messages relevant to your case here.
    Regards
    Kathirvel

Maybe you are looking for

  • Pdf files in search results - open the properties paga instead the file

    Hi, We have 2010 search results page for searching files. When the search result is a pdf - the icon shown is not pdf icon and when click the file name it opens the properties page instead the file itself. What should be set? thanks a lot keren tsur

  • DreamWeaver CS4 CSS code hints not working

    Please help. DreamWeaver has stopped showing code hints for CSS selector values. When I start typing "…   div {border:   …" DreamWeaver used to show the possible value for this selector (i.e. 1px solid #ccc). Now all that pops up is this "…   'border

  • Missing administrative tools in the start up in windows 7

    I have a touchsmart 310-1020 pc and I am have administrator issues, some time I cant save to my files , it asks for administrator permission and even when I am logged on as the administator. I went to the startup menu to aministration tools and it is

  • OEM 12c and OVM on the same box?

    Hi Guys and Girls! Thank you in advance for your support! Could you please share you experience, best practices and gotchas with installing OEM 12c and OVM on the same OL 5x box? We would like to install OEM 12 R2 on a OL57 server with an existing pr

  • Adobe Falsh professional cc

    salve, a tutti . non riesco a scaricare adobe Flash Professional CC. Qualcuno mi può aiutare?? HI to all. I wasn t able to download Adobe Flash Professional CC. Somebody can help me??