ActionScript 3.0 :: Gallery Works But Multiple Galleries Don't
Dec 10, 2009
I've created a simple thumbnail gallery script that my students can use for portfolio projects. I'm also making it available for public download along with video tutorials in how to use it. I had developed a nice AS2 script, but those days are over and I've been hammering away at AS3 with pretty good success, but am still learning.I have a workable gallery, but if I add a second gallery on a different frame, all the functions and variables of the second gallery conflict with the first one. I'm missing some simple way to reinitialize the gallery. It may be that I need a Gallery Class but this is just a hair beyond me right now. Can anyone take a look and point me in the right direction? Files can be downloaded from URL...The actionscript files are external and brought in with an include action.
View 2 Replies
Similar Posts:
Mar 15, 2009
I need a simple way to use xml and create a multiple gallery inside 3 main galleries so basicly like this: (Everything would be in the same page, list view, when clicking into one it would open it)
GALLERY 1 (Will include numerious galleries)
-Example 1
-Example 2[code]....
Basicly when clicking the link it would hover the pics with a scrolling effect in the flash file (that all should be sorted out)
View 3 Replies
Nov 23, 2006
I was working yesterday with the galleries from Scotty - http:[url].... - trying to add a dropdown menu for the different galleries, instead of the buttons (I'm talking about the V3 with Thumbnails). My skills are not that good I realized. Do you have any idea on how to achieve this?
What I need is a combobox showing the different galleries i have on my XML file and if the user chooses another gallery, the it loads the new set of pictures and thumbnails.
View 1 Replies
Aug 18, 2010
I'm trying to create a gallery where each thumbnail you can click loads a different set of images (and unloads or removes the previously loaded gallery).
View 9 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
Jun 20, 2007
I need to modify Stringy's XML gallery to show 5 rows of 2 galleries instead of 4. I know how to decrease the number of galleries to 6 because Stringy told me the following:
You can change the size of the boxes by changing these variables (or associated variables)
th = Math.round(sizeh/4-(5*spaceh)/4-30/4);
tw = Math.round((sizew/2)-(3*spacex)/2);
so to make say 3 rows/2 columns you could change to this
th = Math.round(sizeh/3-(4*spaceh)/3-30/3);
[Code]...
View 1 Replies
Sep 30, 2008
When displaying mutiple image galleries (3 galleries with 15 images each) is it advisable to load multiple xml files or is it smarter/easier to include all the info in a single xml file?
View 9 Replies
Apr 13, 2011
I already have a photo gallery running on my website, but I would like to add 4/5 more. The script I am currently using is;
Code:
// USER CONFIG SETTINGS =====
var autoStart:Boolean = false; //true, false
var secondsDelay:Number = 6; // 1-60
[Code]....
I've obviously changed the first and last frame part of the script to suit where I have put my images. And I have also changed the next and prev button to be next1 and prev1, however the rest wont work, i'm guessing I need to change a lot more but I don't know enough about scripting.
View 1 Replies
Aug 28, 2008
I have a Flash component that links to a gallery, and I understand that I can create buttons to point to multiple galleries. (waiting too long for support from the suppliers).The User Guide says that I can use the following to create the connection:
myThumbnailer2.loadGallery(24);
That won't work, and it says that I need to include it in an onclipevent. I have no idea what i am doing and I was hoping someone could tell me what to script to get the text button I created to run this.
View 11 Replies
Feb 14, 2011
I am extremely untrained in CS4 and Actionscript. However I have managed to get along fairly well until I started to dynamically upload images as a gallery. This works great if I have one gallery, but for my site I have 9 galleries!!! I have a back and next button, but I want to be able to use those same buttons for all of the galleries so they look the same. I have split them up and renamed them, but I am clueless on how to script the buttons to work.This is what I have now because I do not know where to put the other button names without getting errors.
stop();
next_btn .addEventListener(MouseEvent.CLICK, nextImage);
var imageNumber: Number=1;
[code]......
View 3 Replies
Nov 30, 2007
ok, not sure how simple this is, but ive made a gallery, loosely based on the kirupa one. basically, I have a border that resizes, then the image shows in it. This all works fine in IE, but when it is viewed in FF and Opera, the box does not resize, it goes all small. Hard to explain lol. here are some links; the actual flash page: [URL] the files [URL] Here is the code in question for the resizing:
[Code]...
View 4 Replies
Jan 20, 2005
The easiest thing is if you look at my swf: [URL]..Ive built a dynamic photo gallery which works from an XML database. The database contains the various gallery titles, the photo image paths and their captions.
The first page of the gallery is a thumbnail index page (lots of small preview images of the photos). The thumbnails load up one by one, they are only 1kb each but there are hundreds so takes some time. If a user clicks on one, the thumbnail movieclip is hidden with (._visible) and the photo page is shown, also with (._visible). The problem is, the thumbnails are still being loaded in the background, so the chosen photo is not downloaded+shown until all the thumbnails have loaded.
What kind of code do I need to place on the thumbnail's "onRelease" function to cancel the parent "make thumbnails" function ive made?
View 2 Replies
Jun 19, 2007
I have a custom cursor, all works fine until I load in my XML gallery. My cursor conflicts with the xml gallery, I know it's a script problem somewhere in the gallery script, but I dont know how to fix it. If I take the script out of the cursor action, the gallery works fine, but no custom cursor, and vice versa. Here is the code for the xml gallery and below is the code for the cursor, sorry for so much script:
[Code]....
View 4 Replies
Sep 1, 2009
I have decided to attempt making my sisters website. I have used an XML gallery in the website and all works well when viewing the website just in flash, .fla or the .swf file. My problem is, when i come to put it into dreamweaver ready to upload and I preview it in Firefox, or any other broswer, all the pages work but no the XML gallery? Im gettin very stressed out now as all my file routesetc are correct?I have googled the problem and all I have found out is that it could be something to do with security?Does anybody know how to resolve this problem
View 4 Replies
Mar 5, 2010
I have a flash gallery in side my movie I have a next button and a prev button that works just fine. The issue I am having is when you click next and then go back the getURL function no longer works. It might be easier to view the issue. here is the link [URL]
View 1 Replies
Sep 1, 2009
Im in my first year studying a web design course, over the summer I have decided to attempt making my sisters website. I have used an XML gallery in the website and all works well when viewing the website just in flash, .fla or the .swf file. My problem is, when i come to put it into dreamweaver ready to upload and I preview it in Firefox, or any other broswer, all the pages work but no the XML gallery? Im gettin very stressed out now as all my file routesetc are correct?I have googled the problem and all I have found out is that it could be something to do with security?
View 1 Replies
Jun 6, 2009
I have created a nava bar with a few buttons.Only the first button seems to work.I have made sure all the buttons are named properly.
Code:
homeButton.onRelease=function()
{ getURL("http://www.url.com");
[code].....
View 1 Replies
Apr 23, 2007
I am loading 2 external text files into my SWF.. I believe that my action script is correct as it works pefect offline.. However as soon as I uploaded it to my webspace, both text boxes have the "undefined" text sitting there.. The problem doesn't exsist when I only have 1 external text file loaded..
//load 1st text file
myData1 = new LoadVars();
myData1.onLoad = function() {
[Code].....
View 3 Replies
Jan 30, 2009
I have it set up to load multiple XML files, but, when you select a new book/xml, i want it the thumbnails to refresh starting with thumbnail #1, instead of wherever it left off in the arraythis obviously has something to do with the variable k, but i am having a lot of trouble figuring out where to fix this at.
// Buttons to call each Gallery and reload data
bookone_btn.onRelease = function() {
xmlURL = "book1.xml"; // sets xml file
[code]......
View 5 Replies
Jul 14, 2010
I have 50 thumbnails that I'm loading from an xml document. What I want to do is load them all at once but place them into different movie clips on the stage. I was thinking I could organize them based on tags in the xml file, or by number (like put thumbnails 1-12 in movieclip A, 13-20 in movieclip B, etc.) Right now I just have the thumbnails being placed in a single clip. I am confused because in the function where I addChild, I no longer have access to the thumb_url var, so I wouldn't know how to specify which images to put where. Evenif I could access this info, I'm not sure how to write the code to place different thumbnails into different movieClips.
function callThumbs():void{
for (var i:Number = 0; i < my_total; i++){
var thumb_url = my_images[i].@THUMB;;
var thumb_loader = new Loader();
[code]....
View 12 Replies
Jul 25, 2009
Being a newbie to this flash design and actionscript and self learning with the help of forums and tutorials I have create a simple photo gallery for a website I'm building. And all works fine. What I would like to do is add a list box to display different albums but I am having trouble with the actionscript and how to set out the XML file.
[Code]...
View 1 Replies
Sep 27, 2010
Working on a picture gallery with multiple pages. The basic idea of what I'm trying to do is I get a list of all thumbs, separate the list in groups of 20 and then add all the groups to a MC that slides left and right when the user presses a left or right button.This is the code I've written:
Code:
if ((totalPics % 20) > 0)
{
[code].....
View 2 Replies
Jul 24, 2009
Being a newbie to this flash design and actionscript and self learning with the help of forums and tutorials I have create a simple photo gallery for a website I'm building. And all works fine. What I would like to do is add a list box to display different albums but I am having trouble with the actionscript and how to set out the XML file.I have attached a zip file with the images, XML and fla file
View 1 Replies
Aug 28, 2005
I'm trying to split my gallery into multiple sections. I'm using kirupa's tutorial of XML gallery. Should i use attributes in xml? like:
[Code]...
View 4 Replies
Oct 9, 2006
I am creating a complex photo gallery application with XML. Through the XML you may load individual images, or you may create mini photo galleries within the main application.At first, individual images and mini galleries are treated the same, I loop through data from the XML to create each instance.The mini gallerie's are then populated by a second loop within the first, to draw data from the next level of XML childNodes. For the mini gallery code I am using a modified version of What I have now works perfectly if there is only one mini gallery. As soon as I create a second mini gallery, the first one stops working. Or rather, the next and previous buttons from the first mini gallery control the second mini gallery rather than the first.
This seams strange to me because there are many other functions relating to the individual images that are created within the main "for" loop that work fine regardless of how many instances of individual images there are. The mini gallery functions are also located inside the main "for" loop, but rather than functioning for each mini gallery instance they work only for the last one created.I hope this descriptions is clear. I'm no expert at AS. I'd paste my AS code but it's way too long to post here!
View 14 Replies
Mar 22, 2010
I would like to make a simple flash file where I have one image on top with multiple thumbnails underneath it. The only thing I need to do is get the main image to change to another when I click another thumbnail. The result would be a basic thumbnail driven image gallery.
View 1 Replies
Aug 18, 2009
I've created an image gallery that loads movieclips from my library with a simple navigation system. Everything seems to be working fine however I'd like to add some additional functionality. What i would like to do is have the navigation first appear on a splash page. When a user selects one of the nav buttons, the nav will fade out. The image selected will then fade in as well as the navigation but smaller and tucked away to the side.
Users can then continue to sift through the gallery with new (smaller) navigation. I don't know if any of that made sense so I whipped up a few images to demonstrate what i mean. I've also attached a zip file with the current gallery I've created.
View 0 Replies
Oct 31, 2008
i'm trying to modify the slideshow for multiple xml gallery. I have the code on the first frame and I want to load another xml (aria.xml) ,but if I use
[Code]...
View 3 Replies
Aug 18, 2009
I've created an image gallery that loads movieclips from my library with a simple navigation system. Everything seems to be working fine however I'd like to add some additional functionality. What i would like to do is have the navigation first appear on a splash page. When a user selects one of the nav buttons, the nav will fade out. The image selected will then fade in as well as the navigation but smaller and tucked away to the side. Users can then continue to sift through the gallery with new (smaller) navigation. I don't know if any of that made sense so I whipped up a few images to demonstrate what i mean. You can find a sample of my current gallery here: [URL].
View 3 Replies
Aug 26, 2009
I have a flash component that is an image gallery. I want to have multiple image galleries on my site, but instead of multiple instances of the component, I want to have multiple buttons that can be clicked that will load in different xml files to populate the component.
Would code like this do something like that:
var eventListener = new Object();
eventListener.button_click = function (evnt){ trace("Button clicked");} myGallery.addEventListener("button_click", eventListener);
View 1 Replies