blog
2010 ArchiveJozef Chúťka's blog — blog.yoz.sk/2010/page/9/
March 15, 2010
chat Facebook onConference screencast video
onConference – Facebook Video Chat Screencast
At last, I managed to work youtube videos on my blog using Embedded Video plugin. Watch this youtube screencast video about how to make facebook video calls with onConference application:
YouTube onConference - Facebook Video Chat Screencast
March 12, 2010
Button ButtonBar rating RatingButtonBar
RattingButtonBar class

RatingButtonBar class extends ButtonBar and is meant to be used for ratings. Just like common star ratings all over the internet. Based on ButtonBar it makes it easy skinable for developers. Use bindable selectedIndex to get index of selected rating (zero based).
March 10, 2010
css font-face fontFamily fontStyle fontWeight Helvetica
What fontName to use with embedding?

This article extends “Embedding fonts bold vs. black” post. Sometimes it may be tricky to guess correct fontName with your font. Compilator works with different fontNames than what Flash IDE shows you. Lets say you want to embed fonts from .swf (library) file into .css file. In Flash IDE, properties panel for TextInput, character Family and Style stand for something totaly different that what you gonna need with correct fontName value later in .css file. In fact solution is very easy.
March 9, 2010
Facebook facebook api FBML request-form serverFbml XFBML
Inviting Friends into Facebook Application (update)

Those are hard times. Facebook discontinued support for Notifications.send method March 1, 2010. Calling this method returns error code 3 (Unknown method). Instead, developers are directed to use other communication channels. From those some are not yet even a part of facebook-actionscript-api yet (dashboard) other not published from facebook (invites) and those that may work via api are experimental and may change any day (activities).
Excluding streams as communication channel, the only usable way, these days, to acquire some new facebook application users is using <Fb:request-form> (part of FBML). When your application is IFrame, you may find interesting that you are able to use FBML within your HTML files. In order to make this happen, you have to use <Fb:serverFbml> (renders the FBML on a Facebook server inside an iframe). Now, lets see how to open request form in your Facebook Iframe application:
March 4, 2010
BasicRenderEngine Cube DisplayObject3D Papervision 3D QuadrantRenderEngine sortMode ViewportLayer ViewportLayerSortMode z-sort
Fixing Z-sorting in Papervision 3D (update)

It may be very tricky thing to get papervision 3d scene rendered correctly event for the simpliest objects. In my case, I have created simple 3d scene with few primitive objects (8 cubes). Cubes are positioned close to each other to create shape of bigger cube + some small space between. Cubes are added into wrapping DisplayObject3D, later wrapper is added to scene in order to make it easy to rotate cubes as a group. Camera targets the center of the scene. In the demo, there are 3 sliders to rotate wrapping object in each x, y, z axis + two buttons that rotates wrapper in the problematic possition (based on z-sorting fix approach). Finally I managet it to work, you can follow my approaches below. Notice the changes are not cummulative, each approach comes from original Application.mxml. All of the ideas collected online from blogs, forums etc.
February 18, 2010
BitmapData fps pixel bender Shader ShaderJob
Pixel Bender Disco

While playing with pixel bender, I created some simple sahders that when combined, reminds me of winamp visualizations effects. Feel free to use any in your own projects.
February 16, 2010
base64 Bitmap ByteArray ExternalInterface PNGEncoder
Inline Images

Have you ever heard about inline images? Inline images use the data URI scheme to embed images directly within web pages. As defined by RFC 2397, data URIs are designed to embed small data items as “immediate” data, as if they were referenced externally. This basicaly means, you can insert base64 encoded byte code of any image directly into html file. Using inline images saves HTTP requests over externally referenced objects. Data URIs can potentially store any type of data, not just images!
February 16, 2010
Audio effects equalizer pixel bender Sound spectrum
Processing Audio in ActionScript 3 and Pixel Bender

Recently I was trying to make some noise with flash, and soon I realized that audio processing is not that easy thing as it may look like. Anyway here is a list of some interesting articles and examples with gain, equalizer, pitch, effects, pixel bender, I have came across while gathering information.
February 12, 2010
ActionScript ExternalInterface JavaScript
Quick tip: ExternalInterface.call is synchronous!

It is a little wonder to me how flash player communicates with JavaScript. Calls are fully synchronous, it works as those (fp and js) were fully integrated into each other. To simulate this lets test some simple flow:
February 10, 2010
allowscriptaccess eval ExternalInterface JavaScript
Full JavaScript Access From ActionScript (update)

Have you ever tought about accessing DOM from ActionScript? In fact, you can do it and even far more. You can create and call JavaScript methods and objects, access cookies, change styles… All you need is correct AllowScriptAccess parameter within your flash object. No framework needed here, no hacks, ExternalInterface takes care.