ActionScript 2.0 :: Dynamic Scroller - Reset Scroll Position?
May 29, 2007
I'm using the dynamic scroller found on the kiropa site found here [URL]..In the action script on the ScrollBar, I can't find what variable to change to reset the position of the bar to the top of the scroller when I use the same dynamic text area for other content. It loads just fine, but if the scroller was left at the bottom, it stays there on the new text until you move it a bit, then the text catches up.
I'm hoping to find the variable and reset it when the new text loads.
View 4 Replies
Similar Posts:
Apr 3, 2008
I've got 3 pages each with their own portfolio loaded dynamically from an XML file. Everything is working great with the thumbnails i added using the "adding thumbnail" tutorial. There's only one quirk I can't figure out. If you've scrolled to the end of the thumbnails on the first portfolio, the scroller stays in the same place when you go to the next portfolio rather than reloading back at the beginning. I hope that makes sense because it's hard to explain, but the site is [URL] here's the partial code for the thumbnails...
[Code]...
View 1 Replies
Oct 21, 2005
I know this is a dumb question, but it would've taken me forever to search through all the rest of the posts regarding Scrolling Text boxes. So I have text scrolling in a dynamic text box. Buttons control it's movement, up and down with (scroll --) and (scroll ++). Let's say I read to the bottom of this text, and then load a new file into this same box. When I do this, the new text is scrolled to the bottom. My Question: How do I reset the scrolled position back to the top for each new file that I load??
View 6 Replies
Jun 9, 2005
Does anyone know what I can do to change the claudio scroller so that it will scroll ease depending on the vertical mouse position?
View 4 Replies
Jun 12, 2009
I have a dynamic text box inside a movie clip which is controlled by a vertical cursor bar.If I use the up or down arrows, everything works fine.The middle cursor button works fine in scrolling text as well. However, once use to either end of the scroll bar, the mouse "sticks" to this and continues dragging!!I have looked at this AS for a long time and can't see the problem.
View 2 Replies
Sep 11, 2009
Im supposed to make a marquee that has curved dynamic text scrolling through it. I used the displacement map filter for this and it almost works. the only problem is that when the dynamic text field gets to a certain x position, the filter stalls, but the text continues to scroll. Im really at a loss. heres what I got so far: [URL]
[Code]...
View 2 Replies
Apr 20, 2009
I wrote a short AS program to create a tileList and it functions fine, but I need to be able to scroll the list of pics according to the position of the mouse with out actually moving the scroll bar.... example of what I mean: the farther to the right mouseX is on stage, the faster my tileList scrolls to the right, if mouseX moves to the left of the stage, so does the scroll bar...Here`s my code so far:
import flash.display.Sprite;import fl.controls.TileList;import fl.controls.ScrollBarDirection;import flash.text.TextFormat;
var tlc:TileList;[code]........
View 1 Replies
May 5, 2011
I have a ScrollPane and I want to get and set the scroll bars position (pixel position). For example, if the user changes the scroll bars position and then refreshes the page, we need to take the user at the same point where he was before refresh. For this I need to get the respective scroll bars positions before refresh and then set it to the saved position after load. I have got the positions by hPostion and vPosition but now when I try to save the values back to the same properties after refresh it doent work.
View 2 Replies
Mar 8, 2006
ok - i'm totally confused here... this is probably a stupid noob question... just recently got flash 8 - upgrading from mx2004, but had previously been using flash 6 components and AS1, due to files that had already been written in mx... my problem is this - i have a dynamic text field, populated with data from a LoadVars object. When a button is pressed, different data is loaded into the text field, and the scrollBar is supposed to reset to the top (position=0)
[Code]...
View 2 Replies
Nov 20, 2009
I have (yet another...) TextField issue. I have an input textfield that is used both for capturing user input and displaying messages. It's around ten characters wide, single line and not resizable. I have a method that allows you to flash a brief message into the textfield for a couple of seconds before returning it to the state it was in:
ActionScript Code:
public function flashDisplay(alert:String):void
{
tempText = textField.text;
[Code]....
Usually this works fine, but when the user types a long word into the textfield, the text scrolls left and the first letters of the word scroll out of view. This isn't a problem until you try to show an alert and the alert is also scrolled out of view at the beginning - even if it's a short word.
How can I reset the horizontal scroll that the user has created when updating textField.text?
View 1 Replies
May 18, 2009
Anyone know of any newbie (AKA well-explained) tuts on custom scroll box with custom scroller?
View 1 Replies
Jul 17, 2009
the code actually working, till i adding for the scroller to hide when nothing is to scroll... think i used the wrong statement or wrong formula, or more ><
[Code]...
View 7 Replies
Feb 3, 2009
I am trying to call a sound to play whenever the UP key is down. I want the sound to stop and reset to position zero when UP is released. Everything works except the sound will not reset to 0. Here is what isn't working:
if(Key.isDown(Key.UP)){
if(sound.position == 0){
sound.start(0,0);[code]....
When ran, the program plays the sound once, and will never play it again because I can't get the sound.position to reset to 0.
View 1 Replies
Dec 23, 2011
I am using the FlexEvent.IDLE event to track if the user is idle for more than 5 min. If so, the user will be loggeg out. I am also calling a popup in my application which has a scrollable data grid. When I scroll my data grid for more than 5 min , the IDLE event is triggered, which means if I am not moving my mouse and simply using the scroll, the idleCounter goes on increasing. How to reset the idleCounter on mouse scroll?
View 1 Replies
Sep 19, 2004
I made a "site" in which I load the other parts of the site, for example "scroller" (both in attachment). If you open "scroller" you'll see it works just fine (I wish it would only skip one line at a time but that's not that important). When you open "site" it loads "scroller" in it but the scroller doesn't work anymore?
View 4 Replies
Sep 19, 2004
I made a "site" in which I load the other parts of the site, for example "scroller" (both in attachment). If you open "scroller" you'll see it works just fine (I wish it would only skip one line at a time but that's not that important). When you open "site" it loads "scroller" in it but the scroller doesn't work anymore?!?
I guess it has something to do with the referrence path
View 4 Replies
Apr 15, 2004
I have a moviclip duplicating 200 times and rising off the top of the screen. When it moves completely off the stage, and I want it to move back to the bottom of the screen and rise up again. Right now it just keeps going up off the stage and doesn't replace itself.Here is my code on my movieclip:
[code]...
View 1 Replies
Jun 1, 2010
i wanted to make an object to reset to the default position, like i move it around and when i hit a button he goes to his position for example x: 233 and y:431
View 1 Replies
Sep 30, 2010
I'm trying to get the handle on a slider to reset to its original position whenever the frame is changed.
View 2 Replies
May 12, 2011
I'm trying to make some manual transitions. Because I don't know AS3, and I'm building this from the help of Google, I've started with a simple "blind" transition just to figure out the works.
The issue is that when I expand the width, it seems as though all my AS3 created sprites seem to reset their x position, and sit on the left. That or 15 of the tweens aren't working.
Here's the code:
ActionScript Code:
function vBlinds(){
var tweens:Array=new Array(16);
[code]....
View 3 Replies
Nov 11, 2003
i'm trying to zoom in on a picture at the specific spot where the mouse is clicked. ie if the mouse is clicked in the lower left corner, the pic gets bigger from there, not the center of the pic. the only way i can think of to do this is to reset the registration point to the clicked position. is this possible? is there another way to go the job done?
View 12 Replies
Mar 9, 2010
I would like to position relatively a scroller in my application like below.When I scale the image, I resize the scroller...
<s:Scroller width="50%" height="50%" >
<s:Group>
<mx:Image
[code].....
View 2 Replies
Feb 19, 2005
I created a auto scroller which works fine but I would like to change it so that I can reuse it without changing different values each time. The movie consist of a scrollmc and a maskmc (just a rectangle)
So if I write,
right = 150;
150 being the _x position of maskmc
why wouldn't it work if I change it to
right = maskmc._x;
View 7 Replies
Sep 19, 2008
I have an external loaded mc text file scrolling and easingjust fine, my only issue is that when first pressed (scroller_mc),it jumps half way down my scroll line (line_mc). Every thing elseworks perfect after the scroll button (scroller_mc) makes theinitial jump to the middle of the scroll line. I have followed utorial 4 times and saw no mention of a bug, and
//---------------code---------------//
var textLoader:URLLoader = new URLLoader();
var textFile:URLRequest = new
[code]........
View 2 Replies
Sep 22, 2011
I am wrapping a VGroup in a Scroller (by setting the scroller.viewport = vgroup), but I want to only be able to scroll vertically. In flex, a scroller component can set the "horizontalscrollpolicy" to "off", but programmatically in Actionscript 3, it does not seem to expose this attribute. How can I do this in Actionscript 3?
View 1 Replies
Aug 8, 2006
I have two instances of the xml photogallery one has the thumbs working the other loads the thumbs but doesn't scroll. this is my code for the second intance.
[Code]....
View 1 Replies
Aug 13, 2009
I am using a horizontal thumb scroller which i ahd acuired from the internet. the scroller works fine but the issue is, the scroll speed is directly related to teh thumbnails present.When i am having 10-20 thumbs the auto scroll is smooth. but when the thumbs increase to say 50+ even the slightest mouse movement cause the the thumb to scroll at rapid pace rendering the thumbnail scroller useless. Can anyone help me to modify the script so that i can reduces or control teh scroll speed. Or if tahts not possible how do i add a next prev button so taht i can take away the auto scroll and fwd/rewind the thumbs one by one or a batch at each click. I am attching the fla file for reference
Code:
// Developed by www.flashmo.com
var photo_filename:Array = new Array();
[code].....
View 0 Replies
May 29, 2008
A quick rundown of the code is I am creating movie clips that I then am trying to scroll across the screen as an infinite horizontal scroller. Here is the problem. I am able to create the effect I want using text fields, but when using movie clips and the EXACT code, it doesn't do anything. Here is the code: (sorry kinda long)
[Code]...
View 4 Replies
Nov 19, 2002
on (release) {
scrollbar.visible = true
loadVarsText = new loadVars();
loadVarsText.load("News.txt");
[code]....
Using that Code i load a .txt file and the scroller works but only about 1/4 of the whole .txt file...
View 3 Replies
Aug 15, 2010
Using this code made by Genesis F5:
Code:
// EXAMPLE CREATED BY GENESIS F5 (www.flashkit.com)
stageheight = Stage.height / 2;
overhangy = ((stageheight * 2) - image._height) / 2;
[code]...
Basically, my problem is that i've got 15 buttons labeled Channel 1 to Channel 15, but when the page first loads up, it skips down showing the very last button at the bottom, rather than the very first button at the top. The top button is off the screen.
View 9 Replies