Please login or register. Welcome to the Studio, guest!


Quick Links:


newBookmarkLockedFalling

Code Dragon

Code Dragon Avatar
Never raise more devils than you can slay.

*
New Member

17


February 2007
Would any of you happen to have any tutorials on JavaScript labels? I know a little bit about them already, but I can't seem to find anything to teach me. >.<

I'd appreciate it if someone could help me? Thanks in advance. :)


A forum for Web artists and chao breeders from around the world. Spriters, Animators, Coders, and general people. You can come to Chao Talk, and be part of something. Here, YOU can make a difference.

3:

3: Avatar
...xD

***
Dedicated Member

158


June 2006

Code Dragon

Code Dragon Avatar
Never raise more devils than you can slay.

*
New Member

17


February 2007
Well, thanks, but I already knew that part. >.<

I mean, I go around looking at codes and I see people doing this:

var someVar = {}

.. or something. I already know how to do this much:

var somevar = {
someaction:function(){
document.write("Test");
}
}
somevar.someaction();

.. but that's all I know. >.<

Thank you for your help, though. :)

A forum for Web artists and chao breeders from around the world. Spriters, Animators, Coders, and general people. You can come to Chao Talk, and be part of something. Here, YOU can make a difference.

3:

3: Avatar
...xD

***
Dedicated Member

158


June 2006
You can do that alot of ways:

(function() {
return {
func2: function() {
blah
}
};
})().func2();

({
func1: function() {
blah
}
}).func1();

etc..look up JSON :P

Code Dragon

Code Dragon Avatar
Never raise more devils than you can slay.

*
New Member

17


February 2007
Alright, thanks. :)

A forum for Web artists and chao breeders from around the world. Spriters, Animators, Coders, and general people. You can come to Chao Talk, and be part of something. Here, YOU can make a difference.

Chris

Chris Avatar

******
Head Coder

19,519


June 2005
JSON isn't what he needs. :P Code Dragon, technically you're looking for objects. And in that case, shorthand. JS is completely Object based, so finding a specified tutorial on it will be slightly difficult.

3:

3: Avatar
...xD

***
Dedicated Member

158


June 2006
lol, those examples are pretty much the same, except they don't use variables to call the functions...xD

And sure, technically, he is looking for objects...x.x you might want to PM Aaron about tutorials. i'm sure he has loads...xD

Code Dragon

Code Dragon Avatar
Never raise more devils than you can slay.

*
New Member

17


February 2007
I'll do that, then; thank you.

A forum for Web artists and chao breeders from around the world. Spriters, Animators, Coders, and general people. You can come to Chao Talk, and be part of something. Here, YOU can make a difference.

newBookmarkLockedFalling