Actionscript 2.0 :: Create Dynamic Scroller For Xml Images?
May 13, 2009How to create a dynamic horizontal scroller for xml driven images.
View 2 RepliesHow to create a dynamic horizontal scroller for xml driven images.
View 2 RepliesI've been trying to create an XML based portfolio site, where images are loaded dynamically so the client can update it. I've managed this part ok, however, I want the images to be in a scroll panel so that as the client adds more and more images you can scroll through them.
View 1 RepliesHi 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.
ActionScript Code:
game1.addEventListener(Event.ENTER_FRAME, fl_AnimateHorizontally_3);
function fl_AnimateHorizontally_3(event:Event)
{
game1.x += 20;
}
So I have a function to create images dynamically in as2, telling some parameters, the problem I am facing is that I need to add this function to a file that has as3, so is incompatible, can anyone please help me translate it to as3?
function goGetUrl(dir:String){
getURL(dir, "_blank");
}
[code]....
For example the getURL(dir, "_blank"); does not work, I think I can change it by:
navigateToURL(new URLRequest (dir));
also I know that getNextHighestDepth() is not available in as3
I am looking to create something along the lines of www.pyott.co.uk with the animation being scrollable in all directions - left, right, up and down - I've seen some references to it called 'dynamic images slider'.
View 1 RepliesI have images I want to display on the stage one at a time, so I thought of creating some sort of object that contains an image that can change dynamically by code. How can I do this?
View 1 RepliesI can easily make a dynamic image with one or two lines of symmetry.
My normal approach is to take a square image and mirror it once too make one line of symmetry like this:
and then to make two lines of symmetry I can just mirror that image with one line of symmetry as well, making something like this:
images with 2 lines of symmetry work really well for 2D tessellations, but for 3D tessellations I need 4 lines of symmetry.
this is a problem since the way you'd normally do this is to basically fold the square in half both ways diagonally, which gives you triangles instead of rectangles.
this makes it harder to use rotation matrices to mirror the source image.
has anyone come up with a good way to give a source image that you can loop through every pixel quickly and mirror it in such a way that it has 4 lines of symmetry?
i have this completed so far, but i need the texture map to have 4 lines of symmetry, not 2 like it currently does.
[URL]
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].....
I would like to create a flash movie that loops through 11 dynamic images continually with a fade-in, fade-out each image.
View 2 Repliesfixing 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,
"bottom= thumbnail_mc._y-mask_mc._height+thumbnail_mc._height-space;"
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 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
Code:
stop();
//
[code].....
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.
View 2 RepliesI'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.
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?!.
View 1 RepliesI have been trying to figure out how to create this movieclipI have a bunch of images which is laid out horizontally (x axis). The functionality is very simple, when I click on the movieclip it will allow me to drag it from right to left and vice versa. This part is simple enough. I face a problem when it comes to the end and the beginning of the movieclip. How do I make it undraggable when it reaches the end of the movie clip and vice versa when I drag it back to the beginning.
View 6 RepliesI'm trying to create an auto-scroller that will move images horizontally back and forth across a Fullscreen Flash page. I am basing it off Lee's autoscroller video that he has posted here, but trying to adapt it to full screen. I have it scrolling correctly, but I'm having problems setting the parameters for when the end of the images hit the edge of the screen. Something is wrong with my math. I have attached a small .zip file, with everything in it.
View 1 Repliesi'm trying to create a "reflection" to scrolling text.i'm using a nice little scroller code that works very well on it's own. i thought just duplicating the movie clip and mirroring it would do the trick, but instead only the "reflection" bit is moving up and down, the rest of the items stay put.
i thought it might be a matter of changing instance names, but then the "reflection" is the same object, just mirrored vertically, so i'm not sure how one should go about doing this...i'm attaching both the FLA and SWF files...
I am having the worst time creating a text scroller with CSS. I just wanted a simple text scroller for my site for the news. I noticed that when I use the Font FFF Harmony it does not show up in MAC only on PC.
View 1 RepliesI have managed to create a mysql database of pictures for our website. Now can get data from the site as text and put into flash.create a scroller from these 300 or so 250x150jpg files and make them appear as though they come from our logo.
View 2 RepliesI would like to create a flash movie that loops through 11 dynamic images continually with a fade-in, fade-out each image.
View 2 RepliesI have this scroller but I don't know how to make it dynamic
View 6 RepliesI've created a horizontal dynamic text scroller (like latest news ones found on some websites) in flash 8 with as2, and this swf file reads data from a .txt file. the problem is that when change the txt in the file, it doesnt show in my browser until i clear its cache. But if a client doesnt clear cache he will get the old text...I would like to know how to prevent the browser from caching that swf content, any code or script will be most welcomed. I've tried to add <meta> tags in my html but of no use.
my embed code is like this:
<embed width="980" height="34" align="left" wmode="transparent" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"
[code].....
Anyone know to create a Horizontal dynamic image scroller ?? I tried a component but it doesn�t has option for smooth transition.
View 1 RepliesI've been trying to create an XML based portfolio site, where images are loaded dynamically so the client can update it. I've managed this part ok, however, I want the images to be in a scroll panel so that as the client adds more and more images you can scroll through them. I've got it however, I'm struggling withlimiting this panel so that you can scroll the images infinately (ie: off the screen!)[URL]
View 1 RepliesI'm trying to skin the Scroller in my application so that it looks like the example mentioned in [URL] This example was done in Flex 3 and images are set in CSS. I tried to create a skin for the component Scroller and saw that it uses VScrollBar and HScrollBar. I tried to put skins for these components. VScrollBar uses separate skins for the track, thumb, decrement/increment buttons. I tried to make some changes in the skin, but they were not reflected at all in the application. I just want to create a customized scroll bar in Flex 4 with custom thumbs.
View 2 Replieshow i can create a fullscreen horizontal scroller - [URL]
View 2 RepliesIm 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?
this post references the files listed at:i've implemented a dynamic text box that calls a txt file into it. it uses a scroller that i found a tutorial on:i've got everything working splendidly - everything EXCEPT the scrolling bar... as you can see, it scrolls up and down just fine, but doesn't control the text.i've pretty much exhausted my search through the actionscript to locate the problem and i can't find it.
View 1 RepliesI have an image gallery that loads images/text through xml, but I'm having an issue with the scolling, I need to lock the ymouse coords right now it scrolls only on the xmouse, basically I need it to work in the scrolling area only, say 400width by 200height..
[Code]...
Is there a way to display hyperlinks in a text scroller in which the text is dynamically loaded using variables? I'm talking about the basic text scroller
View 3 Replies