Actionscript 2.0 :: Smooth Scrolling Using Browser Scroll Bar
Aug 22, 2009
Here's the scenario... I have an .swf that is 1050px in height. On most browser's that is too tall. What I'd like to do, is use the browser's scroll bars to auto scroll to the bottom of the page during the loading sequence, and then scroll back up to the top. To do this, I'll need to make a javascript function call using ExternalInterface.call();
I found a suitable smooth scrolling javascript example on the internet. [URL] By clicking <a href> links, it scrolls to HTML anchors on the page. I figured that instead of clicking on the textual links like in that example, I could simulate the event by calling the event from flash. I'm just not sure how to do it exactly.
[Code]...
View 1 Replies
Similar Posts:
Mar 17, 2009
I am making a webTV player, and I have a combobox displaying the entries. When scrolling the combobox, the scrolling jumps between the entries. I would like to have it scroll though the entries smoothly and not jump.
View 1 Replies
Nov 17, 2009
When i scroll the scrollBar in Flash the browser is scrolling too. What i need is to stop scrolling the browser and scroll only the flash box. And the Browser have to scroll only then when the flash scrollbar is in end.
View 4 Replies
Mar 31, 2010
I have a flash element on my page that you interact with by using the middle mouse scroll wheel. The page is long. So when scrolling with the mouse wheel it interacts with the Flash element AND scrolls the browser window.
Is there a way to disable browser scrolling while the Flash element is active?
View 3 Replies
Nov 14, 2008
I just made a scroll area with buttons and draggable items. All the code is written for vertical scrolling, the content I need to be scrolled is going to be horizontal. how can I rewrite this code to be horizontal scrolling? it seems like the scroll button (the one you drag along) doesn't stay confined to its scroll line either.
[Code]...
View 1 Replies
Sep 28, 2004
Can I know how do i get a smooth scroll bar like the one in IE.
View 2 Replies
Sep 28, 2004
Can I know how do i get a smooth scroll bar like the one in IE.
View 2 Replies
Feb 26, 2009
I have made a map which I have made scrollable across the stage using the keyboard arrow keys.
e.g:
PHP Code:
onClipEvent (enterFrame) {
if (Key.isDown(39)) {
_x=_x-4;
[Code]....
These on screen buttons allow the user to move the map every time they click however it would be more user friendly if these buttons continued to move the map on a hold down state until released or via rolling on/off.
View 1 Replies
Jun 12, 2009
Envrironment: Flash CS3, AS3 I have a horizontal image scrolling project that I am working on, and it works but is not super smooth, I would like it to be smoother when it scrolls, and realize that this is a function of pixels scrolled over time and the FPS of the document.
Right now I am moving the items 1 pixel at a time on a timer with delay of 8 to get it to scroll at the speed I want. I am moving it at 1 pixel in order to catch exactly when an object should wraparound to the beginning of the scroller to show up again. So I don't know that I can really change the number of pixels moved to more than 1 and still have the images spaced perfectly, which makes me think I need to increase or decrease the FPS and or the timer delay to make it scroll smoother. Right now it is at 30FPS and as mentioned the timer delay is 8. Small changes to the delay is not a problem.
This is one aspect of flash i don't fully understand. I would really like to know how to figure this out so I can apply it to future projects as well without doing trial and error to make it smooth. Can it be function, like a way to figure out I need to move a 120pixel picture 60 pixels in 2 seconds, what should my FPS be and the picture size and movement size and number of seconds can be variables?
View 7 Replies
Jul 31, 2010
I'm creating a website and I need to have a slideshow of scrolling pictures (not interactive to user) and I know how to do it with the old motion tweening but when I play the movie the scrolling pic is not smooth but choppy. I already played around with frames and frame rates; the image scrolls faster or slower but the choppines remains. Here is an example of what im looking to do: **Notice how the picture of the bed scrolls smoothly when the site loads. [URL]
I know that for this site they probably used the "ease" effect and that works when the image is gonna stay still at the end but for my movie the images are gonna be scrolling up,down,left,right in a loop. Can you guys tell me how can I do this without the movie being choppy? perhaps there's a way to do it with code.
View 1 Replies
Nov 7, 2010
I'm making a side scrolling platformer and I wonder why image movement is so choppy, especially if velocities arent whole numbers? Images I'm using are: one 320*350, one 500*500 and few of 50*50 all in PNG format with alpha support and cached as bitmap. Framerate is 30FPS.
View 1 Replies
Aug 24, 2009
below is a link to a super simple movie that I have of text scrolling/moving horizontally across the screen.The only issue I have is at the quality of the scroll/movement. it is inconsistently jerky, sometimes when it first starts getting on the screen and leaving the screen sometime all the time and sometimes when it leaves the screen.I have had this issue with other movies and scrolling things across the screen horizontally I had to increase the frame rate to 30 fps and extend the time line but it never really got to be a smooth scroll.
View 1 Replies
Jun 6, 2009
Is there any way that i can smooth out images that zoom in/out with normal classic tween. they are so jittery it looks terrible. I even have a little bit of easing and frames per second set to 30.
View 5 Replies
Jan 26, 2010
I'm seeing everyone using the TileList in flex but can you create a smooth scrolling effect in AS3 swf?
Should I try to use Flex? (I'm developing for a deskstop app)
P.S. I have no IDEA what Flex is or how to use it...
View 5 Replies
Aug 24, 2010
I am trying to adjust the speed of the scroll box. It is a little too quick. I am not sure where to start.....I tried adjusting the button (_root.TextBox.scroll -= 1;) but it won't accept any smaller numbers. Can someone point me in the right direction?
View 1 Replies
Oct 6, 2011
I started known about FLASG a few day ago. I am very, very interesting about its.
My boss want i make a text display in bottom screen and scrolling from right to left (same as display on TV). But, i used to keyframe to solved this solution but they are slowly and not smooth. Now i want text display running smoother. I not good at Flash .I am programmer , C# is my programming language.
View 3 Replies
Jun 1, 2010
I'm just fine tuning my flash site and am trying to get my custom scroller to scroll my text smoothly.
Basically I am using scrollertext.scrollV [URL] to scroll my text inside a function but scrollV is an int and flash performs vertical scrolling per lines. My text is quite large in some areas and the scroller is very 'non smooth'. How else can I achieve a smooth scrolling effect (would be nice to scroll in pixel values not line values) ?
View 1 Replies
Jul 25, 2009
[URL]
Here is an example online, I am trying something similar but am not happy with what I am seeing, perhaps it is just on my side. The scrolling seems choppy/jagged. I have this same issue doing a similar scroll with lots of big images. Is there any way to get a nice smooth scroll at a decent speed with flash?
Ive ported my as2 code into as3 but am seeing the same results. I have used tweener and tweenlite, nothing Ive tried is helping. how to achieve a smooth scroll?
View 1 Replies
Apr 8, 2010
How can I make a smooth flash scrolling effect same like http:[url]..........
View 2 Replies
Jan 5, 2010
how to smooth scroll a bitmap object?? When I use the bitmapData.scroll() method it is jerky.
View 3 Replies
Mar 20, 2011
I have a large movie clip and four buttons. Each button is supposed to move the movie clip to a specific _x and _y location. What I'd like to do is have the MC scroll smoothly, rather than jump to the new location.
Here's my file so far. Note that I have some onClipEvent code on the MC itself, and the button code is on the actions layer.
It scrolls, but it seems to be ignoring the _x and _y values for some of the buttons.
View 9 Replies
Mar 12, 2004
I have a textbox that dynamically loads from a txt file. I'm trying to have the text scroll on its own... kindof like movie credits. The problem that I'm running into is that it appears choppy when it scrolls line by line. How would I make it smooth scroll without any user interaction?
View 4 Replies
Jan 27, 2010
I have some code which moves back and forth through my menu so that it scrolls in relation to where the mouse is on teh screen. The problem is that I cant get it to scroll smoothly and is a little jerky... I want to ass maybe some smoothness or maybe a little lag to it so it just seems more smooth. I have pasted the main code I have so far below.. I am using AS3 at the moment.
[Code]...
View 1 Replies
Oct 2, 2011
I've made the kirupa simple scrollbar [URL] to scroll horizontal. This works just perfect but it is not smooth. My question to you is - how to make it smooth? I've got 4 MC's with the instance names content, mask, scroll_area and scroller.
My AS looks like this:
onClipEvent (load) {
_root.content_width = content._width;
_root.scroller_area_width = scroll_area._width;
scroller._width = _root.scroller_area_width/(content._width/scroll_area._width);
_root.scroller_width = scroller._width;
[Code] .....
View 1 Replies
Dec 25, 2003
I'd really like some feedback on how you create that smooth scrolling action on sites like electrongeek.net.
View 1 Replies
Apr 30, 2004
I'm trying to do a smooth automatic text scroll from right to left.
Heres the code I made up but it's not as smooth as I'd like it to be:
Code:
myTxt_mc.onEnterFrame = function() {
this._x -= 3.5;
if (this._x <= -3360) {
[Code]....
View 1 Replies
Oct 22, 2011
I tried to input a text from a css, which its height is greater than the target text field, so a scroll bar was placed. but I was wonder that why the scroll bar doesnt enable scrolling after loading the text.
import fl.text.TLFTextField;
import fl.controls.UIScrollBar;
var loader:URLLoader = new URLLoader();
[Code]....
View 2 Replies
Sep 6, 2010
When I was starting to drag any element, mouse wheel scrolling is turned off, how to scroll while dragging?I'm newbie here, so I can't insert a picture, here's a link
View 1 Replies
Nov 14, 2011
I would like to simply scroll through a flash movieclip using my mouse wheel. Here is the work i've done thus far (http:url].....).Each image is a separate frame in a movie clip.I had this working in Flash AS2 but then all of a sudden the web-page started scrolling around as well when scrolling with the mouse wheel.I see there is a solution here: http:[url].....
View 1 Replies
Nov 23, 2009
I've written this code for a custom scroll bar
Code:
targY = 0;
dragger.onPress = function() {
startDrag(this, false, this._x, 0, this._x, theMask._height-this._height);
[Code].....
how I would add scroll wheel capability to the scrolling? I've tried a few methods, but I'm not very good at class based coding, and from I've read, it's necessary to perform that function.
View 0 Replies