ActionScript 2.0 :: Thumbs In Array For Gallery?
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
Similar Posts:
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
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
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
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
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
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
May 25, 2009
i'm making a horizontal scrolling thumbs bar and before i complete it i want to load each thumb at a time. i'm posting my code(though incomplete at the time but sufficient for what i want help for)[code]
View 2 Replies
Jul 10, 2006
I am quite new to the more advanced coding so here's an easy one for you: I have three images (thumb1, thumb2, thumb3) that I want to load onto the first row. then I want the second row to contain bar1 and bar2.
Obviously this code doesn't work...but I was able to get it to do just the first row (the easy part). How do i get the second set to load in below them? I just left the code off where I left off in my head.I would love it if you could just comment or complete my code rather than pointing me to a tutorial.
[Code]...
View 4 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
Sep 28, 2009
Trying to make a code that dispays a number of products/images. Problem is pretty simple... when I put in a new picture, it ends on top of and covers the last. I want it to end beside the other, on a row. Do I use an image array to fix this?
Also, if I want to position my array/gallery somewhere else on stage, where/how do I adjust the x y values?[code]...
View 3 Replies
Nov 2, 2011
I want to have an array of buttons that each move with mouseover and mouseout. Then once user clicks the button the image is loaded from an array and put onto the screen. Once another button is clicked say B2 the B1 image is removed and a new image replaces it. Here is the working code up to this point with no errors; I am using Flash cs5.
[AS]
var buttonArrayportfolio:Array = [ B1, B2, B3, B4, B5, B6, B7, B8];
for each( var B:MovieClip in buttonArrayportfolio) {
B.mouseChildren = false;
B.addEventListener( MouseEvent.MOUSE_OVER, onButtonOver );
B.addEventListener( MouseEvent.MOUSE_OUT, onButtonOut );
[Code] .....
View 7 Replies
Jul 16, 2004
I need to create a dynamic image gallery. The files are defined in an array like imgs = ['img1.jpg','img2.jpg']; then I loop through the array. The images should be arranged horizontally..
Code:
this.imgs = ['test.jpg','bla.jpg'];
var x = 0;
var y = 0;
var i;
for (i in imgs) {
var t = this.createEmptyMovieClip ("thumbnail" + i, i);
var c = t.createEmptyMovieClip ("picHolder", 0);
var thumb = imgs[i];
c.loadMovie (thumb);
c._x = x + i * c._width;
c._y = y;
}
View 5 Replies
Aug 27, 2009
I am currently in the process of making an image gallery at university over the period of the semester. Eventually it will be able to search through flikr and pull thumbnails from there but for now we are just getting the fundamentals working. Last weeks task was to have the int amount of thumbnails show up depending on the number u placed in the search field.
So in other words i type in 3 in the search field, and 3 placeholder images show up. The problem is having to remove them from the stage and the array so that when u type in 2 or 1 after having typed 3, that it erases the last search results from the array and the stage. This is my code below which half works. It will place however many images you tell it to, but will not erase them next time u press search.
[Code].....
View 0 Replies
Dec 18, 2003
I found this code online. it is for a image gallery that fades in and out as it transition from one image to the next.. the images are load through an array command... it loads the first image, etc.... what I wanted to know is where should i put a Math.floor(Math.random()*this.pic_arr.length); in the string of code... to make the gallery start randomly in the array and then continue onto the next image... also, for some reason, there is not a common directory for all the images, like this script:
[Code]...
View 1 Replies
Nov 24, 2010
making my image gallery, but it only works as each image in the array is clicked. Now I am trying to make the gallery move automatically to the next image in the array every 5 seconds while still giving the user the ability to click on an image to view the one that they want.Here is my code so far (like i said it works great, but only as a click-able gallery):
import flash.display.Loader;
import flash.net.URLRequest;
import flash.events.Event;
import flash.display.Sprite;
[code].....
View 1 Replies
Sep 25, 2009
I've created a photo gallery that dynamically loads images into a movieclip entitled 'gallery'. Right now the images are listed in an array. is it possible to make an Array of Arrays so that I could load different Arrays for different image galleries? Is this somewhat how it would work? Lets say I were to switch to a section entitled 'landscapes' which we will pretend is the array "var a:Array = new Array();" for now.
[Code]...
View 7 Replies