Archive for the ‘Flash’ Category

Flash vs HTML? What is wrong with you people??

Published by Ronny on June 4th, 2009 in Flash, General, HTML. 3 comments

And I’m dead serious.

One can't live without the other

Let me start by saying that I am a passionate Actionscript Creative (if someday I might grow up, you can call me a Flash developer but not just yet) and I absolute love the web as it exists today. I love HTML and CSS. I even like Javascript (a bit) (it’s not my favorite, but we get along pretty good). So don’t go off thinking I’m taking sides.

What are we talking about today?

Earlier this week, Serge Jespers wrote about Adobe vs the open web, which kinda looked like a Flash vs HTML5 article from a distance (because let’s face it: The Adobe platform on the web is mainly the Flash platform). I had a lot of conversations about that in the past and the one thing I have come to conclude is that you can’t actually compare those to each other.
Not even remotely.

So to what should we compare it then?

People keep referring to the features that the Flash Player offers and which the developer might want to use. And then their statement goes on with ‘You can’t do that with HTML!
Of course you can’t! There are thousands of things you can do with Flash, which you just can’t pull of with HTML, CSS or Javascript. But if you really want to compare Flash and HTML, you gotta do it right:

Flash Player vs FireFox ( or IE or Safari or Opera or any other browser)
Timeline and Actionscript vs HTML and Javascript (and CSS if you really want)

(Please, stop throwing those vegetables at me… Thank you.)

Read the rest of this entry »

World360: Unbugged and kicking!

Published by Ronny on February 20th, 2009 in Actionscript, Experiments, Flash. 2 comments

A few days back, I posted the latest update on my World360 project (aka ‘stereographic projection‘… That’s what it is actually called). What this thing actually does is it turns a 360° panorama image into a stereographic projection. The idea is to render this real time (just for the fun of doing it) (I am thinking about doing more with this though…)

stereographicprojection

A few days back I ran into a (at that time) weird problem where transparency was rendered black after a few frames. I had a hard time figuring out what was going on, and I just didn’t have a clue where to start looking. Google wasn’t really helping me out either. So I posted my problem on FlashFocus but nobody came up with the answer to my problem. Peter Elst asked Ralph Hauwert if he already had run into this problem. Mario Klingemann suggested that there might be a problem with the premultiplied alpha. At that time I didn’t know what premultiplied alpha was and seen as the problem resembled the example Mario gave, it seemed quite obvious he was right.

So I took peace with this, and decided to fall back to a non-transparent image format like JPEG. 2 days later Erwin Verdonk came up with the answer to the whole problem… I just had a hard time understanding it…

The root of the problem was me: I had totally forgotten that the draw() method of the BitmapData class didn’t clear the pixels before drawing… Yea, that’s emberassing, right?

But okay… That took care of some problems. I rewrote some of the code, and adjusted some settings.
The speed and the result are quite okay right now. However using 450MB and up of RAM usage might be a bit of a killer.
I’m wondering if I could take care of this using PNGencoder or perhaps JPGencoder.

But for now I’m happy… The final result (for now) can be seen here.

Thanks everybody for helping me out. You guys rock!

PS: The picture used in this experiment was taken by Thomas Heylen. Thanks Thomas!

Visualizr source

Published by Ronny on January 7th, 2009 in Actionscript, Flash. 3 comments

A few people asked me for the Visualizr source. I always said I’d post it on my blog ‘pretty soon’… Well… It’s not pretty soon, but at least I didn’t totally forget about it. Anyway here’s the Actionscript class I made in a Flex Actionscript project :)

I did some pretty naughty things in there, but it worked out the way I wanted it… So be nice :p
Make sure you have got the MP3 tracks in place ;) You’ll need at least one. Make sure you change the tracknames too.

Playr 2.0 is here!

Published by Ronny on December 18th, 2008 in Actionscript, Flash, Open-source, download. 2 comments

It almost took me an eternity, but at last it’s there: Playr 2.0 is ready.
Playr is a Flash Actionscript 3 class built to take the heavy lifting off your hands when building any kind of music player appliction in Flash, Flex or AIR. I put a lot of work and time in this project, and I think the result is amazing: Playr is hands down the easiest way to do so!

I’m very happy to finally release this. A lot of people helped me test it and gave me feedback.
That helped me a lot, and changed a lot of features. Special thanks to all of you!

I’ve put up a dedicated site for Playr where all of the information, code examples, downloads are gathered.
Head over there to read more about it!

More info:
Playr site: Click
Download Playr 2.0: Click
Playr 2.0 documentation: Click