Tuesday 24 May 2011

Creating a link to a website via flash.



box.addEventListener(MouseEvent.CLICK,fl_ClickToGoToWebPage);


function fl_ClickToGoToWebPage(event:MouseEvent):void
{
navigateToURL(new URLRequest("http://www.adobe.com"), "_blank");
}


This code will enable the user to click on the banner and then be re-directed to a website.

Effective website banners

Above is a good example of how a web banner can be very effective. This banner for thetrainline.com has bright attracting colours which draw in the users eye. The best feature about having this ad on the front page of YouTube is that if the user dose not wish to view the ad they can simply click the cross to hide it, therefore preventing the user for becoming frustrated by moving animations.




The Pringle interactive ad is by far the most amusing in its content. The user clicks on  the banner repeatedly and in response messages pop up. The good thing about this ad is that it takes an extremely long time for the user to cycle through all of the messages, which for a web site banner is a very good achievement.


Once again this is effective as it keeps the user on the ad for much longer than the average viewing time. A bad point that I would pick up would be the clarity of the branding in the left hand corner. Although the user will be on the ad longer than usual, it would be easy for them to disregard the branding and click off the web page. 


This ad by Mini is effective at conveying the information about the car, however I find it frustrating how once you have cycled through the Mini's mods you cannot scrub back to see the previous version. From an interactive point of view I think that if the feature was enabled then viewing it would be a much more enjoyable experience. 


Wednesday 18 May 2011

Creating a Motion Guide in Flash

There are many advantage to creating a path for an object to follow, the main is that you can determine the position and speed of an object at any point on the time line.
The method to creating a motion path is to create a path with either the pen tool or brush. Then in the layers panel right click on the new path layer and "add classic motion guide" this will allow another movieclip to move along the path when tweened.

Score counter in Flash

The idea of this experiment was to create a function, witch when the object was clicked, would add 1 to the score.

The ActionScript used was as follows:

//Tell the counter to start from 0

var score:Number =0

//Shows "Score 0" on stage prior to the object being clicked
scoreText.text="Score  "+String(score)

square.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler);
function fl_MouseClickHandler(event:MouseEvent):void
{

//adds +1 to the variable 
score+=1

//To the text box on the stage increases to value without changing the the word "Score"
scoreText.text="Score  "+String(score)

//tested whether the function was working
trace("SCORE");
}



The text box on the stage was set to "Classic text" and "Dynamic text" so that the AS was able to change the value within it.