title: JavaFx Current position ImageView in transition
body: <p>Why doesn´t worked ? Do you have some idea ? I need resolve this problem i need actual position x and position y for my sprite animation.</p>
  
  <pre><code>Image iv1 = new Image("Images/Asteroid.png", 60, 50, false, false);
  ImageView iv2 = new ImageView(iv1);
  iv2.setX(100);
  iv2.setY(200);
  
  Path p = new Path();
  p.getElements().add(new MoveTo(100, 200));
  p.getElements().add(new LineTo(100, 400));
  PathTransition pt = new PathTransition(Duration.millis(4000), p);
  pt.setNode(iv2);
  root.getChildren().add(iv2);   
  DoubleProperty xValue = new SimpleDoubleProperty();
  xValue.bind(iv2.xProperty());
  xValue.addListener(new ChangeListener() {
  
      @Override
      public void changed(ObservableValue ov, Object t, Object t1) {
          System.out.println("Current x : "+(double)t1);
      }
  });
  pt.play();
  primaryStage.setScene(scene);
  primaryStage.show();
  </code></pre>