ActionScript 2.0 :: Loading Thumbs 1 By 1
Sep 8, 2009
I'm trying to make a code to load my thumbs 1 by 1. It should start to load the next thumb, once it's ready with the previous one.
I'm reading my thumbs out of an xml. It seems like it's placing them randomly.
Code:
var numPics = galleryList.length;
function placeThumbs() {
var i = 0;
[Code]....
View 1 Replies
Similar Posts:
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
Jun 29, 2006
The problem I have is that I can't make it to work: when I click the next button, the first loaded thumbs go away and the leftovers show up in the grid.
I justt want to show 30 thumbs a time, and in my sample I have extra 5 thumbs, but this could be any number.
View 1 Replies
May 9, 2009
i needed to load my thumbs one by one in order of first to last.
import fl.controls.ProgressBar;
var columns:Number;
var my_x:Number;[code]....
View 2 Replies
Jul 14, 2008
I have been able to customize the adding thumbnails tutorial to meet my needs but I have one remaining issue. I have gotten some suggestions from some people on here to try and help me fix this but I can not get it to work.I have tried on my own and I am unable to get it to work. The thumbnails are loading in reverse order from they way they are listed in the XML file or when I simulate download the thumbs load randomly. Is there a way to force them to load in the order they are listed in the XML file?[code]
View 6 Replies
Jan 20, 2009
I dont know if i have seen this somewhere or i imagined it but if you have a gallery of some sort and lets say your thumbnails are sequenced in one line from left side of the screen to right.
At the beginning, when you are loading the page first time, and all thumbs have to load one by one, with preloader or not -> is it possible to control thumb loading order, so that they load from left to right, and not appearing by some random sequence...
I dont know if i have described it well, but maybe somebody understood me
View 4 Replies
Sep 12, 2006
I'm loading several thumbs of a XML gallery in sequence, one after another, in the _x coordinates. The problem is that the thumbs do no have all the same _width, so they create some empty spaces between them if I set a distance. how can I set a distance of 5 pixels between the thumbs, no mather the width they have?
View 3 Replies
Dec 21, 2009
I'm trying to do something a little crazy from what it seems here, I have a carousel that I am modifying to have thumbnail images added to dynamically from an XML file. Now me being the practical persona I am I did NOT want to make little images for each picture in the gallery so I used a neat little class from a blog called soulwire
[URL]
the class lets me use the bitmap properties of flash to fit a copy of my image into the thumbnail are for my carousel Icons, later I will use the same info to click and show the large image for each of these icons.
My problem is that I can get it to work but only the last generated MovieClip gets an image, and it's not even the correct one. it gets image #2 in clip #5.
It seems as though my Event.COMPLETE for my loader is not firing for each image, if it is I'm not sure why I'm just getting the image in 1 icon.
here is my Code:
Code: Select all// Import the required classes
import uk.soulwire.utils.display.Alignment;
import uk.soulwire.utils.display.DisplayUtils;
[Code].....
View 1 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
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
Apr 24, 2006
Just want to put the thumbnails in a movie clip.Not any thumbs are appearing, there is a mc on stage, there are images and thumbs, there is a xml_file�
Code:
var gallery_xml = new XML();
gallery_xml.ignoreWhite = true;
gallery_xml.onLoad = function(ok) {[code]...
View 14 Replies
Jul 24, 2007
Been looking around this forums (without result) how I can add a square to make a 1 pixel border around my thumbs. I've been using following gallery
[URL]
change to the original code off the gallery.
View 1 Replies
Jan 12, 2009
I am attempting to run the XML Photo Gallery with Thumbnails from the tutorial, but contained within an empty movie clip of another swf. I've been trying to rebuild my website in Flash and I was attempting to utilize this external gallery to keep the file size down. The Test Movie of the thumbnail_initial.swf works perfectly on its own, but the thumbnails no longer scroll when I test the website.swf that I have loaded thumbnail_initial into. I created an empty movie clip (analog_mc) and placed it where I want the gallery to load. On the page containing analog_mc (timeline path is Scene1 / siteContent / analogFrame), I have tried both of the following code in the actions layer:
analog_mc.loadMovie("thumbnail_initial.swf");
and
loadMovie("thumbnail_initial.swf", analog_mc);
I get the same result with either: the gallery loads correctly where I've placed the analog_mc empty movie clip, the first three thumbs appear across the bottom, the Previous and Next buttons function, but the thumbnails do not scroll. I am using Flash CS3 on Vista, my AS skills are elementary as well as my XML.
View 2 Replies
Apr 20, 2010
how to make a custom hslider in Flex 4 (spark) with two thumbs? Since Flex 4 the thumbcount property of the slider component isn't longer available (at the mx component it was easily to set). I have to style the track and the thumbs.
View 5 Replies
Jan 14, 2009
I have a master movie clip with a movie clip embedded. This is to create a photo gallery. With in the master movie clip I have "buttons" or thumb nails of pictures to be displayed from the embedded movie clip (which are the pictures). I can't seem to get the thumbs to call on the frames where I want the movie motion tween to start to show a picture (the tween is to give the effect of fading in). Below is the code that I have (note that for the same buttons I have added some effect when the mouse rolls over and out of the thumb so disregard that part of the code)..
ActionScript Code:
thumb1.addEventListener(MouseEvent.MOUSE_OVER,img1Over);
thumb1.addEventListener(MouseEvent.MOUSE_OUT,img1Out);[code]............
View 4 Replies
Sep 7, 2009
n somebody point me to a tutorial in AS2 for making an autoscrolling bar which contains thumbs. It should scroll very fluidly on mouseposition. I have no idea how to create this.
View 2 Replies
Oct 31, 2009
I want to load YouTube video thumbnails in my as3 project, i have tried to load via :[URL], but it works in local good, however when i upload it to my website it doesnt load thumbs. is there an api that i can use to load thumbnails? i am using TubeLoc to load videos, but i didnt find a function to load thumbs in this api.
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
Sep 26, 2010
I have loaded thumbnails using xml, and wanted to click on the thumbs and goes to a specific url, but failed so far.
here's my code:
private function loadXML(e:Event):void
{
xml = new XML(e.target.data);
//adding thumbs
[Code]...
View 9 Replies
Mar 5, 2011
I'm trying to build an application that displays randomly thumbnails in a grid, but having problems with the random part. I'm displaying the thumbs in grid like this:
[Code]....
View 4 Replies
Mar 12, 2011
i'm trying to make a photo gallery but when i try to scale them, i get this distortions in the thumbs. i try to find how to fix this problem, searching in google, i found that i have to convert them to bitmap, but i can't make it work.
[Code]....
View 0 Replies
Mar 5, 2011
I'm trying to build an application that displays randomly thumbnails in a grid, but having problems with the random part.I'm displaying the thumbs in grid like this:Code: Select all//building a thumbnail container for each one of the projects from the library
var thumbContainerMisc_mc:ThumbContainer = new ThumbContainer();
thumbContainerMisc_mc.x = (200+1) * x_counterMisc; //setting the thumbnail x
thumbContainerMisc_mc.y = (200+1) * y_counterMisc; //setting the thumbnail y
[code]....
View 1 Replies
Nov 13, 2006
I have created this XML image viewer from multiple sources and Scotty's help . I have run into a problem where my thumbnails I load are quite large .swfs...and I need to preload them all until I run the grid_maker_01 function to display them. I have tried many things...but still am having a problem. I need to preload all the thumbs first, THEN display them.
View 3 Replies
Feb 21, 2008
how to preload all the thumbnails and the first picture from an XML.
i figure it would be something like this place all thumbnails into a holder(thumbnail_mc) and getBytesTotal() and getBytesLoaded() then getBytesTotal() and getBytesLoaded() of the first picture which is in it's own holder(image_mc)add the getBytesTotal() together add the getBytesLoaded() together then create preloader from these
View 1 Replies
May 21, 2009
I am placing thumbs on the stage in a grid and i have few categories of thumbs, by default first category loads, and then you can choose between other categories.
in this case, removing preloader on line 91 causes an error, but preloader is there, i can trace it just fine (and like i said, it works (no error) when i dont simulate download, or wait for all the thumbs to load before switching to next category, so the code must be right)
View 2 Replies
Jun 6, 2009
i, am building an portfolio site and i have come a long way (still a beginner) but now i found an problem. After i load xml file for paths to portfolio assets i load actual jpg's and/or swf's. But i am stuck since i do not understand how to implement padding so thumbs will be spaced evenly.[code]but than how to position first thumb?
View 3 Replies
Nov 10, 2010
im doing a flash gallery following a tutorial of oman3d for a website im doing, and im looking the way for adding to the thumbs a space between them but i dont know how to do them .. here's the code
[Code]...
View 5 Replies
May 16, 2011
I'm working on AIR app, that makes different operations with local files and i need to display thumbs for selected video files (for example 1st frame). How can i do that for .avi, .flv, and .mp4 files?
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