Other Websites

  • SeaCloud9 Interactive
  • SeaCloud9 Commercial Development
  • i-os
  • stArcade9

Brendon Smith Social Networks

  • On Linkedin
  • Bookmarks
  • On Twitter
  • On Facebook
Open ↓ Close ↑
  • Home
  • Subscribe
Browse: Home / ActionScript, art, i-create / SeaCloud9 Commercial Development
i-create | therefore-i am
i-create | therefore i-am | a blog about opensource technology and rich internet applications
 

SeaCloud9 Commercial Development

By Brendon Smith on June 28, 2009

 

Well I am almost finished with my commercial website development site. You can go to it @ seacloud9.com / brendonsmith.com. I will be offering a variety of services. I still need to communicate with a lawyer and have a contract created but in short I plan on offering website development skills to a few select clients. I have split my portfolio into an interactive site and a commercial site. The interactive site will be used to display some of my experimental work silverlight / flash the commercial site is clear cut and dry. I have not completed my new interactive website but I have officially deprecated my old interactive website. I will also make it a habit to publish more code examples and I will do more C#/AS3 comparisons. I find it fun to work with both languages! You can go to the interactive sites by going to seacloud9.org. This site is not currently compatible with OSX/Linux Safari. I am working on enabling to work on Apple/Linux and will do that soon. I have also been playing around with Processing it is an amazingly effective programming language to create random artistic endeavors. Here are a few random sketches.

This browser does not have a Java Plug-in.
Get the latest Java Plug-in here.

int x = 100;
int y = 600;
int r = 80;
int n = 10;
int rs = 1200;
 
void setup(){
  size(325, 200);
  noStroke();
  smooth();
  noLoop();
  randomSeed(rs);
}
 
void draw(){
  background(255);
  drawCircle(x,y,r,n);
 
}
color[] shadeTable;
void setShades(color c){
  shadeTable = new color[256];
  for ( int i = 0; i < 255; i++)
  shadeTable [i] = color((int)(104),(int)(179),(int)(246));
}
void drawCircle(float x, float y, float radius, int num){
  setShades(color(255,0,0));
  float value = 126 * num / random(6.0);
  for ( int i = 0; i < 255; i++){
  fill (shadeTable[i], value);
  }
  x = random(x);
  y = random(y);
  ellipse(x, y, radius*2, radius*2);
  if (num > 1){
    num = num -1;
    int branches = int(random(2,6));
    for (int i = 0; i < branches; i++){
    float a = random(0, TWO_PI);
    float newx = random(x + cos(a) * random(100.0) * num);
    float newy = y + sin(a) * random(6.0) * num;
    drawCircle(newx, newy, radius/2, num);
    }
  }
}

Code

Here is a fun action script sketch below:

package 
{
	import flash.display.GradientType;
	import flash.display.SpreadMethod;
	import flash.display.Sprite;
	import flash.display.Shape;
	import flash.events.Event;
	import flash.events.MouseEvent;
	import flash.geom.Matrix;
 
	/**
	 * ...
	 * @author brendon smith
	 */
	public class Main extends Sprite 
	{
		 public var xPos:Number = new Number();  
         public var yPos:Number = new Number();  
         public var rWidth:Number = new Number();  
         public var rHeight:Number = new Number();  
         public var color:uint = new uint();
		 public var ellipse:Shape;
		 public var matrix:Matrix;
		 public var rectArray:Array;
 
		public function Main():void 
		{
			stage.stageWidth = 325; 
			stage.stageHeight = 400;
			if (stage) init();
			else addEventListener(Event.ADDED_TO_STAGE, init);
 
		}
		 public function createEllipse():void
		{
			rectArray = new Array();
			for (var i:uint = 0; i<60; i++ )
			{
			 xPos = 300;
			 rWidth = 160;
			 yPos = 300;
			 rHeight = 100;
			 ellipse = new Shape();
			 addChild(ellipse);
			 rectArray.push(ellipse);
			 var fillType:String = GradientType.RADIAL;
             var colors:Array = [0x078cfb, 0x07fb07];
             var alphas:Array = [.28, .28 ];
             var ratios:Array = [0x00, 0xFF];
             var matr:Matrix = new Matrix();
             matr.createGradientBox(162, 200, 0, 0, 0);
			 var spreadMethod:String = SpreadMethod.PAD;//SpreadMethod.PAD, SpreadMethod.REFLECT
             ellipse.graphics.beginGradientFill(fillType, colors, alphas, ratios, matr, spreadMethod);
			 ellipse.graphics.drawCircle(150, 150, 50);
             ellipse.graphics.endFill();
			 ellipse.x = 162;
			 ellipse.y = 200;
			}
			stage.addEventListener(MouseEvent.MOUSE_MOVE,mouseStretchRotate);
		}
		 public function mouseStretchRotate(e:MouseEvent):void 
		{
			for (var i:uint = 0; i<rectArray.length; i++ )
			{
			 var radian:Number = Math.atan2(mouseX, mouseY);
			 var spin:Number = (radian * (i * mouseX));
			 //trace(angle);
			 rectArray[i].rotation = spin;
			 rectArray[i].rotation = (spin * -1) + 90;
			 rectArray[i].scaleX = 1 / (i / mouseX * 90);
			 rectArray[i].scaleY =  1 / (i / mouseY * 90);
			}
 
 
		}
		private function init(e:Event = null):void 
		{
			removeEventListener(Event.ADDED_TO_STAGE, init);
			createEllipse();
		}
 
	}
 
}

Code

I also recently picked up a book on haXe and I will be posting some haXe examples soon. My first impression of haXe is very positive I really like the idea of being able to target different platforms. I have also noticed a considerable amount of people squawking about HTML5 here are my thoughts HTML5 will be cool it will also be challenging to create websites that are crossbrowser compatible because as we know not every browser is created equally. I am all for being able too do more with Javascript and HTML5 I think it will be great. Some people have also been saying HTML5 will eliminate the RIA area of JavaFX/Silverlight/Flash although I highly doubt that. Here are some interesting links on HTML5/JavaScript:

Cool Chrome Experiments
V8-GL
HTML5

Here are a few cool on-line compiler / ide:
wonderFL
Code Run

  • Share/Bookmark

Related posts:

  1. Technologically Agnostic
  2. Kuler-Splash with Flex
  3. Simple Flip3D in ActionScript3
  4. PaperVision3d The Wall
  5. Tweet Tank in Away3D and Hype pt. 2

Posted in ActionScript, art, i-create | Tagged ActionScript, Flash Develop, Generative Design, Processing

Brendon Smith

GUI Development, Action Script, Java Script, .NET, AJAX, Java, PHP, CakePHP, Mashup Development, Flash, Silverlight, C#, XML, SQL, Apache, IIS, Photoshop, Fireworks,etc.. Oh, and Biking and Camping

blog comments powered by Disqus
« Previous Next »
 
 

3d ActionScript Adobe Air Android Apollo Apple art as3 Away3D C# CakePHP CSS Experiment Flash Flash Develop Flex Games Generative Design Google HTML5 hype JavaScript Joshua Davis JQuery JSON Life Linux MashUp OpenSource Open Source PaperVision3D PC History Processing quick tip RIA Silverlight Technology/Internet travel twitter Web webGL Webware XML Yahoo Pipes

WP Cumulus Flash tag cloud by Roy Tanck and Luke Morton requires Flash Player 9 or better.

  • Monthly
  • Yearly
  • Links
  • August 2010
  • June 2010
  • May 2010
  • April 2010
  • March 2010
  • February 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • agit8
  • Away3D
  • Ben Nadel
  • Bit-101
  • Bruce Jawn
  • Causecast
  • D.I.Y.
  • Dr Woohoo
  • draw.logic
  • Flight404
  • Flong
  • generatorX
  • gSkinner
  • haXe
  • Jonathan Snook
  • Joshua Davis
  • Jot
  • Kirupa
  • LifeHacker
  • Make
  • Minor White
  • Mr Doob
  • NihiLogic
  • NurseOnTheRun
  • octane42
  • OpenFrameWorks
  • Processing
  • PV3D
  • Senocular
  • Sephiroth
  • ShineDraw
  • Stroep
  • SWX
  • Tech News
  • Toxi
  • UnitZeroOne
  • World We Live In
  • ZeusLabs

Photos

joe crockett set.JPG

Recent Comments

  • seacloud9 on Tweet Tank in Away3D and Hype pt. 2
  • Brendon Smith on Tweet Tank in Away3D and Hype pt. 2

RSS LifeStream

  • Elysium
  • Giles Bowkett: Archaeopteryx: A Ruby MIDI Generator
  • Grant Nestor » Blog Archive » Generative music, huh?

Copyright © 2010 i-create | therefore-i am.