ActionScript 2.0 :: Kirupa XML Thumbnail Gallery... Preloader For Thumbnails?
Oct 17, 2005
I'm getting quite comfortable with the XML thumbnail gallery here on the Kirupa site... but wondered if there was an easy way to have a preloader for the thumbnails? I don't really have an idea how to set up the code for that.
View 2 Replies
Similar Posts:
Aug 26, 2005
but is there a way to make the thumbnails like, grid form, like in the examplerather than scroller? because i dont really like the scroller, and im not sure how to set them to grid
View 3 Replies
Nov 26, 2009
How can I add links from the XML file to My large image? I tried inside the functions prevImage, nextImage e first Image the code and didnt work:
picture.image[p].onRelease = function (){
getURL(links[p], "_blank");
}
picture is the movie clip that receives the large images and links is the array that I created to recevie the nodes with links from the XML file.
View 4 Replies
Aug 4, 2007
I amusing the great Kirupa Flash gallery and have tweaked it so that I only am using the thumbnail scroll box to link to external html or asp pages.The xml file all loads correctly, though when I pass the "link" to the getURL the output is the entire XML "link" node.[code]
View 11 Replies
May 19, 2011
I got a vertical xml gallery from this thread.
[URL]
It's working fine but my problem is my thumbnails having different heights. The code supports only the fixed height thumbnails. Anybody having idea how to automatically adjust thumbnails gap with different heights.The code is below for adjusting the gap.. Red comment marked that area
Code:
function thumbnails_fn(k) {
thumbnail_mc.createEmptyMovieClip("t"+k, thumbnail_mc.getNextHighestDepth());
tlistener = new Object();
tlistener.onLoadInit = function(target_mc) {
[code]....
View 1 Replies
Oct 1, 2007
I made a xml gallery using kirupa's xml gallery tutorial and then i added thumbnails.It all works fine.Although i managed to have the jpg's loaded fullscreen i dont know how to use smoothing for the resize of the movieclip container. I have a code that resizes the movieclip to the dimensions of the stage onresize function.I'm trying to put in the code an attachBitmap function so i can have it with smoothing to true. But i haven't managed how yet.[code]
View 2 Replies
Feb 28, 2008
Is it possible to load backgrounds for the thumbnails in tutorial http:[url]...Now I have a mc containing multiple white backgrounds at 65x65px, which loads and places it under the loaded thumbnails (like a mask), but I would rather like it to load a singel mc, seperatly for each thumbnail. How can I do that?
View 1 Replies
Mar 21, 2011
I have created a Photo Gallery based on the excellent tutorial, the only thing I would like to add is Numbers to the Thumbnails.
I assume I would need to use the attachMovie command but I am not sure of the Syntax and where it would be used in the Photo Gallery code.
View 1 Replies
Jun 19, 2007
I am trying to modify the Kirupa image gallery to use numbers in place of thumbnails.So far I have been able to place buttons on the stage using attachMovie()and I have been successful in getting them numbered properly. Where I am failing is in getting the individually placed buttons to load an image.A more detailed list of what I am trying to do:
I want to attach a button that has a text box to the stage.In that button�s text box I want a sequential number to appear.When a button is pressed I want the corresponding image to display(button 1 loads image 1).I have the first two working; not doing so well with the last.Here is what I have:
PHP Code:[code]...
View 8 Replies
Nov 17, 2009
That said, I would like to alter some of the code to allow the thumbnail scrollbar to begin scrolling once the page has loaded. Here is what the code looks like as it is right now.
[Code]....
View 1 Replies
Feb 7, 2010
How would I go about editing the code for this tutorial: http:[url]......so that there are 8 thumbnails displayed at a time and instead of scrolling based on mouse position, the user clicks a next or previous button to display the next set of 8 thumbnails in the xml?I attempted to get it to display the thumbnails vertically by changing some x values in y and a width variable into height, but that failed miserably.This site is an example of what I am trying to accomplish: http:[url]....
View 1 Replies
Apr 20, 2009
I have flash CS4 and some time ago made a simple movieclip in an older version of flash.I now want to make a simple gallery with thumbnails that show a larger image once you hover over the thumbnail.[URL]I forgot most of the workings in flash, so it's difficult to make what I want.
View 2 Replies
Apr 12, 2009
I've been trying to add a preloader to my thumbnails, but it has been quite difficult (really considering the idea of buying an AS3 book).
Well, this is what I have First the code to call the Thumbs from the XML file.
function callThumbs():void {
for (var i:Number = 0; i < my_total; i++) {
var thumb_url = my_videos[i].@THUMB;
[Code].....
What I really need to know is how to add a MovieClip to container_mc and when the Thumb is loaded, remove this MovieClip from it?
View 1 Replies
Oct 30, 2005
How to construct a preloader for the thumbnails in the xml gallery.
So far, I've got Code:
this.onEnterFrame = function() {
nfilesize = tscroller.getBytesTotal();
nloaded = tscroller.getBytesLoaded();
thumbpreload._visible = true;
if (nloaded != nfilesize) {
thumbpreload.thumbpreloadbar._xscale = 100*nloaded/nfilesize;
else {
thumbpreload._visible = false;
}};
I'm having 2 problems (that I know of)... I'm not sure that "tscroller" is the movieclip I want to preload for the thumbnails, and I can't get my movieclip entitled "thumbpreload" (which is set _visible = true; here) to show up. This preload function seems to conflict with the main image preloader and cause it to stop working. The file I'm using can be found here: [URL]
View 2 Replies
Dec 5, 2007
I've got a website with three links to three different thumbnail galleries. When I click the link to a gallery that has a lesser number of thumbnails, it fills the difference in numbers in with thumbnails from the previous gallery.
View 1 Replies
Jul 6, 2008
i have been able to customize this tutorial for my needs but i am still having one problem with the thumbnails. Unlike in the tutorial i have thumbnail that are two different sizes. most of them are 100 pixals wide but some are 75 and when they are different sizes like that it screws it up...they overlap or leave big gaps between thumbs.
below you can find the code i am using. the line of code that places the thumbs in there position is
target_mc._x = hit_left._x+(target_mc._width+5)*k;
i was able to stop the thumbs from over laping by replacing target_mc._width with 100 but that doesnt fix the big gaps between the images that are 75 wide.
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
[code]....
View 4 Replies
Jul 2, 2008
I am customizing the Photo slide show with thumbnails from this site. It is great. I was able to customize it so it would work with bigger pics (640 width X 480 height) basically wider pics then they are tall, but I also have pics that are taller then they are wide (480 height X 640 width).
1. in the thumbnail area the taller pics load over top of the pic before it and then there is a large gap after it.
2. the movie clip that loads the full size image aligns the pics to the upper left corner of the movie clip. I would like it to center the taller pic. I know I will have the same problem with the wider pics when I make the viewing area 640x640 they will look to high.
here is the code that is used:
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
[code]....
View 5 Replies
Jun 28, 2006
In Kirupa's tutorial, Adding Thumbnails, when an image is loaded in the thumbnail viewer, you are able to click on it and load an external page. I've been searching for a while, but I am unable to figure out how to accomplish this.
View 3 Replies
Feb 4, 2009
Mainly been making websites all these years, but in my last year at school i started to get interested in Flash Actionscript. I've been at home for over a year in 2008, unemployed. I got back to school in September 2008 but quit the education as it wasn't for me. Now I'm looking to get a job, but I need a showcase, so I'm building my portfolio at the moment.
I'm currently working on my portfolio which i wanted to make in Flash using XML generated content. I got as far as getting the content generated in my prototype. Now I'm trying to build the real thing. I currently got a scrollbar on the left which contains the thumbnails. I used the custom scrollbar from [URL] ([URL]). The content in it is generated with xml and actionscript though.
[Code]...
View 2 Replies
Feb 6, 2009
i was looking for gallery looking like this site [URL] i was looking gallery first page title gallery then Big image like this with description.
View 1 Replies
Aug 11, 2006
I have built a thumbnail gallery based on the tutorial on this site. It works great, but I'm having trouble with my thumbnails loading in order.I am calling images from an xml file, and placing them in a horizontal scrollbar. All of my thumbnails are different widths. Therefore, I need to be able to get the width of each thumbnail to position it in relation to the one before it and so on. Because of this, I'm using onLoadInit to position the images. Now, this creates a random horizontal order, based on how fast they load on the user's computer, not on their order in the xml file. I would use onLoadStart or onLoadComplete, as this would call them in that order, but the width is not available at this point in the loading, so they pile on top of each other.
View 5 Replies
Mar 30, 2006
I am having problems formatting the XML Flash photo gallery. I can't seem to get the photos to center on the page. Some of my photos are vertical and others horizontal, and they are all pushed to the left. I don't want to make all the photos the same width. Is there any way to use css to style the xml? Or is there some other way to do it? Url...Also, if anyone notices any other problems with the gallery,please let me know. This is only the second thing I've done in Flash, and I may have made some mistakes when I changed things.
View 14 Replies
Jun 22, 2003
Using this preloader w/percentage from the kirupa tut.
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.loadBar._width = getPercent*100;
[code]....
I'm having trouble calculating the getBytesTotal method to return less that the total. In other words, I'd like to start the movie before it has fully loaded. Lets say, 75% loaded then gotoAndPlay.
View 3 Replies
Aug 31, 2005
I am trying to edit the code from o that the effect will look more like a cross-fade. So what I am trying to do is have the next image pre-load, the previous image alpha fade from 100-0, while the new one fades from 0-100
View 2 Replies
Aug 9, 2006
I found this photo gallery on kirupa but i need it to loop and i can't figure it out. It stops on the 7th image and doesn't go back to the first.
View 4 Replies
Oct 10, 2006
I tried the tuto from Kirupa for photo gallery and xml .I modified the xml file with my own pictures.( I copied it and added the path to them)But when I try the swf this message appears :
Error opening URL "file:///C|/Documents%20and%20Settings/user/Desktop/divers%20flas%20et%20swfs/undefined".
Here is an example of one of my xml picture nod :
- <images>
- <pic>
[code]....
This of course means that the image 1.jpg is in folder allimages which is in the folder divers flas et swfs.So why this undefined message ? Is it a wrong path ?
Note : I work with flash 8.
View 4 Replies
Apr 21, 2007
I've been trying to add more galleries the Kirupa Photo Gallery but so far unsuccessfull - i've modified things alittle, but it's mostly the same.
Code:
function loadXML(loaded) {
if (loaded) {
image = [];[code].....
This is as far as i can get before i get errors i cant get out by displaying image[i] in gallery[n].at the current time i can only get the number of galleries and display the images in the first gallery - not change between galleries.
View 8 Replies
Feb 24, 2011
I wanna remove the XML data loading part and replace it with a PHP/MySQL backend for better security and maintance and because XML text handling isnt the best way (in my opinion it s*cks big time) to show text. HTML text through php gives better looking text.What do I already have:- MySQL database and table (containing the fields: "file", "ordercode", description") were "file" is the full path to a image and its name.- PHP script what fetches the data from the table and send it towards FlashFlash output when receiving the array ("nog niet te koop" = ordercode, "tekst volgt nog" = description)
Variabele _level0.myData = [objectnr. 1, klasse 'LoadVars'] {
onLoad:[functie 'onLoad'],
Array
[code].....
View 2 Replies
Apr 18, 2011
I am building a photo gallery for a friend using Kirupa's tutorial (located here: [URL]). The gallery is working out great except for one problem and that is using the keyboard left and right button. For some reason when I press the right arrow on the keyboard to go the next image it jumps to the third image, then the 5th, 7th, 9th etc. As you can see it keeps skipping one image, the same thing happens going backwards. However, when I use the onscreen previous/next buttons it cycles through just fine.
View 1 Replies
Jul 19, 2004
I'm using Kirupa's Flash MX Photo Gallery located at [URL].When the script calls the images it's going to use, it says:
// fill this array with your pics
this.pArray = ["image0.jpg", "image1.jpg", "image2.jpg", "image3.jpg", "image4.jpg", "image5.jpg", "image6.jpg", "image7.jpg", "image8.jpg", "image9.jpg"];
How can I call these images' names from a simple external text file? Purpose: I want to have the ability to change the photos in the gallery quickly without tweaking the Flash file.
View 6 Replies