ActionScript 2.0 :: Scrolling Loaded Movies - Hold Down The Button And Have The Movie Scroll Continuously?
Mar 24, 2004
Ive made two simple up/down buttons, that "scrolls" a loaded movie by the following code (lets say the movie is loaded to level 5):
_level5._y += 5;
Very simple.
Well, Id like to be able to hold down the button and have the movie scroll continously, like the scroll++ code does for textboxes.Is that possible?
View 2 Replies
Similar Posts:
Oct 13, 2009
I've got a symbol on stage and a button. The button rotates the symbol CCW half a degree. Code: on(release){ mySymbol._rotation -= 0.5;} I wanna add an on (press and hold) action on button so that the symbol will be rotated continuously when the button is on hold.. I can't make this work for over a week now.
View 7 Replies
Jul 18, 2010
I'm having trouble getting my scrollbar to work with dynamically loaded movies inside the movie the scrollbar is attached to.An example of my working scrollbar code with static data and my broken scrollbar with dynamic data can be found here: [URL]
I have a for loop that pulls data from my database, populates a topMovie(contentMain) with 20 subMovies inside it. My scrollbar is attached to topMovie. Once the data is loaded and the topMovie is populated, the scrollFace(not ScrollTrack) dissapears and the dynamic movie is not scrollable.As a test, I populated the topMovie with graphic boxes and no dynamic movies and it scrolls just fine.
Scrollbar code:
Code:
scrolling = function () {
var scrollHeight:Number = scrollTrack._height;
var contentHeight:Number = contentMain._height;
var scrollFaceHeight:Number = scrollFace._height;
[code]....
View 2 Replies
Sep 14, 2009
i want to make some sort of scroll pane that will hold my xmL loaded images ..i have looked at several samples of scrolling panes but they only hold textfield.
View 2 Replies
Jul 27, 2009
so I currently have this working successfully;
Code:
function scrollUp (Event:MouseEvent):void {
myMarker_mc.myText.scrollV -= 1;
[code].....
View 1 Replies
Aug 23, 2009
Im new to AS3 (like 5 hours new) and Im after getting stuck with something Im sure is very simple, but Im just not having much luck finding a solution. Basically I have a button which I want to click and hold and then make a movieclip move up and down the y axis. This is what I have so far...
[Code]...
Im sure Im probably going about it in a bizarre way, Im just trying to do it in a way which makes sense to me. So far its working fine for single clicks, so I click the button and the "upwards" function is called which moves the movieclip upwards by 10. The problem Im having is getting it to move continously when the button is clicked and held. Ive read a few possible suggestions relating to loops and setinterval but I just cant seem to make sense of them in a way that applies to what I want to do. Apologies if this is really simple but Ive literally been teaching myself actionscript for all of about 5 hours in total so far and I just cant seem to get past this hurdle.
View 9 Replies
Apr 20, 2008
I have a simple message-board, that dynamically loads text from php and a text file! I have created an up and down button to scroll the text box when you press it! This works fine, but I cannot figure out how to keep scrolling the text if you hold the button down. here is my code for the down button (all my attempts at looping etc I got rid of):
[Code]...
View 1 Replies
Mar 24, 2004
Ive made two simple up/down buttons, that "scrolls" a loaded movie by the following code (lets say the movie is loaded to level 5):
_level5._y += 5;
Very simple.
Well, Id like to be able to hold down the button and have the movie scroll continously, like the scroll++ code does for textboxes
View 2 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
Dec 19, 2009
Do you ever have a question that has been asked all over the Internet...with nothing but shitty answers? This seems to be one of those questions: What's the best way to continuously scroll text while a user holds the mouse button down? (By the way, I'm not using the timeline, so don't waste your time telling me to use EVENT.ENTER_FRAME.)
View 1 Replies
Oct 11, 2009
I have a symbol on stage which I rotate on the release of a button. What I need to do is: My symbol to be rotated on press and hold continuously as well.
View 9 Replies
Dec 11, 2009
I'm using tweenlite. How do I hold the scroll for 3 seconds and scroll off the screen?[code]
View 10 Replies
Aug 24, 2004
Button a, when pressed triggers a few things. I triggers a mask to tween in to uncover some text. But the movie will only play as long as i have the button pressed .
View 4 Replies
May 30, 2005
I have a dynamic textbox I would like to scroll. Currently I have 2 images set to scroll up and down with the following actionscript.
[Code]...
The code works fine, though I want when I press, the box to keep scrolling. Currently I have to press, press, press, press, to get a small amount down.
View 2 Replies
Oct 25, 2006
I recently completed the kirupa tutorial on the loading of a random movie, but after the loaded movie has finished playing I would like it to load another random movie and continue to do so.Being a newbie to flash 8 I was wondering if I could get some help with the actionscript.
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
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
Feb 27, 2004
Can a loaded movie unload itself, I've tried but nothing positive. This is the thing, I have a section that I loaded, and I want a close button in that loaded movie, not in the actual main movie.
View 3 Replies
Apr 30, 2009
Is there a way to automatically unload movies when a new movie is loaded? eg: 5 buttons, 5 bit of art. At the moment they overlap instead of unloading before the new one loads.
View 4 Replies
Mar 15, 2006
I am trying to modify the AS for the buttons so as to continuously scroll through the images rather than stop at the last image and visaversa. In the following modified code I have managed to get the last image to run to the first but When you click the previous button on the first image you have to click it twice before it goes to the last image.
Code:
function nextImage() {
if (p<(total-1)) {
p++;
if (loaded == filesize) {
picture._alpha = 0;
[Code] .....
View 2 Replies
Dec 30, 2005
I am trying to make the bar in the Simple Flash XML Photogallery [URL] continuously loop and having a hard time. I don't really care if the mouse would control the thumbnails, just trying to have the thunbnails move left continuously. I have put two tutorials together and made the mouse control the thumbnails. I used the "Simple Flash XML Photogallery" and the "Scrolling Thumbnail Panel" from [URL] and came up with the file below. How to make this continuously loop or scroll. [URL]
View 1 Replies
Feb 27, 2004
My btns don't scroll continuously when I use onPress -How would I get the scrolling function to repeat itself while the btn is being pressed?
Code:
_global.mainTL = this;
//load an image into the pic clip inside the window clip
//create scrollable clip
[code]....
View 14 Replies
Aug 19, 2006
I am trying to accomplish a scrolling pic reel exactly like the one on this website [URL]. I want it in a bottom, scrolling continuously without any pause or break in between and so far I have came up with this code only
onClipEvent(enterFrame){
this._x += 3
}
I can only use actionscript 1 that is what's compatible with my editor.
View 1 Replies
Jul 13, 2007
My btns don't scroll continuously when I use onPress How would I get the scrolling function to repeat itself while the btn is being pressed?
Code:
_global.mainTL = this;
//load an image into the pic clip inside the window clip
[code].....
View 1 Replies
Nov 13, 2003
I have loads of text in a dynamic-textfield (multiline), and I ahve two buttons for it Up/down), and I want the text to continously scroll whenever the user rollOver oneo f the buttons, and stop scrolling on rollOut.
View 1 Replies
Apr 4, 2007
[Url]
As you can see, you dont have to hold down the right arrow key for the background to scroll.. I want it so that you hold down arrow key, and it scrolls, then when you let go it stops...
View 4 Replies
Sep 30, 2009
I want my 360 degree image to continuously scroll in any direction. Has anyone done this? How would I make it happen?
[Code]....
View 4 Replies
Jul 14, 2004
I'm using the following code to continuously scroll an image. I want to keep the mouseover but I need a way to make it scroll at an idle speed when the mouse isn't over the image.
onClipEvent (load) {
mouseOn = false;
xcenter=600;
speed=1/10;
}on(rollOver){
[Code] .....
I also noticed the image jumps to the left when the mouse is over it.
View 5 Replies
Aug 12, 2010
Ok, I'm using actionscript 2.0, and I am trying to make a scrolling image gallery. I have a movie clip with three layers. the first contains a movie clip used as a scroll bar. The second is a mask used to hide the overflow content, and the third contains movie clip thumbnails. when I click one of the thumbnails, it loads a symbol containing a larger version of the picture over top of the thumbnails on the same layer. My problem is, the large image is added at the very top of the movie clip, even when it is scrolled out of sight. I want it to appear in sight, so the user doesn't have to scroll all the way back up to the top to see it. This is annoying and confusing. Is there a way to do this?
Here is the code I used to create the scroll effect (there is actually a whole lot more to the code but it is very long, so I am not adding it now. I will if it is needed though)(Oh, and there is no text involved in this. I just got this code off a tutorial and I haven't changed the variable names yet)
var scrollUpper:Number = 58; var scrollLower:Number = 309;
var textLower:Number = 60; var textUpper:Number = -179;
var scrollRange:Number = scrollLower - scrollUpper; var textRange:Number = textLower
[code].....
View 3 Replies
Sep 9, 2005
What I have is a news blogger that is loaded via xml which uses php to write to the xml file. I have my "blogger" movie clip that loads all of the different blogger info into it. It is loaded into a blank container movie clip via attachMovie and when the user adds a new blog it creates new instance of it and moves the rest down. All works great with that.
Now the problem is after the client creates more then 3 blogs, it begins to run off the site. So what I need to do is put it into a scroller. Now I have gotten it into the scroller but it seems that the scroller is not seeing the actual size of the container clip that is holding all of these instances of the "blog" movie that is loaded from attachMovie. The size will change depending on how many blogs there are and I need to figure out how to add script to calculate that. Here is the code I have to load the "blogitem" movie into the blank container movie.
Code:
var i = 0;
if (gateXML.hasChildNodes())
{
child = gateXML.firstChild;
[code]....
View 4 Replies