all groups > flash actionscript > november 2004 >
You're in the

flash actionscript

group:

'setScrollPosition' in flash mx 2004


'setScrollPosition' in flash mx 2004 e m b
11/25/2004 2:18:06 PM
flash actionscript:
Hi,

What is the alternative for 'setScrollPosition' in flash mx 2004 prof? It doesn't work anymore and macromedia does not answer that question on any forum!

Re: 'setScrollPosition' in flash mx 2004 EdMX
11/25/2004 2:37:24 PM
The easiest way is to copy / paste a scrollbar from an old MX or F5 project
into MX2004 - the full component will be copied along with the scroll bar
itself, that way you can still use the much simpler and more robust scrollBar
functions rather than the buggy and less handy scrollPain
Re: 'setScrollPosition' in flash mx 2004 e m b
11/25/2004 2:43:21 PM
Yes, I now that solution and I have used them also, but I need the scrollpane
because it is filled with dynamic content with movieclips and actionscript in
those movieclips to copy and organize the movieclips in it.

Eveline
Re: 'setScrollPosition' in flash mx 2004 EdMX
11/25/2004 5:14:51 PM
'but I need the scrollpane because it is filled with dynamic content with
movieclips and actionscript in those movieclips to copy and organize the
movieclips in it.' You can load images / moviclips / running swfs into the
old MX scroll box too, Anyway what was wrong with the
FScrollPane.setScrollPosition method? Are you sure it doesn't work? Are you
sure you are targetting It correctly? It may just need refreshing - i.e:
contentSP.setScrollPosition(0, 0); contentSP.refreshPane();
Re: 'setScrollPosition' in flash mx 2004 James Fee
11/29/2004 8:57:57 AM
You want to use setHPosition and setVPosition. They both accept a Number
but if the number is greater than the scroll amount, it will not move the
pane.

--
Jim Fee
Viking Electronic Services
jfee (at) vikinges (dot) com


[quoted text, click to view]

Re: 'setScrollPosition' in flash mx 2004 timpsmith
8/30/2005 1:00:37 AM
This is not marked as the answer, but James is indeed correct.

I too found this very helpful.

AddThis Social Bookmark Button