You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!

Author Search Results: 'medhopz'

We found 178 matches.


<< < > >>

Viewing 1-30 of 178 matches. 1 | 2 | 3 | 4 | 5 | 6

1.

None

Topic: As3 - Creating Mcs By Clicking

Posted: 04/28/08 12:40 PM

Forum: Flash

shouldn't you set the x and y before adding the child?
just seems more logical


2.

None

Topic: What is XpoGames?

Posted: 03/18/08 12:28 PM

Forum: Flash

i have some info about them.
it was a long time ago though, they might have changed.
i made a game, sent them the SWF and they didn't pay, but i haven't seen the game on their site.
i have to admit it was a pretty crappy game.

that's about it.
oh and one more thing, they'll try and show how real they are by making a contract and other kind of stuff.

hope this helps


3.

None

Topic: AS3 class making problem.

Posted: 12/19/07 03:34 PM

Forum: Flash

try importing the class

import Main.as;

or try saving the .fla in the same folder as the class


4.

None

Topic: Stop (Blaming) The Jews.

Posted: 12/18/07 10:03 AM

Forum: Politics

people, most of you are not giving facts.
you don't know what's really happening in Israel, you only know what they tell you in the news.


5.

None

Topic: How to destroy a movie clip in AS3?

Posted: 12/16/07 08:41 AM

Forum: Flash

At 12/16/07 03:27 AM, Stap1eGun wrote: Ahh, thank you both for the input. I just read an article on weak refrencing

mind sharing it with us?


6.

None

Topic: AS3 Problems when changing frame

Posted: 12/06/07 05:24 PM

Forum: Flash

what does weak-refrence mean?
could you give an example?


7.

None

Topic: AS3 Problems when changing frame

Posted: 12/06/07 09:49 AM

Forum: Flash

removeEventListener(..., ...);
same parameters as when you added it

removeChild(childName);

points = null;


8.

None

Topic: AS3 target child index

Posted: 11/19/07 03:17 PM

Forum: Flash

hey,

im trying to find the index of a child in a movieclip
the child is the target, you can call him 'e.target'

i hope that that would solve my problem, if it doesn't, im trying to compare a child and a parent.
to see if the child hitTests the parent clip but not himself in the clip
i thought about something like this:

if(e.target.hitTestObject(playerCont)) {
		if(!playerCont.getChildAt(0) == e.target as MovieClip) {

e.target being the child and playerCont being the parent clip
my second if is obiously wrong because it is hard coded (index will not be 0 all the time) and im not even sure you can do that kind of check

so how do i dinf the index of a child and how do i check if it is the same clip

thanks in advance


9.

None

Topic: Animators required for a game

Posted: 11/16/07 06:25 AM

Forum: Flash

e-mail sent. check your inbox


10.

None

Topic: AS3 Question: Multiple objects

Posted: 11/11/07 04:08 PM

Forum: Flash

also since you added the listener to the player and you are checking collision with the player and another object you should do:

if(event.target.hitTestObject(greenEnemy[i])) {

11.

None

Topic: AS3 Question: Multiple objects

Posted: 11/11/07 02:04 PM

Forum: Flash

just a tiny thing.
in the future loop through the array.
it's just more dynamic.
and since you are using AS3, why not use uint?

var i:uint;
function greenMove (event:Event){
	for (i = 0; i<greenEnemies.length; i++){
		greenEnemies[i].x -= greenSpeed;
	}
}

also, i usually just add a listener to my enemy/player

greenEnemy.addEventListener(....,....);


12.

None

Topic: Help with AS3 movieclips classes

Posted: 11/11/07 08:03 AM

Forum: Flash

oops, i meant new myMC;

my bad


13.

None

Topic: Help with AS3 movieclips classes

Posted: 11/11/07 07:57 AM

Forum: Flash

i dont have my own class
i have the MovieClip class

var myMc:MovieClip = new myLinkageName();
var newMc:MovieClip = myMc;

this is what i want, but it doesn't work


14.

None

Topic: Help with AS3 movieclips classes

Posted: 11/11/07 07:31 AM

Forum: Flash

hey,

i have a moveclip that has a class name in the linkage tab.
im trying to make a new movieclip that will be of the same class.

my try:

var trailMc:MovieClip = new mc as Class();

does anyone know how to do this?

thanks


15.

None

Topic: detecting key presses AS3 classes

Posted: 11/01/07 04:41 PM

Forum: Flash

thanks guys, i got working.
i ended up passing the stage as a paramater, like someone said here to do


16.

None

Topic: detecting key presses AS3 classes

Posted: 11/01/07 01:44 PM

Forum: Flash

hey, thanks for the help
im still having trouble with it.

im a bit confused.
the problem right now is the key detection
so addedToStage is not relevent (cause i can't add an event)

pass the stage as a class paramater? how do i do that?

public function Movement(stage:Stage):void { ?

i am not able to add the listener from the main fla cause in the main fla i only make a new 'main.as' class

what i have is a main class that calls other classes (ground, player, movement, gravity)
i know im not supposed to have this many classes, but im doing this for learning purposes only, so i wanna try things out

thanks again


17.

None

Topic: detecting key presses AS3 classes

Posted: 11/01/07 11:25 AM

Forum: Flash

since this is in a class i can't use 'stage'.
i tried it many times, i even tried importing
import flash.display.Stage

and than using the 'stage', but it doesn't work


18.

None

Topic: detecting key presses AS3 classes

Posted: 11/01/07 10:38 AM

Forum: Flash

that's what i did
i added the event to 'this' which is the stage here
i added the moving code itself to my 'dude' because i want to move him
i have no movieclips here, only sprites


19.

None

Topic: detecting key presses AS3 classes

Posted: 11/01/07 10:13 AM

Forum: Flash

hey

im trying to detect keys (up, left, right, down)
i have 2 classes: player and movement
player class:

package {
	
	import flash.display.Sprite;
	
	public class Player extends Sprite {
		
		protected var playerGraphics:Sprite;
		public var yAxis:Number = 0;
		public var xAxis:Number = 5;
		public var right:Boolean = false;
		public var left:Boolean = false;
		public var up:Boolean = false;
		public var down:Boolean = false;
		
		public function Player ( ):void {
			
			playerGraphics = new Sprite ( );
			playerGraphics.graphics.lineStyle ( 1, 0, 1 );
			playerGraphics.graphics.beginFill ( 0x0000FF );
			playerGraphics.graphics.drawRect ( 0, 0, 15, 30 );
			playerGraphics.graphics.endFill ( );
			this.addChild ( playerGraphics );
			
		}
		
	}
}

and movement class:

package  {
		import Player;
		import flash.events.Event;
		import flash.events.KeyboardEvent;
				
	public class Movement extends Player {
		
		public function Movement(dude:Player) {
			
			dude.addEventListener(Event.ENTER_FRAME, movement);
			this.addEventListener(KeyboardEvent.KEY_DOWN, checkKeys);
			this.addEventListener(KeyboardEvent.KEY_UP, checkKeyUp);
			
		}
		
		private function checkKeys(event:KeyboardEvent) {
			if(event.keyCode == 37) {
				left = true;
			}
			if(event.keyCode == 38) {
				up = true;
			}
			if(event.keyCode == 39) {
				right = true;
			}
			if(event.keyCode == 40) {
				down = true;
			}
		}

		public function checkKeyUp(event:KeyboardEvent) {
			if(event.keyCode == 37) {
				event.keyCode = 0;
				left = false;
			}
			if(event.keyCode == 38) {
				event.keyCode = 0;
				up = false;
			}
			if(event.keyCode == 39) {
				event.keyCode = 0;
				right = false;
			}
			if(event.keyCode == 40) {
				event.keyCode = 0;
				down = false;
			}
		}

		public function movement(e:Event):void {
			if(right) {
				e.target.x += xAxis;
			}
			if(left) {
				e.target.x -= xAxis;
			}
			if(up) {
				e.target.y -= yAxis;
			}
			if(down) {
				e.target.y += yAxis;
			}
		}

		
	}
	
}

it doesn't give out an error, it just doesn't work
i know the movement functiion in the Movement class (it's an on enter frame event) works because i tried tracing

anyone see the problem?

thanks


20.

None

Topic: I turned that .fla into a game.

Posted: 10/31/07 02:00 PM

Forum: Flash

very good job
a few fixes here and there, a little bit of graphics and you got a good game.

good luck


21.

None

Topic: my perspective 3d AS engine

Posted: 10/27/07 12:13 AM

Forum: Flash

my best guess is that your changing the _xscale of the movieclips

when the xscale goes below 0 it makes that effect

just do somthin like this:

if(this._xscale <= 0) {
this._xscale = 0;
}

hope i helped


22.

None

Topic: Protect Flash AS3?

Posted: 10/17/07 03:14 PM

Forum: Flash

"It's like telling the guy at Subway to make a sandwich with everything on it, then throwing at the wall and telling him to make it again."

the perfect example

//but why did you have to destroy a sandwich?


23.

None

Topic: AS3 doubt about Sprite Class

Posted: 09/17/07 10:26 AM

Forum: Flash

you gotta show us some code...
try tracing the width


24.

None

Topic: As3 Gui Library

Posted: 09/16/07 04:35 PM

Forum: Flash

i think he wants more than that...


25.

None

Topic: As3: TextField class

Posted: 09/14/07 02:19 PM

Forum: Flash

that's pretty good for starters
i made an exact class like this only for AS2
i really should start getting into AS3 OOP...

nice, simple tut


26.

None

Topic: Thoughts on AS3...

Posted: 09/12/07 05:46 PM

Forum: Flash

AS3 is a big improvment
i'm loving it
the only problem i have is when i don't know the syntax, it's pretty hard to find the correct one

AS3 needs more support from major sites (NG included)


27.

None

Topic: weird unicode problem

Posted: 09/10/07 12:42 AM

Forum: Flash

bump


28.

None

Topic: weird unicode problem

Posted: 09/09/07 04:00 PM

Forum: Flash

hey

im detecting keys like this:
var right:Boolean = false;
var left:Boolean = false;
var up:Boolean = false;
var down:Boolean = false;

function checkKeys(event:KeyboardEvent) {
if(event.keyCode == 65) {
left = true;
}
if(event.keyCode == 87) {
up = true;
}
if(event.keyCode == 68) {
right = true;
}
if(event.keyCode == 83) {
down = true;
}
}

function checkKeyUp(event:KeyboardEvent) {
if(event.keyCode == 65) {
event.keyCode = 0;
left = false;
}
if(event.keyCode == 87) {
event.keyCode = 0;
up = false;
}
if(event.keyCode == 68) {
event.keyCode = 0;
right = false;
}
if(event.keyCode == 83) {
event.keyCode = 0;
down = false;
}
}

i know that im adding the function correctly
with the up,down,left,right keys it works
but try changing it to WASD and it doesn't
only W and D work
i took the unicode from the same table
what is wrong here?

tnx


29.

None

Topic: Coder looking for artist

Posted: 09/07/07 03:10 PM

Forum: Flash

hey,

im making a game and i need an artist since im no good at art and animations
the game will get sponsored, for certain
you can view some of my work in my profile

unfortunatly i can't elaborate on the type of game

contact info:
icq : 336557057
MSN : medhopz666@hotmail.com

plz post some of your art work here, or talk to me on the above instant messeging programs

thanks


30.

None

Topic: so.. flash, java and files

Posted: 09/02/07 05:27 AM

Forum: Flash

yes you can
check out sharedObjects


All times are Eastern Standard Time (GMT -5) | Current Time: 08:29 PM

<< < > >>

Viewing 1-30 of 178 matches. 1 | 2 | 3 | 4 | 5 | 6