thebackalleys

Main => General => Topic started by: RobHalford on March 31, 2009 06:49 PM

Title: AS3 Help
Post by: RobHalford on March 31, 2009 06:49 PM
I'm here to answer your beginner to intermediate questions relating to Actionscript 3.

[size=]AS3 TUTS[/size]
Title: AS3 Help
Post by: funzop on March 31, 2009 08:33 PM
how do i make video games
Title: AS3 Help
Post by: LordZeebmork on March 31, 2009 08:35 PM
how do i make a forum
Title: AS3 Help
Post by: Wasim on March 31, 2009 08:36 PM
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
Title: AS3 Help
Post by: Flash on March 31, 2009 10:14 PM
onrelease press dot hold goto frame variables what what
Title: AS3 Help
Post by: unclephil on March 31, 2009 11:11 PM
away?
Title: AS3 Help
Post by: Mad Meat on March 31, 2009 11:22 PM
Quote from: Jigglypuffaway?
wut?
Title: AS3 Help
Post by: RobHalford on March 31, 2009 11:35 PM
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;
}
Title: AS3 Help
Post by: rtil on March 31, 2009 11:40 PM
would you be opposed to writing for anipedia (http://anipedia.thebackalleys.com/)? most of us animators have been left in the dark about making simple menus and preloaders in AS3
Title: AS3 Help
Post by: RobHalford on March 31, 2009 11:41 PM
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?
Title: AS3 Help
Post by: Flash on April 1, 2009 12:02 AM
woah thanks! =]
Title: AS3 Help
Post by: RobHalford on April 1, 2009 12:09 AM
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 (http://anipedia.thebackalleys.com/index.php/Buttons_AS3)
Title: AS3 Help
Post by: squffin on April 1, 2009 01:55 AM
youare a kind n gentle soul.,
Title: AS3 Help
Post by: rtil on April 1, 2009 04:19 AM
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
Title: AS3 Help
Post by: RobHalford on April 1, 2009 11:50 PM
Lesson 2: http://anipedia.thebackalleys.com/index.ph...:Graphics_(AS3) (http://anipedia.thebackalleys.com/index.php/Tutorial:Graphics_(AS3))

I'll add more examples late tonight or tomorrow.
Title: AS3 Help
Post by: rtil on April 2, 2009 01:56 AM
very cool. thanks a lot for these
Title: AS3 Help
Post by: rtil on April 2, 2009 02:07 AM
in case you didn't know, you can have SWF's in your tutorials.
they are uploadable on anipedia (Special:Upload (http://anipedia.thebackalleys.com/index.php/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
Title: AS3 Help
Post by: RobHalford on April 2, 2009 02:08 AM
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.
Title: AS3 Help
Post by: RobHalford on April 2, 2009 02:25 AM
Quote from: rtilin case you didn't know, you can have SWF's in your tutorials.
they are uploadable on anipedia (Special:Upload (http://anipedia.thebackalleys.com/index.php/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.
Title: AS3 Help
Post by: RobHalford on April 6, 2009 02:28 AM
Lesson 3: Filters in AS3: http://anipedia.thebackalleys.com/index.ph...l:Filters_(AS3) (http://anipedia.thebackalleys.com/index.php/Tutorial:Filters_(AS3))
Title: AS3 Help
Post by: DrRumack on April 6, 2009 11:05 PM
cool i'll stick to as2 tho
Title: AS3 Help
Post by: RobHalford on April 6, 2009 11:20 PM
I'm planning on doing a preloader tut soon.
Title: AS3 Help
Post by: Daveb0t on April 7, 2009 02:22 PM
Quote from: Rob HalfordI\\\'m planning on doing a preloader tut soon.
that would be good, but make it big big, like include some other methods in AS1 and AS2

I mean theres a slew of them, but decompiling the NG preloaders is still confusing as hell

or someone else make some accompanying shit
Title: AS3 Help
Post by: RobHalford on April 7, 2009 04:10 PM
I don't know AS1/2.

Title: AS3 Help
Post by: rtil on April 7, 2009 07:45 PM
does anyone still use as1?
Title: AS3 Help
Post by: Daveb0t on April 7, 2009 08:37 PM
sort of
Title: AS3 Help
Post by: Joelasticot on April 8, 2009 02:13 AM
When are you going to cover the fundamentals of AS3 coding such as display lists, OOP and garbage collection? AS3 isn't just about sticking all your code onto a frame
Title: AS3 Help
Post by: RobHalford on April 8, 2009 05:53 PM
Quote from: JoelasticotWhen are you going to cover the fundamentals of AS3 coding such as display lists, OOP and garbage collection? AS3 isn't just about sticking all your code onto a frame

I'm in my second year of flash at college.

Like I posted in another thread, my head exploded when my teacher tried to explain a for loop to me.
Title: AS3 Help
Post by: RobHalford on April 10, 2009 03:06 AM
I'm going to do a few preloader tuts.

One is in the books already.

I'd have another done if scaleX and scaleY weren't being total pains in the ass.
Title: AS3 Help
Post by: RobHalford on April 10, 2009 04:26 AM
http://www.thebackalleys.com/ok/public/mattspreloader.swf (http://www.thebackalleys.com/ok/public/mattspreloader.swf)

I'll do the write-up in a bit.
Title: AS3 Help
Post by: rtil on April 10, 2009 06:08 AM
the secrets revealed
Title: AS3 Help
Post by: RobHalford on April 10, 2009 06:57 AM
http://anipedia.thebackalleys.com/index.ph...reloaders_(AS3) (http://anipedia.thebackalleys.com/index.php/Tutorial:Preloaders_(AS3))

There...
Title: AS3 Help
Post by: rtil on April 10, 2009 06:30 PM
you should add in a bit about how to swap the progress bars made with AS with symbols the user has made. i think more people are used to that method
Title: AS3 Help
Post by: Ayyyyy on June 10, 2009 12:52 AM
Quote from: rtildoes anyone still use as1?

No Flash MX through 8, Link AS 1.0 & 2.0 together. It is hard to tell, but I am no expert on this subject.

QuoteWhen are you going to cover the fundamentals of AS3 coding such as display lists, OOP and garbage collection? AS3 isn't just about sticking all your code onto a frame

This Joelasticot, obviously has an idea of what he is talking about. Are people using anipedia anymore?
Title: AS3 Help
Post by: RobHalford on June 10, 2009 01:17 AM
Like I posted earlier, OOP is way over my head. I've been looking into display lists recently, but there's nothing I can teach.
Title: AS3 Help
Post by: Ayyyyy on June 10, 2009 04:00 AM
Quote from: Rob HalfordLike I posted earlier, OOP is way over my head. I've been looking into display lists recently, but there's nothing I can teach.

Declaring variables at the beginning of scripts is a form of garbage collection.

You did this in your preloader tutorial (http://anipedia.thebackalleys.com/index.php/Tutorial:Preloaders_%28AS3%29) Rob
Title: AS3 Help
Post by: RobHalford on June 10, 2009 04:15 AM
Quote from: Nuac_
Quote from: Rob HalfordLike I posted earlier, OOP is way over my head. I've been looking into display lists recently, but there's nothing I can teach.

Declaring variables at the beginning of scripts is a form of garbage collection.

You did this in your preloader tutorial (http://anipedia.thebackalleys.com/index.php/Tutorial:Preloaders_%28AS3%29) Rob

Yeah but that shit's essential. I had like 30 vars going for my first game.
Title: AS3 Help
Post by: Joelasticot on June 14, 2009 04:39 PM
If you want to learn AS3 seriously, I recommend that you read this book
http://oreilly.com/catalog/9780596526948/ (http://oreilly.com/catalog/9780596526948/)
Seriously, a few hours reading it will probably teach you more than everything you've seen in class so far...
Plus, you can easily find it for free
Title: AS3 Help
Post by: RobHalford on June 14, 2009 06:34 PM
Quote from: JoelasticotIf you want to learn AS3 seriously, I recommend that you read this book
http://oreilly.com/catalog/9780596526948/ (http://oreilly.com/catalog/9780596526948/)
Seriously, a few hours reading it will probably teach you more than everything you've seen in class so far...
Plus, you can easily find it for free

I have it...
Title: AS3 Help
Post by: Joelasticot on June 15, 2009 08:06 PM
Quote from: Rob HalfordI have it...

Well... read it?
Title: AS3 Help
Post by: RobHalford on June 15, 2009 09:22 PM
Quote from: Joelasticot
Quote from: Rob HalfordI have it...

Well... read it?

Work in progress.