inicio mail me! sindicaci;ón

t-roy.net*

blog by designer troy ginbey

for.. each.. in

For each in is a handy statement to iterate over items in a collection (or object), and execute statements on those items - for example, an Object, Array, or XML. I’ll give an example of each of these…

Object
var myObject:Object = {name:"Shofferhoffer", type:"Wheat Beer", alcoholPercentage:4.5, origin:"Germany"}
for each (var item in myObject) {
trace(item);
}

outputs:
4.5
Germany
Shofferhoffer
Wheat Beer

Array
var myArray:Array = new Array("Corona", "Shofferhoffer", "Fosters");
for each (var item in myArray) {
trace(item);
}

outputs:
Corona
Shofferhoffer
Fosters

XML
var myXML:XML = merlotshirazwheat beeralelager;
for each (var item in myXML.beer) {
trace(item);
}

outputs:
wheat beer
ale
lager

The for each..in statement iterates only through the dynamic properties of an object, not the fixed properties. And unlike the for..in statement, the for each..in statement iterates over the values of an object’s properties, rather than the property names.

So, there’s a few good usage examples for for.. each.. in. Worth keeping in mind when working with objects!

AS3.0 Fundamentals

I’ve decided I’m going to start writing on a few AS3.0 coding basics - from simple for statements, to the XML Class, XML List, Array Class etc.

I’ll be posting these in a new “AS3.0 Fundamentals” category, but you’ll also find them under the Adobe Flash section.

Adobe Flash Player 10: Astro

Flash Player 10 is in beta - going by the name “Astro”. New features of the player include 3D Effects which allow you to use APIs to animate objects through 3d space, lightweight runtime Custom Filters & Effects (which use the same technology as some After Effects CS3 filters), a new advenced Text Layout system which co-exists with TextField, an enhanced Drawing API with 3D APIs, shape drawing systems and re-stylable properties. Visual processing is also shifted more to the video card, which should allow smoother video.

c’mon… it’s only been 8 months

Yes, I finally thought I should write something. Just for the sake of it. I’ve just started working on some new standards based designs, so I’ll start to post some new stuff soon!
Also I’m about to start bringing together an Adobe AIR project using Flex… so I’ll make sure I keep posting my progress :)

Adobe CS3 Video Workshops

Just found a heap of videos on the Adobe site which are really useful to check out & learn new features in any of the CS3 applications:

http://www.adobe.com/designcenter/video_workshop/

Kuler Addict

I found this the other day.. Kuler. Create different colour pallets with this Adobe AIR app, publish them & let the public decide if you’re in the right profession!

My latest Kuler theme: Oranjeboom:
http://kuler.adobe.com/index.cfm#themeID/65129

You can even download themes as swatch sets for use in Photoshop…

September = Ubud

Ok - we’ve finally booked our trip in September! 8 nights in Indonesia… Staying in the arts centre of Bali - Ubud for the first part, then Seminyak.

Check it out here:
http://www.alilahotels.com/Ubud/

and here:
http://www.sofitelbali.com/english.php

New Nova Radio Websites

We’ve just launched completely re-designed websites at Nova…

Sydney : Nova 96.9
Melbourne : Nova 100.3
Perth : Nova 93.7
Adelaide : Nova 91.9
Brisbane : Nova 106.9

Check them out & let me know what you think :)

Type Preset goodness in Photoshop

Cool little tip I just came across.. In Photoshop CS2 you can save commonly used typeface settings in ‘text presets’. For example, if you use Arial, size 24 Bold with -50 tracking… you can save it, and go straight to it whenever you need.

Smart Objects… actually are quite smart

Ok.. I know Photoshop CS3 is on it’s way… but I’m still finding cool things in CS2… I’ve just discovered Smart Objects, and I reckon it’s going to dramatically change the way I use Photoshop. Basically, a Smart Object is a group of layers that you combine to edit as a single, non-destructive object.. meaning you can scale down, then rotate, then scale back up bitmap images without losing image quality……………. very cool.

You can also create duplicates of a single smart object, which, when the original is editied, all duplicate smart objects are updated too, much like an object instance in Flash.

It gets better though… ‘Smart Filters’ are on their way in CS3, which are non-destructive filters like Blurs you can add to Smart Objects… like it.

« Previous entries · Next entries »