Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Extensions and Plugins > Components

Reply
 
Thread Tools Rate Thread Display Modes
Old 02-25-2006, 11:12 AM   #1
ale_jrb
Registered User
 
Join Date: Feb 2006
Posts: 2
Default ScrollPane Zooming - Help!

Hi,
I have set up a scrollpane with an image and I'm trying to make it zoom in, but its not working. I think I've made a mistake in my function syntax but I'm not sure what it would be.

Here's the code:
// Zooming function

function zoomIn() {
ScrollPane.scrollframe.content._xscale += 1;
ScrollPane.scrollframe.content._yscale += 1;
}

function zoomOut() {
ScrollPane.scrollframe.content._xscale -= 1;
ScrollPane.scrollframe.content._yscale -= 1;
}

plus_btn.addEventListener("click", zoomIn);
minus_btn.addEventListener("click", zoomOut);

I'm also not toally sure what the items should be to make it zoom. ScrollPane is the name of my scrollpane, but do I need to replace it with the name of the image or soemthing?

Help. Thanks .
ale_jrb is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
scrollpane content load whatknows Components 1 09-22-2005 02:53 AM
ScrollPane and Zooming mcmcom Components 18 07-07-2005 03:40 PM
Scrollpane, zooming and anchors bsprout Components 0 04-21-2005 10:21 PM
Scrollpane component inside a window component marcusg Components 2 04-07-2005 04:20 AM
scrollpane zooming issue mltgroup Components 2 11-16-2004 01:56 AM


All times are GMT. The time now is 09:54 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.