간단한 비율을 유지한체 크기를 바꾸는 로직 (ResizeEvent)


간단한 비율을 유지한체 크기를 바꾸는 로직 (ResizeEvent)






그냥 피드를 남길것 까진 없지만 ... 그래도 어쩌다가 혹시 나 갑자기 머리가 안돌아 갈수 있을까봐
남긴다 (이 글을 썼다는 자체를 까먹을수도 있을것 같다. ㅡ,.ㅡ)



var _canvas:Canvas = new Canvas  // 캔버스 를 바탕으로..~

var vid:Video = new Video(640,480)
_canvas.addEventListener(ResizeEvent.RESIZE , resizer)
function resizer(e:ResizeEvent):void
{
    var WID:int = e.currentTarget.width
    var HEI:int = e.currentTarget.Height
    var scale:Number = 640 / 480        // 원하는 화면비율 
    
    if(WID > HEI * scale)
    {
        vid.height = HEI
        vid.width = HEI * scale        
    }else{
        vid.with = WID
        vid.height = WID * 1/scale
    }
}
야매코더_
AS3 2010. 12. 4. 03:54

댓글을 달아 주세요

  1. 이전 댓글 더보기
  2. BlogIcon 深圳横岗眼镜批发 2014.11.12 00:52  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  3. BlogIcon Cheap apple tv 2014.11.12 03:17  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  4. BlogIcon Buy ipad 4 from china 2014.11.12 03:17  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  5. BlogIcon moncler jacken 2014 2014.11.12 11:44  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  6. BlogIcon maglione moncler bambino 2014.11.12 11:45  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  7. BlogIcon moncler ipo enterprise value 2014.11.12 11:46  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  8. BlogIcon doudoune moncler 2012 france 2014.11.12 11:46  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  9. BlogIcon Ralph lauren danmark 2014.11.23 08:08  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  10. 匿名 2014.12.03 05:44  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  11. 匿名 2014.12.03 05:44  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  12. BlogIcon fulinglasses review 2015.03.05 17:04  수정/삭제  댓글쓰기

    가표Traditionally, Champagne has almethodsone way to celebrate milestones or toast the bride and groom at their marriage. Considered to be a versatile beverage, Champagne can also be served with a meal or with dessert. for a few years,tiffany co sunglasses, this actually refreshing and exotic drink has been used as some way of celebration and simplyenjoying the days that lie ahead.

    Champagne comes마알

  13. BlogIcon botte burberry pas cher occasion 2015.03.21 07:22  수정/삭제  댓글쓰기

    습이URL aIci,bikini burberry pas cher相关的主题文章:메크

  14. BlogIcon vetement burberry soldes 2015.03.27 21:10  수정/삭제  댓글쓰기

    마할abrogé. Des burberry parfum pas cher cris de joie, dans la montagne d'étirement et de Canyon, mais sa femme, et le Gouvernement et les forces armées d'autres pays,JAL duffle coat burberry homme Vol 123 au soir 61 2 heures. ce n'est pas une sorte de bonheur.Il s'est assis sur le trne mais il n'a jamais parlé de ce qu'il va hériter du trne. alors c'est la Fondation니전

  15. BlogIcon basket burberry 2015.03.31 00:03  수정/삭제  댓글쓰기

    그상URL aIci,chemisier burberry,basket burberry homme相关的主题文章:


    相关的主题文章:리있

  16. 匿名 2015.03.31 08:50  수정/삭제  댓글쓰기

    한뉴All these accessories are readily available at all leading online stores dedicated to motorcycle accessories. Thus,Why Should You Do Your Christmas Shopping Online-_53535., no matter whether you need to buy motorcycle covers or motorbike luggage bags, you are sure to find a suitable store using any search engine.



    Being more vulnerable to thefts, security of the motorcycle is also very impor리뉴

  17. 匿名 2015.04.01 06:28  수정/삭제  댓글쓰기

    니를Lacoste boots and a beret big mesh, or even the entire pleated skirt, tights and wool biker boots. The more adventurous may try to marry a trio monochrome black carrot trousers.



    Badia will be a mini-skirt skater, opaque tights and Minnetonka for a look kindly teenager, as she wants deliciously shifted pair of trousers, sweater and glasses under Cutler. Olympia for its partner with a slim we버가

  18. 匿名 2015.04.03 13:49  수정/삭제  댓글쓰기

    뉴다火车采集器html简单模板示范






    New Bikers Social Network Boasts to Offer Everything For Bikers







    [标签:来源]








    Traveling to new destinations remains as an irresistible obsession for many among us. Development in technology has brought in several sophisticated transporting facilities but to get the real thrill and tempo of a ride, motorcycle riding is the ideal option. One can지단

  19. 匿名 2015.04.03 17:38  수정/삭제  댓글쓰기

    지고Once you have decided to spruce up your hog, start collecting ideas. You can study the bikes passing you by on road trips, browse through bike catalogues, watch motorcycle shows on TV, or do a search online. Many shops offering custom motorcycle painting will have pictures of their work posted on their website. Check them out. You will soon notice that there are three distinctive types of custom m뉴부

  20. 匿名 2015.04.04 02:54  수정/삭제  댓글쓰기

    하그Like the above, knitted hat and a jacket with a lining seam searsucker-like. We're not normally a heavy logo'd pieces, but the embroidered letters feels like a part of the winter-generic design.



    Few have left thoughts about the current collection. Moncler is not for everyone because not everyone can come from the look of nyloned painted in a bright color,Shopping Cart Software - Layi, but t려의

  21. 匿名 2015.04.09 00:24  수정/삭제  댓글쓰기

    히단and even better news is that their greatest extent EVER!Beautiful flowers and fittings add a touch of tartan jackets that unmistakable feminine essence, while injections of red.



    Purple and orange make this the biggest ever range of colors.Barbour waxed jackets, Barbour International Quilt Jacket, Jackets Barbour Polar Quilt .


    It is a wll known fact that we can save money by shopping on그선

Powerd by Tistory, designed by criuce
rss