Dreaming in Flash at The Tech Labs

July 7th, 2008 by Idoru

We're proud to announce that Dreaming has published a few tutorials over at The Tech Labs, these tutorials are exclusive and can be accessed at: http://www.thetechlabs.com/

They include an air contact manager, and two sound equalizer how-tos with one of them showing how to get those cool pv3d equalizers.

Enjoy!

As3 Flip Vertical and Flip Horizontal

June 11th, 2008 by Ivan Valadares

CopyPixels With flip vertical and flip horizontal arguments

June 9th, 2008 by Ivan Valadares

This function is like the copyPixels method from the bitmapdata class but let you flip horizontal and/or vertical the bitmapData.

Example swf

Example fla

Insert Thousands Delimiter using RegExps in Actionscript

May 28th, 2008 by Tiago Bilou

Today I spend a considerable amount of time trying to change this (10000000) into this (10.000.000). Because I don't think anyone should have to go throught the same ordeal here's a little function that will do it for you.

References:

Interview with Rob Bateman (Away3D)

May 21st, 2008 by Idoru

Dreaming in Flash interviewed Rob Bateman, The Chief architect and co-founder of the Away3D engine, on his views about the upcoming release of Flash Player 10 and how it will affect Away3D.
Read the rest of this entry »

Frameworks, my take on it

May 20th, 2008 by Idoru

Flash and Flex frameworks.

Lately I've working on three big projects that would require the usage of a framework, and not wanting to extend my own framework, that consists mostly of accumulated libraries over time, I decided to give the most prominent ones a go.

So I started by checking out what was on the market, I found as-hive, pureMVC, Cairngorm and Mate ( there are a few more but somehow I didn't feel they were mature enough to be used.
Read the rest of this entry »

Flash Player 10 is out!11!!!

May 15th, 2008 by Idoru

Adobe just released the beta version 10 of Flash Player, codename Astro!

You can get it over at the labs, and check out it's cool demos!

The biggest thing they also released as a beta was Pixel Blender, formerly Hydra, the new language that will enable us to write filters using the GPU.

Also they introduced a new parameter that enables us to take advantage of the GPU capabilities of the the user, this is truly a great day!

I can't wait to start playing with both Pixel Blender and the new native 3d features!!!

Links:
Demo - http://labs.adobe.com/technologies/flashplayer10/demos/index.html
Labs page - http://labs.adobe.com/technologies/flashplayer10/
Pixel Blender - http://labs.adobe.com/wiki/index.php/Pixel_Bender_Toolkit

“SecurityError: Error #3015: Loader.loadBytes() is not permitted to load content with executable code.”

May 14th, 2008 by Ivan Valadares

In the last month I thought Adobe had protect the loadBytes method from the loader so that only “regular” files like mp3, jpg, etc could be loaded, lots of good library’s like Benjamin Dobler wav reader stop working. What I think it is that in last version of flash player Adobe turn allowLoadBytesCodeExecution to false. If you see Adobe documentation they have written “Note: This API is likely to be replaced in a future release of AIR.” If anyone knows what really happen let me know. Now the good part, to solve that is simple, you only need to set allowLoadBytesCodeExecution to true.

Loading an xml synchronous with Adobe Air

May 14th, 2008 by Ivan Valadares

I usually work in desktop application and we like it or not flash is optimized for the web so normally we have to put complete event ever time we load anything, and it’s logic, because for the web things have to be asynchronous but for desktop applications they not.
We have already load text and xml files synchronous and done some things with sql lite synchronous, I think for now images and sounds can’t be done, because even if you get the bytes, you always need to invoke loadBytes method from the loader and put a complete event listener, fuck! lol, I hope that in the next release of flash the loader have an synchronous method of load the bytes.

There it’s a class to load an xml file synchronous.

How to use:

var configXml:XML = XmlLoader.load("Config.xml");

Flash Player use of Internal clock

May 7th, 2008 by Ivan Valadares

Internal clock in flash player sucks a lot. I am doing a project that needs to have a lot of precision in the time intervals. The project is like a music sequencer, so the timer have to tick always at the same time, because if not you listen like an empty space between sounds. I have done some tests with the event OnEnterFrame and the Timer function, and the results are the follows: if you start a timer with 3000 milliseconds the results will be: 3045, 3072, 3000, 3305, 3079, 3063, 3081, so you have like 80 milliseconds of difference, it’s not good enough. I have done the same test in c#, and the results are 3000,3000,3000,3000. It’s a little bit sad, if anyone knows a solution, please comment.