Sunday, December 21, 2008
Monday, December 8, 2008
Flashdance
Sounds in Flash are really stupid, and not well thought out...I hope they work on it a little more in CS4.
http://www.flash-games.net/online/3172/your-face.html
I like that game for somereason...
http://www.flash-games.net/online/3172/your-face.html
I like that game for somereason...
actionscript 3 for Countdown clock
Here's my code for the countdown on my website:
I ended up having to change it a little from the code I found online
stop();
//Create your Date() object
var endDate:Date = new Date(2009,3,29);
//Create your Timer object
//The time being set with milliseconds(1000 milliseconds = 1 second)
var countdownTimer:Timer = new Timer(1000);
//Adding an event listener to the timer object
countdownTimer.addEventListener(TimerEvent.TIMER, updateTime);
//Initializing timer object
countdownTimer.start();
//Calculate the time remaining as it is being updated
function updateTime(e:TimerEvent):void
{
//Current time
var now:Date = new Date();
var timeLeft:Number = endDate.getTime() - now.getTime();
//Converting the remaining time into seconds, minutes, hours, and days
var seconds:Number = Math.floor(timeLeft / 1000);
var minutes:Number = Math.floor(seconds / 60);
var hours:Number = Math.floor(minutes / 60);
var days:Number = Math.floor(hours / 24);
//Storing the remainder of this division problem
seconds %= 60;
minutes %= 60;
hours %= 24;
//Converting numerical values into strings so that
//we string all of these numbers together for the display
var sec:String = seconds.toString();
var min:String = minutes.toString();
var hrs:String = hours.toString();
var d:String = days.toString();
//Setting up a few restrictions for when the current time reaches a single digit
if (sec.length < 2) {
sec = "0" + sec;
}
if (min.length < 2) {
min = "0" + min;
}
if (hrs.length < 2) {
hrs = "0" + hrs;
}
//Stringing all of the numbers together for the display
var time:String = d + ":" + hrs + ":" + min + ":" + sec;
//Setting the string to the display
if (time_txt != null) { //Null object reference fix
time_txt.text = time;
}
}
I ended up having to change it a little from the code I found online
stop();
//Create your Date() object
var endDate:Date = new Date(2009,3,29);
//Create your Timer object
//The time being set with milliseconds(1000 milliseconds = 1 second)
var countdownTimer:Timer = new Timer(1000);
//Adding an event listener to the timer object
countdownTimer.addEventListener(TimerEvent.TIMER, updateTime);
//Initializing timer object
countdownTimer.start();
//Calculate the time remaining as it is being updated
function updateTime(e:TimerEvent):void
{
//Current time
var now:Date = new Date();
var timeLeft:Number = endDate.getTime() - now.getTime();
//Converting the remaining time into seconds, minutes, hours, and days
var seconds:Number = Math.floor(timeLeft / 1000);
var minutes:Number = Math.floor(seconds / 60);
var hours:Number = Math.floor(minutes / 60);
var days:Number = Math.floor(hours / 24);
//Storing the remainder of this division problem
seconds %= 60;
minutes %= 60;
hours %= 24;
//Converting numerical values into strings so that
//we string all of these numbers together for the display
var sec:String = seconds.toString();
var min:String = minutes.toString();
var hrs:String = hours.toString();
var d:String = days.toString();
//Setting up a few restrictions for when the current time reaches a single digit
if (sec.length < 2) {
sec = "0" + sec;
}
if (min.length < 2) {
min = "0" + min;
}
if (hrs.length < 2) {
hrs = "0" + hrs;
}
//Stringing all of the numbers together for the display
var time:String = d + ":" + hrs + ":" + min + ":" + sec;
//Setting the string to the display
if (time_txt != null) { //Null object reference fix
time_txt.text = time;
}
}
Saturday, December 6, 2008
Friday, December 5, 2008
Another 23 Signs You're Becoming a Design Geek
Wow... some of these are pretty true. Check this out for a good laugh
http://www.crestock.com/blog/design/another-23-signs-youre-becoming-a-design-geek--152.aspx
Dreamweaver Resource
http://www.photoshopsupport.com/dreamweaver/tutorials.html
FREE Dreamweaver help! It's good stuff!
Design Question
http://www.abcwebsitetechnology.com/#/portfolio/4515755891
If you look @ this company's websites, you'll notice that they are not very pleasing to the eye. Is it possible to design a good website with heavy content? None of there numerous sites look very nice. Just, standard, boring web stuff.
Tuesday, December 2, 2008
uploading songs
Has anyone uploaded a full song onto a flash site? I am getting an error message that there were problems reading the file. its an mp3, 5.5 MB, and im trying to import it into the library... do i need to shrink the file or something?
Scrolling text tutorials for AS3
http://www.piticstyle.com/2007/11/19/create-an-scrolling-text-in-flash-cs3/
http://learnola.com/2008/10/27/flash-tutorial-create-a-custom-scrollbar-with-actionscript/
http://learnola.com/2008/10/27/flash-tutorial-create-a-custom-scrollbar-with-actionscript/
Subscribe to:
Posts (Atom)