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 Technologically agnostic and liking it. When it comes to new...
  2. Kuler-Splash with Flex What Kuler-Splash does: Click the button in the far right...
  3. PaperVision3d The Wall This is a simple papervision3d tutorial it is only purpose...
  4. 404 Errors Hyped With PaperVision3d pt. 2 Capture URL for search with JavaScript and Pass it...
  5. Processing JS Well on occasion I like to play around with Processing. ...

Related posts brought to you by Yet Another Related Posts Plugin.

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 ASP.NET Blend C# CakePHP CSS Experiment Flash Flash Develop Flex Games Generative Design Google Informatics JavaScript Joshua Davis JSON Life Lingo Linux MashUp Open Source OpenSource PaperVision3D PC History Processing quick tip RIA Silverlight Technology/Internet travel twitter Web Web 3.0 Webware XML Yahoo Pipes

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

  • Monthly
  • Yearly
  • Links
  • February 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • September 2009
  • August 2009
  • July 2009
  • June 2009
  • May 2009
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • agit8
  • Bit-101
  • D.I.Y.
  • draw.logic
  • Flight404
  • Flong
  • generatorX
  • haXe
  • Jonathan Snook
  • Joshua Davis
  • Jot
  • Kirupa
  • LifeHacker
  • Make
  • NurseOnTheRun
  • octane42
  • PV3D
  • Senocular
  • Sephiroth
  • ShineDraw
  • SWX
  • Tech News
  • Toxi
  • ZeusLabs

Brendon's Photos

IMG_0379.jpg

Recent Comments

  • morganae23 on Processing JS
  • morganae23 on Processing JS

RSS LifeStream

  • Physics Games in Silverlight on Windows Phone 7
  • Silverlight TV 17: Build a Twitter Client for Windows Phone 7 with Silverlight
  • Arrangement Tips and Tricks: Fills and Transitions | Audiotuts+