Archive for the 'Uncategorized' Category

18
Dec
08

What you need to know about Classes in ActionScript 3.0

There are thousands of resources for this question, but I recently began as a complete beginner so kind of know how you feel about reading jargon relating to the question “What is a Class?”.

Firstly, a Class is a separate file. You need to write a Class in a new .as (actionscript) file.

Basically, what they do is tell your flash movie everything it needs to know about any element within it. You make classes for elements in your movie. They link and control Movie Clips, the actual Document and just about any other object you want to create in your Flash Project.

The best use for a class is when it contains actions that you can see yourself reusing.

For example; say you have a few different characters that you want to make run accross your screen. If you make a Class called RunAccrossScreen, you can right click any object in your library and use ‘Linkage’ to use the RunAccrossScreen class on that item. If using it on one item from your library you would leave the base Class set what it was on and type “RunAccrossScreen” into ‘Class’. You can use the class as many times as you want however, providing you type it in as the base Class.

For information on writing a Class file continue below:

———–

You store Classes in Packages. Packages are literally packages for what your about to type in. They are also used if you need to organise a complex system of Classes.

Its a bit like sending christmas cards. Say you have one multipack of cards with father christmas, snowmen and presents on…. and another multipack with images of things like Jesus, Wise Men etc. You have bought those cards for two different families. One is religious and Christian, the other is not so religious.

So your going to write in all of these cards with different names and messages for individual people. These could be considered your classes.

Now consider (but not strictly do in real life!), your sending these different cards to only two different addresses. In our personal, kind and gesturous human way we would now foolishly put each and every individual card into its own envelope and send every card to the same address. However, in programming you would need to be a little more practical, organised and cold, but hopefully you won’t… feel… the same about humans and scripts for computers. Consider the above situation again. The most practical thing to do would be to take all of your cards and organise them (all) into just two envolopes with two different addresses and send them off.

Thats how Packages and Classes work. They are a way of organisation and practicality.

———–

Each Class you write is a separate (.as) file, however a Package can be a container of many different (.as) files.

This works as files/ directories on your computer work. You have a Pictures folder, which probably holds lots of different pictures. In the same way, Packages are files on your hard drive that contain different (.as) files.

———–

I won’t go into it to deeply because there are good resources out there for this part, but this is the code used to create a Package/ Class:

For this to make sense and to gain more from this example, I suggest you copy and paste it into your ActionScript editor to read.

package character {                                       /*You always put package { at the start of your Class file. You can name it (ie ‘character’) optionally.*/

import flash.Display.MovieClip;                /*If your using this class on a movie clip you need to import the MovieClip class.*/

public class CharacterMove extends MovieClip { /*You need to make the class either private or public. Add a class name ‘ie CharacterMove. Then tell it that it is going to extend the MovieClip Class’s functionality.*/

public function() {                                                        /* public function is a function that is automitcally carried out every time you use the class*/

target.x + = 40;                                                            /* for example, every time I use this Class, it will make every item its ever linked to move 40 pixels accross*/

}

}

}                                                                                      /* close the braces!*/

———–

Thats it, I hope I helped you understand Classes a little more!

For help and some great references try visiting:

www.flashkit.com

www.kirupa.com

15
Dec
08

Fork the Bean Game – Draft 1

Are you like me. Do you retain the pleasure of forking baked beans?

Good, this game is for you.

Here is draft 1

You may have to click the game before you can use the arrow keys to Fork My Beans.

Enjoy forking my Beans.

http://www.manywonderfulthings.co.uk/forkthebeanv1.html

More Soon

05
Sep
08

Uni Results

Was really pleased with my results today! Whoo!

I still am unsure which route to take though. Its going to be a risk, but I may take Animation and Illustration because I quite liked that and storyboarding the film we made earlier in the year.

Mad! I came to this course thinking I would either do pure Graphic Design or Web Design. That would be the safe option, because I’m already good at it – but I think it may be boring after doing all the animation/ film stuff this year.

The only thing I worry about is that many Illustrators are quite notorious for being broke, because the industry is so saturated. So it may not be an area of Design I’ll stay in. I could always backtrack and go back to Graphics, maybe taking the animation skills with me and trying something like Idents.

I’d like to think I can carry on dipping my hand into everything, because at the end of the day it adds to my creative skills. Which I consider to be an umbrella kind of skill. Never-mind, I’m sure I’ll calm down to a single thing one day (we’ll see).

28
Aug
08

The Life of a Cat called Wheek – movie

On emptying the contents of my last phone’s memory stick I found a bunch of cute cat videos (too many some might say). So I decided to make a little movie of Hayley’s favorite Cat (Wheek).

I also just happened to have just finished a piece of music that mixes funk with the wonder that is the Banjo. So here we are “The Life of a Wheek”!

27
Aug
08

How to attach a CSS Style Sheet to a Webpage

I find making separate CSS files is the best way to deal with styles (colours, fonts, sizes etc etc) across a website. The main benefit being, when you decide to make any changes you only have to change the CSS file.

First you need to make a style sheet. So either tap your own code in or put this for an example:

.style1 {
font-family: “Arial”, Helvetica, sans-serif;
font-size: 12px;
color: #FFFF00;
font-weight: regular;

Save the above code in a file called ’style1.css’

Now every page you make for the website can link to this file. Between the <head> and <head/> tags place this code:

<LINK rel=”stylesheet” type=”text/css” href=”styles1.css” mce_href=”styles1.css”>

There we go, job done. Just carry on using the styles as normal!

27
Aug
08

How to add a scrollbar to a Table Cell

I thought this may be useful, as it is a problem I ran into recently. This is how you place a scrollbar onto a table cell in a html document.

Place this code just the ‘td tag’ of the table cell:

<div style=’height: 200px; overflow: auto;’>

You may want to edit the ‘200px’ to the height you want.

Then add this just before the </td> tag:

</div>

Good Luck!

27
Aug
08

How to put a border around single cells in HTML Tables

I’m currently making a website and stumbled across the problem with tables, cells and borders. The solution is to use CSS.

I found no ‘attractive’ way of using HTML tables, so decided to do the following:

The easiest way to do this is to go to the top of your document (code view, if your using a program) and add this anywhere in your style set (under style type=”text/css”…)

Now what you are going to do is create a ‘type’ of table cell. You give this ‘type’ of table certain rules, such as having a border. First you will need to name the table, I called mine ‘BlackBorder’.

This is the code you should type in:

.BlackBorder {
border: 2px solid #000000;
}

I only needed a 2px thick border, so you can adjust that to what you want. You could also add other ‘rules’ or properties to your table, if you know how to add them.

Now go back down to where the actual table cell you want the border around is. Now you are going to define a class for this table (class means one of the named ‘types’ of table).

At the table’s td or table tag, type class=”BlackBorder”, as below.

<td width=”306″ rowspan=”2″ class=”BlackBorder”

If your using Dreamweaver this will be much easier, as you can just select which cell you want and give it the BlackBorder ‘class’ in the attributes window.

08
Jun
08

Online Calendar – Journey Project

YES!!! Its finally finished!

I lost this work a while back when my hard drive decided to break. The original was basically a big stop frame animation out of photographs, but of course I lost all of the original files. I didn’t want to make the whole thing again, because it would have been very tedious to spend that much time doing the same thing. Instead, I decided to use the stop frame photograph techniques, but put them in a different context.

The Calendar is of April 2008. I chose this month and looked back at all of the things I had done throughout. I then created six different things (4 stop frame videos, an illustration and a storyboard).

I can’t put the flash object directly in here (its too big). So heres a link below to it:

Interactive Calendar – Journey Project

08
Jun
08

NESW Animation

Our brief was to create something to represent the North, East, South and West quarters of the World.

For my project I looked at folk music and decided to make the final piece an animated Advert. I looked at many different countries and chose those that gave the best general feel for that particular quarter of the World.

The actual animation is varied because I wanted to experiment with a few new things. All together, there is clay, paper cut out, stop motion and drawn animation. It gave me the opportunity to try a variation of techniques and materials for each subject.

08
Jun
08

Documentary of Film ‘The Godfather 4′

For a different group’s film they were going to do a documentary on our ‘Godfather film’. This is the reason we have a ‘making of’ to go with our film. The other group followed us around filming, interviewed us and also directed certain parts of their ‘making of’.

Most of the documentary parts are scripted or made up. Each of us had an extreme characteristic we had to live up to. Such as me being an incredibly angry director, Mitch moaning all the time and Nick being hyperactive and drunk. I’ve had to cut it down a bit for the whole thing to fit on Youtube, but the best parts are there, so enjoy!