ActionScript 3.0 :: Control Thumbs Loading Order?

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


Similar Posts:


ActionScript 3.0 :: Load Thumbs In A Specific Order?

Aug 4, 2010

I have a gallery set up with three primary images. Clicking a primary image brings up it's specific subset of alternate views for the product.

I've managed to get the loading and placement down as I need it, but the images are not loading in the correct order. I've tried several solutions, the current one is that an array of each Sub Image is processed in order. It looks kinda of sloppy but image 1 loads, and when image 1 is complete, image 2 loads. After each image loads, it is put into another array. This array is used to resize and place the files. However when I do so, instead of the placement order being

item[0]
item[1]
item[2]
item[3]
item[4]

it keeps ending up like this:

item[4]
item[2]
item[1]
item[3]
item[0]

Here is the relevant code. When the following function starts with sArray, the items are confirmed to be in order.

Code:
function loadSubs(e:MouseEvent):void//LOAD SUBD
{
clearGallery();

[Code]....

View 14 Replies

ActionScript 2.0 :: Control Thumbs In Array For Gallery

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

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

ActionScript 2.0 :: XML Photo Gallery - Replaced The Original Thumbs With New Thumbs It Got All Screwed Up?

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

ActionScript 2.0 :: XML Loading Thumbs In Grid?

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

ActionScript 3.0 :: ThumbGrid, Loading Thumbs One By One?

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

ActionScript 2.0 :: Flash MX 2004 AS 2.0 Loading Thumbs

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

ActionScript 2.0 :: Loading Thumbs With Different Widths And Distributing Them On The Scene

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

Actionscript 3.0 :: Loading XML Imgs To BitmapData And Adding To Dynamic Thumbs

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

ActionScript 3.0 :: Gallery - Loading Thumbs From An Xml File And Placing Them Into One Container (sprite)

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

Actionscript 3.0 :: Control Firing Order Of MC's With Timer Class?

Sep 11, 2010

I am working on a card game.When the game initializes, 2 cards get dealt to the dealer and 2 to the player. Each card MC is created dynamically. When you hit the deal button, the cards are dealt, but all appear at the same time. So i figured i would try using the Timer class in order to delay each card so they are dealt one-at-a-time. Seemed easy enough, but evidently i am missing something obvious and probably embarrassing. The short, simple code, which i expected to be a no-brainer, doesn't seem to want to work. My ignorance with the Timer class isn't helping where i am going wrong or if i am way out in left field? I created a Timer that repeats 4 times(repeatCount). I was thinking that i could target e.repeatCount with a case statement and fire off each card. I can't seem to get it working though.

Code: Select allimport flash.events.TimerEvent;
import flash.utils.Timer;
var dealTimer:Timer = new Timer(200, 4);

[code].....

View 2 Replies

ActionScript 3.0 :: [CS3] Flash Interface For Client To Control Play Order Of External Swfs?

Jan 14, 2009

My client has approx 12 different presentation .swf's all with a beginning, middle and an end (phew!). I need to build an interface that views those 12 individual presentations as thumbnails on a single page and allows my client to click and drag whichever ones they wish to use into a separate little container above and in-doing so create a new required running order (left to right) each time they use my interface... so that once they have decided that running order they can somehow use the result for their required presentation. They will be using this interface ongoing throughout the year for various presentations all that will require maybe just a few of those individual swf's in different orders.

View 6 Replies

ActionScript 2.0 :: Loading In Thumbnails In Order?

Jul 6, 2009

Im loading in tumbnails from an XML. Now they appear in a random order, i want them to be in the order they are in the XML file.

Quote:

thumbNails_xml.onLoad = function() {
var listenerArray:Array = new Array();
var tempArray:Array = thumbNails_xml.firstChild.childNodes;
var tnLoader_mcl = new MovieClipLoader();

[Code].....

View 5 Replies

Loading Swf Files In To A Movie, In Order?

Jul 10, 2009

In AC2, I am trying to load .swf files in to a movie.

I know how to load them, and I can load them at random. But what I want to know is, if I have say 500 movies, named movie_0.swf movie_1.swf movie_2.swf etc...

is there a way I can load them ten at a time, in order of highest number to lowest number. In a specific location.

In other words, I want to be able to have many external swf movies, about 400px wide by 100px tall, and load 10 at a time in to a 800px wide by 1200px tall movie, 10 movies at a time, in order of highest to lowest movie name number. Each in a specific place, with a next and precious button to show the next 10 or last 10.

Im basically working on my first site, and want to use something like this so I can show my latest articles first when someone clicks on the articles section of the website.

Now resolved with AS3

PHP Code:

var loaderone:Loader = new Loader();
loaderone.contentLoaderInfo.addEventListener(Event.COMPLETE, loadedone);
loaderone.load(new URLRequest(prefix + totalfiles-- + ".swf"));
function loadedone(one:Event):void

[Code].....

View 1 Replies

ActionScript 3.0 :: Images Not Loading In Order

Jul 15, 2010

I noticed something after executing my slideshow. The images aren't showing in the order they are in the XML (and that MUST be in order).[code]The problem resides in the fact that Event.COMPLETE when loading images add probably images in the order they are LOADED and not LOADING. Is there a method which will make them add in the order they are called?

View 5 Replies

ActionScript 3.0 :: Images Not Loading In Order?

May 27, 2010

I have a problem with loading images. The images are loading random wise whats the problem with the code.When i trace the url its displaying randomwise.

ActionScript Code:
private function createContainer():void {
for (var i:Number = 1; i<=myXML.images.length(); i++) {

[code]........

View 4 Replies

ActionScript 2.0 :: Loading Swf Movie One After Another In Order?

Aug 5, 2007

I have one main stage in Flash 8 where I am loading different swf's into a main movie clip. And since some of swf's are bigger then others they are loading randomly. I would like to know is there a script that can put some of the swf's on hold and load them as the scipt tells in which order?

In my scenario i would like to place them to load in some order in my main movie clip.

I am relativley now to flash, but I have basic scills to do some basic stuff.

View 1 Replies

Professional :: Loading File Order Reverse?

Sep 14, 2010

I try to load 4 pictures. Loading is fine but the order is reverse.This is the code:
 
function showThumbnail(id:String, xmllist:XMLList):void{
var pics:XMLList = xmllist.(@name == id).*;
for each(var i:XML in pics.pic){
var loader:Loader = new Loader();

[code]....
 
The "I" is the picture index. I think the order should be 1.png 2.png 3.png 4.png just like the order of  the xml ~~This is the output:
 
I:1 mc.x:11 mc.y:27 file:///D|/works/Flash/thumbnails/4.png I:2 mc.x:11 mc.y:210 file:///D|/works/Flash/thumbnails/3.png I:3 mc.x:11 mc.y:393 file:///D|/works/Flash/thumbnails/2.png I:4 mc.x:11 mc.y:576 file:///D|/works/Flash/thumbnails/1.png

View 4 Replies

Flash :: Loading Swf File Within Another Swf In Order To Use It's Functions?

Dec 8, 2009

i would like to load a flash file in order to use it's functions and classes. i would like that this file will be never cached. how can i do that ?

View 1 Replies

Actionscript 3 :: Loading In Files In Order In Flash?

Jun 16, 2011

I'm trying to load a bunch of image files for processing (to make a sprite sheet to be exact). Thusly, I need to make sure those files are loaded in order for processing (otherwise the animations become all wonky).

The code I'm using is pretty standard:
protected function onFileSelect(e : FileListEvent) : void
{

[code]....

View 4 Replies

ActionScript 2.0 :: Button Array, Loading Order?

Oct 7, 2009

I have this script that is working fine.I have some some buttons which when clicked load a .txt file aswell as load an image into a picHolder.However i want it so when the page loads the home.txt is already loaded (at present i have to click the button)

ActionScript Code:
loadListener.onLoadInit = function(){
sizeListener.onResize();[code]..........

View 2 Replies

ActionScript 3.0 :: Functions Loading In Wrong Order?

Oct 20, 2009

How do I stop the visible function coming before the one above it? Here is my code:

ActionScript Code:
root.info2();
infomc.visible = false;

info2 is a function for a button which contains other functions which need to be performed before the button(infomc) becomes invisible. At the moment, it becomes invisible first before any of the functions on info2 begin.

View 2 Replies

ActionScript 2.0 :: Loading Images .. Why Reverse Order

Dec 13, 2011

I'm loading some images within a gallery but I have a trouble.. They appear backwards.. the last one on the xml is the first one shown.. I guess the problem is caused by onLoadInit.. which resizes each images and then place it on stage.. if i make a trace of "i" inside onLoadInit, always give me the last number of "i" (eg. "28"... 28 times)

[Code]...

View 2 Replies

Actionscript 3.0 :: Image Loading In Random Order Using XML?

May 26, 2010

I'm currently doing up my flash gallery and there something bugging me.I'm using XML to load my images dynamically and would like the images to appear in a horizontal manner.

image1 - image2 - image3 - image4 etc.

however, everytime i run the swf, the order of the images are randomized.

Code: Select allvar portraiture_images:XMLList;
var portraiture_total:Number;
var container_portraiture:MovieClip;[code].....

as my images are of different width, I made use of the imageWidth variable to keep track of where the X co-ordinate should be for the next image.

View 2 Replies

ActionScript 2.0 :: Photo Gallery - Loading Order?

Nov 6, 2005

i would like to change the order in wich the kirupa photo gallery script worksnow: fading out old image => loading new image (with loader) => fading in new imagei would like to have this changed in:loading new image (while old image can still be seen) => fading out old image => fading in nex image.

View 3 Replies

ActionScript 2.0 :: Loading Movieclips In Chronological Order?

May 20, 2008

I did it randomly before.. here is what i had

Code:
function attachRandom() {
goAway();

[code].....

View 1 Replies

ActionScript 2.0 :: Loading Order Rollovers In Flash

Sep 10, 2008

I have been trying to get this site to work with rollovers and am frazzled. I finally was able to figure out how to make rollovers in flash, however, they roll to the right, which is where my movie loads into.URL...Is there a different code I should/can use to make it so that the links/rollovers appear on top of the movie that I'm loading in??

View 1 Replies

ActionScript 3.0 :: Order Of Loading External Swf Files

May 7, 2009

I want to play 4 external swf video files so that the first video (intro) plays only once and the rest 3 play in a loop after the first one. So this is the code i'm using in the swf loader file:

[Code]....

View 1 Replies

ActionScript 3.0 :: What Is The Inconsistency - Images Loading In A Shuffled Order

Jul 22, 2009

I'm building a an multimage gallery. Almost everything is working well but a malignant fate that is making the images load in a shuffled random order. Everytime that I click each gallery button it gives a new sequence. If I was a poet I would say that it has no order just like the unpredictable chaos of a party in a drunk anarchist's whorehouse. (and if I was a poet I would not write what I wrote. Whatever!) The array that store the images URLs is showing a proper order. So it makes me think that the problem is on the onClickButton function, but I'm not sure.

[Code]....

View 10 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved