ActionScript 2.0 :: Claudio's Scroller + XML Images?
Aug 6, 2006
fixing my XML thumbnail images to work with Claudio's scroller. The scroller doesn't adjust correctly to show all of the dynamically loaded thumbnails..? I found this thread explaining why this is happening but I haven't been able to correct the problem with the suggested fix.
http:[url]....Apparently the variable located inside my scroller,
is set before the XML has finished loading so does not calculate the correct mc_height to work with the scroller and show all the thumbs at the bottom... ?
I've been messing with the Claudio Scroller trying to get it working on an angle. Right now I've got it working but really buggy like and it has some issues. I got it working pretty much perfectly at the angle its set on right now in the fla, but I want it to be workable at any rotation without having to change any numbers.
ps - this is running flash 8 with as 2.0. the first file is for those with flash 8 the second file is for those with mx2004.
I found a script at on the web that emulates the news scroller found atI would like to add images to each news headline so it can replicate the effect found at
I am trying to create a news scroller such as the one on espn.com where you have a scrolling news component that can contain images and or videos and links to news stories stored in the database.
Does anyone know how I can adjust the speed of Cladio's scroll bar so when the arrows are clicked the scroll runs faster? Attached is Claudio's original file if needed. The speed variable has no effect on this? I tried adjusting the interval property of both the (up_btn and down_btn) to a lower number from "18" to "0" Like so...
[Code]...
This seemed to work when previewed in the player but once uploaded for some reason the scroll slowed down again? something to do with the frame rate? movie is set up at 30fps. Also, the content being scrolled is dynamically loaded via XML... Would this have anything to do with the lag?
I got some Images in my scroller component. while scrolling the scroller sometimes hang for a second... i think the image is loading. is it possible to load the image before the scroller is on the position?!.
Im trying to make a horizontal scroller, that pulls images from an XML document, and scrolls them infinitely.I have 2 problems with this and I have been looking everywhere for a tutorial, or example that shows how to do this and I always find something that is close to what I want but not quite.Here is what I have so far:
Code: var mcLoader:MovieClipLoader = new MovieClipLoader(); var mcListener:Object = new Object();[code]....
What I'm wanting to do is instead of using 490 (underlined), I want to be able to get the width of each loaded image so that I can line up the next image right up against it regardless of its width (490 just happens to be the width of all of them right now).I'm trying to use the onLoadInit() function, but I know I'm doing something wrong. When I try and trace my mainLoader variable, it traces the right amount of times, but they are all the last object in the group.What do I need to do to be able to get the widths of each image as it loads, then use that variable to position the next image right after it?
also (a semi unrelated help request), what I'm doing right now is loading them ALL in creating one giant line of images, then loading in another giant line of images and just alternating between the 2 each time one is almost to the end of its length. Is there a better way to do this so that only the right amount will load, and scroll, at the beginning adding the one right before it enters stage, and as they move off stage they are removed, then when it's near the end it just adds the first one back to the end?
I used the 'Preloader and Transition for Dynamic Files' Tutorial from the tutorials section here is a link [URL] and have to say, I learned soooo much from it, and incorporated it into my website [URL]. How to put a percentage preloader for each of the sections when they load. The heavier the .swf file you are loading, the longer it takes, and I've gotten comments about this saying they would like to know how long they have to wait until they see something.
I am trying to build a vertical slide scroller based on a tutorial for a horizontal slide scroller and am having difficulties undertanding what values I need to change in the code for the slider mc in order to make it work. The horizontal slider is quite smart [code]
my problem is that if you go over the menu text above my scroller it controls the scroller. I wan this areas movement to have no effect on the scroller below. is there a way to script my scroller to set it to this?
I am creating mouse scroller and when I insert actionscript my images wont move depending on the mouse movements..I am using Flash cs5 and Actionscript 2.0...this is my actionscript:
I would like to use it as a horizontal scroller for an image gallery. Just to clarify a horizontal dragger and a horizontal stage motion for image viewing.
fscommand("allowscale", "false"); bar.useHandCursor = dragger.useHandCursor=false; space = 20;
I can find tons of articles/tutorials on custom scrollers but none of them actually replace the browser scroller. If the browser is made smaller the custom scroller and the browser scroller are there. [URL]...
Hi I am trying to create an image scroller that just scrolls images from point a to point b on load horizontally in an infinite loop. I just used a code snippet to move it horizontally but don't how to get it to stop and at point b and loop again from a.
I am trying to build a vertical slide scroller based on a tutorial for a horizontal slide scroller and am having difficulties undertanding what values I need to change in the code for the slider mc in order to make it work. The horizontal slider is quite smart and there is additonal functionality attached to it to affect it's movement which I'm not too worried about although it would be nice)
Code: // set up content_mc info contentRight = _root.content_mc._x;
I've been trying to make a scroller, but the movieclip IS the scroller (if that makes sense?)So I have a movieclip that's, say, 1920 wide, and the stage just resizes to the browser, and when you drag the movieclip it scrolls. I have this semi-working but it's quite buggy on resize, and i also want inertia on the movieclip when it moves.
I'm editing a scoller and have removed a photo from it however as the scroller scrolls a gap slowly appears where the original photo was. I can't seem to stop this happening?
In flex 4 I'm using a PopUpButton with a Menu populated with records from the database.For one of our clients, the data provider of the Menu has more than 50 elements.When they click on the Menu it expands beyond the height of the screen without showing a scroller or responding to the mouse-wheel.So in effect there is no way to access the lower items on the menu.So I need to somehow restrict the height of the menu and add a scroller.The rowCount and maxHeight commands are having no effect.
var companyContextMenu:Menu=new Menu(); companyContextMenu.maxHeight=400; companyContextMenu.rowCount=20;
I'm working on a small project and I'd like the player to be able to explore areas outside of just the 800x600 window, AKA scrolling is necessary.
I'm not working in the Flash IDE, I'm just writing actionscript in FlashDevelop.
Anyway, I'm trying to think of a clean way to scroll the map and all associated objects when the player gets near the edge of the screen.
Here's how my app is currently set up:
I've got my Main object, which is the parent app.
Under that, I have a 'DudeHandler' object, which will contain all the players. At the moment it just contains the player, and another test guy in order to see the effects of scrolling.
Then I have the 'Soldier' object, which is an individual player.
In a perfect world, when the player got near the edge of the screen, I'd just move the DudeHandler object, but I guess my main problem is trying to find out the actual screen coordinates of the player, since the x and y vars point to the position relative within the Dudehandler object, if that makes any sense.
Wondering if anyone knows how to tweak the scroller() method in the mp3 tutorial to work more like a news ticker in that the artist and track continuously move from right to left and repeat itself (like the Zune radio on myspace) instead of moving back and forth
I have a swf size : 1280 X 960. which has some kind of animation.. meaning some kind of block diagram animation that shows the flow.. for example a watercycle or a route map. But ... when I change the settings of the system .. to 800 X 600 then the scroll bars appear. Is there a way to ... move the swf in the scroller using some script or so? coz... all the animations have been made in the size for 1280 X 960 and cant be redone... and these cannot be scaled also (thats the requirement)
I'd like to have a scrollbar which scrolls movieclips that are created depending on whether there is the information available in an xml file.The image attached shows how the layout should be and the xml will be something like this:
The kind of thing I want to create can be seen here... http:[url]...Click on 'engaging customers' and then you'll see a box to the right.I want to create something like that, but loading in the text from xml.
The scrollbar found here is good but I can't see how to implement the whole adding movieclips dynamically and then resizing the scrollbar etc.. http:[url]...Does this all include: loading in the xml, finding the node, creating a new movieclip, adding the xml information, resizing the scrollbar and then checking to see if there are anymore xml nodes?
Im using this as my base for what I want to make:I've stripped out everything but the scrolling thumbnails at the bottom. Is there a way to: 1. Make the scrolling infinate?. Have two buttons that changes the direction of the scrolling. One that when its clicked makes the menu scroll from left to right and the other button to make it scroll right to left.