Newgrounds.com — Everything, By Everyone.

Checking login status…

USERNAME:

PASSWORD:

Logging in…

Logged in as:
.
Logging out…
Inbox My Account Log Out


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: 'heytherejake'

We found 141 matches.


<< < > >>

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

1.

None

Topic: On key first press

Posted: 02/18/08 10:10 PM

Forum: Flash

At 2/18/08 10:09 PM, gorman2001 wrote: u can't without a listener.

Is it possible to nest a listener in another function?


2.

None

Topic: On key first press

Posted: 02/18/08 10:06 PM

Forum: Flash

Is there any way to check when a key is first pressed (not when it is held down), without using a keylistener and key.onPress? I can't figure out how check when a key is tapped in onEnterFrame.

Thanks!


3.

None

Topic: Shared Objects

Posted: 12/31/07 12:37 PM

Forum: Flash

Anybody know what I'm doing wrong?


4.

None

Topic: Shared Objects

Posted: 12/31/07 11:45 AM

Forum: Flash

So getLocal("bbL","/") in both files? Because that didn't work :(

Also, the only reason why I'm using cookies is because I don't know how to send a file to another one when it's being imported using loadMovie (EG. I'm loading a movie using _root.loadMovie in one file, but I can't get the variables to send to the file loaded). Is there any way to just sent the variable directly, because that would be a LOT easier...


5.

None

Topic: Shared Objects

Posted: 12/31/07 11:40 AM

Forum: Flash

I looked it up in the actionscript dictionary, and your right. So I edited the line in file2 to:
buddy_so = SharedObject.getLocal("bbL","http://loca lhost/buddybash/flash/create.fla");
(since I'm testing it using ctrl-enter). It's not working though.


6.

None

Topic: Shared Objects

Posted: 12/31/07 11:25 AM

Forum: Flash

In one file, I have this code:

buddyCookie = SharedObject.getLocal("bbL");
				buddyCookie.data.username = _root.username;
				buddyCookie.data.buddyname = buddyname;
				buddyCookie.flush();

The file that reads it has this code

buddy_so = SharedObject.getLocal("bbL");
trace(buddy_so.getSize());
_global.username = buddy_so.data.username;
_global.buddyname = buddy_so.data.buddyname;
trace(_global.username);
trace(_global.buddyname);

However, file 2 traces "undefined" for username and buddyname, and 0 for the size.
Please help!


7.

None

Topic: loadVariables and PHP

Posted: 12/30/07 12:29 PM

Forum: Flash

I'm having trouble making my code send data to a PHP file in order to save to a database. Currently, the code is:

_global.sendVar = function(variable, val) {
this.loadVariables("http://localhost/buddybash/saveVars.php?variable="+variable+"&&val="+val+"&&user="+_global.username,"POST");
	}
_global.sendVar("name", "Bob2");

The PHP works perfectly, and I know that the problem lies within the syntax for the loadVariables command. I can't figure out how to fix it though... please help!


8.

None

Topic: Trouble with an inventory script

Posted: 12/28/07 10:39 AM

Forum: Flash

Here's my script:

_global.loadInvItem = function(number:Number) {
	var localItemName:String = _global.inventory[number];
	if (localItemName == "undefined") {
		break;
	} else {
		globalItemName = searchArray(localItemName, itemName);
		itemInstance = itemInst[globalItemName];
		_root.bar.attachMovie(itemInstance, "item"+i, i);
		_global.itemSlotsUsed++;
		_root.bar["item"+i]._y = 97;
		_root.bar["item"+i]._x = 515.7+((number%6)*75);
		_root.bar["item"+i].id = globalItemName;
		_root.bar["item"+i].onRollOver = function() {
			this.rollingOver = true;
		};
		_root.bar["item"+i].onRollOut = function() {
			this.rollingOver = false;
			_root.itemNameBox.nameText.text = "";
			_root.itemNameBox._x = -10000;
			_root.itemNameBox._y = -10000;
		};
		_root.bar["item"+i].onEnterFrame = function() {
			if(!this.yetStarted) {
				this.startX = this._x;
			this.startY = this._y;
			this.yetStarted = true;
			}
			if (!this.isMoving and this.rollingOver) {
				_root.itemNameBox._x = this._x;
				_root.itemNameBox._y = this._y-10;
				_root.itemNameBox.nameText.text = _root.itemName[this.id];
			}
			if (this.isMoving) {
				_root.itemNameBox.nameText.text = "";
				_root.itemNameBox._x = -10000;
				_root.itemNameBox._y = -10000;
			}
		};
		
		_root.bar["item"+i].onPress = function() {
			this.isMoving = true;
			
			startDrag(this, true);
		};
		if (itemType[globalItemName] == "Food") {
			_root.bar["item"+i].onRelease = function() {
				this.isMoving = false;
				this.stopDrag();
				if (this.hitTest(_root.bar.buddyBox)) {
					fullMod = _root.itemFull[this.id];
					healthMod = _root.itemHealth[this.id];
					happyMod = _root.itemHappy[this.id];
					_global.food += fullMod;
					_global.health += healthMod;
					_global.happy += happyMod;
					_global.removeInvItem(_root.itemName[this.id]);
					if (happyMod>0) {
						_global.displayQuote("Yum, that tasted good!", true);
					} else if (healthMod>=1) {
						_global.displayQuote("Do I have to?", true);
					} else {
						_global.displayQuote("Uhhh.... what on earth is this?", true);
					}
					_global.refreshInv();
				} else {
					this._x = this.startX;
					this._y = this.startY;
				}
			};
		} else if (itemType[globalItemName] == "Toy") {
			_root.bar["item"+i].onRelease = function() {
				this.isMoving = false;
				this.stopDrag();
				if (this.hitTest(_root.bar.buddyBox)) {
					happyMod = _root.itemHappy[this.id];
					_global.happy += happyMod;
					if (happyMod<25 and happyMod>10) {
						_global.displayQuote("That was fun!", true);
					} else if (happyMod<=10 and happyMod>=1) {
						_global.displayQuote("Ehh... that was pretty boring", true);
					} else if (happyMod<1) {
						_global.displayQuote("BOOOORING!", true);
					} else {
						_global.displayQuote("Woohooo! This is soooooo much fun!!!!", true);
					}
					breakChance = Math.round(Math.random()*10);
					if (breakChance != 1) {
						brokenName = "Broken "+_root.itemName[this.id];
						_global.addInvItem(brokenName);
						_global.removeInvItem(_root.itemName[this.id]);
						_global.refreshInv();
					}
					
				} else {
					this._x = this.startX;
					this._y = this.startY;
				}
			};
		} else if (itemType[globalItemName] == "Broken Toy") {
			_root.bar["item"+i].onRelease = function() {
				this.isMoving = false;
				this.stopDrag();
				if (this.hitTest(_root.bar.buddyBox)) {
					_global.displayQuote("I can't play with that!", true);
				}
				this._x = this.startX;
				this._y = this.startY;
			};
		}
		i++;
	}
};

Everything works, except for that the onRelease for broken toys never calls. The syntax has no errors, according to flash. Help please!


9.

None

Topic: Remove one item from array

Posted: 12/26/07 10:55 AM

Forum: Flash

So _global.inventory.slice(0,2); ? Also, searchArray is a function I made because indexOf refused to work :(


10.

None

Topic: Remove one item from array

Posted: 12/26/07 10:23 AM

Forum: Flash

I'm trying to remove one item from the array, no matter where it is. My current code is:
_global.inventory.splice(0, 1, "");
However, it stays there :(
The full code is:

_global.removeInvItem = function(string:String) {
	removeLocation = searchArray(string, _global.inventory);
	_global.inventory[removeLocation] = "";
	_global.inventory.splice(0, 1, "");
	_global.inventory.sort();
	trace(_global.inventory.join());
	_global.refreshInv();
};

11.

None

Topic: Make function for object type

Posted: 12/25/07 09:12 PM

Forum: Flash

At 12/25/07 09:06 PM, Link24l wrote: press ctrl alt b

What the heck? That didn't even do anything!


12.

None

Topic: Make function for object type

Posted: 12/25/07 09:03 PM

Forum: Flash

At 12/25/07 08:59 PM, archont wrote: It's all in the documentation, friend. You've apparently skipped the OOP chapter in the manual - review it now, it will teach you what you need to know 10 times better than I can.

I tried making "Array.as" and making a Find function, but I couldn't get it to work


13.

None

Topic: Make function for object type

Posted: 12/25/07 08:57 PM

Forum: Flash

I have too many questions, but if I put them in the same thread, nobody will see them :(
Anyways, how do you make a function for an object?
EG. Array.find(string)

or String.locateS


14.

None

Topic: Malformed #include directive

Posted: 12/25/07 08:56 PM

Forum: Flash

At 12/25/07 08:43 PM, Glaiel-Gamer wrote:
At 12/25/07 08:41 PM, Glaiel-Gamer wrote: cause flash isn't c++?

Try import instead of include
^^^ noob

actually, use include, just remove the #

Actually, it was the semicolon :)


15.

None

Topic: Malformed #include directive

Posted: 12/25/07 08:37 PM

Forum: Flash

That's the error I get from this line:
#include "itemList.as";
Anyone know why?


16.

None

Topic: Run String

Posted: 12/25/07 07:52 PM

Forum: Flash

Wait, what? Are you saying to do it you type _root[myString]? Because that makes no sense... I want Flash to trace "test", or whatever I change the string to


17.

None

Topic: Run String

Posted: 12/25/07 07:47 PM

Forum: Flash

Is it possible to have Flash run code thats written in a string? EG. myString = "trace('testing')"
run(myString)


18.

None

Topic: help with password system

Posted: 12/20/07 08:35 PM

Forum: Flash

if(_root.password.text == "example") {
etc


19.

None

Topic: The Sponsor Review Thread

Posted: 12/20/07 08:31 PM

Forum: Flash

Sorry for the double post, but I answered my question :)


20.

None

Topic: The Sponsor Review Thread

Posted: 12/20/07 08:13 PM

Forum: Flash

Does anyone have a list of sponsor emails?


21.

None

Topic: Actionscript Question

Posted: 12/16/07 09:24 PM

Forum: Flash

For future reference, try using switch. It'll save a lot of time.


22.

None

Topic: .mp3

Posted: 12/13/07 10:09 PM

Forum: Flash

At 12/13/07 10:04 PM, RockLou wrote: Is flash unable to import MP3 files? I couldn't do that, just now. I've used WAV files until now, but I decided that size is more important than quality, but as I said it didn't work...

Flash can import mp3s and wavs. No midis, and I'm not sure about anything else


23.

None

Topic: The Sponsor Review Thread

Posted: 12/13/07 10:06 PM

Forum: Flash

Would it hurt my chances if I sent the same email to multiple people (eg only 1 email to multiple sponsors at the same time)


24.

None

Topic: ScrollChart Beta

Posted: 12/10/07 09:36 PM

Forum: Flash

At 12/10/07 09:16 PM, ShirkDeio wrote: Please provide a sample with it--a swf that would show off the features, so we don't have to download a fla if we don't like it.

I supplied the fla so you could download and use it. Next update, I'll supply a SWF too


25.

None

Topic: ScrollChart Beta

Posted: 12/10/07 09:14 PM

Forum: Flash

I just finished writing it, and I figured I'd upload it. ScrollChart is a Flash flowchart program. So whenever you have a stupid school project to do, and want to make an easy presentation, try ScrollChart!

- 1 zooms in, 2 zooms out
-Move your mouse around the screen to move the vcam
-Click on a box to center on it

Download

Leave comments!
(Also, all the info there is just for demonstration.)


26.

None

Topic: halo collab

Posted: 11/26/07 09:40 PM

Forum: Flash

You need a BA of at least 3.0 to start a collab
Also, when starting a collab, think of something original. Otherwise the thread will be locked.


27.

None

Topic: "Inherit" Frame

Posted: 11/26/07 09:32 PM

Forum: Flash

For some reason, some of my code will only work when its on that frame (So, I can't just make one code layer and have it stretch across the whole timeline. The code has to be in every frame). However, because I am constantly editing my code, I want to "inherit" the code, so that all changes apply to all the code. Is there any way to do this?


28.

None

Topic: AS Problem

Posted: 11/26/07 07:49 PM

Forum: Flash

Post the code.


29.

None

Topic: Game help

Posted: 11/26/07 06:32 PM

Forum: Flash

At 11/26/07 02:48 PM, Schmastalukas wrote: to senior-twinki, i just wanna make a side scroller, and to everyone else, ive looked at a ton of tutorials, i just cant retain the info.

http://www.newgrounds.com/bbs/topic/2987 36


30.

None

Topic: Sound AS

Posted: 11/26/07 06:28 PM

Forum: Flash

At 11/26/07 06:24 PM, Crusty-Wiwuh wrote: http://www.newgrounds.com/bbs/topic/2300 47

Using AS to attach sound is rarely necessary; you can probably just put on the timeline.

I disagree, it's really useful, IMO. For animations, yes, but for games I personally always use AS


All times are Eastern Daylight Time (GMT -4) | Current Time: 07:42 AM

<< < > >>

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