Search This Blog

Thursday 29 March 2012

MX.TRANSISTIONS

Today we experimented with a hidden libary MX.TRANSISTIONS
http://www.swfcabin.com/open/1333011928

We made the box resize depending on the screensize aswell as the nav bar sticking to the side of the box no matter what size it is.


here is the code that was used. blue highlights the instance names if you want to try it out yourself. Code highlighted in yellow are variables. Code Highlight in red is the for the nav. bar (combined buttons into a movie clip) make sure you use nav. if you want to target that movie clip other wise it wont target all the buttons at the same time.

Blue = Instance names

Yellow = Variables

Red = navigation bar code (remember to group the buttons on your nav bar into a movie clip.)


import mx.transitions.Tween;  // IMPORTANT
import mx.transitions.easing.*; // IMPORTANT
var oldh = 0;
var newh = 300;
var oldw = 0;
var neww = 300;
//-------------------------------Fullscreen website code- ---------------//
Stage.align = "TL";
Stage.scaleMode = "noScale"
sizeListener = new Object();
sizeListener.onResize = function() {
 fullsize();


};
Stage.addListener(sizeListener);
_global.fullsize = function(){


 box._x = Stage.width/2;
 box._y = Stage.height/2;
};
fullsize();
onEnterFrame = function (){


 nav._x = Stage.width/2 - box._width/2 - nav._width
 nav._y = Stage.height/2 - box._height/2


}


new Tween(box, "_height", Elastic.easeOut, oldh, newh, 2, true);
new Tween(box, "_width", Elastic.easeOut, oldw, neww, 2, true);
nav.btn1.onPress = function (){
 oldh=newh
 newh=100
 oldw=neww
 neww=100


 new Tween(box, "_height", Elastic.easeOut, oldh, newh, 2, true);
new Tween(box, "_width", Elastic.easeOut, oldw, neww, 2, true);
};
nav.btn2.onPress = function (){
 oldh=newh
 newh=300
 oldw=neww
 neww=300
 new Tween(box, "_height", Elastic.easeOut, oldh, newh, 2, true);
new Tween(box, "_width", Elastic.easeOut, oldw, neww, 2, true);




};


nav.btn3.onPress = function (){
 oldh=newh
 newh=500
 oldw=neww
 neww=500
 new Tween(box, "_height", Elastic.easeOut, oldh, newh, 2, true);
new Tween(box, "_width", Elastic.easeOut, oldw, neww, 2, true);
};

Friday 23 March 2012

Stage.align = "TL";
Stage.scaleMode = "noscale";
sizeListener = new Object();
sizeListener.onResize = function() {
 fullsize();

};
Stage.addListener(sizeListener);

_global.fullsize = function() {
 
  navBar._width = Stage.width
 
};
fullsize();
resizes the navigation to fit the screensize

Thursday 15 March 2012

GL Basic Game Update

During julians lesson today i managed to create a character to go into my game. It is a simply stick man right now and i intend to add more detail soon. I managed to implement a start up screen to the game aswell.

I intend to make it a bit more flashy soon.

Friday 9 March 2012

After Effects Animating


A short animation to learn how to animate using after effect.

Wednesday 7 March 2012

E-Zine Essay - Youtube


E-zine essay

Introduction

The interactive industry has grown a lot in the past few years, as technological advances have led to faster bandwidth and computers are being more widely used throughout society, it has become possible to make the user feel immersed in an interactive experience. Websites such as YouTube have revolutionized the way user generated content is shared and viewed, viral videos make people internet superstars in the matter of hours. The basic interactivity that used to occur was simply pushing the red button on your remote, but now you can acutely have an influence over what you watching by phoning in to vote. Also on the internet web 2.0 has enabled websites to be much more interactive. Web masters can now design interactive websites in flash that get the user more involved in the website,  instead of the old sites which were spammed full of flashing adverts and didn’t look to nice.

YouTube began in 2005 as a video sharing site, it was sold to Google in 2006  after it had a boom in popularity, soon after in 2007  Google announced the partnership programme, this gave content creators a more sustainable living which  in turn leads to more better content being brought out and more regularly.

YouTube is now one of the most viewed sites in the world and is visited by over 800 million unique visitors per month

Tonnes of user generated content get uploaded to YouTube, approximately 1 hour of footage every second. About  

Ray William Johnson is estimated to make over 1 million dollars a year through advertising, he has a team of about 6-8 people that help him make 1-2 videos a week that reach 3-4 million views per video. He interacts with the audience by asking those questions at the end of each video and then featuring some of their answers in the next video.

Many other big youtubers interact with their audience that way and get nearly the same amount of views.

Viral videos are videos that generate a lot of views in a short time, they are usually short and most of them contain someone doing something out of the ordinary, they get lots of views quickly by people sending the video to each other. Advertisers are seeing this as a big opportunity because they can spread their messages across to a large, diverse group of people in a short time. The problem is it’s hard to make a video go viral.

YouTube allows content creators to interact and receive feedback from the viewers by have a comments section, ratings, messages, and video statistics. This allows the content creator and youtuber to interact in a way that was never before possible with technologies such as TV or radio.

“Content then get a better understanding on what content the viewers do and don’t like and create better content for their audience. While other video hosting websites had been launched before YouTube in 2005 (including Metacafe in 2003 and Vimeo in 2004), YouTube was conceived to be, in the words of Jawed Karim, a video version of the rating site Hot or Not. Karim commented that hot or not was a site "where anyone could upload content that everyone else could view. That was a new concept because up until that point, it was always the people who owned the website who would provide the content." In December 2006, Time magazine wrote: "YouTube is to video browsing what a Wal-Mart Supercenter is to shopping: everything is there, and all you have to do is walk in the door."

Wikipedia. (). YouTube. Available: http://en.wikipedia.org/wiki/YouTube. Last accessed 7th Mar 2012. <!-- google_ad_client = "pub-9983032687302035"; /* Toolbox Referencing Inset */ google_ad_slot = "4903993350"; google_ad_width = 336; google_ad_height = 280; //-->