|
Private 2011. 7. 14. 11:47
Flash 개발
AIR / FLEX 개발
Apple 관련
디자인/광고
프로그래밍 일반
프로그래밍 게임
수학/물리
사진
Adobe Flash 2011. 7. 14. 11:10
Adobe Flash 2011. 7. 14. 11:08
카테고리 없음 2011. 7. 13. 00:03
Math클래스에는 수를 반올림이나 올림 내림등을 제공하는 floor(내림) , ceil(올림) , round(반올림,반내림)를 제공한다.
* 소수점 첫째 자리의 값을 반올림
Math.round( 25.5525 ) // 출력 : 26
* 소수점 둘째 자리의 값을 반올림
trace( Math.round( 25.5525 / .01 ) * .01 ) // 출력 : 25.55
- ( 25.5525 / .01 ) 에서 10의 거듭제곱을 한 값인 2555.25를얻게 되고 .25는 5보다 적으므로 반내림한다.
따라서 Math.round( 25.5525 / .01 )는 2555를 반환하고 그 값에 .01을 곱하여 다시 2두리의 소수점의 값을 얻어낸다.
trace( Math.round( 25 / 10 ) * 10 ) // 출력 : 30
- 방식은 위와 같고 자리수가 두자리인 10이다. 따라서 반올림과 내림의 기준을 10씩 끊어서 확인할 수 있다.
trace( Math.round( 25 / 100 ) * 100 ) // 출력 : 0
- 같은 방식이고 얻어진 값이 소수점이하 0.25 이를 다시 반올림하면 0이고 100을 곱하여도 0이다. 즉 100씩 끊어서 반올림이나 반내림을 하는 것이다.
출처: http://waterfox.tistory.com/category/FLEX
Adobe Flash 2011. 7. 8. 11:44
* ASCrypt3 *
먼저 출처는 여기: http://ascrypt3.riaforge.org/
지원한다는 함수들은
- Base64, Base8, Goald, GUID, MD5, RC4, Rijndael, ROT13, SHA1, TEA, LZW
ASCript32.zip
* AS3 Crypto Library *
먼저 출처는 여기: http://osflash.org/as3crypto/
지원 한다는 함수들은
- TLS 1.0 support, exposed through TLSSocket and TLSEngine classes
- X.509 Certificate support, including parsing, and validation
- built-in list of common root Certificate Authorities
- symmetric ciphers: AES, Blowfish, DES, 3DES, XTEA, RC4
- confidentiality modes: CTR, CBC, CFB, CFB-8, OFB, ECB
- public key crypto: RSA (encryption, decryption, signing, verifying and key generation)
- padding: PKCS#1 (type 1 and 2), PKCS#5
- BigInteger library
- hashing function: SHA-256, SHA-224, SHA-1, MD5, MD2
- HMAC support
- prng: TLSPRF and stream-cypher-based PRNG.
- minimal ASN-1/DER support for PEM key parsing and X-509 cert parsing
- Crypto - Shortcut class to access many classes above.
- Hex, Base64 - Static methods to convert binary data to and from text formats
as3Crypto.zip
http://code.google.com/p/as3crypto/
출처: http://blog.daum.net/joshuajh/5670677
iOS 2011. 7. 5. 15:33
터미널로 arguments를 넣을 경우
해당 폴더내로 진입 해야 한다.
|