ActionScript 2.0 :: Centering Pics In Kirupa Photo Gallery Using XML And Flash
Mar 24, 2006
I am using the kirupa xml foto gallery and I am loading different sized images... if they would load nicely centered the problem is solved... (not to stage width/height..!!) The movieclip "picture" has to load the images centered from its own registration point so that it can be placed anywhere on the stage.... now its loads the images from aka left top...
[Code]....
View 14 Replies
Similar Posts:
Sep 11, 2006
I've been going through the tutorials and forum trying to build a photo slideshow. I managed to get the slideshow working with buttons, but am really stuck with trying to center the images ... I'm using portrait and lanscape images, and want them both to be vertically and horizontally centered in a 504x504 moive.
View 2 Replies
Mar 30, 2006
I am having problems formatting the XML Flash photo gallery. I can't seem to get the photos to center on the page. Some of my photos are vertical and others horizontal, and they are all pushed to the left. I don't want to make all the photos the same width. Is there any way to use css to style the xml? Or is there some other way to do it? Url...Also, if anyone notices any other problems with the gallery,please let me know. This is only the second thing I've done in Flash, and I may have made some mistakes when I changed things.
View 14 Replies
Apr 18, 2011
I am building a photo gallery for a friend using Kirupa's tutorial (located here: [URL]). The gallery is working out great except for one problem and that is using the keyboard left and right button. For some reason when I press the right arrow on the keyboard to go the next image it jumps to the third image, then the 5th, 7th, 9th etc. As you can see it keeps skipping one image, the same thing happens going backwards. However, when I use the onscreen previous/next buttons it cycles through just fine.
View 1 Replies
Jul 19, 2004
I'm using Kirupa's Flash MX Photo Gallery located at [URL].When the script calls the images it's going to use, it says:
// fill this array with your pics
this.pArray = ["image0.jpg", "image1.jpg", "image2.jpg", "image3.jpg", "image4.jpg", "image5.jpg", "image6.jpg", "image7.jpg", "image8.jpg", "image9.jpg"];
How can I call these images' names from a simple external text file? Purpose: I want to have the ability to change the photos in the gallery quickly without tweaking the Flash file.
View 6 Replies
Aug 26, 2006
I found the tutorial by Kirupa
[Code]...
View 2 Replies
Aug 28, 2009
I'm trying with the XML photo gallery presented in the [URL] tutorial. This is set up to display 1 picture at a time , but what if I want to display 2 pics next to each other, like in a table stucture with 1 row divided into 2 columns? How do I set up the XML to do something like that?
View 6 Replies
Aug 6, 2003
I'm trying to make a photo gallery that loads the pics in as swf's, and was wondering if there was any way for flash to detect the number of files that are in a particular folder on website (also the names of those files).
View 3 Replies
Aug 9, 2006
I found this photo gallery on kirupa but i need it to loop and i can't figure it out. It stops on the 7th image and doesn't go back to the first.
View 4 Replies
Oct 10, 2006
I tried the tuto from Kirupa for photo gallery and xml .I modified the xml file with my own pictures.( I copied it and added the path to them)But when I try the swf this message appears :
Error opening URL "file:///C|/Documents%20and%20Settings/user/Desktop/divers%20flas%20et%20swfs/undefined".
Here is an example of one of my xml picture nod :
- <images>
- <pic>
[code]....
This of course means that the image 1.jpg is in folder allimages which is in the folder divers flas et swfs.So why this undefined message ? Is it a wrong path ?
Note : I work with flash 8.
View 4 Replies
Apr 21, 2007
I've been trying to add more galleries the Kirupa Photo Gallery but so far unsuccessfull - i've modified things alittle, but it's mostly the same.
Code:
function loadXML(loaded) {
if (loaded) {
image = [];[code].....
This is as far as i can get before i get errors i cant get out by displaying image[i] in gallery[n].at the current time i can only get the number of galleries and display the images in the first gallery - not change between galleries.
View 8 Replies
Feb 24, 2011
I wanna remove the XML data loading part and replace it with a PHP/MySQL backend for better security and maintance and because XML text handling isnt the best way (in my opinion it s*cks big time) to show text. HTML text through php gives better looking text.What do I already have:- MySQL database and table (containing the fields: "file", "ordercode", description") were "file" is the full path to a image and its name.- PHP script what fetches the data from the table and send it towards FlashFlash output when receiving the array ("nog niet te koop" = ordercode, "tekst volgt nog" = description)
Variabele _level0.myData = [objectnr. 1, klasse 'LoadVars'] {
onLoad:[functie 'onLoad'],
Array
[code].....
View 2 Replies
Apr 22, 2003
Does any of the code need to be changed in the photo gallery tutorial to make it function inside of a movie clip? I'm specifically wondering in regards to the "_root" My gallery is in a movie clip which I can't seem to get working w/attatchMovie though all my others work fine.
View 3 Replies
Mar 21, 2011
I have created a Photo Gallery based on the excellent tutorial, the only thing I would like to add is Numbers to the Thumbnails.
I assume I would need to use the attachMovie command but I am not sure of the Syntax and where it would be used in the Photo Gallery code.
View 1 Replies
Apr 26, 2007
i have both vertical and horizontal pictures... The horizontal pictures work great! But what code and where would I add it if I wanted to tell Flash to center the vertical photos in the large gallery.
View 1 Replies
Sep 1, 2009
Just trying to make a flash photo gallery that displays all the image files in a certain directory with the usual photo gallery functionality.
View 1 Replies
Oct 8, 2009
I downloaded a flash spread gallery [URL]which uses a xml file to designate the pics to be used. It is very cool but it is kind of a pain as I have to manually type each pic name in the xml file. Is there a way that I can modify either the xml or the fla to just pull the pics from a folder? Maybe two folders one for the pics and one for the thumbs?
I would like to just dump a bunch of pics in a folder and their thumbs in another and have it automatically just post them.Attached is the fla and the xml (and a .js file) zipped.flashmo_185_spread_gallery.flaflashmo_185_photo_list.zip
View 3 Replies
Aug 8, 2009
I want to make Flash Gallery like this: [URL]. I think it is Dynamic and pics are showing through xml.
View 2 Replies
Apr 16, 2006
how to add a sort of timer for the slideshow...one that counts down from fx 6 seconds to 0 every time a new image in the slideshow appears. something with a variable and a text area...but how to make the count down follow the image delay...i really would like to know if this is possible.
View 3 Replies
Apr 5, 2011
im loading photos of different aspect ratios with a loader onto a child holder frame_mc. I wanted to know what AS3 commands do i need to work on to get the frame_mc to resize to the new childs dimensions and centerize itself on the main stage? (as in event listeners, functions, vars etc)
View 3 Replies
Jan 15, 2010
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,
View 3 Replies
Sep 17, 2010
I have a website that I would like to make a little improvement. The website is functioning quite well except one little small thing. The xml gallery image is not centering. At the moment it is aligned to the top left corner. I would like to center all images no matter what size they are, but I don't know where to find the action script that centers the content in XML. Here is the website, so you can see what I am talking about: [URL] how to make a pop up window that you can see the image even larger and go up and down to see the details?
View 7 Replies
Jan 10, 2006
i want to create a photo album. i've created a folder and put pics inside the folder. is there any scripts that can import/call the pics(all are .jpg) to the stage while the projector(movie) is playing?
View 2 Replies
Nov 11, 2010
ActionScript Code:
import flash.filters.GlowFilter;
import flash.filters.DropShadowFilter;
_global.gallerynum=1;
[code]....
There are 3 pics each in FASHION SPORTS and BEAUTY catergory and 10 and 5 in ENTERTAINMENT and COVERS respectively. All is ok but when i click on FASHION or other categories having less pics the pics from the earlier categories ( e.g. ENTERTAINMENT ) wont leave the stage. Also the unLoadGallery() function is giving an error message that ' This code is making flash to run slower. Would you like to stop this script?'.
View 8 Replies
May 24, 2004
i have just posted an online photo gallery and its the kind that resizes to fit whatever photo you tell it to load. you can see it at URL...in anycase, my problem, is that for some reason when you try to load pics 018 - 030 they refuse to load, and i can't figure out why? URL...
View 1 Replies
May 24, 2004
i have just posted an online photo gallery and its the kind that resizes to fit whatever photo you tell it to load. you can see it at :in anycase, my problem, is that for some reason when you try to load pics 018 - 030 they refuse to load, and i can't figure out why?
View 1 Replies
Jul 17, 2009
I'm trying to modify Kirupa's xml photo slideshow by adding an extra text field, which if I understand correctly gives each element 3 children (image+text1+text2) instead of 2 (image+text). Even though I've added the third child correctly in the xml, I can't seem to get it to work at all. Here is what I did with the actionscript:
delay = 10000;
//-----------------------
function loadXML(loaded) {
if (loaded) {
[code]....
I've highlighted the parts I've added to the code provided by kirupa's tutorial. sub_text is the instance name I give to the new text field in Flash.
View 1 Replies
Nov 17, 2009
That said, I would like to alter some of the code to allow the thumbnail scrollbar to begin scrolling once the page has loaded. Here is what the code looks like as it is right now.
[Code]....
View 1 Replies
Jul 2, 2008
I am customizing the Photo slide show with thumbnails from this site. It is great. I was able to customize it so it would work with bigger pics (640 width X 480 height) basically wider pics then they are tall, but I also have pics that are taller then they are wide (480 height X 640 width).
1. in the thumbnail area the taller pics load over top of the pic before it and then there is a large gap after it.
2. the movie clip that loads the full size image aligns the pics to the upper left corner of the movie clip. I would like it to center the taller pic. I know I will have the same problem with the wider pics when I make the viewing area 640x640 they will look to high.
here is the code that is used:
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
[code]....
View 5 Replies
Oct 27, 2011
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]......
View 4 Replies