Actionscript 3.0 :: Php -> XML Photo Gallery Tutorial ?
Apr 15, 2008
I remember seeing a few tutorials here and there for using php to generate an XML file of all the pics in a directory. I tried looking for one but can't seem to find any. Does anyone have any links to one?
original: I really just need to figure out how to center the pictures. here is what I did I have modified the tutorial that I finished to have a bigger stage for bigger pictures. Everything is working properly but the pictures are displayed on the left side, I want to have them centered in the stage for the images, after clicking on the thumbnails, plus my images are different sizes as well. ranging from 200x410 to 744x410 but all are the same height of 410. i will post up what I am talking about at the end. I believe it is something within either the action script or the xml coding that allows the position of the image to be differently? please help here is what i am talking about[URL] Continued: Here is my coding in action script:
What I want to do is to make a gallery based on the tutorial gallery here (thumbs), but I want the user to be able to choose different galleries from within the movie. I figured that I could make a loop to cycle through the galleries, then nest another loop inside it to cycle through the pics, captions and thumbs. While I wrote, I constantly tested the output with trace commands, but when I tried nesting the loop I lost all output.. I'm pretty new to both Flash and Actionscript, so if theres an obvious solution I havent been able to see it.. This is my temp XML file:
i am trying to put some things together following the tutorials on this site. I did the tutorial 'Photo Gallery Using XML and Flash'and I followed it step by step and uploaded it with all the necessary files onto my remote server (xml file, Gallery folder, fla, swf, and html) - however, when I test the movie with flash, it seems to work fine (except the description test, my question to that later), but when I test it online it shows only the first image (but displays the correct number of images in the gallery); even when clicking the next button, it keeps loading the first image the first image. In other galleries (I use the structure for multiple galleries for my portfolio) the first image never loads at all.
Also, about the description text, in between the <caption> and </caption>, can I use <strong> and <em> and <br /> to change the appearance of my text? All it says is 'null'.If you want to look at what I mean check out my portfolio in the making. The problem with the first image displaying only is under 'paintings' and both the projects in 'design - packaging'. The second problem (no picture loading at all) is on some of the buttons in 'design - identity' (where I have not changed the description text of the tutorial yet). Again,
I was working with the XML Photo Gallery Thumbnail Tutorial on this site: [URL] And I modified it for my own usage, making it a vertical gallery instead, and had no problems until I came upon the thumbnail images. When I replaced the original thumbs with my new thumbs (that I sized based on width, as it is a vertical gallery) it got all screwed up. The images are of all different shapes. So when it loads up, some of them had huge gaps in between them, and others were even overlapping. So I fixed it by making the heights of all the images the same, resulting in a working thumb gallery, but now half my thumbs are cropped off by the mask. I'm looking for a way to fix it where I still have the same spacing between the images, and that they are all the same width, but can vary in their height. Here's the section of the code I am using:
I saw the tutorial here on how to make a Flash XML photo gallery with a scrolling thumbnail bar. Awesome!
The thing is, the example he DIDN'T choose to illustrate is the one I want make - exactly.[URl]..Is there somewhere else I can find this? The problem is that I have say, 16 photos and I want 4 displaying on the stage at one time. I want a forward / back button available to switch through the remaining 12 images, when the user clicks the buttons (as opposed to a scroller, which I find difficult to control and therefore less useable).
The problem comes when loading the four images from my XML file. I am able to load the first four, but how do I indicate in AS that the next four images are to be loaded, until there are no more images left? What if I add 5 more, I want to be able to have that AS load them. I was using a mod function in my script, but I keep getting the wrong remainder. I'll have to post the code later.
I modified a version of the xml photo gallery tutorial featured on this website, and am using that. But when my images pop up the quality is horrible. I've gone through and checked everything I know to look at. Then I decided to build my flash site twice as big, and use pictures that were twice as big to get some quality. This didn't work either..
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
i want each image that opens up from the scrolling thumbnails below to have another set buttons relating to the main image. for instance:
numbers = buttons linked to another set of external images that are related to the big image. the problem is i don't know what controls the thumbnail/main image when i click on the scroller (i'm kinda lost in the code). so right now i have only one set of numbers regardless of which big image opens up.
its for a photo gallery that I downlowded,the images fades in and out, but only start that when you click a button(timer).I'm trying to founf out where in the script I can change this, so that the photo's start automatically,rather than, on a button click.I have pasted the script below, is that ok, or would people rather a zip file of the files?
// (c) Copyright by Andrew DiFiore. All rights reserved. DO NOT REMOVE. fscommand("allowscale", "false"); Stage.scaleMode = "noScale";[code]......
I have an XML photo gallery, that when it starts it has a loader for the photos. It always starts with the XML file determined sequence, which is fine, but what happens is that the tabs on the right hand side of the photo loader go astray while it is loading the first photo. If the first photo was loaded instantly this wouldnt be an issue.Is there a way that I can preload that first photo, so that it is in memory when the swf file reads the XML file, allowing the first photo to be instantly loaded ?Amongst other things, I tried embedding the photo in the swf file, but it didnt work...obviously I have no idea what to script...I also created another scene, prior to the main scene, to preload the photo.. but it didnt work either, again probably used useless script...Going further in detail, this is the main script:
I have been searching for a particular photo gallery, and haven't got far. Here is an example of what I am looking for. With the example I wanting the user to be able to click on a photo for it to appear in the box above. I am looking for a tutorial, so I can customise to fit in my client's flash website.
i am trying to add extra images to the photo gallery attached. I would have thought it is easy and it seems so. I add an extra image to the gallery. I publish it. The html file shows the extra image in the gallery but the swf doesnt. driving me crazy, cant work it out?
I read all the optimization help file information and help on publishing settings. I tried various published settings with compression, with compression. Tried different fps settings etc. I'm using MX. Downloaded trial versions of MX 2004 and MX 2004 Professional and still not working, as I would like it to on dialups.I have a similar version that is dynamically loading images but is using text files to load the variables. I am very interesting in this one because is uses xml. I tried clipping out the xml code and used it in my other file and I get the same result.
Would it be possible to use the Kirupa tutorial on "Photo Slideshow Using XML and Flash" and incorporate a dynamic HTML link within the XML so the photos in the slideshow were clickable using Flash MX 2004?[code]
I have a flash site that I'm working with that has an xml photo gallery as one of it's menu items. the photo gallery has three pages, all three containing thumbnail images that once clicked, load the larger image. The larger image dissolves in covering the page with the image. Once you click the larger image it dissolves out returning you to the gallery.
What I want to to do is to change the first page of this gallery to a video gallery, or player, leaving the other two galleries as image galleries. I tried simply replacing the images listed in the xml document to flv files and the flv file does not load. I simply want to know what it is I need to do in order to change this one page so that I can embed videos on it.
I've attached the Action script that loads the xml gallery in .txt format
I am following the 3d flash panels tutorial located here. My ActionScript matches exactly to the tutorial at 11:54 excepting the document size because it is different in my document.
Code: Select allpackage [code]..........
I have the TweenLite com folder in the folder that the FLA is located in, and my document class is named PhotoPanels as in the movie, but my images are not rotating as they do in the tutorial at this point.
i would like to know, is it possible to go to a other website (url) if i click on one of the picture in the tutorial "3D Photo Panals)? What is the command for this? It doesn´t work with TweenLite. I would like to have the same tutorial, but with buttons. Is this possible?
I try to make galery based on xml, just like in tutorial [code]... , but i wanna, that preloading will be not before every picture, bu t just one in start. First load all jpg from xml, and then start to looking at it
I have got a free swf flash photo gallery of the internet. using dreamweaver cs4 to install the swf file,the file plays on my local browser but only some of the master images display on the live internet gallery. the navigation icons do notcan not figure out where the problem lies, is it in the flash code or the structure of the files in the directory. I have no idea