blog

2010 ArchiveJozef Chúťka's blog — blog.yoz.sk/2010/page/9/

March 15, 2010

No comments

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

No comments

Button ButtonBar rating RatingButtonBar

RattingButtonBar class

A row of black, red and yellow stars.

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).

Read the rest of this entry »

March 10, 2010

1 Comment

css font-face fontFamily fontStyle fontWeight Helvetica

What fontName to use with embedding?

A font style menu with Arial Black selected.

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.

Read the rest of this entry »

March 9, 2010

88 Comments

Facebook facebook api FBML request-form serverFbml XFBML

Inviting Friends into Facebook Application (update)

Facebook invitation dialog with a grid of selectable friends.

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:

Read the rest of this entry »

March 4, 2010

6 Comments

BasicRenderEngine Cube DisplayObject3D Papervision 3D QuadrantRenderEngine sortMode ViewportLayer ViewportLayerSortMode z-sort

Fixing Z-sorting in Papervision 3D (update)

A cube made of smaller cubes, with four white squares visible from above and a black side.

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.

Read the rest of this entry »

February 18, 2010

3 Comments

BitmapData fps pixel bender Shader ShaderJob

Pixel Bender Disco

An abstract blurred green image.

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.

Read the rest of this entry »

February 16, 2010

No comments

base64 Bitmap ByteArray ExternalInterface PNGEncoder

Inline Images

A snapshot example showing an image data URL over colourful circles.

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!

Read the rest of this entry »

February 16, 2010

2 Comments

Audio effects equalizer pixel bender Sound spectrum

Processing Audio in ActionScript 3 and Pixel Bender

Green and yellow bars in an audio spectrum visualisation.

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.

Read the rest of this entry »

February 12, 2010

No comments

ActionScript ExternalInterface JavaScript

Quick tip: ExternalInterface.call is synchronous!

A hand holding a red stopwatch.

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:

Read the rest of this entry »

February 10, 2010

4 Comments

allowscriptaccess eval ExternalInterface JavaScript

Full JavaScript Access From ActionScript (update)

Syntax-highlighted HTML showing the head element and metadata.

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.

Read the rest of this entry »

« Older Entries

Newer Entries »