MisterSaisho.com

My Stuff

save mercurial user info

by MisterSaisho on Feb.10, 2012, under Uncategorized

[auth]
merc.username = actioncreations
merc.password = secretPassword
merc.prefix = https://bitbucket.org

Print
Leave a Comment more...

opzomize video flash

by MisterSaisho on Feb.10, 2012, under Uncategorized

http://www.flashstreamworks.com/2012/01/09/the-ultimate-guide-to-understanding-advanced-video-delivery-with-air-for-mobile/

Print
Leave a Comment more...

optimization info flash speed functions

by MisterSaisho on Feb.09, 2012, under Uncategorized

http://jacksondunstan.com/articles/413

Print
1 Comment more...

PHP file searching glob

by MisterSaisho on Feb.07, 2012, under Uncategorized

this will go through a dir named ‘kalmah’ that has one level of sub dirs then move each file to a new dir.

foreach(glob(‘kalmah/*/*’) as $file){
$newName = explode(‘/’,$file);
$newNameLength = count($newName);
$newName = $newName[$newNameLength - 1];

if(rename($file,’songs/’.$newName))
echo’renamed success <br/>’;
else
echo’rename fial <br/>’;
}

THIS ONE IS BETTER: it will loop through everything at the current level of the script.

$di = new RecursiveDirectoryIterator(‘./’);
foreach (new RecursiveIteratorIterator($di) as $filename => $file) {
echo $filename . ‘ – ‘ . $file->getSize() . ‘ bytes <br/>’;
}

Print
Leave a Comment more...

GOOD STAGE TEXT INFO AS3

by MisterSaisho on Jan.21, 2012, under Uncategorized

http://zehfernando.com/2011/using-stagetext-for-air-applications/

–swf-version=13

Print
1 Comment more...

my oop js animation example

by MisterSaisho on Dec.14, 2011, under Uncategorized

USE WITH THIS:
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8″ />
<title>OOP JS Animation example</title>
<script src=’Class3.js’ type=’text/javascript’></script>
<script src=”http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js” tex=’text/javascript’></script>

<script type=”text/javascript”>

function init(){//on body init
var slider = new Slider(‘.square1′, 200, 1000);
var slider2 = new Slider(‘.square2′, 500, 1000);
}

</script>

<style>
.square1, .square2{width:50px; height:50px;margin-left:100px; background-color:red; margin-bottom:50px;}
</style>
</head>

<body onload = ‘init()’>

<div class=’square1′ id=’square1′ onclick=’square1Clicked()’></div>
<div class=’square2′ id=’square2′ ></div>

</body>
</html>

/******** Class3.js *********/

// make something that gets passed an element class, distance of a marginLeft tween, and tween time.
// on element click animate the distance for the tween time

function Slider(tweenElement, tweenDistance, tweenTime) {//constructor
this.$elem= $(tweenElement);
this.distance= tweenDistance;
this.time = tweenTime;
this.count = 1;

this.attachOnclick()
}

Slider.prototype.onclickHandler = onclickHandler;
Slider.prototype.attachOnclick = attachOnclick;

function onclickHandler()
{
this.$elem.animate({marginLeft:this.distance*this.count}, this.tweenTime);
this.count++;
}

function attachOnclick()
{
var self = this;
this.$elem.click(function(){self.onclickHandler();});
}

Print
2 Comments more...

oop jquery

by MisterSaisho on Dec.14, 2011, under Uncategorized

http://ajaxian.com/archives/jquery-class

Print
Leave a Comment more...

Ideas for busted iPad scroller.

by MisterSaisho on Dec.09, 2011, under Uncategorized

Side Scroller: http://swip.codylindley.com/scrollContentDemo.html

-remove bind and use different click attatchment?

-ios5 and new scroll http://mobile.tutsplus.com/tutorials/mobile-web-apps/ios-5-fixed-positioning-and-content-scrolling/

-webki(overflow:scroll) http://davidbcalhoun.com/2011/new-mobile-safari-stuff-in-ios5-position-fixed-overflow-scroll-new-input-type-support-web-workers-ecmascript-5

-charts on who supports fixed position http://caniuse.com/css-fixed

-read this http://envyandroid.com/archives/359/how-to-use-fixed-position-on-iphone

-scroll snippits http://icodesnip.com/search/jquery%20ios%20scroll/

-Remove Header and make it a div

-use window instead of (html,body) Link

-put nav on bottom of screen

-use scroll to http://flesler.blogspot.com/2007/10/jqueryscrollto.html

-put nav on each page?

-make the scroll content do the scrolling instead of the page.

Print
1 Comment more...

html4 section vs article tip

by MisterSaisho on Dec.08, 2011, under Uncategorized

If you could see the content as an item or entry in an RSS feed, wrap it in an article. Otherwise, use section.

Print
1 Comment more...

remove object from stage and array

by MisterSaisho on Nov.21, 2011, under Uncategorized

items = new Vector.;
……
while(items.length)
{
removeChild(items.pop());
}

Print
Leave a Comment more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!