This content has been marked as final. Show 8 replies
If your instance names are salami1, salami2, etc. then try this.
["salami" + j + "_mc"]._x
no go... now I'm getting a "type mismatch". I guess it would be helpful to include the rest of my code. The "fXSlide" function is an included actionscript file and I'm showing the code also for that:
The array access brackets should resolve to your object name. If you replaced all instances of your salami[j]_mc with the new syntax then you should be passing the proper info to the function.
Try tracing out the values from inside the function.
see if the info is getting there intact.
Gotta go now, but I'll take a look tomorrow to see if your still stuck .
Sorry, that's what I was saying about the "type mismatch" when I used ["salami" + j + "_mc"].
Not sure, Take your Typing out of your function. Maybe it will throw an error with some useful information.
the code posted in your first message is incorrect.
the for-loop code posted in your 2nd message is syntactically correct.
your fXSlide() function has no syntactic errors. however, an improper parameter passed to it could generate a type mismatch error.
and there's no indication of any relationship between your 2nd message for-loop and fXSlide().
my guess is that you're not passing a movieclip as the first parameter to fXSlide(). you should probably be passing:
as that first parameter, if it's called within your for-loop and your for-loop is not within a function called by setInterval() so "this" resolves to the same object that's a parent of salami_mc.
Thanks kglad. Coincidentally, I had discovered that adding "this" was the remedy but had not come back to post it yet. Thanks for reconfirming my find though!