Archive for April, 2010

Actionscript 3 Button to Switch Between Fullscreen and Normal States

Tuesday, April 20th, 2010

fullscreen image

As a school project, I have create a photography website in flash actionscript 3 where fullscreen button is used to go to fullscreen and a close button is used to go back to the normal state. Users can by default hit the “escape” key to exit the fullscreen mode but it would be more user friendly to include a “exit” or “close” fullscreen button once you’re in fullscreen mode.

Here is how I did this with actionscript 3.

1. In your flash file, create two buttons on top of each other,

“fullscreen_btn”
“exitfullscreen_btn”

2. Open up your actionscript window and put this code in.

exitfullscreen_btn.visible = false;

fullscreen_btn.addEventListener(MouseEvent.CLICK, fullScreen);

function fullScreen(event:MouseEvent):void {
stage.displayState=StageDisplayState.FULL_SCREEN;

fullscreen_btn.visible = false;
exitfullscreen_btn.visible = true;
}

exitfullscreen_btn.addEventListener(MouseEvent.CLICK, exitullScreen);

function exitullScreen(event:MouseEvent):void {
stage.displayState=StageDisplayState.NORMAL;

fullscreen_btn.visible = true;
exitfullscreen_btn.visible = false;
}

If you have any questions or suggestions, leave it in the comments!

  • Share/Bookmark
Actionscript 3 Button to Switch Between Fullscreen and Normal States

Rogers Hi-Speed Internet is a Joke

Monday, April 19th, 2010

rogerslol

With the recently increased overage fee of $50, I’ve come to despise Rogers and their services. First of all, the previous overage fee of $25 was even absolutely ridiculous, and now, they’ve doubled this amount to $50. What is the point of offering a 50Mbps download stream when the users are capped at 175GB? and what is this ONLINE/LAN Party they speak of? Like seriously… On top of this unfitting service offer, they threaten you with previously collected discount charge fees when canceling the service. Give me a break.

  • Share/Bookmark
Rogers Hi-Speed Internet is a Joke