The Enchanted Cave 2
Delve into a strange cave with a seemingly endless supply of treasure, strategically choos
4.39 / 5.00 38,635 ViewsGhostbusters B.I.P.
COMPLETE edition of the interactive "choose next panel" comic
4.09 / 5.00 15,161 ViewsCut down a tree, with a herring!
Ni!
At 6/27/08 03:49 PM, xmisfitx wrote:At 6/27/08 03:46 PM, dercheezle wrote: "Your mother was a hamster, and your father smelt of elderberries!"WIN!
ha, you silly English pig-dog.
"Ni!"
also:
"Your mother was a hamster, and your father smelt of elderberries!"
Put a leash on it, or get a caterpillar and watch them fight to the death!
Alright guys, I got it to finally work with the eval() function, thanks a ton for all of your help.
At 6/27/08 12:13 PM, Deathcon7 wrote: Try to concatenate the whole path into the string so that you only have to use eval().
you mean like this?:
var stringUse:String = new String("_root.motherClip.childClip");
trace([eval(stringUse)]._x);
I already tried it, doesn't work... ugh.
At 6/27/08 12:01 PM, JPI wrote: For some reason with "eval" it returned 0 when in my test .swf the value should be 169 or something.
But this should be a suitable workaround:
var stringUse:String = new String("motherClip.childClip");
var tempArr:Array= stringUse.split(".");
trace(_root[tempArr[0]][tempArr[1]]._x);
I can't use any syntax where the amount of nested MovieClips is definite, (so I can't use indexing of Arrays, already tried that, lolz.)
At 6/27/08 11:57 AM, gorman2001 wrote: i am tempted to say yes :p
u should test also _root.eval("motherclip.childclip")._x
Ugh... I tired it in my class and it returns 0, no matter where the MovieClip actually is (that or "undefined")
Do you have any idea what could be going wrong?
At 6/27/08 11:34 AM, gorman2001 wrote: in your syntax, brackets are used to access child objects or properties of a parent object.
a guess is : use eval() to convert your string to a target path...
Wait, so if I typed:
var stringUse:String = new String("motherClip.childClip");
trace( _root[eval(stringUse)]._x );
it would be the same as typing:
trace( _root.motherClip.childClip._x );
?
At 6/27/08 11:27 AM, gorman2001 wrote: i think "childclip" should be in a second pair of brackets.
i think it actualy search for a movieclip name "mainclip.childclip" (or whatever, u get the point)
That might be very difficult with my actual code, can you tell me what the brackets actually signify in a String's value?
(Srry, I dun kno wut it does.)
Well NG, I'm sorry to say that I need your help again.
How do you let AS2 know that a String is showing nesting in a MovieClip's name, not just a "." inside the String?
Sorry if that was hard to understand, maybe it'll help if I give you an ultra-simplified version of my code:
*Note: This is inside a class, so strict dataTyping only plox, sorry.
**Note: The names of the MovieClips cannot be altered for my purposes, (as in the real code, they are determined dynamically, and can have an infinite amount of nesting.)
var stringUse:String = new String("motherClip.childClip");
trace( _root[stringUse]._x);
When there is no nesting in the string, (like: motherClip) there is no problem with the code. But when there is a ".", indicating nesting, (like: motherClip.childClip) the trace function returns NaN.
I can't figure out how to make this work, I really need some help plox.
At 6/26/08 06:49 PM, Nuke15 wrote:At 6/26/08 06:45 PM, dercheezle wrote: Been playing Ratchet and Clank lately, have we?No..
Why? Am I dangerously close to ripping off an idea?
Not really, just having a little fun. In R&C future, tools of destruction, a lot of the enemies are goldfish in robot suits, just a funny coincidence i guess tho.
Been playing Ratchet and Clank lately, have we?
:Awesome anyway tho.
Just Komix, he wuz helpin me out with coding.
At 6/26/08 01:26 PM, Fulzo001 wrote: Can someone please clarify what exactly pain feels like?
I dont think ive ever felt it..
Are you joking? Alright, that is an actual nervous-system disease, but only if you can prove you have been diagnosed, like with a pic of some diagnosis paper or something, people will really believe you. (as it's unbelievably rare.)
Pain feels just like any other kind of tactile sensation, however, instead of merely being a sensation, it causes you to... how to explain... it's like a tactile sensation that causes immediate mental/emotional discomfort.
It's a kind of sensation that people hate, when you get it, you want to be rid of it immediately. And just like different tactile sensations (smooth, furry, coarse) there are different pain sensations (sharp, dull, throbbing, etc.)
At 6/26/08 04:45 AM, GenericName54 wrote:At 6/26/08 04:00 AM, THEJamoke wrote: This ain't dead yet.Well that's not a very silly walk at all.
Not as long as the Ministry of Silly Walks has anything to say about ti.
Then he should improve it by going to Camelot, it is a silly place.
I am not kidding when I say that this is the most retarded thread I have ever seen posted on the BBS.
By the way, Piggy12345678910, it's called a "forum," not a "form," and this is a, "thread," inside a "forum." Get it? (NG noob x 10^100)
some mod plz lock this thread.
At 6/22/08 09:50 AM, LeechmasterB wrote: You were aware that localToGlobal works with point objects in as 2.0 as in as 3.0 right?
var position:Object(x:myNestedMC._x,y:myNest edMC._y);
trace("position before: "+position);
myNestedMC.localToGlobal(position);
trace("position after: "+position);
That's the problem, localToGlobal was glitching up and not altering the values at all (and yes I programmed it right.) That's why I needed help in the first place.
At 6/22/08 09:35 AM, LeechmasterB wrote: Is this for debugging purposes? Simply pass the movieclip which's path you want to the function and watch it do miracles ;).
function getPath(childMC:MovieClip):String {
var currentMC:MovieClip = childMC;
var path:String=childMC._name;
while(currentMC._parent._name!=_root._na me){
path = currentMC._parent._name+"->"+path;
currentMC = currentMC._parent;
}
return new String("_root."+path);
}
No, It's not for debugging, what I'm doing is trying to determine what the X and Y coordinates of a nested MovieClip are, relative to the stage instead of the MovieClip it's nested in, but localToGlobal isn't working for some reason. (stupid broken AS2 functions...)
Alright NG, I know you all are really annoyed at all of the flash idiots asking retarded AS questions, but I must say that I'm in a bit of a bind.
Ok, so what I need is for someone to tell me how to make a nested MovieClip (something like _root.thingy.cliper.NestedClip) be able to detect the names of each of the MovieClips that it is nested in, and know how many clips it is nested in. (like: _root.thingy.cliper.NestedClip :: 3)
I tried doing this by seeing how many periods were in its ._name property, but ._name is relative, and only gives you the name of whatever MovieClip called it.
(This needs to be able to work in a custom class that extends the MovieClip class, so I need strict data typing, srry.)
At 6/20/08 06:02 PM, Zeldakrazed7 wrote:At 6/20/08 06:00 PM, jewdudewtf wrote: Reinstall it, assuming you bought it.no.. i got it from my bro's friend he put it on a CD and i had to install it.. but i don't have the disk right now..
Well, there's yur problem. Each copy of Flash has it's own serial code, if flash is copied and put onto another computer after its already been installed on another computer, it won't work.
P.S. wut u did is called pirating, and is baaaad!
u gonna go 2 jailed. D:
The women head for the hills while the male survivors break out their shotguns to try and repel the raging polar bear.
The guns prove ineffective as the beast careens past them and mauls one of the women falling behind.
At 6/16/08 05:10 PM, StrawBerryKiwiClock wrote: Well guys, I really rely on you for answers to really hard questions in my life so here goes.
Should I go and play Civilization or stay here and post?
Depends on which version. If you've got 3 or 4 definitely go play that and stop making these uselessly stupid threads, but if you have 1 or 2, really, you should stay here, those versions suck, anything is better.
At 6/16/08 04:12 PM, agustana wrote: Are you in Buffalo?
Yeah, he's in Buffalo, I checked their weather, they got hit by some serious hail today.
Oh man, so you finally got up the nerves to talk about it, that must have been quite the shock. By the way, are you finally okay with it? I heard what happened.
At 6/16/08 08:04 AM, Ferris95 wrote: You FAIL!
Wtf? Way to ruin a thread before it even gets started.
Catch the spider in a jar, find another spider of a different species and put that in a different jar.
Now make a little arena for spiders out of a large salad bowl AND HAVE A SPIDER COLOSSEUM DEATHMATCH!!!
THE WINNER GETS TO LEAVE THE HOUSE, THE OTHER GETS SQUISHED!!!
mwahahahaha lwal.
I bet 5 bucks on the one under your bed.
Woah, I totally saw that same stuff on my foot when I accidently left my socks on for a coupla weeks.
I remember reading somewhere that the universe is expanding at the speed of light, and so we would never be able to meet aliens that exist outside of our galaxy, (and we'd never be able to observe the other side of the universe in any way.)