Archive October 2009

PropertyTween the indieas way 0

Oct25

I know there are so many different tweening engines out there and it makes really no sense program another one. But as I always had my one version from the sfug library I thought it would be the time to port that to the indieas library. Further more I not just copy it and adapted the package name I tried to improve it once more. So in the new version when you apply another tween on the same object it checks the tweened properties and takes over only the properties defined by the new tween and let the old tween running with the other properties. So no more flickering when to tweens are acting on the same target/property.

As always feel free to download the library: http://www.indieas.org/library/

indie.as goes art 0

Oct19

Lately I was programming on a web art project which is now ready to see.

Picture

This image gives you an impression. To see more click the image.

from guns to fireworks 3 0

Oct19

Get Adobe Flash player

from guns to fireworks 2 0

Oct19

Get Adobe Flash player

from guns to fireworks 1 0

Oct19

Get Adobe Flash player

Dynamic XML definitions 0

Oct13

Something that I haven’t noticed for a long time are dynamic xml definitions. What it is; Its a very easy way to construct xml with dynamic content. Here is a short example:

var nodeValue:String = "bis naii";
var attributeValue:String = "mich";
var xml:XML = <speech speaker={attributeValue}>{nodeValue}</speech>;
trace( xml ); // <speech speaker="mich">bis naii</speech>

The {} braces are replaced by the variable value. You can also place more complex stuff inside these curly braces. Here is another example:

var xml:XML = <root />
for ( var i:Number = 0; i < 3; i++ ) {
    xml.appendChild( <child>{"content: " + ( i + 1 )}</child> );
}
/**
 * gives:
 * <root>
 * <child>content: 1</child>
 * <child>content: 2</child>
 * <child>content: 3</child>
 * </root>
 */

In some situations this way of constructing an xml structure is very practical….

For more infos check senocular’s page about XML

Developed by Dariusz Siedlecki and brought to you by FreebiesDock.com