This content has been marked as final. Show 11 replies
use trace(this) in openPic() to see what "this" if referencing.
trace(this); gives me:
(where thumbs_mc is dynamically created empty movieClip to hold the thumbnails that are loaded into the movie, and mc9 is the instance name of one of the loaded thumbnails.)
so, can i call this mc9 ( or whichever is clicked) from the master swf?
ok, so is this.i defined? ie, use trace(this.i) if you're not sure.
if so, is picHolder defined on the timeline that contains that code? ie, use trace(picHolder) if you're not sure.
yes! (i think)
trace(this.i); yields the array number, which seems to me to be good.
trace(picHolder), yields "_level0.picHolder", so yes, i think it is defined on the same timeline (that is, within the "child" SWF) as the other code.
can i somehow call it from the "master" SWF?
again, thank you.
p.s. damn! i sent this a while ago when you were online but it didnt go through...
that's impossible: if openPic() is on your _level0 timeline, then trace(this) in openPic() will not yield _level0.thumbs_mc.mc9.
and if openPic() were on _level0.thumbs_mc.mc9's timeline, trace(picHolder) on the timeline containing openPic() would not yield _level0.picHolder.
so, retry both of those trace statements from the same timeline (preferrably from within openPic()) and let me know what you see in the output panel.
all traced from within openPic().
yields: 5 (array #)
perhaps i have done something "funny" to acheive this result?
post a link to your fla.
this is my first experience with "real" actionscript, variables, etc... the scroller code is modified from someone else's slide show... i should explain that the idea is that when you click on one of the thumbnails, regardless of which of the 4 windows it is in, it will show up on the left side, in the blue band... successive clicks should replace the image on the left, so that only one will be visible at a time, and a variable created/filled (can a function be made for that?). as it is now, each of the 4 "child" swf's behaves the same, which is wrong.
clicking the "create custom sign" button sends the user to the 2nd screen where a whole other set of challenges awaits...
are there any glaring problems with the overall structure/strategy that you can see?
thank you for looking at this. i hope i haven't asked too many questions...
use _root.whatever to reference a movieclip with instance name whatever on screentemplates main timeline.
thank you very much.