Be a Supporter!
Response to: Abortion question Posted July 6th, 2008 in General

At 7/6/08 07:23 PM, Dookiemaister wrote: both parents should be slaughtered for making retards.

If that was the case, then you'd be an orphan.

Response to: #include not working??? Posted May 11th, 2008 in Game Development

Put the ActionScript file in C:/Documents and Settings/user/Local Settings/Application Data/Adobe/Flash CS3/en/config/Include.
Consider using AS3 instead of AS2 when doing things like this.

Response to: C++ help pls Posted May 9th, 2008 in Programming

#include <iostream>
#include <cstdlib>
#include <ctime>

using namespace std;

int main()
{
srand(time(0));

int theNumber = rand() % 100 + 1;
int tries = 0; // int tries = 0,guess; What are you trying to do here?

cout << "\t Welcome to guess my number";

do
{

cout << "enter a guess: ";
cin >> guess;
tries ++;

if (guess > theNumber)
cout << Too high!\n\n";

if (guess < theNumber)
cout << Too low!\n\n";

} while (guess != theNumber);

cout << "\nThat's it! You got it in " << tries << "guesses!\n";

return 0;
}
Response to: pixelartist here Posted April 24th, 2008 in Game Development

So when will we see this new work of yours? It's been three days...

Response to: Hey dudes a small question. Posted February 9th, 2008 in General

Noone noticed you were gone, at all.

Response to: Platform Cheating? Posted January 12th, 2008 in Game Development

Make it so that you can only move the ball if the ball is touching the ground.

Response to: My Game = Good? Posted September 25th, 2007 in General

Looks like another copy of that ball game tutorial..

Response to: 3d Studiomax, Photoshopcs3, Flash8 Posted September 24th, 2007 in Game Development

Well, basically you should learn how to use 3D Studio Max. (3D modeling)
The program won't make a picture into 3D for you!

Response to: Madness Multiplayer The Game Posted September 24th, 2007 in Game Development

We've seen loads of these kind of "projects", often led by 13-yearolds like you.
Questions
1: What will you do?
2: Did you ever make a game before?
3: What do you know about making a multiplayer game?

It won't ever happen!

Response to: mah game engine (i want sugestions) Posted September 24th, 2007 in Game Development

Reminds me of a tutorial I saw somewhere.

Response to: As3: Main Posted September 22nd, 2007 in Game Development

AS3: fl.controls

As3: fl.controls Posted September 22nd, 2007 in Game Development

As3: Main

Did you ever try to make a RadioButton, or maybe a CheckBox?
Did you get errors when addChild'ing components from the fl folder? (Like the RadioButton)
Do you like tutorials that make you say "There has to be another way, this sucks!" to yourself!?

Then this is the tutorial for you!

Wait... what's a radiobutton?
This is an .swf with radiobuttons on the left and checkboxes on the right!

I can't find any use for those!
Well, neither can I!
Or well, I'm using it for a game right now!
You'll see >: 3

Let's just get on with it!
Allright, make a .fla and save it in a new folder on your desktop.
At the top of you fuzzy Flash CS3 window, go to File > Publish Settings > the Flash panel > Settings (Next to 'Actionscript version')
Allright, now press that plus and type in C:\Program Files\Adobe\Adobe Flash CS3\en\Configuration\Component Source\ActionScript 3.0\User Interface
or whereever you keep your stuff!

Now we're ready for it!

Make a new .as file and save it in the same folder as the .fla as Wurzt.
Now type in:

package {
	import flash.display.MovieClip;
	import fl.controls.CheckBox;
	public class Wurzt extends MovieClip{
		private var cBox1:CheckBox = new CheckBox();
		private var cBox2:CheckBox = new CheckBox();
		private var cBox3:CheckBox = new CheckBox();
		public function Wurzt () {
			addChild(cBox1);
			addChild(cBox2);
			addChild(cBox3);			
		}
	}
}

Allright, in your .fla, in Properties (Ctrl+F3) set the document class to Wurzt.
Now test your .fla.
It doesn't work!
Go to C:\Program Files\Adobe\Adobe Flash CS3\en\Configuration\Components
and open up the "User Interface" .fla.

From it, copy the RadioButton and CheckBox, and paste it in your .fla.
Now you have a folder called "Component Assets" in your library, don't touchorz it!
Delete the radiobutton and checkbox laying about on your workspace. (They're still in the library!)
Now try your .fla again!

Allright, now I'm just gonna give you this huge chunk of code:

package {
	import flash.display.Sprite;
	import fl.controls.CheckBox;
	import fl.controls.RadioButton;
	import flash.events.MouseEvent;
	public class Wurzt extends Sprite{
		private var cBox1:CheckBox = new CheckBox();
		private var cBox2:CheckBox = new CheckBox();
		private var cBox3:CheckBox = new CheckBox();
		private var rB1:RadioButton = new RadioButton();
		private var rB2:RadioButton = new RadioButton();
		private var rB3:RadioButton = new RadioButton();
		public function Wurzt () {
			addChild(rB1);
			addChild(rB2);
			addChild(rB3);
			rB1.move(100,20);
			rB2.move(100,40);
			rB3.move(100,60);
			rB1.label = "Male";
			rB2.label = "Female";
			rB3.label = "Other";
			rB1.addEventListener(MouseEvent.CLICK,Click);
			rB2.addEventListener(MouseEvent.CLICK,Click);
			rB3.addEventListener(MouseEvent.CLICK,Click);
			addChild(cBox1);
			addChild(cBox2);
			addChild(cBox3);
			cBox1.move(20,20);
			cBox2.move(20,40);
			cBox3.move(20,60);
			cBox1.label = "Newsletter";
			cBox2.label = "Cat";
			cBox3.label = "Monees";
			cBox1.addEventListener(MouseEvent.CLICK,Click);
			cBox2.addEventListener(MouseEvent.CLICK,Click);
			cBox3.addEventListener(MouseEvent.CLICK,Click);
		}
		private function Click (e:MouseEvent) {
			switch(e.target){
				case rB1:
					trace("I'm not a woman!");
					break;
				case rB2:
					trace("I'm a woman!")
					break;
				case rB3:
					trace("I might be a woman!");
					break;
				case cBox1:
				if(cBox1.selected){
					trace("I DO want annoying newsletters!");
				}
					break;
				case cBox2:
				if(cBox2.selected){
					trace("I have a cat!");
				}
					break;
				case cBox3:
				if(cBox3.selected){
					trace("I will gladly give you my money!");
				}
					break;
			}
		}
	}
}

A load of repetive and boring code!
But that's how you make them buttons.
I want them to look differentzors!
You can either make new skins, or edit the allready excisting ones!
Since we copied the stuff from the other .fla, we might aswell edit them!
So doubleclick CheckBox in the library and then doubleclick the square that says "up".
Do whatever you want to it! O_O
Draw some nice little checkbox-related.. thing!
Then edt the others, remember to add some sort of checker on the "selected_" ones!

I think that's all, you can of coure edit the radiobutton too!
If you want to make things like ComboBoxes, ColorPickers, or anything else in the User Interface .fla... well, it's not that hard, it's pretty much like this.
If you really need it, tell me, and I'll add it in.

Response to: As3: TextField class Posted September 22nd, 2007 in Game Development

Maybe you could make a tutorial about some of these.. more uninteresting classes, like the TextField one!

Response to: As3: Main Posted September 22nd, 2007 in Game Development

Someone asked for a vcam.
Here you go.

Response to: As3: Main Posted September 14th, 2007 in Game Development

Try this.["root"]["VariableNameLewl"]
Should work! ^^

Response to: As3: Main Posted September 9th, 2007 in Game Development

TextField class
Tutorial on making textfields in AS3, I made it just now.
Go check it out.

As3: TextField class Posted September 9th, 2007 in Game Development

As3: Main

I didn't test this Exact code myself, it might not work as intended.
I did however use the TextField class! :3

Hi all you knowledge-hungry nubs!

If you didn't guess it allready, this is an ActionScript 3 tutorial. It's about the textfield class, that means you will learn how to make textfields in AS3 code!

So what is a textfield?
It's what you make with the text tool, basically.
But seriously, is there more to say here ? ._.
Maybe some questions and answers?

Q: "Couldn't you tell us where you first experienced the TextField class, Silkey?"
A: "When I was working with my current* project, I made a textfield with the text tool, but it didn't work... so good. So I did was pressed F1 and searched for dynamic text** and I found the textfield class. It worked good. :3
Q: "There isn't a lot more to ask, is there?"
A: "Nope!"

Let's just get on with it
I'm just going straight to the coding, I allready filled this topic with a lot of crap.


package stuffing { //I keep my .as files in a folder next to my .fla called stuffing.
import flash.display.MovieClip;
import flash.text.TextField;
public class TextLine extends MovieClip {
private var Text:TextField = new TextField();
public function TextLine (sentence:String) {
Text.text = sentence; //Sets the output of the Text.
Text.autosize = "center"; //This will turn the 'textbox' into a size fitting the text.
Text.selectable = false; //This is true by default, I usually don't want it selectable.
addChild(Text);
}
}
}

So that's a basic TextField for you, put it into an .as file and save it as TextLine.
Put it in your scriptfolder and then use it by doing something like this:

//Note how this code isn't complete, it felt kinda meh all that crap three times.
public class aClass {
public function aClass () {
aText = new TextLine("I ain't hungry atm, I just ate some danish pastry");
}
}

And there you go.

So what more can you do?
Oh, well you can change the font!
To do this you need to make a TextFormat, adding onto the script from before:

package stuffing {
import flash.display.MovieClip;
import flash.text.TextField;
import flash.text.TextFormat;
public class TextLine extends MovieClip {
private var Text:TextField = new TextField();
private var italicArial:TextFormat; /*A load of values going into this, if you want to skip
one just type in 'null'.
public function TextLine (sentence:String) {
/*The first value is the Font, we're gonna use Arial Narrow. You basically just put
quotations around your absolute favourite font! If you don't have one, just press the
big "T" on the toolbar to the left of you, and find one in that dropdown menu!
After that it's the size of your text. 10 is the default size.
Colour, bold, italic... go see for yourself!*/
italicArial = new TextFormat("Arial Narrow",14,0x006666,false,true);
Text.text = sentence;
Text.setTextFormat(italicArial);
addChild(Text);
}
}
}

And you're done.
I don't really know what more to put into this, for more about the TextField class, just go press F1 in the Flash CS3 closest to you!
I hope you enjoyed my tutorial, it was my first one.

*This word is extremely overused together with things like "game" and "project"
-_- I hate it, still I use it.
** Of course I got up stuff like "migrating" "constructor" and other things that don't Directly have anything to do with what I searched for.

Response to: awsome gun sheets Posted September 7th, 2007 in Game Development

On what website did you find these?
They look great, some of them are a bit plain compared to the others though..!

Response to: Best Known New Users Posted September 3rd, 2007 in General

Me plx!

Response to: Most attractive part of girl? Posted September 3rd, 2007 in General

Toenails. Fo sho'

Response to: gif? Posted September 3rd, 2007 in Programming

EasyToon, google it.
Also, this has ABSOLUTELY (omaikod bold caps)
nothing to do with programming!

Response to: AS help Posted September 3rd, 2007 in Game Development

The other guy didn't tell you, but just so you know in the future; (load) only happens once, when the MC is loaded.

Response to: is flash free? Posted September 3rd, 2007 in Game Development

www.adobe.com

Response to: AS 3.0 question Posted September 1st, 2007 in Game Development

I didn't really read it all through, but I think I have the solution.
On the keyDown function, set a Boolean variable to true. (down = true)
On keyUp, set it to false.
Now you have your "keydown", on a enterframe handler, put
while(down==true){ //Whatyawant }.

I was tired! :(

Response to: I want this Posted August 23rd, 2007 in Game Development

Try pressing Downloads at the top of the site.
There you'll find preloaders, including this one.

Response to: "World moves around" AS Posted August 11th, 2007 in Game Development

if (Key.isDown(Key.LEFT)) { world.x += 1 // The world goes to the right, the character to the left }
The rest is up to you.

Response to: fla to swf converter needed Posted August 10th, 2007 in Game Development

At 8/10/07 01:54 PM, Stives1111 wrote:
At 8/10/07 01:49 PM, zenyara wrote: *Just got CS3* - Legit copy... $1,090

Should have bought a motorcycle...
ouch...got it off limewire...free =D

Enjoy trojans yes...
And a ban from NG!

Response to: AS3 Class Problemo Posted August 10th, 2007 in Game Development

Oh yes... I forgot, that should work! I flink..

Response to: AS3 Class Problemo Posted August 10th, 2007 in Game Development

First, learn to declare variables properly, and then import Example2 to Example.
import 'folder'.Example2;
Goes next to the other imports.

var Silkey:Example2 = new Example2();

Response to: how do i get flash without paying? Posted August 9th, 2007 in Game Development

We can't talk about piracy here, so we won't help you with that crap.
I allready got banned for this... :|