PDA

Click to See Complete Forum and Search --> : Flash image swap on script condition


Erika Sage
05-12-2004, 12:42 AM
I'm pretty new to ActionScript and I'm trying to implement some panning functionality. I am panning a large image broken into tiles, and I'm using a grid of four tiles at a time. For instance, if I'm panning left, I'd like to update the images in the four tiles, when I reach the edge of the grid, to continue panning until I reach the end of the entire image.

Each of the tiles is set up as a MovieClip with an instance name. I just want to be able to swap the tiles with other tiles in the library, and I'm hoping to not have to use the loadMovie command. (If you know lingo, it would be stated something like 'set the member of sprite x = "nextTile"'...I'm hoping it's something this easy).

Any ideas/direction would be greatly appreciated!

Big Perm-dizzle
05-12-2004, 02:22 AM
case and mel where are you......?

JUST LAUNCHED - www.hirethisdesigner.com (http://www.hirethisdesigner.com) - check it out

casedsgn
05-12-2004, 04:49 AM
I'm having a little trouble following what you're trying to do. But to pan an image inside a masked smaller area...you need to determine the width of the image, the width of the mask, the left and right edges of the mask and the mouse position. But it doesn't sound like that is where you're having a problem. Why are you swapping movieClips? Fill us in, break it down to the simplest solution and we'll work up from there.