Posts Tagged ‘ActionScript 3’
Bezier animation fun revisited
Published by Ronny on September 7th, 2009 in Actionscript, Open-source, download. 1 commentA few months ago I experimented with Bezier Animation and allthough I uploaded my SWF files and shared them, I never really shared the source. This is what I wanted to do a few days ago when I thought “Oh, what the hell… Let’s clean that code up before uploading it…”.
So I started moving some code around and after a few minutes, I found myself rewriting the whole thing… That’s not a bad thing since now we’ve got one handy class that can do about just everything a Bezier Animator should be able to do. ![]()
Demo time!
There’s still a little bug somewhere which allows the target to ‘run away’ from the bezier, and I haven’t gotten quite to the root of the problem, but I really felt I had to share this. Also there are some imperfections when you disable the orientToPath and scaleByPath properties. I will look into fixing those asap.
I really love the idea of animation movieclips using bezier curves. It looks so natural and yet zo intriguing… I will do some experiments and upload them later on, showing the coolness behind this simple animation engine.
Sources
Download the above demo source (Flash Builder 4 project): Click
Download the BezierAnimatioin class: Click
Webcam motion detection coolness
Published by Ronny on January 18th, 2009 in Actionscript, Open-source, download. 6 commentsA few weeks ago I had to create an innovative way to scroll in a page. I have seen tons of scrollbars in Flash and I found it hard to create something completely new. At one point I wondered if I could wire the scrollbar to a webcam using Actionscript… So I started experimenting around…
When I first started I quickly ran into a problem: How the hell do I know if anything is moving? So I actually got stuck right in the beginning.
I went on a Google trip which led me to Koen’s post about motion detection. Koen was checking all the pixels (using nested loops) to calculate color values. I figured this generated way too much overhead. There had to be a better/simpeler way.
In his post Koen mentioned an article, written by Guy Watson, concerning an other way to get motion detection going. To make things simple: Guy just takes 2 pictures – one of the previous frame, one of the current – puts them on top of eachother, and applies the difference blend mode to the upper one: Tadaaa! There we go! The ‘unchanged’ pixels are blacked out. The remaining pixels are the difference in the picture… which reflects movement. Read the rest of this entry »
Playr 2.0 is here!
Published by Ronny on December 18th, 2008 in Actionscript, Flash, Open-source, download. 2 commentsIt 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
Bitmapdata == 201% coolness: World 360
Published by Ronny on October 14th, 2008 in Actionscript, Flash. 2 commentsSommigen die mij op Twitter volgen weten zonder twijfel wat ik bedoel als ik het over ‘world 360′ heb. Degenen die dat niet weten: Welkom in een trip door mijn absoluut geschifte brein.
De term World 360 heb ik in feite gewoon bedacht/gekozen omdat we van een 360 graden panorama foto een ‘wereldbol’ maken.
Op MultiMania 2008 heb ik Group 94 gezien, en hebben ze enkele van hun projecten en trukjes blootgelegd. Een behind the scenes van het waarschijnlijk meest gerenomeerde webdesign- en multimedia bedrijf van BelgiĆ« (volgens mijn bescheiden mening). Ze lieten onder andere de Nokia – Non Stop Living site zien; een site waar ik al langer van wist. Ik was altijd compleet onder de indruk van de effecten en transitions die deze site te bieden heeft.
Lange tijd heb ik me afgevraagd hoe alles in zijn werk gaat. Op een dag wou ik het weten en begon ik m’n hoofd te breken in Flash en Actionscript 3. Op MultiMania wist Julian (Group 94 member) te vertellen dat de ‘intro animatie’ on-the-fly opgebouwd werd (aan de hand van ActionScript). Ik vond dat best wel een gewaagde zaak, aangezien het toch veiliger was geweest als men die intro had gerenderd, en dan als video had gebruikt in het project.
Maar voor mij maakte dat opeens allemaal niet meer uit: Ik wou het ook voor elkaar krijgen. Read the rest of this entry »
Playr 2.0 is coming… What do YOU want?
Published by Ronny on August 13th, 2008 in Actionscript, Community, Open-source. 12 commentsJa, hoor: Een volledig Engelse titel!
Maar toch ga ik nog even doorbloggen in het Nederlands
Op het moment van schrijven ben ik zo goed als klaar met de nieuwste versie van Playr, de Actionscript musicplayer class. Ik moet nog even kijken of ik geen domme fouten heb, en nog wat schoonheidsfouten opruimen. Eens ik daarmee klaar ben, zal ik deze versie releasen.
Relatief veel mensen hebben deze klasse gebruikt, velen zonder problemen, sommigen met.
Nu is mijn vraag:
Wat heb ik vergeten in de vorige versie? Wat willen jullie er nog meer bij?
Als er voorstellen zijn die bij Playr aansluiten zou ik deze met plezier verwezenlijken.
Alvast bedankt voor jullie tijd



