HOM E
       STARTER          REDUX        ARCHIEF (NL)         International BLOG        NL LOG       SHOP               monADs
FEEDBACK 
ViLTNET 
South
West
North
East
meret becker PLAZA
Cathedral RESIDENTS
...developing a new killer app: the Cathedral Skin Scratcher...

view the graphTing Gallery

Last Update <April 8, 2006 11:35 PM

 

 

 

 

 

If you have the time, please place comments on the no comments place please
      STARTER          REDUX        ARCHIEF (NL)         International BLOG        NL LOG       SHOP               monADs

 

KRISTINE bluePrint* for this Place

Note: graphTing code is kept simple.
If you're looking for more reliable code to work with the Flash drawing API you could check out Alex Uhlmann's animation package , an ActionScript 2.0 library for flash 6 and higher .
A more robust solution for saving Flash vector drawings would most likely be using SVG instead of textfiles as a saving format. Helen Triolo's Flash-creations.com has a page and some downloads available with a PHP backend at http://flash-creations.com/notes/sample_svgtoflash.php

If you're into Flash for drawing, do check out Rob Meyers' rob-art, an Open Source project at http://rob-art.sourceforge.net/

//graphTing 0.2

var isLijn:Boolean=true;
var metFill:Boolean=false;
var graphStore:Array=new Array();//internal memory

//rollOver action on each pixel in the drawing field to start fading animation
die=function(clipje){
clipje.gotoAndPlay(2);
}

//a pixel gets 'noticed' when it receives another rollOver during its fading frames
notice=function(xCor,yCor,off_time){
    var xpoint:Number=xCor;
    var ypoint:Number=yCor;
    var offTime:Number=off_time;
    if(isLijn){
        grafiek.lineTo(x_ctrl,y_ctrl);
        graphStore.push("lt_"+x_ctrl+":"+y_ctrl);
    }else{
        var xHere:Number=x_ctrl-offTime;
        var yHere:Number=y_ctrl-offTime;
        grafiek.curveTo(xHere,ypoint,xpoint,yHere);
        graphStore.push("ct_"+xHere+":"+ypoint+":"+xpoint+":"+yHere);
        }
    x_ctrl=xpoint;
    y_ctrl=ypoint;
    }


//function to start a new graph
clearGraf=function(){
    graphStore=graphStore.splice(0);//reset memory
    grafiek=this.createEmptyMovieClip("graf_"+3001,3001);
    grafiek._x=400;
    grafiek.lineStyle(1, 0x000000,40);
    if(metFill){
        grafiek.beginFill(0x888888,40);
        graphStore.push("bf_def");
        }
    x_ctrl=200;
    y_ctrl=200;
    grafiek.moveTo(x_ctrl,y_ctrl);
    graphStore.push("mt_"+x_ctrl+":"+y_ctrl);
     }


//function to close present fill and start a new one, gets called when user clicks a pixel
closeFill=function(){
    grafiek.endFill();
    grafiek.moveTo(x_ctrl +1,y_ctrl+1);
    if(metFill){
       grafiek.beginFill(0x888888,40);
       graphStore.push("bf_def");
       }
    }

 

// saving function
saveGraph=function(){
     var aantal:Number=graphStore.length;
     saveUrl="save_graphting.jsp?&aantal="+aantal;
     var verzenden:LoadVars=new LoadVars();
     for(i=0;i<aantal;i++){
           verzenden["c"+i]=graphStore[i];
      }
    verzenden.send(saveUrl,"_blank","POST");
}

//inits the black drawing field, filling it with black 8x8 squares
var aantal:Number=2000;
for(i=0;i<aantal;i++){
    duplicateMovieClip(vrg,"pix"+i,i);
    this["pix"+i]._x=8*(i%50);
    var rijlimiet=Math.floor(i/50);
    this["pix"+i]._y=rijlimiet*8+35;
    }
clearGraf();

download FLA file (version 8) - (mx 2004 version)

 

© dv @ Neue Kathedrale des erotischen Elends - Free Art License

*KRISTINE bluePrints like this one will be added systematically to places where code samples or other resources might be of interest for others from now on. Later the KRISTINE Academy may or might not refer to them. The code examples you'll find there are by no means examplary, i'm a fairly confused programmer with a twisted mind, but i find that i've learned most from loosely encountered fragments like these by other people so it seems the right thing to do. Note that the copyright thing is mostly there for promoting the Free Art License itself, i don't see you actually using much of it ;-)

 

If you have the time, please place comments on the no comments place please
      STARTER          REDUX        ARCHIEF (NL)         International BLOG        NL LOG       SHOP               monADs

 

 

NKdeE DIR (Time map)

grapes Vlak 13 in een Grapes of Art uitvoering 07052008

|
|---> http://Khlebnikov.wordpress.com

GRAPES of ART
 
2007
 
bloesem B.L.O.E.S.E.M: de vermetele haaruitval van het teveel°™ 27092007
busjamesj
The E.P.I.C. of Busjamesj DA FURST 06072007
vc Velimir Chlebnikov promoted to Cathedral Residency 19062007

|
|---> http://Khlebnikov.wordpress.com

esther 12062007
cameron

Julia Margaret Cameron, née Julia Pattle
(1815-1879)

04052007
deKantenWal 03032007
hokken in februari
 
huh nice colour yes - here is before the castor und Ajax language splut: Directions in grey are predominantly Dutch
glossol
spinbad
afwezigheid
texta
spab
nolo
erotoroterotypes
okno
z
lula
dutch
bjorn
rodin2
la_bene1
naming
mecanollen2
mecanollen (Dutch)
rodin
sisforstanzas
yesha
digilimi
tisfortrees
Vis4Vessel
daphne
mommartz
kladvel
21022006
ze crack
sic()
srwtng
landauer
20022006
graphting
frames
kakakov
wvw5
wvw4
eroto
backs
ussr
cma
nkdee_google_earth
mix
blake
dana_final
wvw3
rothenberg
wvw2
wvw1
mu#3
mu#2
mu#1
autumn
druksel
scroll
 
leibniz
view
ceci
ezemaal
aubel
train
residents
quotes
SFE
nAârt
kids
tcmotcmotu
nAârt_n
2004-2006