ActionScript 2.0 :: Position Thumbs In A Gallery
Aug 15, 2010
I'm using the code below to create a simple gallery of thumbs in a line with space between each thumbnail.[code]I have a rollover/out function that scales up/down the thumb outwards from the centre of the thumb.I was expecting the scaling thumbnail to "push" the other thumbnails left and right as it scaled...but it only shifts the thumbs to the right of it and the thumbs to the left do not move.I need code to allow a scaling thumbnail to push aside the other thumbs in every direction.
View 2 Replies
Similar Posts:
Aug 17, 2010
I'm using the code below to create a simple gallery of thumbs in a line with space between each thumbnail.
ActionScript Code:
onEnterFrame = function () {
for (projIdx = 0; projIdx < projectsArray.length; projIdx++) {
//space between photoThumbs
[Code].....
I have a rollover/out function that scales up/down the thumb outwards from the centre of the thumb.
I was expecting the scaling thumbnail to "push" the other thumbnails left and right as it scaled...but it only shifts the thumbs to the right of it and the thumbs to the left do not move.
Imagine a 3 thumbnails in a horizontal line, I want the middle thumbnail (thumbnail 2) to scale from the centre and push thumbnail 1 to the left and thumbnail 3 to the right. But obviously I want this to work for x amount of thumbs.
View 4 Replies
Jul 24, 2006
I was working with the XML Photo Gallery Thumbnail Tutorial on this site: http:[url]....
And I modified it for my own usage, making it a vertical gallery instead, and had no problems until I came upon the thumbnail images. When I replaced the original thumbs with my new thumbs (that I sized based on width, as it is a vertical gallery) it got all screwed up. The images are of all different shapes. So when it loads up, some of them had huge gaps in between them, and others were even overlapping. So I fixed it by making the heights of all the images the same, resulting in a working thumb gallery, but now half my thumbs are cropped off by the mask. I'm looking for a way to fix it where I still have the same spacing between the images, and that they are all the same width, but can vary in their height. Here's the section of the code I am using:
function thumbNailScroller() {
// thumbnail code!
this.createEmptyMovieClip("tscroller", 1000);[code]....
I'm also trouble figuring something out from the same tutorial, that I want to change. The tutorial uses these "Next" and "Previous" buttons. On the far right hand side, the half-circle buttons are what I assigned this to, but I don't really want them to have that function. I would rather have them function just like how the mouse functions when it rolls over the thumb gallery, except they scroll the thumbs up and down when clicked.
View 14 Replies
Jul 19, 2005
What I want to do is to make a gallery based on the tutorial gallery here (thumbs), but I want the user to be able to choose different galleries from within the movie. I figured that I could make a loop to cycle through the galleries, then nest another loop inside it to cycle through the pics, captions and thumbs. While I wrote, I constantly tested the output with trace commands, but when I tried nesting the loop I lost all output.. I'm pretty new to both Flash and Actionscript, so if theres an obvious solution I havent been able to see it.. This is my temp XML file:
[Code]...
View 2 Replies
Apr 12, 2005
I need to get more control over the thumbnails.
gallXML.ignoreWhite = true;
gallXML.onLoad = gallery;
gallXML.load ("gallery.xml");[code]....
this has to be an array, so that I can give all thumbnails together an order. I thought this was an array, but I can't get control over this. When I trace 'thumbHolder', I get back only the last thumb. If I trace 'this', than I get the right one. i.e:
_level0.thumbnails.thumbnail4) */
thumbHolder._y = i * spacing;
thumbHolder.title = picHolder.attributes.title;[code].....
View 8 Replies
Feb 11, 2006
There is this great tutorial here on kirupa where you add thumbnails to a XMLNow, everything works fine with horizontal pictures, but when i add vertical images the thumbs positions gets messed up. now, what i want to do is when it loads the thumbnails it should get the width of the previous thumbnail and position the next thumbnail right after it plus 5 pixels, then everything should work nicely. (I've already fixed how the big image gets positioned with horizontal/vertical images,If someone can point me in to right direction where the positioning of the thumbs are being made, then maybe i can fix it myself.
// EDIT
target_mc._x = hit_left._x+(eval("thumbnail_mc.t"+k)._width+5)*k;
View 1 Replies
Oct 15, 2010
i'm currently re-using a code snippet of xml gallery with scrolling thumbs, but i got a problem : my mask is stagewidth and my pictures holder depend of thumbs numbers, sometimes after resizing windows browser, while scrolling to the browser sides limit i cannot see the end of the last pic or the start of the first pic
[Code].....
View 7 Replies
Apr 12, 2005
I need to get more control over the thumbnails.
[Code]...
I've been busy to understand the Bokel class, but I couldn't find a good tutorial about thumbnail threatment.
View 9 Replies
Mar 29, 2006
I've downloaded and slightly modified the Photo Gallery with Thumbnails .fla file. It works fine, except when you mouse over the right side, it keeps scrolling until all of the thumbnails are off the screen. Going to the left, it works fine, stopping when you reach the first thumbnail. On the original, it works as it should.
View 1 Replies
Oct 16, 2008
I am having an issue with my photo gallery thumbs not showing up.When you first land on the page the thumnails do not appear with the flash photo gallery. However, if you refresh the page, they show up.
XML loading code frame 1
Code:
photo_filename = new Array();
photo_thumbnail = new Array();
photo_description = new Array();
[code]....
View 3 Replies
Nov 19, 2010
i'm currently re-using a code snippet of xml gallery with scrolling thumbs, but i got a problem : my mask is stagewidth and my pictures holder width depend of thumbs numbers, sometimes after resizing windows browser, while scrolling to the browser sides limit i cannot see the end of the last pic or the start of the first pic, how to fix that ?
tha'ts part of a bigger project, but i've isolated the bug in this source : [URL]
the fix i would like :
-seeing the whole first pic and whole last pic when scrolling to the border left and right
-placing the first pic at x:70 at start, and enter fullscreen
if someone may have a look on this , that's only a 2 mn fix for a skilled as3 programmer, but for me a headache
View 3 Replies
Jul 14, 2009
I am creating an image gallery and it has a set of scrolling thumbs at the bottom and when clicked it opens an image that is the large version of it. What i would like to do is have the scrolling thumbs inside a black stroked box using the drawing API and when clicked it opens that image larger with another black box around that image. I know you have to use the drawing API but I have no idea on how to implement it at all. Also is there any chance each image could have a preloader on it.[code]...
View 3 Replies
Nov 30, 2009
I'm making a dynamic gallery that loads images from an xml file, first load the thumbs of each collection and click on the thumb will display the corresponding collection. I want to make that the thumbs are a little animation in the rollover, I have tried several ways and can't do it, referenceThe code has many comments that are evidence I've been doing.
ActionScript Code:
System.useCodepage = true;
_global.datos = new XML();
[code]....
View 5 Replies
Dec 20, 2006
First of all I've only registered recently but read a lot of the pages on this forum. It's great!I've been working with the xml gallery with thumbs to get to a cool flash gallery. A lot worked out for me and I think I came very far. There's just one thing. I want a popup in it. BUT, not just a regular popup; i figured that out as well. I would like a popup in "Thickbox" style. Don't know if you know it.
With Thickbox [URL] you can open a new window with content that seems to float.I've been trying to get this working with my Flash gallery. Normally you just add a class=thickbox attribute to the link, but in this case it's in actionscript. And that;s the prob. I can't seem to get this to work.
View 2 Replies
Aug 13, 2009
I'm trying to make a site with a photogallery that has sliding thumbs in the bottom corner ("slidingOut_mc"). I've got them sliding from right to left with a simple tween that is infinite. The problem is that I have a left arrow and right arrow that I want to slide the thumbs in reverse (left arrow i.e. "back_btn") or at double speed (right arrow i.e. "forward_btn") on a roll over of the button. I used the ENTER_FRAME thing to get the mc to reverse with prevFrame when rolling over the "back_btn" but I can't get it to stop when I roll out.
This is what I have so far...
back_btn.addEventListener(MouseEvent.ROLL_OVER, backF);
function backF(event:MouseEvent):void{
slidingOut_mc.addEventListener(Event.ENTER_FRAME, everyFrame);
function everyFrame(event:Event):void{
slidingOut_mc.prevFrame();
[Code] .....
It tells me the "everyFrame" is an undefined property. I think and hope the problem should be obvious to those who know more than me. Do I need some sort of import at the very start of it all?
View 3 Replies
Aug 1, 2009
how to make image gallery with thumbs and horizontal scrollbar. if images are more that three scrollbar is shown otherwise it will hide.
View 2 Replies
Jul 27, 2006
I was working with the XML Photo Gallery Thumbnail Tutorial on this site: [URL] And I modified it for my own usage, making it a vertical gallery instead, and had no problems until I came upon the thumbnail images. When I replaced the original thumbs with my new thumbs (that I sized based on width, as it is a vertical gallery) it got all screwed up. The images are of all different shapes. So when it loads up, some of them had huge gaps in between them, and others were even overlapping. So I fixed it by making the heights of all the images the same, resulting in a working thumb gallery, but now half my thumbs are cropped off by the mask. I'm looking for a way to fix it where I still have the same spacing between the images, and that they are all the same width, but can vary in their height. Here's the section of the code I am using:
[Code]....
View 1 Replies
Aug 7, 2007
I've built an xml gallery with thumbnails only, layed out in a grid, and am trying to link each thumb to a centered popup. I'm getting a centered popup when clicking the image, but instead of the page loading inside, I'm getting an error message: Not Found. The requested URL /tas-dp_new/undefined was not found on this server.Here is my actionscript:
Code:
cliparray = [];
columns = 6;[code].....
View 2 Replies
Jan 4, 2009
i have an xml driven photogallery with thumbs and the slideshow starts automatically and is cross fading and it has a next/play/pause/for buttons. Everything is fine but i don't like the way the thumbs scroller operates, it's way to mechanical and i would love to add an easing effect to it. How do i do that? this is the code of the whole gallery:
[Code]...
View 0 Replies
Jan 31, 2009
I am loading thumbs from an xml file and placing them into one container (sprite), which i later use for scrolling based on mouse position with this formula:
[Code]...
View 3 Replies
Mar 25, 2005
I need help with page "Thumbs" (as first frame), page "List" (as second frame) and Image gallery (as third and base). So, every frame have one own XML file...When you choose some thumb or list line, you must came to this image in the gallery. Easy, sure.. but i don't know what Function exactly i need to use.It's one flash move, hence it doesn't work with getURL or loadMovie...Some exemple with 3 separate pages here: yuri.fr
View 1 Replies
Jun 15, 2007
im trying to do a dinamic link for my dinamic thumbs gallery. But i dont know how to propagate it. here is my function for my show next button PHP Code:
[Code]...
View 1 Replies
Dec 10, 2010
I`ve been trying to make a scroll gallery depending on mouse movement, but I couldn't make it work.
Now, i found a script that works fine, but i have a problem at the beginning and at the end, because i can see a part of each image. If i put the mouse off stage, each one is shown enterily but when i tried to click them, i can see a small part of them.
I guess i should adjust the code, but i can't understand all the lines..
the code i founded on kirupa's forum is this one:
Code:
this.onMouseMove = function() {
constrainedMove(bg_mc, 4, 0);
};
[Code].....
View 6 Replies
Apr 8, 2009
In realation to the following tutorial on [URL]
I was wondering if anyone can tel me how to do the following:
I have this xml gallery embeded on my webpage. Each time the page loads I want the xml gallery to jump to a random position and display the relevant information.
View 1 Replies
Jun 7, 2008
I am building a gallery which scroll the thumbs according to mouse position. It all works but I try to tell the scrolling to stop with the last thumb on each side, and there I am stuck. I attach the scroll function. The inner if statement is meant to stop the scrolling at a certain point (the 800 is just a number I try, I need to make it more flexible). It works when the mouse move to the right but does not work when it moves to the left.
View 3 Replies
Jan 23, 2010
I have made a gallery with xml, and my problem is that when the thumbnails are loaded they move on the Y axis and doesn't want to be in their original placed position. I am attaching a zip with my problematic sample to see what i mean.
Attachments: another_problem.zip (147.0 K)
View 2 Replies
Oct 12, 2009
I'm trying to create a simple gallery of images. Where there are 5 thumbnails visible on the stage at 1 time, with a back and next arrow to show more thumbnails.
[Code]...
I've sourced this code, but I'm having trouble trying to change the y position of the images?
View 2 Replies
Dec 19, 2011
I'm doing flash project slide images but i don't know how set images into area correct position. And textfield load file .txt.
[Code]...
View 3 Replies
Aug 10, 2009
I am trying to use rhamejs slideshow (located here) and I would like to move the scroller to a certain position on the stage but I'm not sure how to do it. My stage is 900px wide with a nav bar along the bottom. All I want to do is move the scroller to the right of my nav buttons and left of another button that is in the far right corner. I would like to stay within that space which expands depending on your browser/screen size. The main stage is set up to resize based on browser/screen size and all the nav buttons are anchored. I basically need the left edge of the scroller to be 535px from the left edge of the stage at all timesI need the right edge of the scroller to be 185px from the right edge of the stage at all times. I have tried editing these lines but after the width of your window gets to a certain point, the thumbs stop scrolling or disapear completely:
Code:
if (nav == "nobuttons") {
scroller._x = 0;
[code]......
View 1 Replies
Sep 17, 2008
I'm trying to get each of my thumbs to load an individual picture but I can't seem to get it working. I have this script that has a trace for each thumb but I don't know how to actually get the thumb images to load individual pictures.I've tried using:img1.onRelease = function() { as a way of talking to each of my thumb pictures but it doesn't work.
[code]...
View 1 Replies