_searchKey

Somany days back I had got a unknown variable _searchKey, whose datatype was Number and exists inside movieclips. I searched in the web , adobe documentation but no where I got actual stuff (May be need to search more or more updated information). That keyword species was quite odd and had strucked my work for one and half day.

Let me explain how that variable I got in my way. I was attaching some rectangles objects to one of my movieclip named rectHolder_mc and kept them in stacking order. for some reason I was needed to calculate the distance between them. Now, when ever I start count some values were undefined. I was using for in loop to get the elements in the rectHolder_mc .Accidentally I found a constant number in the the second iteration of the loop. And it was in increasing order in each iteration next to it. That was ‘_searchKey’.

Click here to download the source files for this problem.

I could not find it the exact nature that time.. but I could manage to overcome that variable by checking each elements’ data type as MovieClip and then assign some task for it.

Let me know if any one knows about this variable.

This entry was posted in AS2 Hacks. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>