For your reference, here’s Part 1 and Part 2. If the example doesn’t work, it was because Part 1 and 2 uses the same variables. Open this guide as a separate page to fix it. Also remember that you need a browser that supports Canvas, such as Firefox 3. Before you start drawing lines, you […]

We learned how to create Canvas objects in Part 1, and we also learned how to draw a simple shape on Part 1. You need a browser that support Canvas such as Firefox 3 to run the examples.   Now it’s time to show how to crate a canvas that “overlays” your web-page. By overlay, […]

LocalConnection enables two or more Flash files to communicate with each other.  You can also use other methods, such as SharedObject, but the benefit of LocalConnection is the real-time nature of LocalConnection. For more information, click Adobe documentation here.  You can also use LocalConnection if you need to communicate with an ActionScript 2 Flash files. […]

This is a guide of how to use HTML 5 Canvas, as well as some JavaScript/css tricks to enable drawing on top of a web page. To see the result of this tutorial, open https://permadi.com/blog/?p=383. Canvas introduction is covered here and here. You need a browser that support Canvas such as Firefox 3 to run […]

HTML

Here’s a silly demo I made with HTML 5 Canvas object. You need a browser that supports Canvas such as Firefox 3. Warning: you will need to use the browser’s Back button to navigate away from the page. https://permadi.com/blog/?p=383 See the tutorial.

This example uses Canvas to flip an image.  For introduction to Canvas, please see https://www.permadi.com/tutorial/jsCanvasGrayscale/index.html. With Canvas, developers gains the access to pixels data of any images loaded.  To flip an image, we can iterate every row of the image and copy the pixels backward. Please upgrade your browser function flipImage(image) { var myCanvas=document.createElement(“canvas”); var […]

March 17.  One of the four companies that went IPO this year is Changyou. Changyou.com, is the company behind Massive Multi-Playe Online Game Tian Long Ba Bu, made the biggest IPO offering so far in 2009.  Owned by parent company Sohu, Changyou was launched in 2006 and now has over one-million active users.     […]

There are times when you might want to iterate through and display the capabilities of the Flash Player.  This snippet will do that: The output is something like this: hasPrinting=true hasScreenPlayback=true screenDPI=72 _internal=1 os=Windows Vista hasAccessibility=true hasMP3=true version=WIN 9,0,159,0 screenResolutionY=1050 hasEmbeddedVideo=true manufacturer=Adobe Windows hasVideoEncoder=true pixelAspectRatio=1 hasAudio=true screenResolutionX=1680 hasTLS=true isDebugger=true screenColor=color hasStreamingVideo=true serverString=A=t&SA=t&SV=t&EV=t&MP3=t&AE=t&VE=t&ACC=… language=en hasAudioEncoder=true playerType=PlugIn […]

Flash Garbage Collector executes at unpredictable times.  The engineer at Adobe have alleviated this somewhat with the introduction of System.gc(); command.  See the reference at: http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/system/System.html#gc() I won’t argue whether it is a good or bad idea to call the garbage collector manually.  I many cases, it is not necessary.  However, I believe that there […]

1 14 15 16 17 18 22