ActionScript 3.0 :: Thumbnail Loading Sequence Using XML?

Oct 29, 2010

Now I'd like to add duplicates of the thumbs so as to appear like a reflection. Created another loader and loaded each file again. (Tried "ldr2.content=ldr1.content" and many other versions of that statement to try and set the second loader's content to be the same as the first's, but could not get anything to work. So I had to resort to loading the thumbs again.)
 
Did that. Still so far, so good. Even used the "rotationX=180" trick you guys showed me to flip the photos. Set the ldr2's "y" to "ldr1.y - event.target.content.height" I learned from yous as well. Got that working and now have two rows of photo thumbnails. Just looking forward to applying a mask (something else you guys showed me) to make the reflection fade real nice.
 
HOWEVER, at run time, it loads the photos into the two rows of loaders in a different sequence. They're displayed OK, and it would work except for the fact that the second row of photos, the ones rotated 180 degrees along their X-axes - the "reflections" - are not in the same order as the first row.
 
how to control the order in which the XML file is loaded so that both rows of photos (thumbs, actually) match up? Do some things just load faster and appear random even though the same XML file is being used?

[Code].....

View 4 Replies


Similar Posts:


Loading Different SWF Files In Sequence

May 25, 2011

I'm doing a presentation where it loads different swf files in sequence. I already have a holder with width = 819, height = 614. Right now, I'm loading 1024x768 swf files in it.

This is the code in use:
loadMovie("movie1.swf", holder);
holder._width = 819;
holder._height = 614;

The swf file is loading in the correct position, but when I test play it, the first one [movie1.swf] loads and plays in it's original size [1024x768], then the following one [movie2.swf] loads and plays the way I want it [819x614]... Then when the whole movie loops again, now, the first one [movie1.swf] plays the way I want it to.

View 2 Replies

ActionScript 2.0 :: Loading Swf In Sequence?

Jun 8, 2004

I have a main movie with 12 buttons (numbered 1-12), each button loads the relevant swf into a blank 'content' MC on the main stage.I also need to have 1 button called 'start' which plays whichever swf is due next. ie; if you are on swf no. 3 pressing start will load swf no. 4. I guess a simple way would be to have the 'start' button tell the 'content' movie to go to a certain frame which has an action on it to load whichever movie is next... ?

View 2 Replies

ActionScript 2.0 :: Loading Sequence Of Images One After Other

Jul 23, 2010

I've got a sequence of 200 images, which are named image_1, image_2 - image_200. All in the same folder. I need to load one, then the next etc, without any human intervention (the reason is below). The following code works locally but when I upload it, it only loads the last image (image 200). I can see why - as the "for loop" is going "full speed", whilst the loading is not being allowed to complete. I need to say "only upload the next image when the current one has finished loading".

My ActionScript Code:
this.createEmptyMovieClip("holder",1);
holder._x = 20;
holder._y = 50;
//timeline.onEnterFrame = LoadMovie;
function GetFileName(name) {
[Code] .....

My reason for this is I'd like to load them sequentially so that once one has finished loaded, load the next (the idea is to build the cache whilst the viewer reads an introduction - the trouble was the image was too large, so I've broken it into 200 tiles).

View 0 Replies

ActionScript 2.0 :: Loading Images In Sequence?

Jul 24, 2010

I need to upload about 200 images but I want them to load sequentially, i.e. when image1.jpg has uploaded, then I need image 2 to upload etc.

Ive attached the Fla. But all the code below:

My trouble is its going straight through the loop and not actually loading the images.

ActionScript Code:
var i:int = 0;
// create and position empty clips for images
// one for load and when the complete - load into the other

[Code]......

View 0 Replies

ActionScript 2.0 :: Loading Several External SWF In Sequence

Feb 5, 2007

I have a 'base' MC on the root. On to which I am trying to load several external .swf sequentially. (sn1.swf, sn2.swf...) I see that there is a small lag or a quick flicker when one movie ends and another loads. Is there a way to solve this so the movies load seamlessly?

View 3 Replies

ActionScript 3.0 :: Loading Image Sequence Into Flash?

May 12, 2009

way to load an image sequnce to flash in as3, so that the sequence remains in order, on a timeline.

View 6 Replies

Flash AS3 - MovieClips Not Loading In Numerical Sequence

Feb 23, 2011

I am loading an array of movie clips and adding them to the stage with flash as3, but the problem is that the movie clips are added to the stage as soon as they finish loading, and not in order of there position in the array, so the order on screen appears messed up. How do I ensure that they are added to the stage in the same order that their references exist in the URL?

Here is my code:
var currentLoaded:int = 0;
function loadThumbs(){
for (var i in project_array){
var thumbLoader:Loader = new Loader();
[Code].....

View 3 Replies

ActionScript 3.0 :: Loading Multiple External SWF Files In Sequence?

Dec 3, 2008

I have a fla file that I've created to load 7 external swf files. I am able to create the code to load one swf file without any trouble but I can't figure out the code to get it load swf #2 when #1 is done, and so on. My code for one is below:

[Code]...

I'm fairly new to AS3 but this seems like a pretty basic thing to do.

View 8 Replies

Professional :: Loading Sequence - GotoAndPlay Scene 2 - Frame 1

Apr 5, 2011

how to code a simple load sequence scene. This is how I had it set up in AS2 -I've got two scenes, "Scene 1" and "Scene 2". I've got a 10 frame shape tween in Scene 1. On the 9th frame, I assigned actionscript that will check to see if frame 40 of Scene 2 is loaded, and if it is, gotoAndPlay Scene 2, Frame 1. Then have action in frame 10 of Scene 1 that says to gotoAndPlay scene 1 frame 1 of the current scene. This way scene 1 loops until frame 40 of scene 2 is loaded, at that point, scene 2 frame 1 plays. 

How could I set this up in AS3? Here is what I tried - I've got two scenes, "Scene 1" and "Scene 2". I've got a MC that is a simple shape tween that loops in the "Scene 1". I'm trying to assign codein "Scene 1" that will check to see if frame 40 of Scene 2 is loaded. If it is, gotoAndplay Scene 2 frame 1. If frame 40 of Scene 2 is not loaded, continure to loop the MC unitil it is. Here is the code I've got for the MC in the "Scene 1"

[Code]....

View 4 Replies

Loading Second Image From Thumbnail Array?

May 26, 2009

I have a page that I'm trying to build that has a scrolling image bar at the bottom but I want to also show the full size image in flash above the images that come up in the thumbnail array when you mouse over each image in the array. I found some code that makes the thumbnail array work but I have no idea how to display the second larger image on mouse over because its loading the images externally... what can I do? Feel free to email me back.

View 1 Replies

ActionScript 1/2 :: Loading The Thumbnail Image?

Oct 1, 2011

[URL]I can change the images and even the number of pieces. When I create a puzzle with a large amount of pieces you can't really tell what the whole image is suppose to look like.  So what I would like to do is after the image is loaded and put in the listener, create a small version of that same image so the user can now know what the image should look it. 

View 5 Replies

ActionScript 2.0 :: Xml Thumbnail Gallery Xml Not Loading?

Jul 18, 2006

Ok so i have looked thru the forums for the past two days trying to solve my issue and i didnt find anything that works. I have the xml thumbnail gallery from the site working here.Its the base code except i change some things so that it would work if i loaded with the mxloader component into another movie. When i try and do so the XML file doesnt load. you can see this here. Im not sure if theres something else that i need to do to make this work or what, but i cant seem to figure it out. all the paths are absolute paths (http://ect...). and even stranger is that it worked like 3 or 4 times when i first started then stopped working. so i dont know if its

View 1 Replies

IDE :: External SWF Scrolling Thumbnail Loading?

Apr 8, 2009

I am using a scrolling thumnail bar to load external swf with transitions, I got to work using an earlier thread, by including the _parent property, however it loads the same swf everytime. I am really stumped.

heres the code i have actions layer first frame

Code:
currMovie = "swf2";
holder.loadMovie(currMovie+".swf");
panel.onRollOver = panelOver;

[code].....

View 1 Replies

ActionScript 3.0 :: Loading Thumbnail From XML (XMLList)

May 29, 2009

how to load thumbnails from XML (XMLList), and if it reach to image #5 it will keep loading in a different row.

This is what I got now, but it will only load in one Row.

// Start here
var imageLoader:Loader;
var xml:XML;
var xmlList:XMLList;

[Code].....

View 2 Replies

ActionScript 3.0 :: Loading Multiple Images Using Array - Keyframes Sequence

Sep 8, 2011

I am using below code to load images from array, which works fine. My unsolved question how do I put all the images after it has been loaded to holderMc_animation (which in in root, with instance name holderMc_animation)...is sequence order?
image 1 goes to keframe1 of holderMc_animation
and image 2 to keyframe 2 of holderMc_animation and so on...

Actionscript Code: ......
Have uploaded FLA file

View 5 Replies

ActionScript 3.0 :: Loading Multiple Images In Sequence Into Series Of Movieclips

Aug 28, 2011

I am loading these 5 images into a sequence of boxes. Everything works fine except Images are not coming in sequence. They are coming in random order. for Eg.: Box1 contains 3.png, Box2 contains 1.png..so on..[code]

View 7 Replies

ActionScript 3.0 :: Loading Large Version Of Thumbnail Above Scrollbar?

Jun 30, 2010

I am loading the swf of this scroll bar into my main project using a button. How do I make a large version of the thumbnail load above the scroll bar?

Here is the code that is on the main timeline:
//Import TweenMaximport com.greensock.*;
//Save the horizontal centervar centerX:Number = stage.stageWidth / 2;
//Save the width of the whole galleryvar galleryWidth:Number = infiniteGallery.width;
//Speed of the movement (calculated by the mouse position in the moveGallery() function)var speed:Number = 0;
[Code] .....

View 1 Replies

ActionScript 2.0 :: Flash 8 - Dynamic Photo / Thumbnail Loading

Aug 30, 2006

I've been going through a lot of tutorials online regarding photo galleries etc., and not many seem to facilitate shrinking the actual photo for use as a thumbnail (possibly due to the performance limitations). My project won't have that problem, as it will be stored on an internal network. basically, I want to dynamically load a picture and shrink it for use as a thumbnail in a gallery.

View 5 Replies

ActionScript 3.0 :: Method - Loading Thumbnail + LargePic - Matching Them To Another?

Aug 13, 2010

I am loading 20 thumbnails. I am loading 20 large pictures of the thumbnails. Large pics load second, pushed into largePicArray They all load at different times. So I can't just throw them in their own array, and them call upon them by their elements. So I can't push 20 thumbs to array1, and 20 large pics to array2, and hope that their elements are in the same order. It won't happen.

So my Q is this. What is the easiest way to place them in the same element order after they all have loaded? So that, for example, "thumb17.jpg" can be in any element of its thumbArray, and then "largePic17.jpg" would be in the same element position, in largePicArray. If "thumb17.jpg" is in element 5 of thumbArray, I need largePic17.jpg to be in element 5, in largePicArray.

I have a few ideas, but I want to hear ideas. Maybe you know a nice, easy route?

View 5 Replies

ActionScript 2.0 :: Loading Certain Images When User Click On Thumbnail

Jan 1, 2005

I am working on a website where I want certain images to load whenever a user clicks on a thumbnail. I want a preloader to appear before the image is displayed. I created this so far:

mcLoader = new MovieClipLoader();
loadListener = new Object();
mcLoader.addListener(loadListener);
mcLoader.loadClip("foto.jpeg", placeholder_mc);
loadListener.onLoadProgress = function(placeholder_mc, loadedBytes, totalBytes) {
[Code] ....

When I preview this of course I see my image, but I want to know if the preloader works. So I hit ctrl+enter again and... nothing. The progress bar (bar_mc) blinks once and then blank... a white screen... Besides, I want this code to be executed when a user clicks a thumbnail, how can I implement this on a button, while at the same time, the first thumbnail should load automatically, so there's no exmpty page when the user first opens the website?

View 1 Replies

ActionScript 3.0 :: Loading Fullscreen Of Thumbnail Images - Parse Some Data

Oct 2, 2011

I'm trying to find a way to use the Twicsy API to load a fullscreen of thumbnail images in Flash. When you use the Twicsy API to look for the pics via the [URL]. You get the following results.
[Code] .....
How can I write a script to create a wall of images based on the results above?

View 3 Replies

ActionScript 2.0 :: [MX2004] Mc's Loading External Thumbnail Jpgs Via LoadMovie()

Mar 12, 2005

I have 100 mc's loading external thumbnail jpgs via loadMovie(). I need a preloader of some sort to show the status of the thumbnails. The problem is that each of the mc's are loading JPG individually and I am not sure of how to combine their loading statuses into a preloader. The other option I had planned to use was to make one thumbnail larger in file size than the others so that it would load last and therefore I could use some onload function for this particular thumbnail, but I do not know what would be best to use in this case.

View 1 Replies

ActionScript 2.0 :: Thumbnail Loop - Middle Thumbnail Represents The Photo In Target_mc?

Nov 28, 2007

I have made a image-viewer. I've this AS for the viewer:

Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
function loadXML(loaded) {[code].....

Now i would like to make a loop for the thumbnails so they don't have a beginning or end(Now when i scroll to the right the thumbnails stop at the last thumbnail, i want it to begin at the first thumb again).I'm also trying to make that the middle thumbnail represents the photo in target_mc.

View 1 Replies

ActionScript 2.0 :: OnRelease - Cannot Scroll Thumbnail Until Roll Off The Click Thumbnail

Jul 10, 2007

I am making a gallery, which you can view here:[URL]ok, firstly, when you click a thumbnail, you cannot scroll them until you roll off the click thumbnail, and I'm not sure why. is it just a movieclip thing? or can I put some code in to re-get focus of something? ok, now for the two general questions:

1. When you roll over the thumbs, they go up, sometimes they flick back down though, even though you are rolled over them still. is this just because they are moving?

2. Does anyone know why when I add this:

[Code]...

View 1 Replies

ActionScript 1/2 :: Xml Thumbnail + OnRelease Function On Each Thumbnail?

Oct 11, 2009

Im trying to create via xml and a for() loop a thumbnails wiewer and each thumbnail have a simple onrelease function.....but my probleme is that my 'container' movieClip and 'BT' movieClip dont show when I export the movie...also when i trace()them the output is empty. maybe is because they are inside  x.onLoad(xml){} function ? At the end of the script you can remove // before the trace() function for ckecking in the output panel. here is my code:

xml file: TumbLoader.xml
<?xml version="1.0" encoding="ISO-8859-1"?><slideshow><photos thumbnail="thumbnail/1.jpg" /><photos thumbnail="thumbnail/2.jpg" /><photos thumbnail="thumbnail/3.jpg" /><photos[code]...

View 8 Replies

ActionScript 3.0 :: Using "this" And Loading An XML File In Which Each Record Points To A Small JPG For A Thumbnail

May 27, 2011

I'm loading an XML file in which each record points to a small JPG for a thumbnail and a larger JPG I'd like to display when the thumb is clicked. Stumbeld upon a cool way to use "this" to keep code tight. But now I can't figure out how to refer to each corresponding image that is loaded into each "big loader" when it's thumbnail is clicked.

I was thinking of initially setting the alpha of the big image's sprite (bgSp) to 0 and changing it to "1" when the thumb is clicked (smSpr). (Would be loading a lot of stuff initially, but the big images would show up FAST when a thumb is clicked). But I can't figure out how to specify which big sprite corresponds to each small sprite. Here's what I've got so far:

[Code]...

View 5 Replies

ActionScript 2.0 :: To Thumbnail, Or Not To Thumbnail ?

Jul 5, 2007

Yes, I'm making a photo gallery like everyone else. I'm making it so people can order pics from the site. There are going to be about 500 photos per album in 5 different categories. The photos can be shrunk down to about 60kb a piece. If I use the actual pictures as thumbnails, just scaled down, the total size of all the pics will be about 30mb. I know this is a lot.

Either way, the people looking at the album will most likely look at nearly all the pics so they will be using up bandwidth either way. Plus, if I use the actual pics as thumbs the user will not have to wait to see actual pic when it's clicked on because it's already loaded. A preloader is annoying to me. I do realize a preloader would be wise when loading the thumbs. Just dislike them after you click one for the big picture.

So is using shrunken thumbs a necessity or if the big pic is under a certain size it shouldn't matter if I use it for a thumb also?

View 1 Replies

'leap' To New Animation Sequence But Can't

May 14, 2009

how to swap to a new keyframe from a animated sequence. I'll try to explain clearer if I can. I have a button that when clicked on an animated sequence starts and the panel slides along which is fine but I can't seem to click on the back button to start a reversed sequence - I want it to slide back to the start page... so the user can click back and forth.

I've uploaded an example - squidgeye....co....uk if you click on the 'hello' button then click the arrow the sequence starts - I got the back button to have a slight colour change when the mouse goes over but that's it! I'm now stumped... and it's really annoying! I have the initial page on keyframe 1, then the animated slide on keyframe 2 - I was trying to put the reverse animated slide on keyframe 3.... but I'm now confused... I'm sure there was a better way but I'm a total newbie

View 4 Replies

Swf From After Effects Sequence Of Images

Dec 15, 2009

I have a peice of video that I exported as a swf from after effects. Now that i've imoprted it into flash it's broken down into a squence of images. The problem is I need to move the video (Pics) but obviuosly I can only move 1 image at a time and that's a real pain as there is nearly 80 of them. I really need a way of moving all of them at the same time. Highlighting all the frames and moving them doesn't work.

View 1 Replies







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