____  _ ____ ____ ______ ____  
|___ \| |___ \___ \____  |___ \ 
  __) | | __) |__) |  / /  __) |
 |__ <| ||__ <|__ <  / /  |__ < 
 ___) | |___) |__) |/ /   ___) |
|____/|_|____/____//_/   |____/ 
      

i pwn all thats all u need to know.

Thursday, November 22, 2007

Flash Buttons! (inc, new AS3 version).

Here are a few different ways of implementing a button within flash using as code/button. basically all you need to do is drop or create a button on your main timeline. Then see the code sniplet examples below:

//as code

//AS1 version, click onto the button then add code onto it.
on(release){
trace("as1Btn - clicked");
}
//This will work with AS1, but will need to add an instance name to the button.
as1Btn.onRelease = function(){
trace("as2Btn - clicked");
}

//AS2 version, add your button to the stage then give your button an instance
name 'as2Btn' then add this sniplet anywhere on your main timeline.
as2Btn.onRelease = function():Void {
trace("as2Btn - clicked");
}

//AS3 version, same as above basically.
as3Btn.addEventListener(MouseEvent.MOUSE_DOWN,pressBtn);
function pressBtn(event:MouseEvent){
trace("as3Btn - clicked");
}

Labels: , , , , ,

Firefox 3 beta 1!

Packed with host of new features ;) take a look below:

What's new?

Well, looking at the "What's new" page, it seems that there are tons of changes, fixes, improvements. I'm reporting here just a couple of things from that list:

* Gecko 1.9 Web rendering platform, which has been under development for the past 27 months and includes nearly 2 million lines of code changes (!!)
* One click site info: Click the site favicon in the location bar to see who owns the site. Identity verification is prominently displayed and easier to understand. In later versions, Extended Validation SSL certificate information will be displayed
* Malware Protection: malware protection warns users when they arrive at sites which are known to install viruses, spyware, trojans or other malware
* New Web Forgery Protection page: the content of pages suspected as web forgeries is no longer shown
* New SSL error pages
* Add-ons and Plugin version check: Firefox now automatically checks add-on and plugin versions and will disable older, insecure versions
* Secure add-on updates: to improve add-on update security, add-ons that provide updates in an insecure manner will be disabled (I hope this wont break half of the current extenions!).
* Anti-virus integration
* New Download Manager
* Resumable downloading
* Full page zoom
* Improved Platform for Developers

Download Firefox 3 beta 1 now!