X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=plugins%2Fdali-script-v8%2Fdocs%2Fcontent%2Fpath-animation.js;h=45b7fb638cd46547529b6fb603ee5bed3e71fd06;hb=d8a62ef92f9ddecc199eb88ed7698194bc539662;hp=81aece0a565219eec108cb76a8225e1071f6709f;hpb=46516d3e1711bd272cc00002876cf207465fa8ce;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/plugins/dali-script-v8/docs/content/path-animation.js b/plugins/dali-script-v8/docs/content/path-animation.js index 81aece0..45b7fb6 100644 --- a/plugins/dali-script-v8/docs/content/path-animation.js +++ b/plugins/dali-script-v8/docs/content/path-animation.js @@ -23,17 +23,16 @@ myPath.generateControlPoints( 0.25 ); function begin() { - var image = new dali.ResourceImage( {url:"gallery-small-45.jpg"} ); + var imageView = new dali.Control("ImageView"); + imageView.image = "gallery-small-45.jpg"; - var actor = new dali.ImageActor(image); - - actor.position = [100,100,0]; - dali.stage.add( actor ); + imageView.position = [100,100,0]; + dali.stage.add( imageView ); var animation = new dali.Animation(2.0); - var animOptions = { alpha:"easeInOutSine", delay:0.5, duration:1.5 }; + var animOptions = { alpha:dali.ALPHA_FUNCTION_EASE_IN_OUT_SINE, delay:0.5, duration:1.5 }; var forward = new dali.Vector3(1,0,0); - animation.animate( actor, myPath, forward, animOptions ); + animation.animate( imageView, myPath, forward, animOptions ); animation.setLooping( true ); animation.play();