actionscript 3 - Create round corner video object -


i want create rounded corner video object video player. how create object:

var videocamera:video = new video(300, 225); 

the problem make object square video. want corner of object round instead of square. have searched lot on google , not find example or fix problem.

i did this, dont work..

videocamera.graphics.linestyle(5, 0x00ff00, 1); //last arg alpha videocamera.graphics.beginfill(0xff0000, 1); //last arg alpha videocamera.graphics.drawroundrect(0, 0, 100, 100, 25, 25) videocamera.graphics.endfill(); addchild( videocamera); 

please me make video object have rounded corner.

to looking for, can use mask, :

var video:video = new video(320, 180);     video.x = video.y = 50; addchild(video);  var rounded:shape = new shape();     rounded.graphics.beginfill(0xff0000);     rounded.graphics.drawroundrect(video.x, video.y, video.width, video.height, 25, 25);     rounded.graphics.endfill(); addchild(rounded);  video.mask = rounded; 

that's !

hope can help.


Comments

Popular posts from this blog

php - Zend Framework / Skeleton-Application / Composer install issue -

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -