PDA

View Full Version : scrollpane zooming issue


mltgroup
11-15-2004, 06:41 PM
Hi,

I am new to programming in flash so please bear with me :) - I have a scrollpane that is loading an external swf file that i would like to be able to zoom in and out on. I can get the movie to load, and the movie can zoom in once and zoom out once. Then it doesn't work any more. I think I need to send something the height and width of the scaled movie so it knows what to scale.

I have attached my .fla and .swf file for you to look at. Any help on this would be great. I'll keep looking through the posts as well.

Thanks
Eric

Tower2
11-16-2004, 01:33 AM
Replace four first frame script with the following...
myScrollPane.contentPath = "lot1.swf";
_root.myZoom = 1;
this.zoom_out.onPress = function() {
_root.myZoom = _root.myZoom/2;
myScrollPane.refreshPane();
myScrollPane.content.scaleX *= _root.myZoom;
myScrollPane.content.scaleY *= _root.myZoom;
};
this.zoom_in.onPress = function() {
_root.myZoom = _root.myZoom/0.5;
myScrollPane.refreshPane();
myScrollPane.content.scaleX *= _root.myZoom;
myScrollPane.content.scaleY *= _root.myZoom;
};

Trevor

mltgroup
11-16-2004, 01:56 AM
Trevor,

You rock.
Thanks a ton