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
Similar Posts:
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
Aug 24, 2009
I've been watching a tutorial on making a thumbnail photo gallery with Flash. Unfortunately the only tutorial I could find that explained everything step by step was for Flash MX and I'm using Flash CS4. It seems that the scripting code is different. I've never written Flash script before. I am trying at this point to give a rollover effect to a thumbnail image, so when the mouse goes over the thumbnail the thumbnail will get brighter. The code given in the tutorial didn't work, but by looking at the debugger messages it seems like the script should be something like:[code]I converted the thumbnail to a button symbol and then created an instance of the button called thumb1. The code is applied to a keyframe.
View 6 Replies
Sep 8, 2007
[URL] how to make a Flash Thumbnail Photo Gallery. I am designing a bigger photo gellery based on this code how do I have the photo gallery to list 2 rows of thumbs 5 accross and 2 rows. This code is the code that designs the thumbnail movie clip.
function thumbnails_fn(k) { thumbnail_mc.createEmptyMovieClip("t"+k, thumbnail_mc.getNextHighestDepth()); tlistener = new Object(); tlistener.onLoadInit = function(target_mc) { target_mc._x = hit_left._x+(target_mc._width+5)*k; target_mc.pictureValue = k; target_mc.onRelease = function() { p = this.pictureValue-1; nextImage(); }; target_mc.onRollOver = function() { this._alpha = 50; thumbNailScroller(); }; target_mc.onRollOut = function() { this._alpha = 100; }; }; image_mcl = new MovieClipLoader(); image_mcl.addListener(tlistener); image_mcl.loadClip(thumbnails[k], "thumbnail_mc.t"+k); }
View 11 Replies
Aug 7, 2005
I learned from great kirupa tutorial and implemented the thumbnail gallery in my site.If I open the site in browser Opera or Firefox (FP 8.0.0.447) i see only 1 thumbnail image - is it bug in Player? In IE 6 I have FP 7.0.19.0 and I can see all thumbnails in the navigation bar - also correct.
View 8 Replies
Feb 5, 2007
I'm trying to get two thumbnail movieclips on the same page to display two different arrays of pictures. It's not working though and I'm not sure why, could someone please look at my xml and ActionScript and see what I'm doingwrong. I've been at this for a few hours now and I can't see whats wrong.
XML:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<images>
[code].....
View 3 Replies
Mar 10, 2010
I just use Photo Gallery using XML and Flash-adding thumbnails i just want trace every thumbnails particularly means
i give my property every thumbnails like
thumb1._x = 200;
thumb2._alpha = 40;
[code].....
View 2 Replies
Jun 13, 2010
Based on the Photo Gallery using XML and Flash tutorial found here:I�m having trouble with loading thumbnail images of various sizes which overlap if they are smaller than the previous image.The specific line that causes this is target_mc._x = hit_left._x+(target_mc._width+5)*k;I�ve tried all sorts of things with the closest being the following which put the images in the right size, but with the omission of �k� their order is backwardstarget_mc._x = (thumbnail_mc._width+5);Here is the full function block as per the tutorial
View 2 Replies
May 21, 2007
Im using xml photo gallery with thumbnail and right now when i hover th mouse on the left the thumbnail move to the left and same when i hover to the right.instead of moving my cursor left and right I want to put button on both side and if someone click left button, that time the thumbnail will only move.
View 8 Replies
Jun 11, 2008
I'm developing an XML thumbnail photo gallery and haveeverything working out correctly except for the grouping of mythumbnails on the stage. I can only display 9 thumbnail images at atime, and if I have more than 9 in my XML data file I have aproblem. What would be the best way to group my thumbnails in setsof 9? How can I set a limit to the display of these thumbnails ifsay, I have 20 thumbnail images? I was thinking of grouping theinformation into arrays, but is this the only feasible way to go
View 1 Replies
May 6, 2005
I use this code to try to create a photo thumbnail slider from an array loaded with the images names. The problem is that I can create one thumbnail with my code as shown, but I get in trouble when I try to make thumbnails of more than one image from the array. How should I work around this?
I want the thumbnails to create a nice row, that I can use in a "infinite image slider"...
Code:
//image array
//the array that holds the images names
imgArray = _root.getCurrentArray();
//the path to the images folder
[Code].....
View 14 Replies
Oct 14, 2011
I am pretty new to AS3. Basically I have a photo gallery that runs in a container, which is added to the stage like so:
import com.xmlphotoalbum.*;
var gallery:XmlPhotoAlbum = new XmlPhotoAlbum();
gallery_container.addChild(gallery);
I want to have it set up so when you click on a "gallery" button, it reloads/refreshes the gallery to its initial state, because the "internal" navigation of the gallery isn't very intuitive...and so the only thing I can think of is essentially to remove the gallery and re-add it, so that whenever "gallery" button is clicked, it resets the gallery to its initial thumbnail view. I've tried fumbling around with removeChild, addChild, if statements, and I'm pretty lost.
View 1 Replies
Feb 26, 2007
I was working with the XML Photo Gallery Thumbnail Tutorial my code i a little bit different, modified for easing thumbnails.How do I make this work for thumbs with different width??[code]
View 3 Replies
Sep 2, 2009
I would like to create a simple photo gallery in as3. I would like the user to be able to click on the image thumbnail and see an enlarged version come up next to it. The only galleries I see for flash are XML galleries and it was really complicated the last time I tried it.
View 1 Replies
Feb 27, 2009
how to create a dynamic photo slideshow with flash 8 and xml.
View 3 Replies
Sep 19, 2009
I have a movie gallery (they are basically images with a fading effect), and I got it setup, and working, but I cannot get right the action script to make the first movie load when the page opens. The only thing I get to see is the scroll bar with the thumbnails, and after I click on the images I can see the full size. I would like the full size image of the first thumbnail to show up as default when the page opens. And then, if you click on the thumbnails the other images will appear.This is the action script for a typical Thumbnail (setup as a button):
on (release) {
loadMovie("clip0.swf", "_root.screen");
}
View 2 Replies
Feb 17, 2011
I'm loading in a small thumbnail into a MovieClip as part of my Thumb class... but when I add it to the stage, the height of the thumbnail is stretched dramatically.I've got my height and width set not only in the Thumb Class, but on the instance of the Thumb that is being added to the stage.
View 3 Replies
May 17, 2010
last step in my interactive CD project.The photos in my xml photogallery swf work fine. However, when I load the xml photogallery swf into my index swf, the pictures stop loading after picture 1.AS 3.0 code for xml photo gallery swf (adapted from the tutorial)
Code:
import flash.events.MouseEvent;
function loadXML(loaded) {
[code].....
View 1 Replies
Aug 27, 2010
Hello All,
I have made a photo slideshow following exactly the following page:[URL]..It works very fine in my local computer. But, after I uploaded the files (SWF, XML, JPGs) to server it does not work well. Some photos are loaded, some not. There is no problem in path settings in XML. All images are in the same folder. Moreover, the photos are not same which loads sometimes, sometimes not. For example, I can see that photo no. 1, 3, 5, 9 are loaded and rest are not loaded. Again, if I visit the page/slideshow after some times, photo no. 1, 4, 6, 8 are loaded, rest not.
Is there any way to force the SWF to load all the images one by one and not to skip an image.
Even, if I visit the tutorial page [URL].._slideshow.htm I can see that the example SWF file given at the starting of the tutorial is doing the same behavior as that of mine. For example, right now I can see that the slideshow in this page is stopped at the image "Boston" (image no. 8/10) and it skipped the image "Dome" (image no. 6/10). Sometimes, it will stop at another image and may be, skip another image.
View 1 Replies
Apr 5, 2011
im loading photos of different aspect ratios with a loader onto a child holder frame_mc. I wanted to know what AS3 commands do i need to work on to get the frame_mc to resize to the new childs dimensions and centerize itself on the main stage? (as in event listeners, functions, vars etc)
View 3 Replies
Jan 6, 2007
I'm having some problems with the XML/FLASH Photo Gallery Tutorial ([URL]). When I load the swf file into another movie the dynamic text will not display. Any thoughts to why this is happening.
View 1 Replies
Jul 16, 2010
I have a dynamic thumbnail gallery that laods thumbnails from db/xml and also each thumbnails associated main image. When the user rolls over the thumbnail the larger image displays to the right.
THis is all working fine however I need to update the script to change the thumbnail gallery layout from a 3 column 2 row gallery to a 4column 4 row gallery.I've adjusted the as and resized the thumbnails to allow for this and setup a 8px spacer between thumbs
[Code]...
View 2 Replies
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
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
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
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
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
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
Jan 27, 2011
I have a simple video player with 4 thumbs and a flvplayer component. When you click on the thumbs a corresponding video play.
What I would like to happen is to have a title above and a description below when the thumbnails are clicked. Here's the as I have for the thumbs to link to the vids:
thb1_btn.onRelease = function(){
FLVplayer.contentPath ="video/backstage/tandg.flv";
}
thb2_btn.onRelease = function(){
FLVplayer.contentPath ="video/backstage/coop.flv";
[Code]...
View 1 Replies
Jan 3, 2008
I'm trying to add a new row to dynamically created thumbnail grid. So far I've copied and edited a BrainGiants PhotoDrop menu script and managed to add an new row there with a nested for loop, but the thumbnails on the new row won't show right. There's just one thumb showing, I guess the rest of the thumbs are beneath the one showing..I'm messing up the for loop somehow, but can't get a hold of it.. I know all the thumbs load fine cus I've tried to load them to just one row and all of them showed up properly.
[Code]....
View 1 Replies