Tuesday, February 05, 2008

FLASH FLICKR API

http://flashr.kelvinluck.com/tutorials/#/tutorials/1/

http://petitpub.com/labs/media/flash/petikr/

http://www.afcomponents.com/tutorials/img_loop/2/

http://www.brophy.biz/

http://www.lukamaras.com/tutorials/actionscript/load-jpg/loading-external-jpg-image.html

Labels: , ,

Wednesday, January 23, 2008

fade

onClipEvent(load) {
this._alpha = 0;
this.dir = -1;
this.speed = 10; // the value used to modify the speed of the fade
}
onClipEvent(enterFrame) {
if (this._alpha <= 0) {
this._alpha = 0; // if the alpha value had gone negative, reset it to zero
this.dir *= -1;
}
if (this._alpha >= 100) {
this._alpha = 100; // similarly if it had exceeded 100 reset it to 100
this.dir *= 0;
}
this._alpha += this.speed * this.dir;
}

Labels: , , ,

Monday, January 21, 2008

flash buttons issue

disableder..

_root.myButton.enabled = false;


embedding flash
http://blog.deconcept.com/swfobject/

infinate menu
http://www.kirupa.com/developer/mx/infinite.htm

Labels: , , ,

Friday, January 18, 2008

flash drag code

snow
amount = 300;
mWidth = Stage.width;
mHeight = Stage.height;
for (var i = 0; ithisFlake = this.attachMovie("flake", "flake"+i, i);
with (thisFlake) {
_x = Math.random()*mWidth;
_y = Math.random()*mHeight;
_xscale = _yscale=_alpha=40+Math.random()*60;
}
thisFlake.yspeed = Math.random()*5+.5;
thisFlake.increment = -0.035+Math.random()*0.07;
thisFlake.radian = 0; //declare for actionscript 2.0
thisFlake.onEnterFrame = function() {
this.radians += this.increment;
//trace(this.radians);
this._x += Math.sin(this.radians);
this._y += this.yspeed;
if (this._y>=mHeight) {
this._y = -10;
this._x = -10+Math.random()*mWidth;
}
if (this._x>=mWidth || this._x<=0) {
this._y = -10;
this._x = -10+Math.random()*mWidth;
}
};
}


begin drag drop

dragMovie = new Object();
dragMovie.onMouseDown = function() {
if(movie.hitTest(_root._xmouse, _root._ymouse)) {
movie.startDrag();
}
};
Mouse.addListener(dragMovie);
dropMovie = new Object();
dropMovie.onMouseUp = function() {
movie.stopDrag();
};
Mouse.addListener(dropMovie);

drag droppy advanced

http://flash-forum.flashdevils.com/showthread.php?threadid=188583/MovieClip.dropOnTargets()%20prototype.html

effects
http://www.kirupa.com/forum/forumdisplay.php?f=51

Labels: , , ,

Tuesday, October 30, 2007

bynamic but code

this should work to give dynam functionaly dynamically

theButton = ["thumb"+[i]];
trace(theButton);
theButton.onRollOver = function () {
this.gotoAndStop(2);
}

Labels: , ,

Friday, October 26, 2007

PROGRAMMING THOUGHTS

each page has a photo, vid and QT section

could have one generic page

each section then dictates > photos, vid yes/no etc

need to do list

standardise images

-----------------------------------------------

photos page

probably best to have seperate sliders until i figure out it

Labels: , ,

Thursday, September 06, 2007

programming links

tag cloud

ah good old tag clouds,

made mine slightly more interesting by adding random selectors, causing the cloud to change structure

nothing to do with the fact the tags are static sized; dyanmic code is too slow and buggy

inspired by 24 ways

Labels: , , ,

Thursday, July 26, 2007

mySQL anti injection

nice sinppet

$name_evil = mysql_real_escape_string($name_evil);

Labels: , , , , ,

Wednesday, July 25, 2007

mySQL