I’m not sure where I got this from, but this is a modified image viewer that resizes a box around the called image. The problem is that when imbedded in another fla, the buttons appear for a second and then are gone. I’ve placed a stop on every mc because it’s like the movie is playing past the buttons, but this doesn’t help. This .fla works fine when not called into a parent mc.
well, I’ve figured out that my buttons are not disappearing, they’re just moving off the stage. For some reason, the more levels the .swf is imbedded, the farther away the buttons go. I just don’t know why. So the clip works if it is run by itself, but if it is called into another clip, the buttons move out of position relative to the box. If the clip calling the button clip is inside yet another clip, the buttons are further displaced.
When positioning your ‘mc’ clip you use ‘localToGlobal’, and, of course, the ‘global’ position changes when you next the movie within another movie, so it makes all the sense that;
the more levels the .swf is imbedded, the farther away the buttons go
.
So you should make all your position ‘global’ or work out where to position the buttons without using the localToGlobal command.
(ie.: get to know the offset of the buttons in relation to their parent clip (‘mc’) and ad (or substract)it to its positioning).
So, is there a way, particularily with the setup above, to get around the localTo Global command and still get the buttons to move in accordance with the box?? Can the buttons be rooted to a location relative to the top of the box and tag along??