[카테고리:] Flash

  • [AS3] Animated GIF optimization – frame differencing

    Now a days, I was thinking about how to optimize an animated GIF image. And I’ve got some solutions from the following link.
    Optimizing Animated GIFsI tried one thing, frame differenecing. I don’t know it conforms to the GIF specification. But it can be useful somehow.

    요즘 GIF 애니메이션 최적화에 대해서 연구하고 있는데, 아래 사이트에서 유용한 정보들을 얻을 수 있었습니다.
    Optimizing Animated GIFs그 중에 프레임 디퍼런싱을 만들어 보았습니다. GIF 스펙을 따르는지는 모르지만, 써먹을 데가 있을듯 하여…
    (더 보기…)

  • [AS3] Fading Border Effect

    Source image

    BitmapData.copyChannel() method copies a channel from a source image and pastes it into a target image’s alpha channel. You can control the transparecy of an image by manipulating the image’s alpha channel with a source image.
    The following code adds fading border effect to an image.

    BitmapData.copyChannel() 메소드를 사용하여, 원하는 이미지의 특정 채널을 대상 이미지의 알파채널로 복사할 수 있습니다. 이것을 사용하면 소스 이미지를 알파채널로 사용하여 이미지의 투명도를 제어할 수 있습니다.
    아래 코드는 이미지의 테두리를 부드럽게 빼는 효과를 구현한 것입니다.
    (더 보기…)

  • Live JPEG Encoder 0.3 by Thibault Imbert

    Here is an application i had to develop in Actionscript 3, it lets you capture any content into a JPEG file (JPEG Encoding corelib class) with quality settings and size infos, you can choose between two modes, that lets you save the file on the server or your hard-disk.

    quote from ByteArray.org

    Live JPEG Encoder 0.3

    AMFPHP Live JPEG Encoder 0.4 [ by Thibault Imbert ]

  • Flash samples & resources

    Adobe Flash samples
    You can download samples of ActionScript 2.0, ActionScript 3.0 and Flash Lite.

    Flash resources
    You can learn from livedocs or download PDFs.

    thanks to jhb0b

  • trace() in ActionScript 3.0

    In AS2, trace() accepted only one parameter. But, in AS3, trace accept one or more parameters.
    AS2에서는 trace()에 하나의 파라메터만 입력 할 수 있었지만,
    AS3에서는 여러 개의 파라메터를 보낼 수 있게 바뀌었네요.

    public function trace(… arguments):void

    Parameters
    … arguments — One or more (comma separated) expressions to evaluate. For multiple expressions, a space is inserted between each expression in the output.

    quote from ActionScript 3.0 Language and Components Reference

    When you execute this code
    trace(“a”, “b”, “c”, “d”);
    a string separated by space will be printed.
    a b c d
    trace(“a”, “b”, “c”, “d”);
    를 실행하면
    a b c d
    와 같이 ” ” (공백문자)로 구분된 문자열이 출력되는 군요.