Be a Supporter!
Response to: as3 layers Posted July 25th, 2009 in Game Development

that's a great idea, thanks!!!

Response to: is spamtheweb.com down Posted July 25th, 2009 in Game Development

you can also do swfcabin.com

as3 layers Posted July 25th, 2009 in Game Development

is it possible to specify the layer that the mc will be put onto? say the code is only layer1. I need it to be based on layer2. Is that possible? Or should I forget layers and just use an algorithm to organize the depths of the mc's with actionscript all on one layer?

Response to: as3 variables Posted July 25th, 2009 in Game Development

At 7/25/09 11:25 AM, FlashtooREV wrote: I don't think so, you only listed them in an array.
Say you have 5 puppies.
You make a list:
puppy1
puppy2
etc.

Now, you throw that list away. Do the puppies get thrown away?

rofl. great real life example.
I just didn't know if the array adopted the puppies or that is was a just a list of them.

Response to: as3 variables Posted July 25th, 2009 in Game Development

thanks for the help.
Just wondering-if I delete/clear the array, does it delete all the mcs(because they are the children)?

Response to: What's the code? Posted July 25th, 2009 in Game Development

right below this code:

_root.coin._x = Math.random()*400+50;

put this:

_root.coin._y = Math.random()*400+50;// replace 400 with you stage height
Response to: as3 variables Posted July 25th, 2009 in Game Development

thanks, ididn't know that... :P
ok, I created 30 or so boxes and i was wondering how to talk to them
their names are box1 box2 etc.
this code isn't working

stage["box"+a].x
Response to: as3 variables Posted July 25th, 2009 in Game Development

At 7/25/09 10:13 AM, Kirk-Cocaine wrote: myMC.myVar = 5;

trace(myMC.myVar); //5

i get an error: 1119: Access of possibly undefined property myvar through a reference with static type flash.display:Sprite.

Response to: as3 variables Posted July 25th, 2009 in Game Development

I tried that a million times:

var mc.variable:String="blah"
as3 variables Posted July 25th, 2009 in Game Development

is it possible to assign a newly created variable to an mc? Whenever I create a new variable, it is automatically assigned to the frame. How would i be able to assign it to an mc instead?

Response to: Score system Posted July 24th, 2009 in Game Development

well, you have to first create the variable score:

onClipEvent(load){
score=0
}
on(release){
score++
}
Response to: Two Major Problems Posted July 24th, 2009 in Game Development

http://www.albinoblacksheep.com/tutorial /contextmenu
heres a good site for that

Response to: looking for Programmer *examples Posted July 24th, 2009 in Game Development

http://www.swfcabin.com/open/1248474239
That's as2 but Im really starting to get the hang of as3 right now :)

Response to: as3 event question Posted July 24th, 2009 in Game Development

if that is the only way of doing it, then is their a property of sprites that tells the user what color the background is?

Response to: looking for Programmer *examples Posted July 24th, 2009 in Game Development

well, here is an old maid game. i never finished the ai(it was screwed up). your hand is at the bottom. click two cards that match to remove them. http://spamtheweb.com/ul/upload/240709/5 9886_old_maid3.fla
you can also view my coding in the .fla

Response to: as3 event question Posted July 24th, 2009 in Game Development

bump...
for more clarification: After I create the variable filled, It is automatically assigned to the frame. I want it to be assigned to the mc. How would I do this in code?

Response to: looking for Programmer *examples Posted July 24th, 2009 in Game Development

Well, i can do either. right now I do not have any as3 examples(just switched over a month ago) and my as2 examples are unfinished, but they could be of some use to you if you want to "estimate my skills"

Response to: as3 event question Posted July 24th, 2009 in Game Development

Thanks for the help. I, yet again, have another question:
how would it be possible to give the property "filled" to an mc
i know how to define the var filled but when i do that on the frame, it doesn't belong to the mc

var filled:Boolean=false
//give variable to box(how would i do this?)
Response to: as3 event question Posted July 24th, 2009 in Game Development

sorry for triple post, I found another obsticle
is it possible to change the fill color of a rectangle after it has been completely drawn?
Example:

var square:Sprite=new Sprite()
square.graphics.beginfill(0xFFFFFF)
square.graphics.drawRect(0,0,25,25)
square.graphics.endfill()
addChild(square)
square.addEventListener(MouseEvent.CLICK,squareclicked)
function squareclicked(event:MouseEvent){
var mc:object=event.target
//change fill here
}
Response to: as3 event question Posted July 24th, 2009 in Game Development

i figured it out:

var mc:Object=event.target
Response to: looking for Programmer *examples Posted July 24th, 2009 in Game Development

as2 or as3?

as3 event question Posted July 24th, 2009 in Game Development

how would I make this script work?

box.addEventListener(MouseEvent.CLICK,boxclicked);
function boxclicked(event:MouseEvent) {
	var mc:sprite=event.target
	trace(mc.y)
}
Response to: using sprites Posted July 24th, 2009 in Game Development

it's legal, just ask JohnnyUtah for permission to use them

Response to: Excellent Scripter wanted Posted July 23rd, 2009 in Game Development

what do you want? :|
as2 or as3?
is it for a small project(like a menu in a movie) or a big project(a game)?

Response to: Compressing flash Posted July 22nd, 2009 in Game Development

when you publish the file(which turns it into a .swf) it automatically compiles the document. A lot of the 5 mb's is the user history that is included with the .fla.

Response to: Programmer needed for Snail Wars Posted July 22nd, 2009 in Game Development

I'd be willing to do it if you improve the art. pm me if you want to start something ;)

Response to: V-Cam, Help please? Posted July 21st, 2009 in Game Development

show the example so we can see what you are talking about.

Response to: need help with parody/animation Posted July 21st, 2009 in Game Development

1. Better sprites(drawing)
2. Lipsynching
3. Actual sounds for bullet fire
That would make it much better:)

as3 code doesn't work Posted July 21st, 2009 in Game Development

for (a=1; a<=slimit; a++) {
	var ["subbox"+a]:Sprite=new Sprite();
	["subbox"+a].graphics.lineStyle(2,0x000000);
	["subbox"+a].graphics.beginFill(0x999999);
	["subbox"+a].graphics.drawRect((a-1)*(25+sdist),87.5,25,25);
	["subbox"+a].graphics.endFill();
}

how would I fix this so It works in as3?

Response to: Madness 3.0 Posted July 20th, 2009 in Game Development

here's a forum, there's bound to be some sprite sheets there. :)http://www.madnesscombat.net/phpBB3/