blog

Flash / Flex ArchiveJozef Chúťka's blog — blog.yoz.sk/category/flash-flex/page/9/

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 »

February 9, 2010

2 Comments

chat Facebook onConference video

onConference – video chat over facebook

A video conference interface with two participants and a chat panel.

onConference is flash application allowing individuals & businesses to meet face-to-face. Keep in touch with your friends, family and business associates via onConference chat or live video chat.

To be more specific, onConference is using RTMFP protocol, so your conferences, even those multiuser are p2p. Yes, any conference can join multiple users. I decided to use simpliest look-n-feel á la facebook and no pageflow, so you get connected immediately… You can find onConference on http://apps.facebook.com/onconference/, please let me know if you like it, any feedback welcomed :-) .

February 8, 2010

1 Comment

allowscriptaccess FlexIFrame input opaque text transparent wmode

TextInput wmode opaque/tranpsarent workaround

Diagram showing an HTML text input over an mx:TextInput component.

Many of you have come accross the horrendous bug that happens with text input in flash when the swf is embedded with wmode=transparent/opaque. It has been much discussed (Firefox Bugzilla entry for this bug, Adobe Forum discussion, etc.), but it seems that in all the years that this bug has existed nothing much has been done. A lot of workarounds have been published, many of them based on custom key mapping etc… My workaround uses html element <input type=”text”> that is placed right over flex <mx:TextInput>. Html element is styled transparent (no design) so user will not notice.

Read the rest of this entry »

February 4, 2010

No comments

shorten URLLoader URLLoaderDynamic URLRequest URLShorten URLShortenEvent URLVariables

URLShorten Class (update)

URL shortening is a technique where a provider makes a web page available under a very short URL in addition to the original address. There are hundreds of provider out there, but only a few of them provides public api and crossdomain.xml. I put toghether some of those that work and URLShorten class was created :-) feel free to use it and enjoy

Update: jdem.cz, tinyurl.com, bit.ly, tr.im, is.gd providers implemented.

Read the rest of this entry »

January 27, 2010

1 Comment

Bitmap BitmapData ImageResizer ResizeEvent ResizeMath SmoothImage

SmoothImage Class (update)

Side-by-side comparison of a cartoon image rendered by two SmoothImage implementations.

While Flex uses bilinear resizing method when scaling images (event for Bitmap.smoothing() method), you won’t be able to get nice results when downscaling more than 2 times. Inspired by ImageResizer class I have also created SmoothImage Class. This object extends mx.Image and uses ImageResizer.bilinearIterative() class in order to generate smoother resized results.

Read the rest of this entry »

January 25, 2010

4 Comments

Facebook facebook api FacebookCall FacebookData FQL FqlQuery namespace

Parsing FQL result

A partial FQL query with nested SELECT statements.

Facebook Query Language, or FQL, allows you to use a SQL-style interface to more easily query the same Facebook social data that you can access through other Facebook API methods (assuming your application has access!). Data returned for Facebook ActionScript Api are XML. You can access data via E4X after setting correct namespace. As for now (January 25, 2010), Facebook result defines xmlns=”http://api.facebook.com/1.0/” , but it may change in future, so lets make it dynamic…

Read the rest of this entry »

« Older Entries

Newer Entries »