Mx or flash GURU, slacker, AS KING, anybody, a little "COLOR" in your life...!?!

Do you mean pointers like in C language?

I need to learn more about Arrays. I started a while ago, only did a little bit with it, then stopped for some reason.

I have no clue why I stopped, I just did. Time to start again, I am so far behind on my AS it is ridiculous.

Yeah, pointers as in *p and stuff. Never mind, it’s not important.

Let’s see… C++… Very cool language… *p is a pointer that relays straight from the memory block… This is good for when you have programs that you wanna define a variable for use in all your C++ functions without that typical work bullcrpa that sdome of you know…

As for arrays… They are extremely powerful when used right… I wonder if they have 3d arrays in FLash though…

Like…

apples[10][10];

Basically gives you a 10 x 10 block to work with… Now that’s ncie :smiley: hehehe

Marz

yep, ActionScript too does have multi-dimensional arrays:beam:
i got this quote tho over from a tutorial…

Actionscript, like Javascript, doesn’t “officially” support multidimensional arrays. However, both languages DO allow you to simulate multidimensional arrays by letting you create “arrays of objects” and those objects themselves can be Arrays.

*Originally posted by alethos *
**Yeah, pointers as in *p and stuff. Never mind, it’s not important. **
Well, it can act as references more than pointers.

pom :crazy:

Hey, I got an unrelated question… What is i, i+, i++, and i<= ?

i is just a variable. The operators after it do different things.

i+ means you are going to add something to i “i + 10”

i++ increments the value of i, raises it by 1 each time that line of code is accessed. this is the same as “i = i + 1”

i<= means i is less than or equal to something “i <= 10”

And just in case you see any of the following (which are very commonly used); keep in mind that you can substitute any variable for “i”…people just use “i” cause it stands for integer:

++i For all your intents and purposes, this is the same as i++

i+=10 (or any number) This is the same as saying i = i + 10. Similarly, i-=10 is the same as i = i - 10.

!= This means “does not equal”. It’s used in conditional statements (like If…Then).

>= Is “greater than or equal too”.

Also for future reference… i is the same as j, and j is the same as i.

Usually if the variable i is already used, the next letter after that would be j

abcdefgh<B>ij</B>klmnopqrstuvwxyz

Then of course some people just keep going down the line if they need more variables.

since i is just a variable, you could even call it iamyou if you wanted, but it is easier to type out i…lol.

Sorry, I really felt like babbling, but not the random thread spam kind of babble… so don’t mind me :beam:

*Originally posted by alethos *
++i For all your intents and purposes, this is the same as i++
Well, not really. ++i is pre-incrementation, i++ is post-incrementation. To see the difference:

a=5;
trace (a++);
trace (++a);

pom :slight_smile:

Lost, I sure don’t mind.

And pom, you always make us find stuff out for ourselves!!!:slight_smile:

Finding out for yourself is the most effective way to learn :slight_smile:

I am speaking from experience.

It is like… stick your finger in an electrical socket… it hurts right? Well, now you know not to do it again because you know exactly how it feels. You learn from your own experience :slight_smile:

lol, fine with me to learn myself. And lol I never stuck my finger in a socket or plug, they always scared me when I was little. I stayed away :slight_smile: (-:

I was elecrto-electro-electro-electro-electro-electro-electro-electro-electrocuted once. 220V AC…it didn’t hurt, but it felt…wrong.

yes. having a lot of electricity surging thru your body definately feels wrong…

::shudders::

:slight_smile:
Could you guys figure what the HE [double hockey sticks] is wrong with this??? It seems fine to me…

_root.thing1.useHandCursor = false;
_root.thing1.hitArea = _root.hit;
_root.thing1.onRollOver = function() {
	//_root.thing1.gotoAndPlay(1);
	_root.thing1.play();
};
_root.thing1.onRollOut = function() {
	_root.thing1.gotoAndPlay(53);
};
_root.thing1.onRelease = function() {
	getURL("http://www.geocities.com/h4xx02");
};

When I rollOver, NOTHING happens.

Yea guys (and kit) I know its totally :crazy: but it doesnt work. I dunno why.

Why don’t you just put this on your movie clip (thing1)?

on (rollOver) {
	this.gotoAndPlay(1);
}
on (rollOut) {
	this.gotoAndPlay(53);
}
on (release) {
	getURL("http://www.geocities.com/h4xx02");
}

Movie Clips in Flash MX allow on handlers as well.

Yea, that what I thought, but I always get a blablabla about handlers only on buttons, so, until recently, I thought you couldn’t. Maybe I have to re-install…
Thanks though Lost :slight_smile: