Archive for the ‘Future Professionals’ category

Re-posting of ActionScript Tutorial

March 27th, 2009

Once you’ve mastered this, try out the Pong tutorial by the Flash Ninja Clan here.

(and for Future Professionals, but we’ve been working on this)

The first type of code that I like to introduce is “stop();”. Put this in the ActionScript for the first frame. Test the movie. Instead of moving on through the frames, it stops in frame 1. How exciting.

Let’s animate a figure.
circleman
This is circleman. He is a very complex character with artwork that took me hours to draw.

To be able to easily reuse circleman, instead of drawing him on the stage, I made him a separate movie clip in the Flash file’s library. That way I don’t have to spend hours re-drawing him.

Right now he’s kindof boring in his new layer on frame 1, especially since the “stop();” command doesn’t move the animation anywhere. But for this movie, all of the fun will happen in one frame.

Make sure that circleman is selected, click on his ActionScript button, and type in the code that you see in the picture:
Move Left code

The onClipEvent(load) is a one time thing when that movie clip shows up in the frame the first time around. You’re setting up the initial values of the speed.

The onClipEvent(enterFrame) is every time the frame loops. With the LEFT function, it’s making your xspeed value a negative one. Outside of the Key.isDown(Key.LEFT) function the _x and _y is being added to whatever your xspeed and yspeed values are. It will do this each time the frame loops (many times per second). This creates the constant motion. If you don’t like the constant motion, you could put the _x += xspeed; part inside the Key.isDown function to add the xspeed only when the key is down.

Remember: Brackets start and stop a function. Every time there’s an open bracket it has to close the function somewhere with a close bracket.

Back to the Key.isDown, the way we’ve got it set up, circleman moves left until he is stuck in the netherworld called “Offscreen” with no hope of return. Add some UP, DOWN, and RIGHT Key.isDown functions.

Boundaries
Here’s where stuff gets crazy.

Create a movie called “bounds”.
bounds
This will be your environment/world/level.
Put the movie bounds on the stage. Name its instance “wall”.
wall

In circleman’s ActionScript, add a hitTest after your Key.isDown code but before your _y+=yspeed; stuff.
hitTest
If the character hits the bounds, it stops and then moves to new x,y coordinates.

This ActionScript dictionary is officially your best friend.

Photoshop Contest #3: Anime Character

March 25th, 2009

The Results:
picture-11

And the winner of the best iPhone app is…

March 4th, 2009

iMario! Nicely done.

Tie-breaker: Best iPhone App

March 4th, 2009

Make your choice and click on “Submit” to break the tie. The last PhotoShop contest? Turn yourself into an anime character. Remember: lots of extreme colors and exaggerated features.

Voting is closed.

iPhone Voting

February 25th, 2009

Click here to submit your picture of the perfect iPhone application.

Voting is closed.

Files for the iPhone Contest

February 11th, 2009

iphone-menu1
sms
iphone_phone-1

We’ll put them up and vote on the best next Wednesday.

Future Professionals Contest #2

February 4th, 2009

The perfect iPhone application can be found by clicking here.

Future Professionals Contest #1 Voting has Begun

January 27th, 2009

The photos look great. Remember that you’re picking the one that looks the most realistic, whether it looks like a screenshot from a game or a photo from a celebrity magazine.

Click here to vote. You’ll log in just like you log in at school.

We won’t be meeting on Wednesday since it’s a half day, but if you like PhotoShop, check out the web app Pixlr.

And yes, it’s free. Woohoo and all that.

Future Professionals: PhotoShop Entry #1

January 20th, 2009

Remember a couple of things with your PhotoShop entries:

  1. Your name will be attached to your photo. School rules still apply online.
  2. Your PhotoShop entry must look realistic – Could it be a screenshot from a game? Could it be found in a celebrity magazine?
  3. You’ll be logging in to a Virtual Classroom using your school login and password, just like you log in to the computers at school. If this is the first time you’ve used a Virtual Classroom, it will ask you to set up your profile first.

And without further ado: click here to submit your PhotoShop entry. Click on ‘Browse’ and then ‘Save and view’ to turn it in. Once everyone has the photo turned in, I’ll then set up the voting.