00:00
00:00

As: Main

670,442 Views | 1,520 Replies
New Topic Respond to this Topic

Response to As: Main 2005-08-05 15:54:35


Hey all, please can someone give me the actionscript for this....
Ive got a tune called 'theme' and ive added it to my frame using this code:

bgSound = new Sound(this);
bgSound.attachSound("theme");

Can someone give me the code for on key press 'm' for the tune to mute and then come back when pressed again. This is for a mute button.

Thank you verymuch!

- mymummyneverlovedme

Response to As: Main 2005-08-05 23:56:36


this is a copy and paste from my last post here...

oh, and another idea for a thread (or can you direct me towards it) would be on random apearing enemies, for e.g they appear every so often just off screen, then come on.

and another on random appearance, for e.g in a shooter game you have a man positioned behind a box, when ones dead, another will appear after a certain amount of time.
--could these be in the same topic?

thanks for any replies

sorry for any dumb questions regarding AS, im just trying to learn it.

WEBSITE

BLOG ~ Dont fuck around with my dog. All that I can see I steal. ~

NG FFR ~ Automatic for the people.

BBS Signature

Response to As: Main 2005-08-06 00:00:08


At 8/5/05 03:54 PM, -Ollie- wrote: Hey all, please can someone give me the actionscript for this....
Ive got a tune called 'theme' and ive added it to my frame using this code:

bgSound = new Sound(this);
bgSound.attachSound("theme");

onClipEvent(EnterFrame){
on(keypress"<M>"){
bgSound = new Sound(this);
bgSound.attachSound("theme");
bgSound.soundVolume=0;
}
}

that might work

Response to As: Main 2005-08-06 19:09:15


Hi everyone, I'm making a new tutorial Called "Ultimate Update Tutorial" I'm going to be updateing it from time to time so people can use it as a referance.

I'm wanting to include an actionscript referance as well and I was wondering if I can take the info on AS main and use it if I give credit to the authors of the respective tutorials

It won't be done all at once but over several updates. It would include samples of how the tutorials work. But the only thing is I would also need an explanation of how and why things work...

I don't want to make a Copy and Paste the actionscript tutorial. I want to explain it so people learn rather than steal the script.

if you would like to see the design of the tutorial so far you can check it out here...

http://www.jacksmack..rials/tutorial6.html

Thanks.

Please email me if you are on board. I'll check this forum too.

Jacksmack.


Visit JackSmack.com and submit your Flash Games!

BBS Signature

Response to As: Main 2005-08-06 19:10:38


you're welcomed to use all mine as long as you credit.

Response to As: Main 2005-08-06 19:12:04


we nid a get.nextHighestDepth(); topic

Response to As: Main 2005-08-06 19:13:57


New page? Hmmm.

GENERAL CODE:

BASIC
AS: Bars (Health/Score/etc) by Inglor
AS: Basic A.I. by Dancing-Thunder
AS: ClipEvents by Inglor
AS: Drag & Drop by Inglor
AS: Duplicated Movie Clips
AS: Inventory 1 by Inglor
AS: Loops & Conditions by BleeBlap
AS: Loops - For... In by Inglor
AS: Loops - While by Ninja-Chicken
AS: Maths - Basic by T-H
AS: Movement - Basic
AS: Movement - Scrolling background by DrDeath2k3
AS: Movie Control by Spamburger
AS: Password by Dancing-Thunder
AS: Performance & Optimisation Tips by T-H
AS: Quality Toggling
AS: Replay Button by Inglor
AS: Sound
AS: Stop & Play Buttons by Inglor
AS: Symbols by Joelasticot
AS: Variables by -Toast-

INTERMEDIATE
AS: Arrays
AS: Camera Control by Inglor
AS: Collisions by Glaiel_Gamer
AS: Collision Detection by BleeBlap
AS: Creating Boundaries by Spamburger
AS: Debugging Syntax by Inglor
AS: Elasticity by Joelasticot
AS: Functions - Basic by Inglor
AS: Intervals by Inglor
AS: Linear Increasement by Inglor
AS: Load External Data/Cross-Domain
AS: Maths - Intermediate by Inglor
AS: Mouse Wheel by Inglor
AS: Movement - On slopes by Joelasticot
AS: Output Panel Manipulation by Inglor
AS: Platform Game Basics by Atomic_Sponge
AS: Save and Load
AS: SWF Right-Click Menu

ADVANCED
AS: API by -liam-
AS: API Curves by Glaiel_Gamer
AS: API 3-Gradient Fills by Inglor
AS: Binary Increasement by Inglor
AS: Syntax Checking Stack by Inglor
AS: Modular Programming by Inglor
AS: Non-Tilebased Pathfinding by dELta_Luca
AS: Tile-based Pathfinding by dELta_Luca
AS: Tile-based Game Development Map by Inglor
AS: Tile-based Line-of-Sight Algorithm by zoohl
AS: Movement - Random by Begoner
AS: OOP (Object Oriented Programming) by Inglor
AS: System Capabilities (Flash-PC Communication) by Inglor
AS: Trigonometry by BleeBlap
AS: XML by Inglor

SPECIFIC EFFECTS/PROJECTS:

BEGINNER
AS: Clock by Glaiel_Gamer
AS: Preloader

INTERMEDIATE
AS: Fireworks (API) by Inglor
AS: Game 1 - Moving and Jumping by Ninja-Chicken
AS: Game 2 - Shooting & Power-ups by Ninja-Chicken
AS: Maze by Begoner
AS: Flash Registration Form by bigftballjock
AS: Pong Physics & Gravity by Dark_Toaster
AS: Rain Effect (API) by Inglor
AS: Starfield (API)
AS: Typewriter Effect by Atomic_Sponge
AS: Volume Slider by Star_Cleaver


- - Flash - Music - Images - -

BBS Signature

Response to As: Main 2005-08-06 19:16:16


At 8/6/05 07:10 PM, Inglor wrote: you're welcomed to use all mine as long as you credit.

You have alot of them! Thanks... I guess I'll have to get most of yours done before I can release the tutorial. That should be enough info for a good start.

If I have any questions on how to explain something I'll get in contact with you.


Visit JackSmack.com and submit your Flash Games!

BBS Signature

Response to As: Main 2005-08-06 19:51:22


why isn't "APIT" in the special projects section?

Response to As: Main 2005-08-06 19:53:45


At 8/6/05 07:51 PM, Inglor wrote: why isn't "APIT" in the special projects section?

Because it's not really a demonstration of how to use AS, it's more of a tool


- - Flash - Music - Images - -

BBS Signature

Response to As: Main 2005-08-06 20:15:33


67... we ran out of topics :P

Response to As: Main 2005-08-08 13:13:34


Much love to denvish/

<3

Response to As: Main 2005-08-08 18:07:00


At 8/8/05 01:13 PM, kipling wrote:

kipling, since you suggested that I wrote a new AS: Variables tutorial, I started doing so. Anyway, I thought I'd ask Denvish and you other people: Do you want a new tutorial for variables? I'll go through Strict Data Typing and such. I just want to make sure, I don't want to write it and get rejected.


BBS Signature

Response to As: Main 2005-08-08 18:08:24


At 8/8/05 06:07 PM, Rantzien wrote:
At 8/8/05 01:13 PM, kipling wrote:
kipling, since you suggested that I wrote a new AS: Variables tutorial, I started doing so. Anyway, I thought I'd ask Denvish and you other people: Do you want a new tutorial for variables? I'll go through Strict Data Typing and such. I just want to make sure, I don't want to write it and get rejected.

Yes please do the old one is SHIT
But inglor might already be making one
I say make one anyways


- Matt, Rustyarcade.com

Response to As: Main 2005-08-08 18:11:24


Inglor is too bloody lazy

just cover:

correct decleration of vars
properties
attributes
local vars
global vars
how to access a variable

explain that a movieclip is actually also a variable type

and expend on everything, and explain what a variable is, toast didn't.

Response to As: Main 2005-08-08 18:15:56


At 8/8/05 06:11 PM, Inglor wrote: Inglor is too bloody lazy

just cover:

correct decleration of vars
properties
attributes
local vars
global vars
how to access a variable

explain that a movieclip is actually also a variable type

and expend on everything, and explain what a variable is, toast didn't.

Ok, I'll just get on with it then!


BBS Signature

Response to As: Main 2005-08-08 19:03:16


Oh, I just discovered there is no tutorial (as far as I can see) for the Flash hierarchy, and it's the most elementary AS knowledge. Someone should make that. Not me though, one is enough.


BBS Signature

Response to As: Main 2005-08-08 19:05:27


I made over 25, I have my excuse for not making it, I agree it should be made though.

Response to As: Main 2005-08-08 19:16:11


At 8/8/05 07:05 PM, Inglor wrote: I made over 25, I have my excuse for not making it, I agree it should be made though.

You're excused.

Now go to your room.

BBS Signature

Response to As: Main 2005-08-09 00:30:23


this topic needs to be a sticky

Response to As: Main 2005-08-09 08:01:15


Damn, this tutorial writing business is HARD.


BBS Signature

Response to As: Main 2005-08-09 08:03:51


At 8/9/05 12:30 AM, PirateNinjaOfDoom wrote: this topic needs to be a sticky

Yeah thats true
And writing tutorials is quite hard sometimes because though you know it its hard to explain to a n00b


- Matt, Rustyarcade.com

Response to As: Main 2005-08-09 09:01:05


It's up now, here.

If you have complaints or additions, either add it to the thread, or if the change is major, I could make a new thread with the new version.


BBS Signature

Response to As: Main 2005-08-09 09:10:47


At 8/9/05 09:01 AM, Rantzien wrote: It's up now, here.

If you have complaints or additions, either add it to the thread, or if the change is major, I could make a new thread with the new version.

Finally toast is dead and his rein of retarded terror is over

Response to As: Main 2005-08-09 10:01:46


At 8/9/05 09:53 AM, SpamBurger wrote: Has this been done before? How about AS: Dynamically resiszing objects?

Not a very big topic, but here are my recommendations on what should be done next:
AS: Hierarchy
AS: Classes


BBS Signature

Response to As: Main 2005-08-09 11:10:09


At 8/9/05 10:01 AM, Rantzien wrote:
At 8/9/05 09:53 AM, SpamBurger wrote: Has this been done before? How about AS: Dynamically resiszing objects?
Not a very big topic, but here are my recommendations on what should be done next:
AS: Hierarchy
AS: Classes

Classes have already been covered by inglor in OOP (obviously)
I agree with AS: Hierarchy


- Matt, Rustyarcade.com

Response to As: Main 2005-08-09 12:47:16


At 8/9/05 11:10 AM, Ninja-Chicken wrote: Classes have already been covered by inglor in OOP (obviously)

Oops.


BBS Signature

Response to As: Main 2005-08-09 22:38:06


How do you make it where you can entera house and exit it and say move from sceneto scene like on adventure games and how to make great adventure games.Note:if you could can you e-mail this to me if you want to that is.

Response to As: Main 2005-08-10 18:39:04


At 8/9/05 01:59 PM, PirateNinjaOfDoom wrote:
At 8/9/05 08:03 AM, Ninja-Chicken wrote:
At 8/9/05 12:30 AM, PirateNinjaOfDoom wrote: this topic needs to be a sticky
Yeah thats true
And writing tutorials is quite hard sometimes because though you know it its hard to explain to a n00b
I guess but n00bs porbly dont even read those just copy and paste the code into flash

hmm use the word n00b lightly if I were you
also we seriously need some more inglor in the AS:MAIN department because htis is running dead. Remeber the glory days of AS:MAIN c'mon people lets show inglor some support

inglor
inglor

no? oh well

c'mon look at the crap were getting AS:random WTF

inglor c'mon baby return on your white horse and save this thread


- Matt, Rustyarcade.com

Response to As: Main 2005-08-10 18:49:48


At 8/10/05 06:39 PM, Ninja-Chicken wrote: c'mon look at the crap were getting AS:random WTF

Hah I covered random in that crappy basic math one I did. Why the fuck are people doing it again?