This is another fun animation from simple math. Mainly function that I use are: linear equation : y = ax + b Brownian Circle : radius to point For tweening between each mode was done by TweenLite and the sparking techniq is base on flash drawing api and linear equation with some tune on the [...]
by admin on February 12, 2009
หัวข้อนี้ไม่เขียนภาษาไทยคงจะแปลก เพราะเกี่ยวกับการดึงข้อมูลภาษาไทย จากไฟล์ XML หรือจากการส่งข้อมูลจาก Server แบบ XML Format เรื่องของเรื่องคือ พอดีได้มีโอกาสต้องทำงานดึงข้อมูลภาษาไทยมาแสดงบนหน้าเว็บ ซึ่งเนื้องานที่ทำอยู่ทุกที ไม่ค่อยได้ใช้ภาษาไทยเท่าไหร่ สรุปคือ เกิดปัญหาขึ้น แสดงได้บ้าง ไม่ได้บ้าง มี random character แปลกๆ ต่อท้ายข้อมูลที่โหลดมาบ้้าง ทำให้เกิด XML not well-formed ฟ้องขึ้นมา (ตัวอย่าง well formed xml) สุดท้ายไ้ด้ความช่วยเหลือจาก katopz และ joke และทำให้แก้ปัญหาไปได้ จึงอยากเอามาแบ่งปัน เผื่อว่าจะช่วยลดเวลาในการแก้ปัญหาของท่านอื่นๆ ได้ต่อไป ดังนี้ 1. ฝั่ง flash โหลด XML ตามปกติ แต่ห้ามใช้ System.useCodePage = true; ถ้ามีให้ comment ทิ้งไป เนื่องจากเราจะใช้การ encode [...]
by admin on January 24, 2009
After googling around I found wp-syntax which I think it’s quite power full and support many programming language (surely Actionscript3). Woooooo, see what it look like. var canvas_mc:Sprite = new Sprite(); addChild(canvas_mc); canvas_mc.graphics.beginFill(0xFF0000, .9); for(var i:int = 0; i
by admin on December 24, 2008
I’ve watched this movie “The Day The Earth Stood Still” on last Sunday, the movie is ok for me, nothing really surprise but one scene in the movie make me wanna do some experimental in the flash. If you don’t want to be spoiled please skip the next bit that I’m gonna write next. And [...]
by admin on December 23, 2008
I’ve submit my code for competition at 25lines but my one still not as good enough for get in the final list, all of the final list are very cool and good to see. By the way, it’s quite fun to try to code. So after failed from the final list, I’m continue working on [...]
by admin on December 12, 2008
After have some fun with the first version then I’ve update some math and fine tune some attributes to allow more leaf to be able to render. Next version expect to do something more random and closer to nature. This version can increase the number of leaf to 60 and able to decrease down to [...]
by admin on November 19, 2008
Winter has come in Bangkok now so let’s create a little camp fire to keep warm You can add more fire power by using the top right slider bar but be careful the more fire power the more cpu consumption need. (but I think it is not too bad for AS3 and new flash player [...]
by admin on November 12, 2008