AS3 Help

Started by RobHalford, March 31, 2009 06:49 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

RobHalford

I'm here to answer your beginner to intermediate questions relating to Actionscript 3.

[size=]AS3 TUTS[/size]

QuoteBut nevvgrounds is totally different from 4chan. We are a different set of people.
Quote<+ukinojoe> kirbopher is a pile of jackets
<+ukinojoe> if you remove them all
<+ukinojoe> all thats left is a dead rat

funzop

how do i make video games

LordZeebmork

how do i make a forum
let's all set our phasers on "boring"

Wasim

#3
hey how do i do that option where you can save as a .xbox360 file or any other console? cause i saw tomfulp doing it
Moughalab zegt: Wanna keep a secret from niggas, write it down in a book they'll never read it.

Flash

onrelease press dot hold goto frame variables what what

unclephil


Mad Meat

Quote from: Jigglypuffaway?
wut?
HOLLY FUCK!!!THAT GIANT KITTY SHITED ON MI HOUSE!!!
I kept this signature just to entertain you pal ;D

RobHalford

#7
Quote from: Flashonrelease press dot hold goto frame variables what what

var button:Shape = new Shape();
button.graphics.beginFill(0xCCCCCC);
button.graphics.drawRect(0, 0, 200, 100);
button.grahpics.endFill();
button.addEventListener(MouseEvent.CLICK, buttonClick);
function buttonClick(evt:MouseEvent):void{
  gotoAndPlay(frame# or label);
}


Quote from: Wasimhey how do i do that option where you can save as a .xbox360 file or any other console? cause i saw tomfulp doing it

What, an sol file?

If I knew it off hand, I probably would be making flash games.

Here's just some code to make a quick button with rollovers.
//BUTTON CODE
var button:Sprite = new Sprite();
button.graphics.beginFill(0xCCCCCC);
button.graphics.drawRect(0, 0, 200, 100);
button.graphics.endFill();
button.alpha = .5;
addChild(button);
button.addEventListener(MouseEvent.ROLL_OVER, buttonOver);
function buttonOver(evt:MouseEvent):void{
  button.alpha = 1;
}

button.addEventListener(MouseEvent.ROLL_OUT, buttonOut);
function buttonOut(evt:MouseEvent):void{
  button.alpha = .5;
}

QuoteBut nevvgrounds is totally different from 4chan. We are a different set of people.
Quote<+ukinojoe> kirbopher is a pile of jackets
<+ukinojoe> if you remove them all
<+ukinojoe> all thats left is a dead rat

rtil

would you be opposed to writing for anipedia? most of us animators have been left in the dark about making simple menus and preloaders in AS3

RobHalford

#9
Not at all.

I'm still a little shady on preloaders, but I'm money on most things.

Yeah, would you mind getting on aim as well?

QuoteBut nevvgrounds is totally different from 4chan. We are a different set of people.
Quote<+ukinojoe> kirbopher is a pile of jackets
<+ukinojoe> if you remove them all
<+ukinojoe> all thats left is a dead rat

Flash

woah thanks! =]

RobHalford

#11
So here's the button code in action.

And lyke I made a tut on it too.

http://anipedia.thebackalleys.com/index.php/Buttons_AS3

QuoteBut nevvgrounds is totally different from 4chan. We are a different set of people.
Quote<+ukinojoe> kirbopher is a pile of jackets
<+ukinojoe> if you remove them all
<+ukinojoe> all thats left is a dead rat

squffin

youare a kind n gentle soul.,

rtil

looking great so far. start your pages with the title "Tutorial:" and put AS3 in parenthesis

try to write in a less personal tone too

other than that thank you very much for your help with the actionscript side of the encyclopedia. i don't know anywhere near enough to write about it, much less version 3

RobHalford

#14
Lesson 2: http://anipedia.thebackalleys.com/index.ph...:Graphics_(AS3)

I'll add more examples late tonight or tomorrow.

QuoteBut nevvgrounds is totally different from 4chan. We are a different set of people.
Quote<+ukinojoe> kirbopher is a pile of jackets
<+ukinojoe> if you remove them all
<+ukinojoe> all thats left is a dead rat

rtil

very cool. thanks a lot for these

rtil

in case you didn't know, you can have SWF's in your tutorials.
they are uploadable on anipedia (Special:Upload page when you are logged in only), and to embed them you use <player align="center|left|right">file.swf‎</player>

i believe you can specify width and height as well. it's been a while since i've used it

RobHalford

thx.

You can actually format that text (font, bold, etc) just like css if you make a TextFormat variable and add some shit to it.

QuoteBut nevvgrounds is totally different from 4chan. We are a different set of people.
Quote<+ukinojoe> kirbopher is a pile of jackets
<+ukinojoe> if you remove them all
<+ukinojoe> all thats left is a dead rat

RobHalford

Quote from: rtilin case you didn't know, you can have SWF's in your tutorials.
they are uploadable on anipedia (Special:Upload page when you are logged in only), and to embed them you use <player align="center|left|right">file.swf‎</player>

i believe you can specify width and height as well. it's been a while since i've used it

Alright. Both pages have been updated.

QuoteBut nevvgrounds is totally different from 4chan. We are a different set of people.
Quote<+ukinojoe> kirbopher is a pile of jackets
<+ukinojoe> if you remove them all
<+ukinojoe> all thats left is a dead rat

RobHalford

#19

QuoteBut nevvgrounds is totally different from 4chan. We are a different set of people.
Quote<+ukinojoe> kirbopher is a pile of jackets
<+ukinojoe> if you remove them all
<+ukinojoe> all thats left is a dead rat