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-21-2005, 04:42 PM   #1
blksheep
Registered User
 
Join Date: Feb 2005
Posts: 19
Default scrollbar of scrollpane on left side

Hi -

I would like to put the scrollbar on the left side of the textarea of the scrollpane component. I've been searching and reading about how to do accomplish this, but cannot find a single thread on any forum relating to this for MX Professional 2004. There's this thread which ended up in 'most useful threads' sticky:

http://www.actionscript.org/forums/s...threadid=24601

but this is for MX and lower, and that code doesn't seem to exist in the class file (ScrollPane.as) for the scrollpane in MX Pro 2004. There is this code:
ActionScript Code:
function setVPosition(position:Number)     {         if (position <= vScroller.maxPos && position >= vScroller.minPos)         {             super.setVPosition(position);             spContentHolder._y = -position; // - bounds.yMin;         }     }
which I'm not very adept with as code to play around with to get my positioning. I am aware that this would change the scroll bar alignment on every instance of the component in my movie, which is fine, it's only used once.

many thanks for any help
blksheep

Last edited by CyanBlue; 02-21-2005 at 04:47 PM. Reason: AS tag is applied...
blksheep is offline   Reply With Quote
Old 11-24-2005, 05:19 PM   #2
linckx
indeed
 
linckx's Avatar
 
Join Date: Aug 2002
Location: Olen, Belgium
Posts: 2,058
Default

Has there been a solution for this allready?
i'm looking for the same thing here...

I do still use the regular flash mx, but I wouldn't have a clue where to paste this code...

Robin
linckx is offline   Reply With Quote
Old 12-06-2005, 07:17 PM   #3
Truthtob
Registered User
 
Join Date: Dec 2005
Posts: 4
Default found MX 2004 solution to scrollPane on left side

After studying the ScrollPane class and its related sub-classes, I fished around and found that you can directly refer to the scrollbar movie clips. I dont think this is documented but it works.


_root.scrollPane1.vScroller._x = 0;

you might also want to offset the content so you dont cover up anything inside the scrollPane

_root.scrollPane1.setHPosition(-15);

brian
Truthtob is offline   Reply With Quote
Old 12-07-2005, 07:35 PM   #4
linckx
indeed
 
linckx's Avatar
 
Join Date: Aug 2002
Location: Olen, Belgium
Posts: 2,058
Default

Hi truthtob...

I can't get it to work...
I've tried changing instance names and all, but it won't show different of what it was...
linckx 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


All times are GMT. The time now is 03:23 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.