Archives Posts
November 27th, 2008 by steamfrog
To enable Web Inspector for Safari on Windows, you first need to find the file ‘WebKitPreferences’ Here is where I found the file on my system:
C:\Documents and Settings\Administrator\Application Data\Apple Computer\Safari\WebKitPreferences (notice there is no file extension).
Add the following key before the entry:
WebKitDeveloperExtras
Restart Safari and right click on a webpage and you should be off and running.
Share and Enjoy:
These icons link to social bookmarking sites where readers can share and discover new web pages.
Archives Posts
November 27th, 2008 by steamfrog
Here is a function for animating the n-body gravitational force between bodies:
public function animate(planetA:Array):void{
var len:int = planetA.length;
for(var k:int=0; k<len; k++){
var p:Planet = planetA[k];
for(var m:int=k+1; m<len; m++){
var q:Planet = planetA[m];
var a = q.scaling/(Math.pow(p.xo - q.xo, 2) + Math.pow(p.yo - q.yo, 2));
var theta = Math.atan2(q.yo - p.yo, q.xo - p.xo);
p.ax = a*Math.cos(theta);
p.ay = a*Math.sin(theta);
p.vx += p.ax;
p.vy += p.ay;
p.xo += p.vx;
p.yo += p.vy;
}
if(p.xo>800||p.xo<0||p.yo>800||p.yo<0){
planetA.splice(k, 1);
len--;
}
this.graphics.drawCircle(p.xo, p.yo, p.scaling/20);
}
}
class Planet extends Sprite{
public var scaling:Number = Math.random()*100 + 50;
public var vx:Number = (Math.random()*1)-0.5;
public var vy:Number = (Math.random()*1)-0.5;
public var ax:Number = 0;
public var ay:Number = 0;
public var xo:Number = 0;
public var yo:Number = 0;
public function Planet():void{
this.graphics.beginFill(0xcc0000, 1);
this.graphics.drawCircle(0,0,scaling);
this.graphics.endFill();
}
}
Get this code and tons more at
http://www.actionsnip.com/
Share and Enjoy:
These icons link to social bookmarking sites where readers can share and discover new web pages.
Archives Posts
November 25th, 2008 by steamfrog
Wicked video tutorials on CSS.
Chris Coyier REALLY knows his stuff!!.
Thanks Chris for sharing what you know.
http://feeds.feedburner.com/CSS-Tricks-Screencasts
Share and Enjoy:
These icons link to social bookmarking sites where readers can share and discover new web pages.
Archives Posts
November 25th, 2008 by steamfrog
AS3 Geom Class Exporter is a 3DS Max designed script that allows you to directly export 3D models to AS3 classes.
The benefit is that you don’t need anymore to load and parse a texte file (ase, obj, 3ds).
You just have to import the class and to create an instance, like you do with usual objects like plan, sphere and box classes.
Guys you ROCK!!!
Get it here
http://seraf.mediabox.fr/showcase/as3-geom-class-exporter-for-3ds-max-english/
Share and Enjoy:
These icons link to social bookmarking sites where readers can share and discover new web pages.
Archives Posts
November 6th, 2008 by steamfrog
Datasets with no database Dreamweaver cs4.
Share and Enjoy:
These icons link to social bookmarking sites where readers can share and discover new web pages.