Search Blog Posts

Posts Tagged ‘array’

Shuffling an Array in Actionscript

Wednesday, May 28th, 2008

Using arrays in flash is always a handy and efficient way to work with variables etc. But some times its handy to be able to shuffle the results in the array, for example when creating a quiz to allow a random set of questions.

Using the code below (actionscript 2.0 but should still work in 3.0) we create an array and trace the results.

The Code

Array.prototype.shuffle=function(){
for(i=0;i<this.length;i++){
var tempvar=this[i];
var ranVar=random(this.length);
this[i]=this[ranVar];
this[ranVar]=tempvar;
}
}
myArray=["flash","dreamweaver","illustrator","in-design","photoshop"];
myArray.shuffle();
trace(myArray);

This would return a trace with answers such as:
‘dreamweaver, flash, in-design, photoshop, illustrator’

List of readymade art pieces

Saturday, May 12th, 2007

15 Hiding Places 
An interactive flash site which takes images from public-domain databases which is found through keyword searches on “science”, “museum”, and “specimen” the images are then compiled with fragmented phrases.

http://rhizome.org/artbase/45583/index.html
Valise in an iPod (ceci n’est pas une iPod)
”Valise in an iPod follows after Duchamp’s Readymade mini-museum, “Box in Valise” ( 1935-41 ). Valise in an iPod plays with the tension between the mass object and the reproducibility of the digital object, the promotional nature of consumer branding and the identity of the personal deice, as well as many other issues.”
http://www.voyd.com/voyd/ipod.htm
SCR
“Src is a blog of images: images are shown as mosaics of details, each then visible in entire. The blog is divided in two parts : “Public” where anyone can post an image and “Private” only modified by RD”
http://www.incident.net/works/src/
Weather Gauge
In Weather Gauge, numerical weather data from over 150 countries is simultaneously represented online forming an array of animated data referencing a huge global spread of live information. Each piece of weather data rotates between centigrade, Fahrenheit, local-time and city of origin, so when presented in this way, the whole field of information rhythmically evolves, offering viewers an unusual extended sense of context beyond the physical location of the work. 
http://www.weathergauge.net/
Chrissyland Inc.
Uses images from online and puts her self in them.
http://www.chrissyland.com

Ideas for negotiated project

Thursday, April 12th, 2007

Possibly a website/flash with a large number of images (which can be pulled dynamically from the web) when the user interacts a sample of images will be produced e.g. 10 (possibly more depending on flash crashing or not) stacked on top of each other. They will all hold a different alpha/transparency (below 15% so anything from 0 – 15) creating a unique array of composite colours and a unique image. Thus causing the user to interact and decode the image layers. There are 2 possibilities to decoding the image (1) Just look at the images and see them or to use word association with the images so if the image is of a beach the word beach will be included in the image. Sunset etc. This would give the user some idea to what they are looking at. 

I have attached a screen shot of my example. I have tried to keep the description as simple as possible.

This idea is influenced by the poem idea and the city images (both showed in today’s lecture) but this goes one step further as the number of images created is infinite (to a point).

There will be an area of controlled randomness as the image positions, alpha levels and amount of images used

© Copyright 2003-2008 Minimalistic Designs | Terms | Links | Sitemap
Website Design Liskeard - www.minimalistics.co.uk