View Single Post
Old 12-18-2006   #2 (permalink)
tamlin
Janitor of Lunacy
 
tamlin's Avatar
 
Join Date: May 2006
Location: Sitting in the Wishing Chair
Posts: 4,968

I can't get the supplied example file to open in Flash MX either (I get "unexpected file format"), but I have got the effect to work. What you need to do is to make sure that your Movie Clip instance is named "bg_mc", as that value is hard-coded into the script:

Code:
this.onMouseMove  = function()  {

constrainedMove(bg_mc, 4, 1);
Attached is a screenshot to show you where you set the instance name.

Obviously, if your instance is called something else, you could alter the script to use that name instead.
Attached Thumbnails
interactive-image-panning-pan_instancename.jpg  
__________________


Religion: It's all fun and games until someone gets burned at the stake...
tamlin is offline