delete, then add a Sprite clears his graphics.lineStyle

Hello

I have a Sprite that contains another Sprite which is a blue rectangle:

var rectangle: Sprite = new Sprite();
rectangle.graphics.lineStyle (2, 0x0000FF);
rectangle.graphics.drawRect (0, 0, 50, 100);
addChild (rectangle);

Then, somewhere in my code, I want to take a snapshot of the Sprite without the rectangle but I want the rectangle to stay in the Sprite however.

I don't know how or event if it is possible to copy the sprite, so instead, I tried to delete the rectangle, take the shot, and then add the rectangle:

var rectangle: Sprite = mySprite.removeChildAt (rectangleIndex);

var bmp:BitmapData = new BitmapData (mySprite.width, mySprite.height);

BMP. Draw (mySprite);

mySprite.addChild (rectangle);

But then the rectangle is no longer blue but black. Like the sprite.graphics, lineStyle is disabled.

Do you know how I can keep the line style or do you have another idea?

use:

rectangle.parent.removeChild (rectangle);

create your bitmap using rectangle.parent, then

rectangle.parent.addChild (rectangle);  restore the rectangle to its parent.

Tags: Adobe Animate

Similar Questions

  • How can I use tools in Acrobat Pro ms? I have Acrobat Pro DC. When I try to use a tool, let optimize PDF, delete pages; Add pages, etc. I click the icon, but rather to open the toolbar, it takes me to a web page and ask me to buy Acrobat Pro DC. Then

    I have Acrobat Pro DC.

    When I try to use a tool, let optimize PDF, delete pages; Add pages, etc. I click the icon, but rather to open the toolbar, it takes me to a web page and ask me to buy Acrobat Pro DC.

    So, what should I do?

    It's what he would do if you were using the reader instead of Acrobat.

  • Effectively remove and then add the piece of table 2D

    I have a table that is 72 lines (32 channels, 8 channels, 32 channels). I am now taking the middle 8 channels and move it to the end, he will be 32, 32, 8. I could delete a subset of the table, and then add at the end, but I think that it would cause 2 allowances. I wonder if there's a cleaner way to achieve inplace?

    Take 2 table subsets (32.8) (40,24) can do two replacements in the original array (index of 64 and 32).  I find that it is usually two times faster than delete + rebuild (to research cleaner), which is two times faster than the IPES (slower and uglier by far). Your mileage may vary.  It's all the microseconds at this size of table.

  • Wi - Fi does not feel that it was. I have delete and add the printer whenever I need to print.

    I have a Toshiba laptop (2 years) and had been printing wireless until about 2 months ago. Now, I have to delete and add the printer brother 7820-N USB to print for a day or less. When I try to againg another day it does not print.

    Hello

    Your question does contain all of the required information. Please provide us with the following information.

    1. have you recently updated anything on your computer before this problem?

    2 have you installed updates for the printer? If so, you may want to make back the driver and check if that helps.

    3. you delete and add the printer, of in the software?

    I suggest you follow the methods below to solve the problem:

    Method 1:

    Put the computer in a clean boot state and check if the problem still persists. Refer to the city link below to put the computer in a clean boot:

    http://support.Microsoft.com/kb/929135/en-GB

    Method 2:

    I suggest you uninstall the printer completely from the computer software, restart the computer, and then try to install the latest version of the printer software, from the link below:

    http://www.brother-USA.com/support/default.aspx?PgId=5&R3ModelID=MFC7820N

    Kind regards

    GauravPrakash - Microsoft Support
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How to delete and add traces data?

    In my code below, I would add two buttons by clicking on a button ("Remove") that it will remove a trace of data and plot it back by clicking on the button ("Add") as in the examples:

    Complete data plotted by the class running

    [http://s13.postimage.org/gw5bz9ak3/A02773.jpg]

    Now with a simple click on a last given to remove button point to disappear

    [http://s13.postimage.org/u87pzxsc3/A02774.jpg]

    another click and last data point disappear and so on

    [http://s2.postimage.org/fjxevg1ph/A02775.jpg]

    The reverse operation would be performed by clicking on the 'Add' button: each click will be add a data point
    import javafx.application.Application; 
    import javafx.beans.property.SimpleDoubleProperty; 
    import javafx.event.EventHandler;  
    import javafx.scene.chart.NumberAxis; 
    import javafx.scene.chart.XYChart; 
    import javafx.stage.Stage; 
    import javafx.scene.Scene; 
    import javafx.scene.chart.LineChart; 
    import javafx.scene.control.Button;
    import javafx.scene.input.MouseEvent; 
    import javafx.scene.layout.BorderPane; 
    
    public class XYMove extends Application {
    
    BorderPane pane; 
    XYChart.Series series1 = new XYChart.Series(); 
    
    SimpleDoubleProperty rectinitX = new SimpleDoubleProperty(); 
    SimpleDoubleProperty rectX = new SimpleDoubleProperty(); 
    SimpleDoubleProperty rectY = new SimpleDoubleProperty(); 
    
    @Override 
    public void start(Stage stage) { 
     
    final NumberAxis xAxis = new NumberAxis(12, 20, 1);
    
    double max = 12;
    double min = 3;
    
    max *= (1+((double)3/100));
    min *= (1-((double)3/100));
    
    final NumberAxis yAxis = new NumberAxis(min, max, 1); 
    
    xAxis.setAnimated(false);
    yAxis.setAnimated(false);
    
    yAxis.setTickLabelFormatter(new NumberAxis.DefaultFormatter(yAxis) { 
    
        @Override 
        public String toString(Number object) { 
            return String.format("%2.0f", object); 
        } 
    }); 
    
    final LineChart<Number, Number> lineChart = new LineChart<Number, Number>(xAxis, yAxis); 
    
    lineChart.setCreateSymbols(false); 
    lineChart.setAlternativeRowFillVisible(false); 
    lineChart.setAnimated(false); 
    lineChart.setLegendVisible(false);
    
    series1.getData().add(new XYChart.Data(1, 3)); 
    series1.getData().add(new XYChart.Data(2, 8)); 
    series1.getData().add(new XYChart.Data(3, 6)); 
    series1.getData().add(new XYChart.Data(4, 7)); 
    series1.getData().add(new XYChart.Data(5, 5)); 
    series1.getData().add(new XYChart.Data(6, 6)); 
    series1.getData().add(new XYChart.Data(7, 4)); 
    series1.getData().add(new XYChart.Data(8, 7)); 
    series1.getData().add(new XYChart.Data(9, 6)); 
    series1.getData().add(new XYChart.Data(10, 7));
    series1.getData().add(new XYChart.Data(11, 6)); 
    series1.getData().add(new XYChart.Data(12, 7));
    series1.getData().add(new XYChart.Data(13, 6));
    series1.getData().add(new XYChart.Data(14, 12)); 
    series1.getData().add(new XYChart.Data(15, 10)); 
    series1.getData().add(new XYChart.Data(16, 11)); 
    series1.getData().add(new XYChart.Data(17, 9)); 
    series1.getData().add(new XYChart.Data(18, 10));
    
    pane = new BorderPane(); 
    pane.setCenter(lineChart); 
    Scene scene = new Scene(pane, 800, 600); 
    lineChart.getData().addAll(series1); 
    
    stage.setScene(scene);         
    
    scene.setOnMouseClicked(mouseHandler); 
    scene.setOnMouseDragged(mouseHandler); 
    scene.setOnMouseEntered(mouseHandler); 
    scene.setOnMouseExited(mouseHandler); 
    scene.setOnMouseMoved(mouseHandler); 
    scene.setOnMousePressed(mouseHandler); 
    scene.setOnMouseReleased(mouseHandler); 
    stage.show();
    } 
    
    EventHandler<MouseEvent> mouseHandler = new EventHandler<MouseEvent>() { 
    
    @Override 
    public void handle(MouseEvent mouseEvent) { 
    
        if (mouseEvent.getEventType() == MouseEvent.MOUSE_PRESSED) {             
            rectinitX.set(mouseEvent.getX()); 
        } 
        else if (mouseEvent.getEventType() == MouseEvent.MOUSE_DRAGGED || mouseEvent.getEventType() == MouseEvent.MOUSE_MOVED) { 
            LineChart<Number, Number> lineChart = (LineChart<Number, Number>) pane.getCenter(); 
            NumberAxis xAxis = (NumberAxis) lineChart.getXAxis(); 
    
            double Tgap = xAxis.getWidth()/(xAxis.getUpperBound() - xAxis.getLowerBound()); 
            double newXlower=xAxis.getLowerBound(), newXupper=xAxis.getUpperBound();             
            double Delta=0.3;
            
            if(mouseEvent.getEventType() == MouseEvent.MOUSE_DRAGGED){
            if(rectinitX.get() < mouseEvent.getX()&& newXlower >= 0){    
                newXlower=xAxis.getLowerBound()-Delta;
                newXupper=xAxis.getUpperBound()-Delta;
            }
        else if(rectinitX.get() > mouseEvent.getX()&& newXupper <= 22){    
                newXlower=xAxis.getLowerBound()+Delta;
                newXupper=xAxis.getUpperBound()+Delta;
            }    
            xAxis.setLowerBound( newXlower ); 
            xAxis.setUpperBound( newXupper );                        
            }                                        
            rectinitX.set(mouseEvent.getX());                                 
         } 
      } 
    }; 
        public static void main(String[] args) {
            launch(args);
        }
    }
    Thank you!

    I would use an ObservableList (probably supported by LinkedList) of XYChart.Data to store the collection of data "deleted". Create buttons as usual; handler of your button 'Delete' should remove the last element of the series and add it to the first element of data deleted messages points. The 'Add' button should delete the first item in the deleted data points and add it at the end of the series. You can bind the property of 'disable' the delete and Add button at Bindings.isEmpty (series1.getData ()) and Bindings.isEmpty (deletedDataPoints), respectively.

    Something like

    ObservableList> deletedDataPoints = FXCollections.observableList(new LinkedList>());
    ...
    removeButton.setOnAction(new EventHandler() {
      @Override
      public void handle(ActionEvent event) {
        deletedDataPoints.add(0, series1.getData().remove(series1.getData().size()-1));
      }
    });
    addButton.setOnAction(new EventHandler() {
      @Override
      public void handle(ActionEvent event) {
        series1.getData().add(deletedDataPoints.remove(0));
      }
    });
    removeButton.disableProperty().bind(Bindings.isEmpty(series1.getData()));
    addButton.disableProperty().bind(Bindings.isEmpty(deletedDataPoints));
    

    Another approach would be to use a separate list for all data points and keep an integer variable storing the number of data points are displayed. The "delete" button would decrement the displayed number, and your button 'Add' would increment the number in the display. Both would also call

    series1.getData().setAll(allDataPoints.sublist(0, numberOfDisplayedPoints));
    

    You might even be able to make the numberOfDisplayedPoints an IntegerProperty and bind the property data of the series in a pleasant way. This approach runs probably and the previous approach (using a stack of removed points), because you do not directly offer the graph as much more information on what has changed.

    Two approaches to problems (in the sense that you must carefully define your application logic and then to implement) if the underlying data is likely to change.

  • LR3 - Export in JPEG then add to the collection and replace existing?

    Is this possible? I know how to export to JPEG, and then add the file in my collection, but is it possible to get it to automatically replace the image I just exported, also delete its settings? Basically just update the original file.

    Thank you

    I could give you several reasons why this is not a good idea, and also why it is beating all the non-destructive nature of Lightroom...

    But no, I don't think that there is an automated way to do it. You must do this manually, but not worth it, it's just not a good idea. Just edit the photo in LR and the modified version appears in your collection, without export and by replacing the existing. Its much easier than what you propose.

  • Impossible to delete or add songs to the iPhone via iTunes

    Dear all,

    I'm with my previous iPhone (5s) as a music player - or trying to.

    My problem is that when I try to delete or add songs through iTunes, I can't.  The "Delete" option is grayed out, outside, on the Edit menu, and - in short - any attempt to delete the songs "on my device' has no value.  To add songs through drag-and-drop using manual synchronization is just as ineffective.

    Further: many of these songs on my device is dimmed, as if caught in Mid-sync.

    I deleted all the music from the device itself, but it still shows upwards as shown above in iTunes.

    I use iTunes 12.3.2 what I understand is the latest version.  For the record, this is on a Mac Pro Mavericks (10.9.5) running.

    Any suggestions (Googling the question is not useful) would be most appreciated.

    https://discussions.apple.com/thread/7163823 - if you subscribed to Apple music or iTunes game, you will not have to run manually or synchronize music on a device in iTunes. Synchronize your music is made by iCloud and all of your eligible music should appear there. Movies can always be synchronized.

    A little more on this subject and a few options - https://discussions.apple.com/thread/7194995 and: move content from iTunes on your computer to your iPhone, iPad or iPod touch

    - https://support.apple.com/en-us/HT201593

    and a workaround - https://discussions.apple.com/message/28842873#28842873

    If you haven't signed up for one of the iCloud based services:

    https://discussions.apple.com/message/28481661#28481661 - "synchronize your music changed in iTunes 12.2.0 and iOS 8.4 music App."

  • Group by query, and then add another dimension

    Hello guys,.

    I am facing problem while building a query. In this, I do group first, and then add a column with a condition more.

    I have following data in the table or existing query.

    create table tableA (key number (5), newspaper varchar2 (5), varchar2 (5) Blog, available1 number (10), disponibles2 number (1), Type varchar2 (5))

    Insert into tableA values (100, ' 501 ', ' 1501', 10000, 8000, "T1")

    Insert into tableA values (100, ' 501 ', ' 1501', 12000, 0, 'T2')

    Insert into tableA values (200, ' 502 ', ' 1505', 15000, 9000, "T11")

    Insert into tableA values (200, '502', '1505', 8000, 1000, "T12")

    Insert into tableA values (200, '502', '1505', 5000, 1000, "T13")

    Insert into tableA values (300, ' 503 ', ' 1510', 7000, 6000, "T21")

    Insert into tableA values (400, '503', '1510', 6000, 1000, 'T31')

    I created the 'Difference' on the fly using NVL (available1, 0)-NVL(Revenue2,0) as the difference

    Type of difference key1 journal Blog available1 disponibles2

    100 501 1501 10000 8000 2000 T1

    100 501 1501 12000 12000 T2

    200 502 1505 15000 9000 6000 T11

    200 502 1505 8000 1000 7000 T12

    200 502 1505 5000 1000 4000 T13

    300 503 1510 7000 6000 1000 T21

    400 503 1510 6000 1000 5000 T31

    Desired output

    We must show Type (Sun) only when the difference is high and have to group by (Key1, Journal, Blog) while the rank becomes a.

    It is like showing the first 6 columns first and then add the columns of 'Type' later (probably using subqueries).

    Type of difference key1 journal Blog available1 disponibles2

    100 501 1501 22000 8000 14000 T2

    200 502 1505 28000 11000 17000 T12

    300 503 1510 7000 6000 1000 T21

    400 503 1510 6000 1000 5000 T31

    Any idea or detail will be appreciated.

    Thank you

    Use the DUNGEON:

    Select the key,

    Journal,

    blog,

    Sum (revenue1) available1,

    Sum (revenue2) disponibles2,

    NVL (Sum (revenue1), 0)-nvl (sum (revenue2), 0) difference.

    Max (type) keep (dense_rank last order of nvl(revenue1,0) - type nvl(revenue2,0))

    from tablea

    Key, group

    Journal,

    blog

    order by key,

    Journal,

    blog

    /

    TYPE OF KEY JOURNAL BLOG AVAILABLE1 DISPONIBLES2 DIFFERENCE
    ---------- ----- ----- ---------- ---------- ---------- -----
    100 501 1501 22000 8000 14000 T2
    200 502 1505 28000 11000 17000 T12
    300 503 1510 7000 6000 1000 T21
    400 503 1510 6000 1000 5000 T31

    SQL >

    SY.

  • How do to activate 'VAPP Options' on an existing virtual machine, and then add the properties that will be passed down through the OVF - ENV. XML



    I'm trying to understand vSphere PowerCLI how to activate the "Options of VAPP" on an exsiting VM (in this case a model freshly cloned) then add properties and select cdrom of the FVO data access such as when the virtual machine is running the FVO - env.xml contains the properties in the CD-ROM drive.

    If I use the vSphere client and open the virtual machine settings and click on the tab 'Options' and then select "Options of VAPP" and change the setting to "Enabled" and then select 'VAPP-> Advanced Options' and click on the button 'Properties' on the right, I can add the properties and then I can change them vsphere PowerCLI, but given that these actions are not retained if I clone the virtual machine I need a way to put these in place of vSphere PowerCLI without using the vSphere client to do.

    Thanks in advance for the help!

    Mike

    You can use the vSphere API to activate the 'Options of VAPP"on an existing virtual machine, and set properties. For example:

    $spec = new-Object VMware.Vim.VirtualMachineConfigSpec

    $spec.vAppConfig = new-Object VMware.Vim.VmConfigSpec

    $spec.vAppConfig.property = new-Object VMware.Vim.VAppPropertySpec [] (1)

    $spec.vAppConfig.property [0] = new-Object VMware.Vim.VAppPropertySpec

    $spec.vAppConfig.property [0] .operation = 'Add '.

    $spec.vAppConfig.property [0] = new-Object VMware.Vim.VAppPropertyInfo .info

    $spec.vAppConfig.property [0].info.key = 0

    $spec.vAppConfig.property [0].info.classId = "Property1ClassID".

    $spec.vAppConfig.property [0].info.instanceId = "Property1InstanceID".

    $spec.vAppConfig.property [0].info.id = "Property_1.

    $spec.vAppConfig.property [0].info.category = "Property1Category".

    $spec.vAppConfig.property [0].info.label = "property 1.

    $spec.vAppConfig.property [0].info.type = "string".

    $spec.vAppConfig.property [0].info.userConfigurable = $true

    $spec.vAppConfig.property [0].info.defaultValue = "Property1DefaultValue".

    $spec.vAppConfig.property [0].info.value = «»

    $spec.vAppConfig.property [0].info.description = "Property1Description".

    $vm = get-VM-name vm3

    $vm. ExtensionData.ReconfigVM_Task ($spec)

  • Need to alter (widen) a varchar column, then add two zeros.

    I dug a table of VARCHAR2 column (3) in varchar2 (5)
    and I need to update the 945 values that are not null with two zeros.
    However, when I widened the column he added 2 spaces on the right

    ALTER TABLE source_inspection change)
    afs_action_number VARCHAR2 (5)
    );
    Modified table.


    SQL > Select afs_action_number
    2 from source_Inspection
    3 where afs_action_number is not null;

    AFS_A
    -----
    526
    526
    525
    524
    123
    523
    123
    123
    WWW
    123
    521

    11 selected lines.

    My goal is to increase the column width
    Then the lpad/prefix two zeroes to the left of the number.
    -to go from 123__ to 00123
    How can i:
    (1) expand the column and put the spaces to the left?
    (2) then add two zeros after enlargement?
    (I don't want to change the column varchar2 to a number).

    Thank you!

    Please explain in detail.

    Something like that?

    update source_inspection
          set afs_action_number='00'||trim(afs_action_number)
          where afs_action_number is not null
    

    Arun-

  • graphics.lineStyle thickness pixels?

    Hello, in the adobe ActionScript 3.0 documentation the thickness of flash.display.graphics.lineStyle parameter is defined as:

    "An integer that indicates the thickness of the line in points;"

    How many pixels is at some point? Basically, I need to know how many pixels will take a line created with a certain thickness.

    Hey Noah,.

    Unlike what the description says, I think the value is actually in pixels. Since the time I used it, the eye it looks like its pixels in.

    Here is an excerpt from a page on adobe.com where they show an example of its use. They also refer to as a value in pixels :

    "... For example, this line of code indicates the shape named myShape to draw lines that are thick, 2 pixels red (0 x 990000) and 75% opaque:... »

    and the code example:

    myShape.graphics.lineStyle(2, 0x990000, .75);
    

    Here is the page:

    http://livedocs.Adobe.com/Flex/3/HTML/Help.HTML?content=Drawing_Vector_Graphics_4.html

    hope that helps. Good luck!

  • IllegalStateException then add the previously deleted field

    Code snippet that fails:

    /** * Depending on the value of homeScreen.mNumberEditField, the * mHomeScreen.myTextField is removed or re-added after being * removed.  Does not work, when re-added an IllegalStateException * is thrown. */class MyEditFieldChangeListener implements FieldChangeListener {
    
        HomeScreen mHomeScreen;
    
     // the default state, where the mytextfield is showing    int STATE_DEFAULT = 1;
    
      // we've removed the mytextfield  int STATE_MY_TEXTFIELD_REMOVED = STATE_DEFAULT + 1;
    
     // current state  int curState = STATE_DEFAULT;
    
     public NumberEditFieldChangeListener(HomeScreen homeScreen)   {     super();      mHomeScreen = homeScreen; }
    
       public void fieldChanged(Field field, int context)    {     if (context == PROGRAMMATIC)      {         // ignore "programmatic changes", whatever that means.            return;       }
    
           if (field == homeScreen.mNumberEditField) {
    
             int len = homeScreen.mNumberEditField.getTextLength();            switch (len)          {         case 0:
    
                 if (curState == STATE_MY_TEXTFIELD_REMOVED)               {                 // throws IllegalStateException.                  mHomeScreen.add(mHomeScreen.myTextField);                 curState = STATE_DEFAULT;             }
    
                   break;            default:              // is it numeric?             if (isNumeric() == false)             {
    
                       // remove call log fields                 if (curState == STATE_DEFAULT)                    {                     mHomeScreen.delete(mHomeScreen.myTextField);
    
                            curState = STATE_MY_TEXTFIELD_REMOVED;                    }
    
                   }             break;            }     }
    
       }
    
    }
    

    I found a solution that seems to work:

    Instead of the call

    mHomeScreen.add(mHomeScreen.myTextField);
    ...
    mHomeScreen.delete(mHomeScreen.myTextField);
    

    I tried to use

    mHomeScreen.getMainManager().add(mHomeScreen.myTextField);
    ..
    mHomeScreen.getMainManager().delete(mHomeScreen.myTextField);
    

    and the error disappeared.

  • MAX value query and then add to existing querry

    Hi all

    Asked me to add some fields to add to an existing query.
    I'm having a problem with the initial query, so let's start first, and then maybe I'll be able to figure out how to add it in.
    Here is my sample data:
    CREATE TABLE TASK
    ( 
        TASK_TYPE     VARCHAR2 (50 BYTE),
        TASK_SEQ      VARCHAR2 (50 BYTE),
        COMPL_DATE    DATE,
        REQUIRED_TASK VARCHAR2 (100 BYTE)
    );
    
     
    INSERT INTO TASK (TASK_TYPE, TASK_SEQ, COMPL_DATE, REQUIRED_TASK) VALUES ('ABC',18, TO_DATE('12-MAR-12','DD-MON-YYYY'), 'Y');
    INSERT INTO TASK (TASK_TYPE, TASK_SEQ, COMPL_DATE, REQUIRED_TASK) VALUES ('DEF',16, TO_DATE('12-MAR-12','DD-MON-YYYY'),'Y');
    INSERT INTO TASK (TASK_TYPE, TASK_SEQ, COMPL_DATE, REQUIRED_TASK) VALUES ('HIJ',12, TO_DATE('09-MAR-12','DD-MON-YYYY'), 'Y');
    INSERT INTO TASK (TASK_TYPE, TASK_SEQ, COMPL_DATE, REQUIRED_TASK) VALUES ('KLM',15, TO_DATE('12-MAR-12','DD-MON-YYYY'), 'Y');
    INSERT INTO TASK (TASK_TYPE, TASK_SEQ, COMPL_DATE, REQUIRED_TASK) VALUES ('NOP',11, TO_DATE('11-MAR-12','DD-MON-YYYY'), 'Y');
    INSERT INTO TASK (TASK_TYPE, TASK_SEQ, COMPL_DATE, REQUIRED_TASK) VALUES ('QRS',20, TO_DATE('29-MAR-12','DD-MON-YYYY'), 'Y');
    INSERT INTO TASK (TASK_TYPE, TASK_SEQ, COMPL_DATE, REQUIRED_TASK) VALUES ('TUV',13, TO_DATE('11-MAR-12','DD-MON-YYYY'), 'Y');
    INSERT INTO TASK (TASK_TYPE, TASK_SEQ, COMPL_DATE, REQUIRED_TASK) VALUES ('WXY',19, TO_DATE('30-MAR-12','DD-MON-YYYY'), 'Y');
    INSERT INTO TASK (TASK_TYPE, TASK_SEQ, COMPL_DATE, REQUIRED_TASK) VALUES ('Z',24,   TO_DATE('04-APR-12','DD-MON-YYYY'), 'Y');
    My desired output is the MAX (TASK_SEQ) based on the data set, the TASK_SEQ and the COMPL_DATE should always be recording albums that I'm trying to capture,
    such as:
    {Europe}
    TASK_TYPE TASK_SEQ COMPL_DATE REQUIRED_TASK RNK
    Z 24 4 4 2012 Y (DO NOT WANT THIS)
    I have this code that I thought would work, but not as of yet - it returns all rows and ranks eac as 1.
    {code}
     WITH DST AS
     (
      SELECT  TASK_TYPE,
              TASK_SEQ,
              COMPL_DATE,
              REQUIRED_TASK,
              RANK () OVER (PARTITION BY TASK_TYPE ORDER BY COMPL_DATE) rnk
      FROM TASK
      )
      SELECT * FROM DST
      WHERE rnk = 1
    {code}
    And this yields basically the same results:
    {code}
    SELECT  TASK_TYPE,
            TASK_SEQ,
            COMPL_DATE,
            REQUIRED_TASK
    FROM TASK
    WHERE (TASK_TYPE, TASK_SEQ) IN (SELECT TASK_TYPE, MAX(TASK_SEQ)
                                                    FROM TASK
                                                    GROUP BY TASK_TYPE )
    {code}
    
    Thanks for taking the time to look.
    
    G                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                

    Hello

    GMoney says:
    ... Here is my sample data:

    Thank you! It is very useful.

    ... My desired output is the MAX (TASK_SEQ) based on the data set, the TASK_SEQ and the COMPL_DATE should always be recording albums that I'm trying to capture,
    such as:
    {Europe}
    TASK_TYPE TASK_SEQ COMPL_DATE REQUIRED_TASK RNK
    Z 24 4 4 2012 Y (DO NOT WANT THIS)
    Be careful. The keyword tiny must code. (It must be spelled correctly, too.)
    What is the desired line or line that you don't want? If this is the desired line, so you were on the right track with your first attempt. Try this:

    WITH DST AS
     (
      SELECT  TASK_TYPE,
              TASK_SEQ,
              COMPL_DATE,
              REQUIRED_TASK,
              RANK () OVER (ORDER BY COMPL_DATE DESC) rnk
      FROM TASK
      )
      SELECT * FROM DST
      WHERE rnk = 1
    ;
    

    Exactly what you have published, with the exception of the analytical clause.
    'PARTITION BY task_type' means a separate set of numbers (starting with 1) assign to each separate task_type. Since task_type is unique, this means that each line is #1 in his own little world. If I understand the problem, you want (except ties) only 1 rank for the entire result set. This means you don't at all want a PARTITION BY clause. PARTITION BY is never required in any analytic function.
    "ORDER BY compl_date" means that the first compl_date gets rnk = 1. You want the latest comp_date to get #1, so you must specify descending order. Note that this has nothing to do with task_seq. It you want to display the line with the highest task_seq, then the rnk column would be defined as:

    RANK () OVER (ORDER BY task_seq DESC) rnk
    

    If you know that the line with the upper task_seqs is always compl_dates later, then it does not matter that you use. Remember to descending order.

  • A single button that deletes and adds MCs

    I am trying to create a button that, when clicked first, will add a MC to the scene. Then, on the second and subsequent clicks delete the existing MC and replace it with a new one. The code I use is:

    Stop();

    Draw1.buttonMode = true;

    Draw1.useHandCursor = true;

    Draw1.addEventListener (MouseEvent.MOUSE_DOWN, dealTheCard);

    var alreadyDrawn:Boolean = false

    function dealTheCard(event:MouseEvent):void {}

    If (alreadyDrawn == true) {}

    this.removeChild (drawnCard);

    trace ("removed card")

    }

    var drawnCard:MovieClip = new deck1();

    alreadyDrawn = true

    addChild (drawnCard);

    drawnCard.x = 60;

    drawnCard.y = 50;

    drawnCard.gotoAndStop (Math.ceil (Math.random () * 11))

    }

    For some reason, I get an error saying:

    TypeError: Error #2007: child parameter must be non-null.

    at flash.display::DisplayObjectContainer/removeChild()

    to encountercards3_fla::MainTimeline/dealTheCard()

    What I am doing wrong? Is there a better way to manage it than what I have above?

    use:

    var drawnCard:MovieClip

    Stop();

    Draw1.buttonMode = true;

    Draw1.useHandCursor = true;

    Draw1.addEventListener (MouseEvent.MOUSE_DOWN, dealTheCard);

    var alreadyDrawn:Boolean = false

    function dealTheCard(event:MouseEvent):void {}

    If (alreadyDrawn == true) {}

    this.removeChild (drawnCard);

    trace ("removed card")

    }

    drawnCard = new deck1();

    alreadyDrawn = true

    addChild (drawnCard);

    drawnCard.x = 60;

    drawnCard.y = 50;

    drawnCard.gotoAndStop (Math.ceil (Math.random () * 11))

    }

  • How to add a Sprite in a container and animate it with AS3?

    I am quite experienced Actionscript 3 programmer (I mainly work in the Flash IDE), but come back to Flex after a 2 year hiatus.  I know this may seem ridiculously simple, but how do I add a container (i.e. a Sprite object) on stage in flex and animate a Sprite object inside?  I want to make a VU-meter for audio out an application which is simply two rectangles that will resize vertically to the level of the master channel volume.

    In AS Flash/pure, I would simply create 2 Sprite objects, add them to the stage or some other container Sprite and then proceed to change their scales Y at regular intervals with the following code:

    protected function enterFrameHandler(event:Event):void

    {

    If (isPlaying)

         {

    / / Level display update...

    var lftAmp:Number = 0;

    var rtAmp:Number = 0;

    lftAmp = Math.max (outputChannel.leftPeak);

    rtAmp = Math.max (outputChannel.rightPeak);

    leftPeak.scaleY = ((Math.round(lftAmp*40)) / 20);

    rightPeak.scaleY = ((Math.round(rtAmp*40)) / 20);

         }

         else

    {

    leftPeak.scaleY = 0;

    rightPeak.scaleY = 0;

         }

    }

    With MXML, I am at a complete loss!

    Where should I put the Sprites (what container in Flex should I add them also)?

    How can I add them to a container?

    What should I use to keep the regular calendar (EnterFrame or a Timer object)?

    I bought 2 books on Flex and doesn't really seem to take account of the fact that I want to animate in Actionscript 3, FLEX NO!  They suggest using the animate class and class AnimateInstance, etc...  This seems much more complex and adds layers of abstraction that is really not needed!  One of the reasons that I stopped using Flex 2 years has been done the same type of problem I'm facing here!  MXML is great when it comes to components and to simplify the page layout, however, when we want to do something out of pure standard with ActionScript, MXML adds a convoluted layer of complexity which is not always as intuitive as one would expect!  Maybe I go about it the wrong way, but I'm used to doing things with ActionScript only!

    Thanks in advance for any help/advice anyone can give!

    Matt

    MXML is a markup language and allows people to easily put all the applications using

    a setting that common componentizes models and features.  It is not

    As you complete as programming language can almost think MXML as a

    language of macros.

    If you look at the framework itself, it is almost entirely written in

    ActionScript (with the exception of the spark skins), because we try to encapsulate

    things at low altitude.

    Then write your component did you and add it to your application via MXML.  Follow it

    recipes for the custom components in the doc.  It's more work that simply write

    a simple flash application, but the standard benefits of encapsulation and reuse

    apply.

    And you can always stick a UIComponent in your MXML, give it a fixed

    width/height and use this as a sprite.

Maybe you are looking for

  • Corrupt tab backround

    The background of the tabs is corrupt when I left click on them most of the time. Reinstall the browser or the system did not help.

  • I've just updated to firefox 20.0 and impossible to find privacy, navigation option. What happened to him?

    I clicked on help and then about firefox and it updated automatically 19.0.2 to 20.0. I had the taste navigation option in the 19.0.2 but not now. That's happened? the form data works too and I don't like either.

  • EGAD! Learn how to use the G15

    EGAD! This computer is anything but a Secretary! Love it, but can't understand exactly what to do. The e-manual does not cover everything. My big question is in the tv tuner. It will only work if I have a coaxial cable? Is there a built in antenna or

  • A720 IdeaCentre turns off only after half a minute

    Why does my computer go out alone after half a minute and comes to the screen in the entrance of windows and I need to type the password and login from scratch. Moderator edit: added detail to the subject.

  • Jacquie Lawson advent calendar no longer works

    My timetable for the advent of Jacquie Lawson worked perfectly from 1 to 13 December inclusive.  Now, it does not open and suggests that it is incompatible.  Instead he will fly to the side when I click the icon. Original title: program compatibility