how would I convert this to as3.
main_sb.setScrollPosition(chat_txt.maxscroll)
the adobe help files dont help at all! and google doesnt give much help to.
Thanks its for the chat.
Got smart fox server working and need help with some code.
I dunno anything about As3 but I found this:
setScrollProperties() method
public function setScrollProperties(pageSize:Number, minScrollPosition:Number, maxScrollPosition:Number, pageScrollSize:Number = 0):void
Language Version : ActionScript 3.0
Player Version : Flash Player 9.0.28.0
Sets the range and viewport size of the ScrollBar component. The ScrollBar component updates the state of the arrow buttons and size of the scroll thumb accordingly. All of the scroll properties are relative to the scale of the minScrollPosition and the maxScrollPosition. Each number between the maximum and minumum values represents one scroll position.
Parameters
pageSize:Number — Size of one page. Determines the size of the thumb, and the increment by which the scroll bar moves when the arrows are clicked.
minScrollPosition:Number — Bottom of the scrolling range.
maxScrollPosition:Number — Top of the scrolling range.
pageScrollSize:Number (default = 0) — Increment to move when a track is pressed, in pixels.
Hope that helps.
setScrollProperties() method
public function setScrollProperties(pageSize:Number, minScrollPosition:Number, maxScrollPosition:Number, pageScrollSize:Number = 0):void
Language Version : ActionScript 3.0
Player Version : Flash Player 9.0.28.0
Sets the range and viewport size of the ScrollBar component. The ScrollBar component updates the state of the arrow buttons and size of the scroll thumb accordingly. All of the scroll properties are relative to the scale of the minScrollPosition and the maxScrollPosition. Each number between the maximum and minumum values represents one scroll position.
Parameters
pageSize:Number — Size of one page. Determines the size of the thumb, and the increment by which the scroll bar moves when the arrows are clicked.
minScrollPosition:Number — Bottom of the scrolling range.
maxScrollPosition:Number — Top of the scrolling range.
pageScrollSize:Number (default = 0) — Increment to move when a track is pressed, in pixels.
Hope that helps.
You can increase the value of scrollPosition in 1 or the value that you want.
Myscroll is the name of your component
Greetings
Code: Select all
Myscroll.scrollPosition + = 1;
Myscroll is the name of your component
Greetings
Return to “SmartFoxServer 1.x Discussions and Help”
Who is online
Users browsing this forum: No registered users and 83 guests