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








How To Link Galleries


Hey people. I need some serious help here. I have 5 galleries in 5 separate movies. Each page has all 5 galleries button. Now, I don’t know to link them. In other words, what should I do so when I click on any gallery; it will take me to that gallery. Please help, I am new with all these.




KirupaForum > Flash > Flash 8 (and earlier)
Posted on: 08-24-2007, 02:05 PM


View Complete Forum Thread with Replies

Sponsored Links:

Galleries
Ive noticed something odd about loader components in IE having trouble loading, where as in Firefox they load up without bottlenecking and jamming up,



Has anyone else had this problem in IE and found a solution?

Thanks,

-SOLUTION - http://jeff.mxdj.com/loader_componen...t_explorer.htm

The loader component sometimes has a problem with IE, here is the reason why and the fix it component...
Good luck

View Replies !    View Related
Different XML Galleries
I used senoculars xml gallery tutorial (link ) to create a gallery
but i want to have different galleries so that when i press a button a different set of thumbs load

how would i do that ?

View Replies !    View Related
Different Galleries
I used senoculars xml gallery tutorial (link) to create a gallery
but i want to have different galleries so that when i press a button a different set of thumbs load

how would i do that ?

ps. sorry for asking so many questions

View Replies !    View Related
Picture Galleries
I am making a new site, I have looked at a lot of different ways of showing my pictures, PHP, java, etc. However I was wondering if there were any flash templates for such a thing? Any place I could find them or links to people who have used them would be great. thanks in advance.

View Replies !    View Related
Are Galleries From A Database Possible?
For example i want to make a flash movie that pulls all of the images out of a folder automatically and loads them one by one into the movie? how possible is this? sorry if thsi sounds dumb im new at flash

View Replies !    View Related
Multiple Xml Galleries
Okay, so I did what I was supposed to do. I've looked through hundreds of posts for the answer to this. many come close to addressing/resolving my question but not dead on. I have the typical XML enabled photo gallery. I am using this format to display different themed galleries. So for example, one will be pictures from 2004, another from 2005 and so on. I want a button to load the appropriate .xml file and begin to display the images while still being able to use the same previous and next buttons that are already on the page. Can anyone help? I thought about assignign each gallery to it's own frame and having a 2004 button just go to the appropriate frame, but I am trying to really make this dynamic. Any help would greatly be appreciated. Below is the code I have so far. Thanks in advance!



function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
//declare image and description as array
image = [];
description = [];
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;
}
firstImage();
} else {
content.text = "file not loaded!";
}
}
xmlAlbum = new XML();
xmlAlbum.ignoreWhite = true;
xmlAlbum.onLoad = loadXML;
xmlAlbum.load("images.xml");
//////////////////////////////////////////////
p = 0;
function nextImage() {
if (p<(total-1)) {
p++;
photo_mc.loadPhoto(image[p]);
desc_txt.text = description[p];
picture_num();
}
}
function prevImage() {
if (p>0) {
p--;
photo_mc.loadPhoto(image[p]);
desc_txt.text = description[p];
picture_num();
}
}
function firstImage() {
photo_mc.loadPhoto(image[0]);
desc_txt.text = description[p];
picture_num();
}
///////////////////////////////////////////////
var SPACING = 10
photo_mc._alpha = 0;
MovieClip.prototype.loadPhoto = function(photo) {
photo_mc._alpha = 0;
this.loadMovie(photo);
_level0.onEnterFrame = function() {
// modified the total and loaded so as to round it up
// to smaller number.
var total = photo_mc.getBytesTotal();
var loaded =photo_mc.getBytesLoaded();
if (total != 0 && Math.round(total/loaded) == 1 && photo_mc._width>0)
{
var w = photo_mc._width+SPACING, h = photo_mc._height+SPACING;
border.resize(w, h, pic);
delete this.onEnterFrame;
}
};
};
MovieClip.prototype.resize = function(w, h, pic)
{
//the higher the slower the resize of the border
var speed = 2;
photo_mc._alpha = 0;
this.onEnterFrame = function()
{
this._width += (w-this._width)/speed;
this._height += (h-this._height)/speed;
if (Math.abs(this._width-w)<1 && Math.abs(this._height-h)<1)
{
this._width = w;
this._height = h;
photo_mc._x = this._x-this._width/2+SPACING/2;
photo_mc._y = this._y-this._height/2+SPACING/2;
photo_mc._alpha += 20;
if (photo_mc._alpha>90)
{
photo_mc._alpha = 100;
delete this.onEnterFrame;
}
}
};
};
previous_btn.onRelease = function() {
prevImage();
};
next_btn.onRelease = function() {
nextImage();
};

function picture_num() {
current_pos = p+1;
pos_txt.text = current_pos+" / "+total;
}
if (p == 0) {
previous_btn._alpha = 100;
previous_btn.enabled = true;
} else {
previous_btn._alpha = 100;
previous_btn.enabled = false;
}
if (p == (total-1)) {
next_btn._alpha = 50;
next_btn.enabled = false;
} else {
next_btn._alpha = 100;
next_btn.enabled = true;
}

View Replies !    View Related
Photo Galleries
hi

I am looking for tutorials to see how actionscript can be used to display photos .
I looking for tutorials that display images in a different manner to the typical 1 photo on screen and 2 buttons to move through them.
there must be other ways eg a line photos stretching off the screen and scroll through them or something.

I am not an expert or beginner so i was after something with actionscript but not loads of add-in classes.

View Replies !    View Related
LoadMovie And Xml Galleries...
I would like to create 5 separate xml galleries for sections of my portfolio (identity, promo, print, web and environmental) and would like for them to load into my folio_mc page on button release. On that page, I have 5 buttons for those topics and would like for each xml gallery to load into a gallery_mc when the button is clicked. On the initial load of my portfolio page, I would like for the print xml gallery to load into gallery_mc. I'm not sure how to code all of this. Before I tackle this project I'm wondering if the code will be as simple as this:

identityBtn.onRelease = function(){
gallery_mc.loadMovie("identity.xml");
}
printBtn.onRelease = function(){
gallery_mc.loadMovie("print.xml");
}
webBtn.onRelease = function(){
gallery_mc.loadMovie("web.xml");
}
promoBtn.onRelease = function(){
gallery_mc.loadMovie("promo.xml");
}
enviroBtn.onRelease = function(){
gallery_mc.loadMovie("enviro.xml");
}
gallery_mc.loadMovie("print.xml");

View Replies !    View Related
LoadMovie And Xml Galleries...
I would like to create 5 separate xml galleries for sections of my portfolio (identity, promo, print, web and environmental) and would like for them to load into my folio_mc page on button release. On that page, I have 5 buttons for those topics and would like for each xml gallery to load into a gallery_mc when the button is clicked. On the initial load of my portfolio page, I would like for the print xml gallery to load into gallery_mc. I'm not sure how to code all of this. Before I tackle this project I'm wondering if the code will be as simple as this:

identityBtn.onRelease = function(){
gallery_mc.loadMovie("identity.xml");
}
printBtn.onRelease = function(){
gallery_mc.loadMovie("print.xml");
}
webBtn.onRelease = function(){
gallery_mc.loadMovie("web.xml");
}
promoBtn.onRelease = function(){
gallery_mc.loadMovie("promo.xml");
}
enviroBtn.onRelease = function(){
gallery_mc.loadMovie("enviro.xml");
}
gallery_mc.loadMovie("print.xml");

View Replies !    View Related
Multiple XML Galleries In One Swf
Now then!

I'm trying to get multiple XML galleries in one swf at the same time.
It's more or less the photo gallery tut, but with this duplicated below it a certain amount of times.

I've adapted the XML file. The actionscript duplicates the photo gallery the amount of times that the XML needs it to.

This is working fine, but I can't preload anything or fade.
I've got the actionscript to create the holder movie clip for the larger images, and I'm finding it very hard to reference it.

The FLA and XML is attached.

Any help would be greatly appricated.

View Replies !    View Related
Multiple XML Galleries
This is killing me...

I have multiple XML driven galleries in one swf that inlcude XML thumbnails.
Then I have a menu and when you click on the gallery you want to view, it loads the corresponding xml file.

The problem is when loading the new xml file, it doesnt remove the old xml files data, so if gallery 1 has 6 thumbnails and gallery 2 has 10, after you load gallery 2, then go back to gallery 1, there are 4 thumbnails left from gallery 2.

i'm sorry that this sounds like a terrible math word problem.

Please help me! Thanks!

View Replies !    View Related
3D Thumbnail Galleries
Here I have made some 3D thumbnail galleries using Papervision3D and based on Lee Brimelow's sample.

3D Thumbnail Box
Spiral 3D Carousel





Hope you will find them useful for you.

View Replies !    View Related
XML Photo Galleries
I have done two XML Photo galleries , they are coded in as 3.0, the sources are available.
http://www.webdesign-flash.ro/p/galerie7/
http://www.webdesign-flash.ro/p/galerie8/
I hope somone will find them useful.

View Replies !    View Related
Some Problems With Galleries
Hi all!

I'm new to this site, followed here after oldnewbie (hey, body )... Anyway, I have a few problems with a site I've built, but let's start with one by one.

You can see the site here: www.ironintoart.com. When you click on one of the galleries you should see thumbnails on the left and a bigger images on the right. The bigger images work just fine, but the thumbnails... They work fine on my PC, but from some reason I can't see them here... Any ideas what may be the problem?
P.S. I'm using a component for those galleries, but again, everything worked fine on my PC...
P.P.S. Any other comments about the site are welcome!

Thanks in advance!!!

Edit: just noticed that I can see the first 2 thumbnails in "House gates" and "Misc." galleries... Weird!

View Replies !    View Related
Photoshop Web Galleries
There are two flash galleries on CS2 Photoshop but I was wondering is there anywhere that I may be able to download more templates? I have had a look around but cannot locate any. Any one know of any I can download?

Thanks

View Replies !    View Related
Xml Photo Galleries
Hi,
I am making a site with 3 photo sections.
When the page loads, I want photos to load automatically as if viewing a slideshow.
This is working.

Then when the user clicks on a category, it will load a photo section that DOES NOT load automatically - you would have to use arrows.
I tried to set this up, but...

My problem is this:
The photos load automatically when the page loads correctly, but when I click on a button to load a category, the new photos load, but they load as a slideshow too even though I don't want them to.
Hope this makes sense.
Any suggestions?

View Replies !    View Related
Xml Photo Galleries
Hi,
I have one category set up to load photos via xml.
I want to be able to click on another category and load another set of photos.
How do I set up my actionscript to do this?
Should I use the same xml file, or make a second one?
I attached my file.
Thanks so much!











Attach Code

function loadXML(loaded) {
if (loaded) {
xSite = this.firstChild;
// get base path
_root.basepath = xSite.childNodes[0].firstChild.nodeValue;
//trace(basepath);
// load images
images = [];
xImages = xSite.childNodes[1];
total = xImages.childNodes.length;

trace("total: " + total);

cols = 0;
rows = 0;
for (i=0; i<total; i++) {
images[i] = [];
images[i].file = xImages.childNodes[i].childNodes[0].firstChild;
images[i].caption = xImages.childNodes[i].childNodes[1].firstChild;
//trace(images[i].file);
//trace( thumbHolder.getNextHighestDepth());
thn = thumbHolder.attachMovie("thumbButton_01", "x" + i, thumbHolder.getNextHighestDepth());

thn.myNumber = i;
thn.myFile = images[i].file;
thn.myCaption = images[i].caption;

thn._x = -10.0 + (cols * 45.5);
thn._y = 25.5 + (rows * 45.5);

cols += 1;
if(cols == 4) {
rows += 1;
cols = 0;
}
}
thumbHolder.attachMovie("whiteMaskMC", "whiteMask", thumbHolder.getNextHighestDepth());
thumbHolder.whiteMask._x = 51.2;
thumbHolder.whiteMask._y = 30.8;
for (i=0; i<total; i++) {
thumbHolder.createEmptyMovieClip("z"+ i, thumbHolder.getNextHighestDepth());
}

totalPics = total;
pages = Math.ceil(totalPics / 20);
// if one page, hide arrows
if(pages == 1) {
down._visible = false;
up._visible = false;
}

thumbHolder["x0"].onRelease();
} else {
content = "file not loaded!";
}
}


xmlLoaded = false;
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("base.xml");

opl = new MovieClipLoader();
opl.onLoadProgress = function(target, bytesLoaded, bytesTotal) {
target._parent.bLoaded = bytesLoaded;
target._parent.bTotal = bytesTotal;
}
opl.onLoadComplete = function(target) {
target._parent.bLoaded = target._parent.bTotal;
target._parent._visible = false;
}
opl.onLoadError = function(target, errorCode) {
trace('load error');
target._parent.bLoaded = target._parent.bTotal;
target._parent._visible = false;
}

mcl = new MovieClipLoader();
mcl.onLoadInit = function(target_mc:MovieClip) {
target_mc._parent.loadComplete = true;
};
mcl.onLoadProgress = function(target_mc:MovieClip, bytesLoaded:Number, bytesTotal:Number) {
//trace(Math.round(bytesLoaded/bytesTotal*100));
};
mcl.onLoadComplete = function(target_mc:MovieClip) {
target_mc._parent.loadComplete = true;
};

View Replies !    View Related
Loading 2 Galleries Via XML
Hi,
I have two buttons on stage, to load pictures from gallery 1 (gotoAndPlay ("slider1")) and gallery 2 (gotoAndPlay ("slider2")) respectively. I changed the variable in [quote] _root.xmlfile [/quote] in the second set (slider2)

mybtn1 loads gallery1 without any problem
mybtn2 loads only one picture from gallery2, nor the text is loaded.
link
Kindly advise how to get that to work.
Thank you

View Replies !    View Related
Photo Galleries
I was wondering how I would go about creating a photo gallery like this:

http://www.seanjohn.com/sj6/

http://imagevuex.inn.no/images/

Would you use some kind of mask with minimized opacity? I understand that the second gallery is all dynamically animated with actionscript. Can anyone point me to a site or sites that may have actionscript tutorials similar to the examples above?

Thanks in advance!

View Replies !    View Related
Concerning Photo Galleries...
I tried using the tutorial here for creating a photo gallery using a folder and flash reads them and "imports" them into the swf. however for some reason i cannot get this to work.

Is there an simplier one around anywhere for a moron like me?

Thanks, Roman

View Replies !    View Related
Globals And Galleries
Hey Kids,

OK, here's the situation:

I have a main swf file calling another swf file into a container movie for a gallery.

The swf file being called has _root stuff on it, so I worked the _global variable on it, and everything is working fine.

Until I load it into the gallery, then the button on the loaded swf file no longer works. I think I am missing something.

code on loaded swf button:

Code:
on (press) {
myAppMain.clip.gotoAndPlay(2);
myAppMain.clip.fall.text = myAppMain.clip.nofall.text;
myAppMain.clip.nofall.text = "Dance Elements";
gotoAndStop(2);
}
and yes, the global is in the main timeline. My question is, does there have to be something in the main movie file? Here's the code on the button calling the loaded swf file:

Code:
on (release) {
loadMovie("flashwork/danceele.swf", "_parent.flash");
}
the _parent is there because the main swf file is also loaded into <i>another</i> swf file which is the real movie, but means nothing to us for this example. The container movie is called "flash".

Any help is really appreciated.

P

View Replies !    View Related
Combing Galleries
Hi all,
does anybody know if it is possible to combine the V3 gallery with thumbs and the resize shadow - I want to have a drop shadow on of the movieclip that the image loads into. i.e - could I develop a shape in photoshop such as a rectangle with a drop shadow added and have this resizing and loading the image into.

Hope you get me, thanks in advance
R

View Replies !    View Related
Multiple Galleries, 1 XML
I found a thread that had a fla of a gallery that used only 1 xml files to load 4 different thumbnail galleries. As bad luck would have it I didn't get a chance to subscribe to the thread before someone at home closed the window. I've done a few searches but can't seem to find it.

Can someone either point me to this thread or help me modify the attached fla to do the same.

View Replies !    View Related
My Client Cant See These Galleries
http://www.duluthphotographer.com/weddings.html

I used the XML gallery w/thumbnails in the tutorial section of this site. It worked great, but my client cant see it! She is on DSL, i think it may be taking too long to load. Does anyone know how this movie loads? Does it load ALL of the thumbnails when the movie starts? If thats the case, i can see why she might have some problems. I just checked, I have 24 thumbs that are saved without any compression (60k a piece). Thats almost 1.5 megs. Can someone with lower than a cable connection give this site a quick look? There will some other bugs, the site isnt finished yet. Thanks!

View Replies !    View Related
Xml Multiple Galleries
Hi everyone...

I'm trying to do an xml photo gallery which holds a few galleries in the same file...by that I mean only having 1 swf which calls on only 1 xml file. There would be buttons in that swf that loads different galleries but only calling the same xml file...am I making any sense?

Anyway, I do not want thumbnails but rather only next and previous buttons. I've managed to make the gallery work but that is only it being a single gallery - and the pictures will load at an angle.

Can anyone out there help me with how I can add multiple galleries into my file? Also, does my xml file have to change as well? I am attaching my fla and xml file too...please help

View Replies !    View Related
Multiple XML Galleries In One Swf
Now then!

I'm trying to get multiple XML galleries in one swf at the same time.
It's more or less the photo gallery tut, but with this duplicated below it a certain amount of times.

I've adapted the XML file. The actionscript duplicates the photo gallery the amount of times that the XML needs it to.

This is working fine, but I can't preload anything or fade.
I've got the actionscript to create the holder movie clip for the larger images, and I'm finding it very hard to reference it.

The FLA and XML is attached.

Any help would be greatly appricated.

View Replies !    View Related
Multiple Galleries
I was wondering if it is possible to add a few buttons to the Photo Gallery W/ Thumbnails that would load different sets of pictures. Would I have to unload the current XML file and load a new one in order to switch galleries? Thanks.

View Replies !    View Related
XML In Image Galleries
OK. I have an xml gallery that loads images into a mc(called thumbsContainer). I have a dropdown menu with 3 portfolios which, ideally, would load a different xml file for each. So far, everything works fine for first "click." Problem is: thumbs do not load into thumbsContainer visually on second or third click. I do not know if the problem is that I have to "unload" the xml first (which I have NO idea how to do) or what. I would appreciate any help on this as I am completely stuck. Thanks!

OK, the AS3:

ActionScript Code:
public class ScriptOne extends Sprite {
private var _xml:XML;
private var _currentImage:int=0,_currentThumb:int=-1,_numThumbs:int;
private var _thumbSize:Number=25,_spacing:Number=5;
private var _columnSize:uint=15;
private var _loader:Loader = new Loader();
private var _thumbArray:Array=new Array();
public function ScriptOne() {
_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoaderCompleteEvent);
_loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
box.addChild(_loader);

var xmlLoader:URLLoader = new URLLoader();
xmlLoader.addEventListener(Event.COMPLETE, onImagesXMLLoadComplete);
xmlLoader.load(new URLRequest("images2.xml"));


}
private function get currentImage():int {
return _currentImage;
}
private function set currentImage(number:int):void {
_currentImage=number<0?_xml.photos.length()-1:number>_xml.photos.length()-1?0:number;
}
private function onImagesXMLLoadComplete(event:Event):void {
try {
_xml = new XML(event.target.data);
_loader.load(new URLRequest(_xml.photos[currentImage].large.toString()));
_numThumbs=_xml.photos.length();
for (var i:uint=0;i<_numThumbs;i++) {
_thumbArray[i]=new Loader();
_thumbArray[i].y=(i % _columnSize) * (_thumbSize + _spacing);
_thumbArray[i].x=Math.floor(i / _columnSize) * (_thumbSize + _spacing);
_thumbArray[i].addEventListener(MouseEvent.CLICK,loadImage);
_thumbArray[i].name=i;
thumbsContainer.addChild(_thumbArray[i]);
}
loadNextThumb();
} catch (error:TypeError) {
trace(error.message);
}
}
private function loadNextThumb():void {
if (this._thumbArray[++_currentThumb]) {
this._thumbArray[_currentThumb].contentLoaderInfo.addEventListener(Event.COMPLETE,_thumbComplete);
this._thumbArray[_currentThumb].contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR,_thumbIOErrorHandler);
this._thumbArray[_currentThumb].load(new URLRequest(this._xml.photos[this._currentThumb].small.toString()));
}
}
private function _thumbComplete(event:Event):void {
event.target.content.width=event.target.content.height=_thumbSize;
_thumbIOErrorHandler(event);
}
private function _thumbIOErrorHandler(event:Event):void {
event.target.removeEventListener(Event.COMPLETE,_thumbComplete);
event.target.removeEventListener(IOErrorEvent.IO_ERROR,_thumbIOErrorHandler);
loadNextThumb();
}
private function ioErrorHandler(event:IOErrorEvent):void {
trace(event.text);
}
private function onLoaderCompleteEvent(event:Event):void {
trace("onLoaderCompleteEvent");
}
private function loadImage(event:MouseEvent):void {
if (event) currentImage=event.target.name;
_loader.load(new URLRequest(_xml.photos[currentImage].large.toString()));//

}
}
}




and the xml, is pretty straightforward...

<?xml version="1.0" standalone="yes" ?>
<images>
<photos>
<large>photos/large/house.jpg</large>
<small>photos/small/house_sm.jpg</small>
<words>HOME : PORTFOLIOS : PORTFOLIO 1 : house</words>
</photos>
<photos>
<large>photos/large/chair.jpg</large>
<small>photos/small/chair_sm.jpg</small>
<words>HOME : PORTFOLIOS : PORTFOLIO 1 : chair</words>
</photos>
<photos>
<large>photos/large/boy.jpg</large>
<small>photos/small/boy_sm.jpg</small>
<words>HOME : PORTFOLIOS : PORTFOLIO 1 : boy</words>
</photos>
<photos>
<large>photos/large/plant.jpg</large>
<small>photos/small/plant_sm.jpg</small>
<words>HOME : PORTFOLIOS : PORTFOLIO 1 : plant</words>
</photos>
<photos>
<large>photos/large/cat.jpg</large>
<small>photos/small/cat_sm.jpg</small>
<words>HOME : PORTFOLIOS : PORTFOLIO 1 : Cat</words>
</photos>
<photos>
<large>photos/large/car.jpg</large>
<small>photos/small/car_sm.jpg</small>
<words>HOME : PORTFOLIOS : PORTFOLIO 1 : car</words>
</photos>
</images>

So, there it is...<large> is image to be centered in mc("box") while <small> is thumbnail...right now, the <words> are working properly, for instance...though thumbnails do not change after loading first gallery, clicking on different thumbs brings proper text to textField...it will say "PORTFOLIO 2", though thumb shown is from portfolio 1. Any ideas?

View Replies !    View Related
Loading 2 Galleries Via XML
Hi,
I have two buttons on stage, to load pictures from gallery 1 (gotoAndPlay ("slider1")) and gallery 2 (gotoAndPlay ("slider2")) respectively. I changed the variable in
Quote:




_root.xmlfile




in the second set (slider2)

mybtn1 loads gallery1 without any problem
mybtn2 loads only one picture from gallery2, nor the text is loaded.

Kindly advise how to get that to work.
Thank you:yes:

http://www.4shared.com/file/57663342/1f3511bd/uxk4.html

View Replies !    View Related
Photo Galleries
I was wondering how I would go about creating a photo gallery like this:

http://www.seanjohn.com/sj6/

http://imagevuex.inn.no/images/

Would you use some kind of mask with minimized opacity? I understand that the second gallery is all dynamically animated with actionscript. Can anyone point me to a site or sites that may have actionscript tutorials similar to the examples above?

Thanks in advance!

View Replies !    View Related
Concerning Photo Galleries...
I tried using the tutorial here for creating a photo gallery using a folder and flash reads them and "imports" them into the swf. however for some reason i cannot get this to work.

Is there an simplier one around anywhere for a moron like me?

Thanks, Roman

View Replies !    View Related
Combing Galleries
Hi all,
does anybody know if it is possible to combine the V3 gallery with thumbs and the resize shadow - I want to have a drop shadow on of the movieclip that the image loads into. i.e - could I develop a shape in photoshop such as a rectangle with a drop shadow added and have this resizing and loading the image into.

Hope you get me, thanks in advance
R

View Replies !    View Related
Galleries Ad Nauseum
Friends,

Well, I looked at past entries, desperately trying to avoid asking this question, but was not sufficiently enlightened by the posts I saw... thus:

I am trying to create a preloader (like just about every other Flasher in the world) and I'm having some difficulty. The site I'm working on requires Flash Player version 7, so make sure to upgrade if you haven't already:

www.leesatkowksi.com

You'll notice that I have a loader movie set up as a kind of BACKGROUND movieclip, only on top of which the images load (just once a thumbnail is pressed). It's confusing, not-intuitive, and seriously affects the intial impression. It looks, but does not function, like a preloader.

I'd like the simplest preloader possible. All I want is my loader.swf movieclip to play during the external image load and and stop once loaded. Make sense? Thanks (prospective) for your review!

View Replies !    View Related
AS2 - Loading 2 Galleries Via XML
Hi,
I have two buttons on stage, to load pictures from gallery 1 (gotoAndPlay ("slider1")) and gallery 2 (gotoAndPlay ("slider2")) respectively. I changed the variable in



_root.xmlfile

in the second set (slider2)

mybtn1 loads gallery1 without any problem
mybtn2 loads only one picture from gallery2, nor the text is loaded.

Kindly advise how to get that to work.
Thank you















Attached Files

View Replies !    View Related
Image Galleries Using Flash Mx Possible?
On my site I have an image gallery. Is it possible in flash to load thumbnail (jpeg) images from from one external folder. Place thumbnails behind invisable buttons so that when thumbnail is clicked on by the user the full image (stored in another folder will be loaded into a different frame on the web page. I would need the flash file to load 50 thumbnail images. Importing the images makes the flash file to big.

View Replies !    View Related
Amazing Tip For DYNAMIC GALLERIES
So you name your pictures pic1.jpg, pic2.jpg pic3.jpg ...and so on, and load them one after one using something like:
i++
loadMovie("pic"+i+".jpg",picHolderMc);

The question has been the following:

"How do I get the number of images on the server"?

some of us gave up the idea of getting the number from flash before even trying it. So did I and loaded all the image filenames and the amount from a textfile. But now I decided to test my idea, and I dont understand why I havent tested it before, because IT WORKS!!!


var totalBytesOfFile=picHolderMc.getBytesTotal();

if(totalBytesOfFile>0){

//statments that make the loading and duplicating continue
}
else{
//the getBytesTotal command did not return anything that
//can be approved by the condition.
// WE HAVE REACHED THE END OF IMAGEFILES ON THE SERVER

//statments that makes the loading and duplicating stop
}



Happy developing

View Replies !    View Related
Flash MX -copying Galleries
Hi everyone. Can anyone please help a complete newbie?

Here's my problem:

I bought a Flash MX template for a modelling site and it has 3 galleries. But, only gallery one is there - I need to copy it to make gallery 2 and 3 and I haven't got a clue how to do it! I'm sure it's a two minute job for someone who knows what they're doing. If you can help, please email me at samco98@hotmail.com

TIA

Cameron

View Replies !    View Related
Preloaders For Image Galleries
I am doing a site with a picture gallery in it, however the images I want to include are really adding to the swf file size. I have seen loads of sites that will have a preloader appear as each individual image in the gallery loads up, does anyone know what is going on when this happens???

View Replies !    View Related
Help With Simpleviewer & Multiple Galleries
Hello All,

I'm trying to make a web gallery using the simpleviewer script (http://www.airtightinteractive.com/simpleviewer/) but ran into a stumbling block. I want to make multiple galleries using the "viewer.swf" file but it has to stay on the root of my server in order for it to work because there are an 'images' folder and a 'thumbs' folder it has to access.

If I can put the 'viewer.swf' file, the 'images' folder, and the 'thumbs' folder into another directory and run it from there, it should work.

Right now I'm loading the .swf file into an empty movie container that loads it off the root of my server. Soooo I need to know how to script a button so it loads the movie from another directory. This is what my button script looks like now:

on (release) {
_root.mtClip.loadMovie("viewer.swf");
}

I need it so that it goes into www.mysite.com/gallery/commercial and load the .swf file from there.

If anyone can help me with this, that would be great!

Thanks
Ryan

View Replies !    View Related
Displaying Multiple XML Galleries
Okay, so I did what I was supposed to do. I've looked through hundreds of posts for the answer to this. many come close to addressing/resolving my question but not dead on. I have the typical XML enabled photo gallery. I am using this format to display different themed galleries. So for example, one will be pictures from 2004, another from 2005 and so on. I want a button to load the appropriate .xml file and begin to display the images while still being able to use the same previous and next buttons that are already on the page. Can anyone help? I thought about assignign each gallery to it's own frame and having a 2004 button just go to the appropriate frame, but I am trying to really make this dynamic. Any help would greatly be appreciated. Below is the code I have so far. Thanks in advance!



function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
//declare image and description as array
image = [];
description = [];
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;
}
firstImage();
} else {
content.text = "file not loaded!";
}
}
xmlAlbum = new XML();
xmlAlbum.ignoreWhite = true;
xmlAlbum.onLoad = loadXML;
xmlAlbum.load("images.xml");
//////////////////////////////////////////////
p = 0;
function nextImage() {
if (p<(total-1)) {
p++;
photo_mc.loadPhoto(image[p]);
desc_txt.text = description[p];
picture_num();
}
}
function prevImage() {
if (p>0) {
p--;
photo_mc.loadPhoto(image[p]);
desc_txt.text = description[p];
picture_num();
}
}
function firstImage() {
photo_mc.loadPhoto(image[0]);
desc_txt.text = description[p];
picture_num();
}
///////////////////////////////////////////////
var SPACING = 10
photo_mc._alpha = 0;
MovieClip.prototype.loadPhoto = function(photo) {
photo_mc._alpha = 0;
this.loadMovie(photo);
_level0.onEnterFrame = function() {
// modified the total and loaded so as to round it up
// to smaller number.
var total = photo_mc.getBytesTotal();
var loaded =photo_mc.getBytesLoaded();
if (total != 0 && Math.round(total/loaded) == 1 && photo_mc._width>0)
{
var w = photo_mc._width+SPACING, h = photo_mc._height+SPACING;
border.resize(w, h, pic);
delete this.onEnterFrame;
}
};
};
MovieClip.prototype.resize = function(w, h, pic)
{
//the higher the slower the resize of the border
var speed = 2;
photo_mc._alpha = 0;
this.onEnterFrame = function()
{
this._width += (w-this._width)/speed;
this._height += (h-this._height)/speed;
if (Math.abs(this._width-w)<1 && Math.abs(this._height-h)<1)
{
this._width = w;
this._height = h;
photo_mc._x = this._x-this._width/2+SPACING/2;
photo_mc._y = this._y-this._height/2+SPACING/2;
photo_mc._alpha += 20;
if (photo_mc._alpha>90)
{
photo_mc._alpha = 100;
delete this.onEnterFrame;
}
}
};
};
previous_btn.onRelease = function() {
prevImage();
};
next_btn.onRelease = function() {
nextImage();
};

function picture_num() {
current_pos = p+1;
pos_txt.text = current_pos+" / "+total;
}
if (p == 0) {
previous_btn._alpha = 100;
previous_btn.enabled = true;
} else {
previous_btn._alpha = 100;
previous_btn.enabled = false;
}
if (p == (total-1)) {
next_btn._alpha = 50;
next_btn.enabled = false;
} else {
next_btn._alpha = 100;
next_btn.enabled = true;
}

View Replies !    View Related
Help With Loading Multiple Galleries
Hey guys I'm trying to get ahold of the concept of loading multiple pages (or in my case galleries) into a content area. I guess the problem I'm having trouble with is when I've got a gallery loaded and I try to switch to another gallery the 1st one won't go away. Here is the way its setup.


ActionScript Code:
_root.holder
_root.holder.galleryHolder
_root.holder.galleryHolder.thumbHolder[i]
_root.holder.galleryHolder.thumbHolder.name
_root.holder.galleryHolder.thumbHolder.image
...

All of them getting put into the parents nextHighestDepth. So lets say I click on the gallery 'Cats', all the images load perfect in the above structure. So then I click on 'Dogs' and all the images load... behind the 'Cats' gallery, which never unloaded. So obviously I'm not expecting this to happen by itself. I just thought that perhaps one of these function would clear the 'Cat' gallery, but its not really working.


ActionScript Code:
_root.holder.clear();

OR

_root.holder.removeMovieClip();

OR


_root.holder.galleryHolder.clear();

OR

_root.holder.galleryHolder.removeMovieClip();

So I guess my trouble is this... if I remove or clear the parent clip are all the other supposed to disaper too? What is a good way to handle this situation where you have different content you need to load in an area. Thanks!

View Replies !    View Related
Loading Random Galleries
Hello,

My page loads the "home" gallery upon load. I currently have 4 galleries I'd like to rotate through. I've tried manipulating some random scripts with no luck. Any suggestions ? Gallery names are "gallery1" "gallery2" "gallery3" "gallery4".

This script loads "home" on load which I want to take out of the rotation completely.


_root.gallery = "home";
_root.pic = "1";
_root.galTitle = "HOME GALLERY";
_root.action = "next";
stop();

View Replies !    View Related
RSS, XML, CMS, Flash & Fading Galleries
Hey guys. I have several objects that I can't seem to see over. I'm just going round in circles so I figured here would be the place to come.

Firstly, and maybe the easier of the two:

I need to build a gallery that looks really nice. Basically it follows this structure:
1. User clicks a thumbnail.
2. Preloader comes up and preloads image.
3. Once loaded, image fades in (goes from alpha-0 to alpha-100).
4. Upon click of another thumbnail the image fades out and the whole things starts over.

I can get it to work - without fading. Basically I just need to be pointed in the right direction with this one. Here's the code I'm using:


Code:
function startPreload(url){
_root.createEmptyMovieClip("holder", 100);
_root.holder.loadMovie(url);

attachMovie("preloader anim", "preloader_mc", 850, {_x: Stage.width / 2, _y: Stage.height / 2});
onEnterFrame = preloadContainer;
}


function preloadContainer() {
var bytes_loaded = _root.holder.getBytesLoaded();
var bytes_total = _root.holder.getBytesTotal();
_root.holder.stop();
_root.holder._visible = false;
if (bytes_total>0) {
var percent_loaded = bytes_loaded/bytes_total;
preloader_mc.value = percent_loaded;
if (percent_loaded == 1) {
if ((bytes_loaded>=bytes_total) && (bytes_total>20) && (holder._width>1)) {
var _w = _root.holder._width;
var _h = _root.holder._height;
var _b_mc = Stage;
var maxW = 850;
var maxH = 505;
_root.holder._x = (850/2)+Math.floor((maxW-holder._width)/2);
_root.holder._y = (505/2)+Math.floor((maxH-holder._height)/2);
preloader_mc.removeMovieClip();
delete onEnterFrame;
}
}
_root.holder.play();
_root.holder._visible = true;
}
}

The second issue. I need a really simple CMS, something so news articles can be posted within the flash movie. I'm thinking the best way is to get a basic CMS that can create RSS feeds then get flash to read in the XML. I've started but this stuff is kind of out of my limited little-league.

Another prod in the right direction would be well appreciated.


thanks!!

View Replies !    View Related
XML Galleries/Navigations/Portfolios
Heya,

i am looking for some suggestions on how professionals build dynamic xml galleries, navigations or portfolios for their flash sites.

Let´s say i would like to do the following:

- a smooth and clean looking portfolio navigation (gallery) or how you call it :-)
- this thing should load the main content like images from the xml file with description, date, url)
- in size and form every single element should look similar but has different content
- It should be able to tween/animate every single element or every elemets together (transitionIn/Out)
- It should have a kind of "sort" function like (sort by description, date, url and so on) If the user only wants to see portfolio items for the year 2008 it should transition out every other elements)
- the content should be unlimited but kind of positioned in a fixed way to the stage. So it should be able to forward, backward navigate thrue the portfolio

some examples for what i mean is:

http://www.tiltdesignstudio.com/
http://www.truly-design.com/site

how to start with something like this?

View Replies !    View Related
Member Image Galleries Please Help..
Hello I am trying to find some help on how to setup a user/pass page that loads an image gallery based on the the login username.

example:
username: joe
password : ******

this would dynamically load the images from a folder named joe created by the site admin. it would only allow access to this folder based on the user and password. I would be able to use flash, dreamweaver, a comdo of the 2, and php.

A link to a previous tutorial would be fantastic.

Thank you in advanced for any help on this matter.

View Replies !    View Related
XML Galleries And Image Transitions In AS
Ok I have been wondering for a little while as to how to do this but some websites out there load images using XML. All that is fine, what I dont quite get is how to make the nice transition between photos? The best example I can provide is on my friends website he recently completed: http://www.ameereehal.com

(Go to the portfolio section and browse some pictures)

Can anyone provide any tutorials on how to do this as I could not find much on Kirupa regarding this?

View Replies !    View Related
Multiple Photo Galleries?
Hey all, been Working on my new website, and trying to get a dynamic Photo gallery working, I got it working fine for one section, But say i had 4 other section with different images in each section, How would i go around to do this, setting up a array for each section? Any help will be great.

View Replies !    View Related
Deadline Approaching...Please Help - Xml Galleries
OK, 2 Things -

I am using a combination of the xml resize gallery , and have a question. After a long time searching, i cant EXACTALLY find what I need...

I need to add an additional dynamic text box that uses smooth scrolling to display a long description of the displayed picture.

how in the world?

AS CODE:
var tnNr;
spacing = 10;
container._alpha = 0;
var curLength;
MovieClip.prototype.loadPic = function(pic, id) {
info.text = "";
this._alpha = 0;
this.loadMovie(pic);
temp = this._parent.createEmptyMovieClip("temp2", 998);
temp.onEnterFrame = function() {

var t = container.getBytesTotal(), l = container.getBytesLoaded();
if (Math.round(l/t) == 1 && container._width != 0 && container._height != 0) {
var w = container._width+spacing, h = container._height+spacing;
border.resizeMe(w, h, id);
delete this.onEnterFrame;
}
};
};
MovieClip.prototype.resizeMe = function(w, h, id) {
var speed = 3;
container._alpha = 0;
this.onEnterFrame = function() {
this._width += (w-this._width)/speed;
this._height += (h-this._height)/speed;
if (Math.abs(this._width-w)<1 && Math.abs(this._height-h)<1) {
this._width = w;
this._height = h;
container._x = this._x-this._width/2+spacing/2;
container._y = this._y-this._height/2+spacing/2;
info._x = Math.round(this._x+this._height/2+spacing/2);
container._alpha += 5;
if (container._alpha>90) {
info.text = id;
container._alpha = 100;
delete this.onEnterFrame;
}
}
};
};
function galleryChoice(q) {
pArray = new Array();
tArray = new Array();
iArray = new Array();
dArray = new Array();
my_xml = new XML();
for (var j = 0; j<curLength; j++) {
this.th_nav["thmb"+j].removeMovieClip();
}
my_xml.ignoreWhite = true;
my_xml.onLoad = function(loaded) {
if (loaded) {
gallery = this.firstChild.childNodes[q];
curLength = gallery.childNodes.length;
for (var i = 0; i<gallery.childNodes.length; i++) {
pArray.push(gallery.childNodes[i].attributes.source);
tArray.push(gallery.childNodes[i].attributes.thumb);
iArray.push(gallery.childNodes[i].attributes.title);
dArray.push(gallery.childNodes[i].attributes.description);
}
}
delay = setInterval(makeButtons, 50);
};
my_xml.load("gallery.xml");
}
function makeButtons() {
tnNr = 0;
clearInterval(delay);
for (var i = 0; i<tArray.length; i++) {
var thb = th_nav.thmb.duplicateMovieClip("thmb"+i, 1000+i);
thb.id = i;
thb._x = i%3*50;
thb._y = Math.floor(i/3)*50;
}
loadButtons();
}
function loadButtons() {
var tbox = th_nav["thmb"+tnNr].box;
tbox.loadMovie(tArray[tnNr]);
temp = this.createEmptyMovieClip("tmp"+tnNr, 999);
temp.onEnterFrame = function() {
bt = tbox.getBytesTotal();
bl = tbox.getBytesLoaded();
if (bt == bl && bt>4) {
nextButton();
delete this.onEnterFrame;
}
};
}
function nextButton() {
if (tnNr<tArray.length-1) {
tnNr++;
loadButtons();
} else {
activateButtons();
}
}
function activateButtons() {
mainButtons();
for (var i = 0; i<pArray.length; i++) {
var but = th_nav["thmb"+i];
but.id = i;
but.onRelease = function() {
container.loadPic(pArray[this.id], iArray[this.id], dArray[this.id]);
disButtons2(this.id);
};
}
container.loadPic(pArray[0], iArray[0], dArray[0]);
disButtons2(0);
}
butArray = new Array();
butArray = ["gal1_btn", "gal2_btn", "gal3_btn", "gal4_btn"];
function mainButtons() {
for (var i = 0; i<butArray.length; i++) {
this[butArray[i]].id = i;
this[butArray[i]].onRelease = function() {
galleryChoice(this.id);
disButtons(this.id);
};
}
}
function disButtons2(d) {
for (var i = 0; i<tArray.length; i++) {
if (i != d) {
this.th_nav["thmb"+i].enabled = 1;
this.th_nav["thmb"+i].box._alpha = 100;
} else {
this.th_nav["thmb"+i].enabled = 0;
this.th_nav["thmb"+i].box._alpha = 50;
}
}
}
function disButtons(d) {
for (var i = 0; i<butArray.length; i++) {
if (i != d) {
this[butArray[i]].enabled = 1;
this[butArray[i]].gotoAndStop(1);
} else {
this[butArray[i]].enabled = 0;
this[butArray[i]].gotoAndStop(2);
}
}
}
disButtons(0);
galleryChoice(0);


------------------------------------------------------

secondly,
I am using scotty's vertical xml scroller and need it to start scrolling very slowly on load..

Here is it:

http://www.epic-pc.com/vertgallery.swf

Please help my eyes feel crossed from searching and trying different code! Thanks you

AS CODE:
MovieClip.prototype.easeY = function(y){
this.onEnterFrame = function(){
this._y = y-(y-this._y)/1.2;
if(Math.abs(y-this._y) <= 1){
delete this.onEnterFrame;
this._y = y;
}
}
}
spacing = 10;
containerMC._alpha = 0;
pArray = new Array();
pictArray = new Array();
captiont=new Array();
MovieClip.prototype.loadPic = function(pic) {
this._alpha = 0;
this.loadMovie(pArray[pic]);
caption_txt.text=captiont[pic];
this._parent.onEnterFrame = function() {
var t = containerMC.getBytesTotal(), l = containerMC.getBytesLoaded();
bar._visible = 1;
per = Math.round((l/t)*100);
if (t != 0 && Math.round(l/t) == 1 && containerMC._width != 0) {
var w = containerMC._width+spacing, h = containerMC._height+spacing;
border.resizeMe(w, h);
bar._visible = 0;
delete this.onEnterFrame;
} else {
bar._width = per;
}
};
};
MovieClip.prototype.resizeMe = function(w, h, pic) {
var speed = 3;
this.onEnterFrame = function() {
this._width += (w-this._width)/speed;
this._height += (h-this._height)/speed;
if (Math.abs(this._width-w)<1 && Math.abs(this._height-h)<1) {
this._width = w;
this._height = h;
containerMC._x = this._x-this._width/2+spacing/2;
containerMC._y = this._y-this._height/2+spacing/2;
containerMC._alpha = 100;
delete this.onEnterFrame;
}
};
};
my_xml = new XML();
my_xml.ignoreWhite = true;
my_xml.onLoad = function(success) {
if (success) {
for (var i = 0; i<this.firstChild.childNodes.length; i++) {
pictArray.push(this.firstChild.childNodes[i].attributes.thumb);
pArray.push(this.firstChild.childNodes[i].attributes.image);
captiont.push(this.firstChild.childNodes[i].attributes.captiontx);
}
}
delay = setInterval(makeMenu, 100);
};
my_xml.load("newgallery.xml");
var menu = this.createEmptyMovieClip("menu_tot", 99);
menu.setMask(mask);
menu._x = mask._x;
menu._y = mask._y;
var sub_menu = menu.createEmptyMovieClip("menu", 100);
var p = 0;
var q = 0;
var loadper = 0;
function makeMenu() {
clearInterval(delay);
var item = sub_menu.createEmptyMovieClip("pic"+q, q);
item.loadMovie(pictArray[p]);
var temp = _parent.createEmptyMovieClip("tmp", 9999+q);
temp.onEnterFrame = function() {
var tot = item.getBytesTotal();
var loa = item.getBytesLoaded();
var per = Math.round(((loa/tot)*100)/(pictArray.length));
loadBar._yscale = loadper+per;
if (tot == loa && tot>4) {
item.id = p;
loadper += per;
if (q>0) {
item._y = sub_menu["pic"+(q-1)]._y+sub_menu["pic"+(q-1)]._height+10;
} else {
item._y = 0;
}
item.onRelease = function() {
containerMC.loadPic(this.id);
};
nextItem();
delete this.onEnterFrame;
}
};
}
var amount = pictArray.length-1;
function nextItem() {
if (q<((pictArray.length)-1)) {
q++;
if (p<(pictArray.length-1)) {
p++;
makeMenu();
} else {
p = 0;
makeMenu();
}
} else {
activateMenu();
}
}
function activateMenu() {
containerMC.loadPic(0);
menu.onEnterFrame = function() {
if (mask.hitTest(_level0._root._xmouse, _level0._root._ymouse)) {
diffspacing = 20;
diff = this._parent._ymouse - (this._y+diffspacing);
scale = diff*100/(mask._height-2*diffspacing); // once to compensate, another to add
scale = Math.max(0,Math.min(100,scale)); // confine within 0->100
target = -scale*(sub_menu._height-mask._height)/100;
sub_menu.easeY(target);
}
};
}


Thanks you soo much!!

View Replies !    View Related
Multiple Photo Galleries In 1 Swf
k, so this problem arises from trying to use whats in this tutorial
http://www.kirupa.com/developer/mx/photogallery.htm
multiple times as different scenes in a swf. I set up a main scene to pick which photo gallery to go to, then from there it plays a little outro animation into the scene which then worked just fine like the tutorial file, until I added another scene, exactly the same, only it links to different pictures and a different directory, I changed that and thought it would work, but then neither would.

so, I assumed that stuff in the code of each scene must need to be independent of each other (it can't tell one thing to refer to something else in the code if the something else is listed twice in the swf). so I went thru and renamed every possible thing I could and I started to get somewhere, but I'm now stuck. I've gotten it to the point where it will load up the first image from each set, but the next photo and previous photo buttons don't work. I'm a definite newbie at code, but I did get this far on my own, so now I'm turning to you guys for help. thanks!

viewable swf, and downloadable fla (flash 8)
http://the1801.com/thejared/temp/test.html

View Replies !    View Related
Question About Thumbnail Galleries
I've been trying to learn flash lately and incorporate it into my self-promotional website. I wanted to make thumbnails and a gallery to view.

I used this tutorial: http://www.kirupa.com/developer/mx2004/thumbnails.htm

Needless to say it worked like a charm... however I have one small problem. I need the thumbnail gallery to scroll vertical not horizontal. I admit, I have no idea what I am doing. I read the tutorial over and over again and messed with the code in order to possibly 'Forrest Gump' my way to the answer. To no avail, I just don't understand the code yet.

Could someone point me in the right direction?

Much appreciation in advance!

View Replies !    View Related
How Do They Hide The Thumb Galleries ?
Check the site www.margecasey.com and see any photographer gallery. When the mouse is over the thumbnail word, the thumb gallery appears. What function/ class ??? do I have to use to do this simple but nice effect ?
Is is flash or action script ?
Thank you.

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