Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








Photo Album


HI -- havent really built anything in a LONG time, and so many things have changed since I was last here! wow looks great! Question -- A friend of mine asked me to help her get a Photo Album on her website so that her members could upload pics n view eachothers etc. Does anyone have any ideas on the best way to go about this? Thanks!




FlashKit > Flash Help > Flash General Help
Posted on: 01-19-2003, 02:09 PM


View Complete Forum Thread with Replies

Sponsored Links:

Help - My Photo Xml Photo Album's On Fire...:)
Hello there,

I have recently completed the tutorial on how to make a slideshow with thumbnails. It is found here: http://www.kirupa.com/developer/mx2004/thumbnails.htm . I figured this would be a great way to show off a friends photogallery. The site is viewable here: www.prestigeinteractive.com/anneliephotography .

Well I can get it to work, however, when I try to load the swf file into another fla, the paths are messed up. Sadly, I am not good with code, so I am wondering what lines would need to be fixed in order to make this code work?

First I will tell you how I've structured the site.
- I have a swf file that basically loads a bunch of swf files into their appropriate x y coordinates.
- I have buttons that when selected open up external swf files into a movie clip called siteContentPage_mc . (this is where the site's content is loaded)
- On one page that is called portfolio, I want to have my slideshow photogallery page load. I am wondering how I would have to modify the code to make it work in this setting. I know it has to do with paths, but I am not sure which one's need changing. Currently the xml file resides in the folder with the swf files.

Here is the code at this time.









Attach Code

function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
description = [];
thumbnails = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
description[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
thumbnails[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
thumbnails_fn(i);
}
firstImage();
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("images.xml");
/////////////////////////////////////
listen = new Object();
listen.onKeyDown = function() {
if (Key.getCode() == Key.LEFT) {
prevImage();
} else if (Key.getCode() == Key.RIGHT) {
nextImage();
}
};
Key.addListener(listen);
previous_btn.onRelease = function() {
prevImage();
};
next_btn.onRelease = function() {
nextImage();
};
/////////////////////////////////////
p = 0;
this.onEnterFrame = function() {
filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
if (picture._alpha<100) {
picture._alpha += 10;
}
}
};
function nextImage() {
if (p<(total-1)) {
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
}
}
}
function prevImage() {
if (p>0) {
p--;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
}
}
function firstImage() {
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[0], 1);
desc_txt.text = description[0];
picture_num();
}
}
function picture_num() {
current_pos = p+1;
pos_txt.text = current_pos+" / "+total;
}
function thumbNailScroller() {
// thumbnail code!
this.createEmptyMovieClip("tscroller", 1000);
scroll_speed = 10;
tscroller.onEnterFrame = function() {
if ((_root._ymouse>=thumbnail_mc._y) && (_root._ymouse<=thumbnail_mc._y+thumbnail_mc._height)) {
if ((_root._xmouse>=(hit_right._x-40)) && (thumbnail_mc.hitTest(hit_right))) {
thumbnail_mc._x -= scroll_speed;
} else if ((_root._xmouse<=40) && (thumbnail_mc.hitTest(hit_left))) {
thumbnail_mc._x += scroll_speed;
}
} else {
delete tscroller.onEnterFrame;
}
};
}

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+(eval("thumbnail_mc.t"+k)._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 Replies !    View Related
Photo Album Help
just got back from a family vacation and my dad wants me to put all of our photos from our trip that we took. Since we used a digital camera i got em all on my comp, but i'd like to know how to do a few things. Is flash the best tool to use for this? I was thinking to have a few section for the differents places, Grand Canyon etc. in each section i'd like to create some thumbnails and you can enlarge the picture, how would i do this? Thanks alot.

Jason

View Replies !    View Related
CGI Photo Album
Hi, I was wondering if someone, somewhere might be able to help me.

I'm developing a small site for a friend who's off travelling - message board etc. - but I want to create a minisite of a photo album, comprising any photos that he uploads to a specified folder. Of course he will keep adding photos over time, so I want to know how to create a simple photo album (nothing fancy), that would use a technique (possibly CGI) to "pull" any photos from this specified folder and keep the Flash file updated.

Any help greatly greatly appreciated.

View Replies !    View Related
Photo Album?
Is there an easy way to make a photo album in MX 2004? One that wouldnt take up loads of time loading...

View Replies !    View Related
Photo Album?
Is there an easy way to make a photo album in MX 2004? One that wouldnt take up loads of time loading...

View Replies !    View Related
Photo Album
Hi,

I have a photo album I got from the movies section of this site. I added in my pictures and set up the xml file right, but I don't know how to add it into my site.

I want to add the photo albums to the media section of my site, but I'm not sure how to do that? I want where it says "Random" and "Recording" to link to the photo album. It could even pop up in a new window, that would work for now. Can someone explain how to do this?

I'm attaching my .fla so you know what I'm talking about. The photo albums are in the folders named "Random" and "Recording."

Thanks for the help.

View Replies !    View Related
Photo Album
how would i go about creating a photo album like this:

http://www.dreamingsoft.com/flashalb...tor/sample.htm

it seems simple, but i don't know where to start.

View Replies !    View Related
Photo Album
Hi,

I'd like to create a simple, vertical scrolling photo album in flash. No thumbnails or anything like that, just a bunch of images that surfers can scroll through.

Anyone point me to a simple tutorial or source file?

Thanks in advance,
// Rockstar.

View Replies !    View Related
Photo Album Help Please
Hello,
I need to make a photo album using Flash. Does anyone know if there is a script I can use which will load photo's using a button for 'next' and maybe a button to use for 'back'.
Thank you in advance for any help you can offer to me.

View Replies !    View Related
Photo Album
Hi ppl,

I want to create a photo album, in which the photos (or swf files containing the photos) will be loaded from the directory where the main swf file is located.

In the first version i can specify the number of images present in the folder.

And in the second version i want to load the files dynamically. (i.e. I want to incease or decrease the number of files in the folder and that has to refelect in the main swf/exe file)

View Replies !    View Related
Photo Album With XML
Hi dudies ^^
I am looking for a way to do something like:

Click here to watch PhotoAlbum

...using xml to load the photos and the thumbs...
have someone used it sometime and wanna share it? : )

I am browsing around and did not find a good thing...


Thaaaaaaanks in advance ^^

View Replies !    View Related
Photo Album
I am hoping to create a photo album style program for my school yearbook.

I want to create it in flash and for each photo to be selectable to save onto the persons home computer in a file, similar to right-click save picture on a normal webpage.

Please help!

View Replies !    View Related
Photo Album Help
I'm trying to get some ideas for making a photo album of sorts for my website.

The kind of thing I'm trying to make is this:
http://www.hooverwebdesign.com/flash...16/index4.html

Trouble is, I've not found any open source examples incorporating the thumbnail scrolling effect with the image being displayed next to or below the thumbnails. Can anyone give me some guidance on this, or link me to some open source or freeware programs similar to this?

Thanks for any help.

View Replies !    View Related
Sorry To Ask But Does Anyone Know What This Photo Album Is
I know I should be asking how to create something rather than ready made tools, And if anyone can point me in the direction of a template to get started with then i'll give it a go, but I found this album and think it is perfect for my needsRamsgate Library

Does anyone recognise it ??

Many Thanks and sorry once again

Pat

View Replies !    View Related
Photo Album Help
Ok so I've got a bunch of thumbnails that are buttons in an mc that scrolls.

on (release) {
_root.myLoader.contentPath = "path of the image";
}

is my code on these buttons.

myLoader is a blank movie clip that will load the picture next to this scroller. Unfortunately, nothing loads when i click the thumbnails. There are no errors. HELP!

View Replies !    View Related
Photo Album
I want to create an offline wedding photo album which allows the user the option of viewing an automated slideshow of the jpegs. Having set the stage
by frame 1070, pressing the "automated slideshow" button should cause the relevant "show_mc" to run.
But it wont.
(The top two layers,"actions" and "slides" are the ones in question.)
I've only been learning Flash for a couple of months and I'm probably doing something silly.
I'd really appreciate the help .

View Replies !    View Related
Help With Photo Album
I am working on creating a photo album for one of my clients. I'm kind of new to working completely in code, so I decided to chose this project to teach myself. Here's the problem I'm having. I have a main "container" that holds the large size picture. and I have a group of thumbnails that I want to set up as buttons. Here's my code:

Code:
function newPic(contName, fileName, picWidth, xpos, ypos) {
attachMovie("dummy", contName, getNextHighestDepth());
loadMovie(fileName, contName);
this[contName]._width = picWidth;
this[contName]._height = picWidth/4*3;
this[contName]._x = xpos;
this[contName]._y = ypos;
}
newPic("thumb01", "photos/Picture001.jpg", 100, 15, 15);
newPic("thumb02", "photos/Picture002.jpg", 100, 120, 15);
newPic("thumb03", "photos/Picture003.jpg", 100, 225, 15);
newPic("thumb04", "photos/Picture004.jpg", 100, 15, 95);
newPic("thumb05", "photos/Picture005.jpg", 100, 120, 95);
newPic("thumb06", "photos/Picture006.jpg", 100, 225, 95);
newPic("thumb07", "photos/Picture007.jpg", 100, 15, 175);
newPic("thumb08", "photos/Picture008.jpg", 100, 120, 175);
newPic("thumb09", "photos/Picture009.jpg", 100, 225, 175);
newPic("thumb10", "photos/Picture010.jpg", 100, 15, 255);
newPic("thumb11", "photos/Picture011.jpg", 100, 120, 255);
newPic("thumb12", "photos/Picture012.jpg", 100, 225, 255);
newPic("container", "photos/Picture001.jpg", 400, 335, 15);
thumb01.onRollOver = function() {
trace("onRollOver called");
};
now when I rollover the thumbnail "thumb01" it doesn't work. In fact, the mouse pointer doesn't change from an arrow to a pointing hand like it should. So I guess I'm doing something wrong here.

View Replies !    View Related
Help With Photo Album
I am working on creating a photo album for one of my clients. I'm kind of new to working completely in code, so I decided to chose this project to teach myself. Here's the problem I'm having. I have a main "container" that holds the large size picture. and I have a group of thumbnails that I want to set up as buttons. Here's my code:

Code:
function newPic(contName, fileName, picWidth, xpos, ypos) {
attachMovie("dummy", contName, getNextHighestDepth());
loadMovie(fileName, contName);
this[contName]._width = picWidth;
this[contName]._height = picWidth/4*3;
this[contName]._x = xpos;
this[contName]._y = ypos;
}
newPic("thumb01", "photos/Picture001.jpg", 100, 15, 15);
newPic("thumb02", "photos/Picture002.jpg", 100, 120, 15);
newPic("thumb03", "photos/Picture003.jpg", 100, 225, 15);
newPic("thumb04", "photos/Picture004.jpg", 100, 15, 95);
newPic("thumb05", "photos/Picture005.jpg", 100, 120, 95);
newPic("thumb06", "photos/Picture006.jpg", 100, 225, 95);
newPic("thumb07", "photos/Picture007.jpg", 100, 15, 175);
newPic("thumb08", "photos/Picture008.jpg", 100, 120, 175);
newPic("thumb09", "photos/Picture009.jpg", 100, 225, 175);
newPic("thumb10", "photos/Picture010.jpg", 100, 15, 255);
newPic("thumb11", "photos/Picture011.jpg", 100, 120, 255);
newPic("thumb12", "photos/Picture012.jpg", 100, 225, 255);
newPic("container", "photos/Picture001.jpg", 400, 335, 15);
thumb01.onRollOver = function() {
trace("onRollOver called");
};
now when I rollover the thumbnail "thumb01" it doesn't work. In fact, the mouse pointer doesn't change from an arrow to a pointing hand like it should. So I guess I'm doing something wrong here.

View Replies !    View Related
Photo Album Help
I have a website built in Dreamweaver CS3. I have a photo album I have installed but I am looking for other options. It is a downloaded shareware program named Sonettic. My website address is:

http://www.chhstrojans.org/Juniors/web/index.html

Are there basic Flash photo albums available through Adobe or otherwise? This is the first one I've ever done and it is a nice program, but there were some problems I did not like. Please help if you don't mind.

Thank you

View Replies !    View Related
Photo Album
hi, i tried the photo album tutorial(http://www.kirupa.com/developer/mx/photogallery.asp), but it seems that the album doesn't resize my pictures. is there a way to make flash resize them, or should i just resize all of them using photoshop?

kind regards

View Replies !    View Related
Photo Album - How Is This Done?
http://www.hillpeppard.com/

Go to 'Image Collections' and select one of the image collections. When you move your mouse over the small images the larger image is displayed. I understand how this works, but see how the white bar scrolls from left to right and reveals the next image. How is this done?

View Replies !    View Related
Photo Album
I have a simple flash photo album for my site. Each picture is on a different scene, and I have two buttons on each scene: back and next. When i open up the web page, it takes some time to load, so i decided to make a preloader, but it didnt work for some reason.

Basically, i just need help on creating a more efficient phot album that doesnt take long to load.

View Replies !    View Related
Photo Album
i wanna create a photo album.this is thumbs page.


Code:
for(i=0;i<2;i++){
this.createEmptyMovieClip("logo_mc"+i+"", 999);
loadMovie(""+i+".jpg", logo_mc+i+);
}
how can i solve this problem about variables??

View Replies !    View Related
Photo Album
i wanna create a photo album.this is thumbs page.


Code:
for(i=0;i<2;i++){
this.createEmptyMovieClip("logo_mc"+i+"", 999);
loadMovie(""+i+".jpg", logo_mc+i+);
}
how can i solve this problem about variables??

View Replies !    View Related
Photo Album
I created a photoalbum from the tut. on the site.
I have a problem when i run the file i dont get any pictures only errrors.

i tryed chaning directory for the files

this.pathToPics = "../Billeder/Beach Party 2002";
this.pathToPics = "g:/Billeder/Beach Party 2002";
this.pathToPics = "g:BillederBeach Party 2002";

I have copyed the pic names

this.pArray = ["My Pictures0001.jpg", and so on to the end of the list.

Any1 got an idea of whats wrong ??

_WHAT_

View Replies !    View Related
XML Photo Album
Hi,
i found this xml photo album for Flash MX 2004 online at
http://www.hotscripts.com/Detailed/45983.html
however, i was trying to make some changes to its and can't figure it out. I was wonder if anyone could help me, look at the coding part of its and see:

First i want to change the fade time of the pictures? Like now, when i cliked each pictures, its slowly faded in, but i would prefer it to just load the picture without fading. Is there a way to do that because i can't find it.

Second, for the album name that shows on the right of the picture, i was wonder if there is a way to links to album outside of flash. For example, if i want to put album1, album2, and album3 inside the HTML code for my homepage and make a hyperlink of each albums to open the pictures in flash.

Thank you in advance guys.....

View Replies !    View Related
Photo Album
Hi i followed the steps to the photo album tutorial on the site but my images dont line up inside the box that i created. Is that an error in the action scripting or the properties of the box? Any help would be appreciated.

View Replies !    View Related
Photo Album
I saw the photo gallery tutorial and it looks good.
Can anybody modify this project so that we do not have to click on the arrow button but the picture gradually(fade) changes to a new picture.
It may be very easy for you guys but I do not know how to do that sine I am new to Flash.

Your help is greatly appreciated.

Thanks
VIP

View Replies !    View Related
Photo Album
Hi Group,
Does anyone know how to create a page like this www.jorgealcaide.com/HTML/main_ENG2.html click on the the gallery page.

Once you click on the thumbnail, the picture popup and click again to go back to the thumbnail list. Please advise.

Thanks very much
Duc
www.ducleworks.com/photography.html
www.ducleworks.com/design.html
408.623.1913

View Replies !    View Related
Photo Album
Ok, I found this awesome component here:

http://www.mr10.net/components/gallery/

I got it all set up and it works fine all except for one thing that I can't figure out how to do. When the user clicks the larger thumbnail, I would like it to either go to a page where the user can save the image, or start downloading the image. If anyone can help it is greatly appreciated.

View Replies !    View Related
Photo Album - How Is This Done?
http://www.hillpeppard.com/

Go to 'Image Collections' and select one of the image collections. When you move your mouse over the small images the larger image is displayed. I understand how this works, but see how the white bar scrolls from left to right and reveals the next image. How is this done?

View Replies !    View Related
Photo Album
I have a simple flash photo album for my site. Each picture is on a different scene, and I have two buttons on each scene: back and next. When i open up the web page, it takes some time to load, so i decided to make a preloader, but it didnt work for some reason.

Basically, i just need help on creating a more efficient phot album that doesnt take long to load.

View Replies !    View Related
Photo Album
im creating my family album in flash and the effect is like this site.
http://www.beatles.com/letitbe/site.php

can somebody here help me how this flipping of page done?
Thanks and God bless.

View Replies !    View Related
Photo Album
I am sure this question must have been asked for a number of times. I did a quick search but did not find what I was looking though. I also looked at Flash Resources post and it has tons of tutorials listed there but I can't find (since it does not say tutorial description).

Essentially I am planning on making a wedding website that has a photo album. I once saw a flash photo album which was simple but elegant. It had preview box and then thumbnails on the site (total 10 thumbnails -- 5 previously viewed pictures and next 5 pictures). It would change the pictures automatically so essentially it will auto play, if you bring your mouse towards left side of the preview window the images will move slowly and if you move your mouse towards right side of the preview window the images will move quickly.

I do not have any experience with Flash and have downloaded a 30 day trial for the latest version and am hoping to accomplish this in due time. Does anyone know of a tutorial which emphasis strictly on creating photo albums? or if someone know of a similar template to create the album. Thank You!

View Replies !    View Related
How To Make A Photo Album
Hi, I want to make a webpage that has a few thumbnails lined up, then when I click on one of the picture, that picture will stretch to full size while all the other thumbnails fading out to make room the the full size picture selected. I've seen this kind of flash movie on some websites and would love to know how to do it for my small photo site. I'd appreciate your help.
Thanks.
QT

View Replies !    View Related
Dynamic Photo Album, Possible?
I've recently created a nice dynamic text flash movie that called html files and therefore made an easily updatable site for even people without flash. Now I want somewhat of the same thing, but in a type of Photo Album. I want a dynamic text box to look at a file at pull of different "Site" names, because the pictures will be in different catergories. From there I want it to look into a folder and display all the pictures in that folder in either a scrollable left to right box or something with next and back buttons. If it's possible to create a photo album without setting a static destination for each picture but instead say pull up all these pictures from a folder then please tell me. That is the basis of my idea and if that's possible then I can do this. Thanks. Sorry so long.
-Mike

View Replies !    View Related
Dynamic Photo Album
Ok, i really need a flash photo album that shows a list of photo directories. then when you click a directory, it will automaticly load thumbnails of all the pics in that certain folder. then when you click certain pics, it will enlarge. First, is this possible? second, anyone have any demos, or have a tutorial to show me how?

View Replies !    View Related
Photo Album & Slideshow
I'm in the process of a project. I need to have a photo album, and a slideshow. I have no idea how to get started. I would like to load the pictures with XML or something because I don't want the movie to take a few days to load If anybody knows of any good tutorials for this sort of stuff, or maybe some .fla's that are simple enough I could pick them apart, I would be very greatful! Thanks for your time. Peace.

View Replies !    View Related
Help With Making A Photo Album
I am working with Flash MX 2004 and am trying to make a photo album for a class project. I already have the images saved as buttons, but would like for the images to become enlarged once clicked. How do I plug this in? I am working with about 11 different images, and the whhen this page is opened a picture scrolls in from the left side of the page spinning in a clockwise motion fading in from an alpha of 0 to 100% by the time it reaches its destination. I would like for that image to be the first button as well, but when I select the next picture (button) I want that picture to dissapear and show the one that has just been clicked. I am assuming in some way shape or for this will involve the "onrelease" command. Any suggestions on how to do this, or even some cool effects or ideas to incorporate with this would be greatly appreciated (i.e. having the images fade in one the button is selected, and how)

Thanks

Chad

View Replies !    View Related
Simple Photo Album
im trying to create a photo album in flash, very basic nothing fancy. the problem i am having is that i cannot get button to advance to the next scene, it just simply doesnt work. any ideas...

View Replies !    View Related
Another Photo Album Question...
Hi There--

Would like to make a photo album that scans a directory/folder and then loads whatever photos are in there.

My client wants to edit the photos herself. She knows how to ftp. (It would be nice to be able to upload, though, so if anyone can point me in that direction, I'd be grateful as well.)

So, I'm thinking that actionscript would be in two parts. (Let me know if I'm whacked, okay?)

First part, Flash would scan a directory/folder and get all of the filenames from the folder and put them into an array.

Second part, Flash would display all of the photos in the array by importing them by creating the URL from the filename and appending it to the directory name with a slash, right? (Bear with me here, I'm a newbie.)

Is my thinking sound?

Would actionscript do this? Would PHP?

(I don't know much about PHP, except that I got Flash to import an external textfile using a PHP page once. I was ecstatic when it finally worked.)

Please let me know if this is viable. If so, any help with direction would be greatly appreciated and you can have my firstborn.

Thanks,

Lee

View Replies !    View Related
Pop-up Window And Photo Album
I whant to creat a pop-up window, that when I am clicking on a button, a pop-up to apear with a photo album. But this pop-up must be independet from the parent page (the one with the button). Where I must look to see an example or a tutorial?

View Replies !    View Related
[Flashmx2004] Xml Photo Album V3.1
I found this free photo album but i need to change a few things

here is how it looks
http://members.lycos.nl/thejojo15/Al...ldsofrock.html

It works with 1 flash file and 2 Xml files

First xml file:
here it defines al sorts of marges and positions of the photo's


Code:
//////////////////////////////////
/*
Code generated by Selcuk ARTUT
xml photo album v3.1
Free of use

Instructions:
Update your XML file,
and upload your corresponding images in the photos folder

please send comments : selcukhip@hotmail.com

*/



//////////////////////////////////////////////////////////////
// SETTING VARIABLES
currentpage = 1;
_global.whichalbum = 1;
bigframew = 600;
bigframeh = 450;

//////////////////////////////////
function scalerf(w,h)
{
diffw = (w-bigframew);
diffh = (h-bigframeh);

if(diffw<=0&&diffh<=0)
{
scaler = 1 * 100;
}
else if (diffw==Math.max(diffw,diffh)) //scale to height
{
scaler = (bigframew/w) * 100;
}
else if (diffh==Math.max(diffw,diffh)) //scale to width
{
scaler = (bigframeh/h) * 100;
}
return scaler;
}

//LOADCLIP ACTIVITIES
_root.createEmptyMovieClip("looploop",-1000);
var my_mcl = new MovieClipLoader();
myListener = new Object();
myListener.onLoadStart = function (target_mc)
{
var loadProgress = my_mcl.getProgress(target_mc);
}
myListener.onLoadProgress = function (target_mc, loadedBytes, totalBytes)
{
////////////////////////////////////////////////////////
// FOR PRELOADER PURPOSES
loaded = loadedBytes;
total = totalBytes;
percentage = Math.round(100*(loaded/total));
progressbar_mc.progresser_mc._xscale = percentage;
////////////////////////////////////////////////////////
}
myListener.onLoadComplete = function (target_mc)
{
var loadProgress = my_mcl.getProgress(target_mc);
imageframe_mc.hold._alpha=0;
velo = 0;
imageframe_mc.hold.onEnterFrame = function()
{
w = imageframe_mc.hold._width;
h = imageframe_mc.hold._height;
if(w!=0&&h!=0)
{
scaler = scalerf(w,h);
if(scaler!=100)
{
imageframe_mc.hold._xscale = scaler;
imageframe_mc.hold._yscale = scaler;
}
imageframe_mc.hold._x = (bigframew - (w*(scaler/100)))/2;
imageframe_mc.hold._y = (bigframeh - (h*(scaler/100)))/2;


if(imageframe_mc.hold._alpha<100)
{
accel = 1.5;
velo = velo + accel;
imageframe_mc.hold._alpha +=velo;

}

}
}
}


myListener.onLoadInit = function (target_mc)
{
//target_mc._width = 100;
//target_mc._width = 100;
}
myListener.onLoadError = function (target_mc, errorCode)
{
}
my_mcl.addListener(myListener);


///////////////////////////////////////////////////////////////
// XML PARSING
function imageListLoaded(whichalbum) {
//clear stage
for (var rr = 0; rr < noofrow * noofcolumn; rr++)
{
rr = rr + pageindex;
this["thumbframe"+rr].removeMovieClip();
this["thumbframein_mc"+rr].removeMovieClip();
rr = rr - pageindex;
}

//parameters
param = this.imageList_xml.firstChild.firstChild;
pc = int(param.attributes.noofcolumn);
pr = int(param.attributes.noofrow);
ptx = int(param.attributes.thumbxs);
pty = int(param.attributes.thumbys);
_global.ptw = int(param.attributes.thumbwidth);
_global.ptl = int(param.attributes.thumbheight);
//////////////////////////////////////////////////////////////
var albumCountXML = this.imageList_xml.firstChild.childNodes;
albumCount = albumCountXML.length - 1;

var mainNode = this.imageList_xml.firstChild.childNodes[whichalbum].firstChild;
var listBoxData = createResourceList (mainNode.childNodes,pc,pr,ptx,pty,ptw,ptl);

albumtextbox.text = "album"+whichalbum+">>>";
albumtextbox.background = true;
albumtextbox.backgroundColor = 000000;
for (t=1;t<=albumCount;t++)
{
this.attachMovie("albumnames_mc","albumnames_mc"+t,1000+t);
this["albumnames_mc"+t].albumnametxt.text = this.imageList_xml.firstChild.childNodes[t].attributes.albumname;
this["albumnames_mc"+t]._x = 900;
this["albumnames_mc"+t]._y = t * 450;
this["albumnames_mc"+t].sett = t;
this["albumnames_mc"+t].onRelease = function()
{
currentpage = 1;
filename.text = "";
for (var rr = 0; rr < noofrow * noofcolumn; rr++)
{
rr = rr + pageindex;
this["thumbframe"+rr].removeMovieClip();
this["thumbframein_mc"+rr].removeMovieClip();
rr = rr - pageindex;
}
imageListLoaded(this.sett)
_global.whichalbum = this.sett;
}
}


}


function createResourceList(resource_array,noofcolumn,noofrow,thumbxs,thumbys,thumbwidth,thumblength,bigimagewidth) {
_global.noofcolumn = noofcolumn;
_global.noofrow = noofrow;
var listData = new DataProviderClass ();
resourceCount = resource_array.length;
noofpage = Math.ceil(resourceCount/(noofcolumn*noofrow));
ofof.text = "page: "+currentpage+"/"+noofpage;
var resource, image, tmb;
images = new Array();
infotexts = new Array();

pageindex =((currentpage-1) * noofrow * noofcolumn);

for (var r = 0; r < noofrow; r++)
{

for (var c = 0; c < noofcolumn; c++) {
i = (r * noofcolumn) + c + pageindex;

if(i<resourceCount)
{
nodigits = new String(resourceCount);
resource = resource_array[i];
images[i] = resource.attributes.imagename;
infotexts[i] = resource.attributes.infotext;
loadme = "thumbs/"+images[i];
findme = images[i];
whichframe = "frame"+i;
this.attachMovie("thumbframe","thumbframe"+i,i+1);
this["thumbframe"+i]._x = (c * thumbwidth)+thumbxs;
this["thumbframe"+i]._y = (r * thumblength)+thumbys;
createEmptyMovieClip("thumbframein_mc"+i,(i+1)*1000);
onEnterFrame = function()
{
for (var tr = 0; tr < noofrow; tr++)
{

for (var tc = 0; tc < noofcolumn; tc++) {
ti = (tr * noofcolumn) + tc + pageindex;

if(ti<resourceCount)
{
tw = this["thumbframein_mc"+ti]._width;
th = this["thumbframein_mc"+ti]._height;
this["thumbframein_mc"+ti]._x = this["thumbframe"+ti]._x+(thumbwidth - tw)/2;
this["thumbframein_mc"+ti]._y = this["thumbframe"+ti]._y+(thumblength - th)/2;

}
}
}
}
this["thumbframein_mc"+i].loadMovie(loadme);
noofthumbs = (currentpage-1) * noofcolumn * noofrow;
nom = noofthumbs;
callbig(nom);
this.filename.text = " "+images[nom];
this["thumbframe"+i].onPress = function()
{
startsubstring = 10;
endsubstring = startsubstring + nodigits.length;
largeindex=this._name.substring(startsubstring,endsubstring);
callbig(largeindex);
}
}
}
}
}

function callbig(index)
{
filename.text = " "+images[index];
info.text = infotexts[index];
imageframe_mc.createEmptyMovieClip("hold",0);

my_mcl.loadClip("largeimages/"+images[index],this.imageframe_mc.hold);
imageframe_mc.onPress = function()
{getURL("pics/"+images[index],"_blank");}

}



imageList_xml = new XML ();
imageList_xml.ignoreWhite = true;
imageList_xml.onLoad = function (success) {
if (success) {
imageListLoaded(whichalbum);
}
};

//////////////////////////////////////////
//HERE IS WHERE YOU DECLARE YOUR XML FILE
imageList_xml.load ("albums.xml");
//////////////////////////////////////////

rightbt.onRelease=function()
{
if(currentpage != noofpage)
{
currentpage ++;
imageListLoaded(_global.whichalbum);
}
}

leftbt.onRelease=function()
{
if(currentpage > 1)
{
currentpage --;
imageListLoaded(_global.whichalbum);
}
}
stop();

View Replies !    View Related
Does Anyone Know How This Photo Album Was Created?
http://www.templatehelp.com/aff/prev...site%2F&i=9155

Does anyone know how this was created? I like this type of photo album, the transation between pictures. Can anyone one help? What would be the script for this type of photo album?

View Replies !    View Related
To Make This Photo Album?
Hey everyone.

I want to make a photo-album, that loads external photos.

I have already made a site, where i can upload pictures, and at the same time store the picturename and category in a database.

The flash photo-album has to - on the first page .- show the categories. When I click a category, it has to show the first picture in the category. It has to preaload each picture each time, not all of the pictures in the category...

Anyone has a link or explanation on how to start this?

- Rune

View Replies !    View Related
Scrolling Photo Album
I want to make a photo album that takes about 3 photos form the album, displays them in a line, with the middle one slightly larger then the side ones. then as you move your mouse in one direction, the photos scroll along, the photo in the middle gets a bit bigger when it is in the middle. ie its like the mac osx dockbar, except, u wont see all the photos straight away, you have to move your mouse to the right to make photos scroll along from right to left etc.

how do i go about this?

View Replies !    View Related
What Photo Album To Use In Flash? Help
hello - i have a flash website that i am currently designing from a template, i want to put a flash photo album into it, maybe by creating the album in another program then importing it into my website as part of a page (if you know what i mean). - firstly is this possible and how? or if im talking complete rubbish can any body tell me the best way of creating a half decent photo album that will be easy to update.
please help!

kind regards
musica

View Replies !    View Related
Photo Album/portfolio
I'm trying to create some sort of a photo album portfolio. The way I'm trying to do it is, have a bunch of thumbnails and when you click on one, another window pops up that shows the image.

My first goal will be just to accomplish this, ie figure out the actionscript code that does this.

My next goal would be to make it so that I don't have to have the images be part of the flash file, ie they can be linked to so that they don't take up a huge amount of space.

Anyone know a link to a tutorial?

View Replies !    View Related
Expose Photo Album
has anyone seen this photo album setup....its really cool.....
http://slooz.com/photos.php

it is downloadable and you are able to use it free on your site as long as its not used for profit......so my question is:

when you download it....basically you get the main swf file, 2 other swfs which are loaded into this main swf for fonts and artwork........some xml files, and then 2 html files........one of these html files calls the main swf file but inside it, and also the other html file, there is javascript that seems to control the functioning of the photo album...and im saying this only because ive played with it and it wont function without the javascript........i already have a flash website completed, but i want to use this photo album on my site....however, i dont want to link to an outisde html page for users to see it....i want it to flow inside my flash site......and i cant get it to work....could i somehow take the javascript and insert it using the getUrl command? has anyone seen this/or tried to figure it out? any help would be greatly appreciated!

View Replies !    View Related
Flash Photo Album
I am looking to make a photo album similar to the one at the following link
http://www.smallwondphoto.com/gallery/family/
I looked through the tutorials, but they don't look anything like this one.
Does anyone have any ideas how to get it started.

Thanks,
TBone

View Replies !    View Related
Photo Album Generated From XML Or Something
Hi, everyone

I'm more a designer than a programmer, but I know precisely what I want:

In the attached image, You can see result of a script I want to make

So, I have thumbnails, full size images, and an XML file with captions.
Also, I have a image of a Polaroid, that I want to attach thumbnail and text on.

I was thinking to make a script that would do following:

From XML file read Thumbnail, LinkToImage, Caption, InsertionCoordinates, RotationAngle

On an existing container generate images like showing on the attached image.

I'm not sure if I can make images automatically arrange, without using insertion coordinate, but rather based on a group, since that would make my life much easier.
I'm not very good at syntax of ActionScript
I really hope someone could help me write this damn thing. Any help or suggestion is more than welcome.

Best Regards
Veljko

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved