ActionScript 2.0 :: Creating Three Galleries In One Swf File Using XML?
May 22, 2007
I now have another issue that is preventing me from making this thing work properly. I have attached a zipped file of both the XML and the Actionscript. And here is the link to see what is happening at this point. Here's what I'm needing to do:I have 15 images. 5 images need to rotate in a single movie clip inside my flash movie. So I have 3 movie clips rotating 5 different images. The 15 images are in the XML file in three different categories (this will make sense if you look at the XML).I have the gallery kind of working, but the rotation of the images is not working properly. Again, I think all of this will make sense as to what I'm trying to do by looking at the XML and the link above.
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)
I'm trying to dynamically load in 3 photo galleries into a file. They are all SWF files. When you click the button for the thai gallery, it'll pop up. But if you want to navigate to the alex gallery, the thai gallery is still visible underneath. And the same problem with the 3rd gallery only all 3 are visible at this point. Is there a way to make these not visible? I'm using CS4 with ActionScript 3.0. I've got 3 separate buttons set up for the 3 galleries. Is there a better method? I've tried using the removeChild(); but I don't think I've used it correctly as it throws errors all over the place when trying to use it.
Actionscript Code: thai_btn.addEventListener(MouseEvent.CLICK, loadImages); function loadImages(evtObj:MouseEvent):void { var imageLoader:Loader = new Loader(); addChild(imageLoader); var url:URLRequest=new URLRequest("thaipix.swf"); [Code] .....
I am trying to load different image galleries into a container flash file. Each image gallery will be in a speparate swf that can be loaded/unloaded from the main swf. I get the first gallery to load and function fine, using the following code:
var ldr:Loader = new Loader();addChild(ldr);ldr.alpha = 0ldr.y = 110ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, loaded, false, 0, true);ldr.load(new URLRequest("folio.swf"));
I am creating a SWF file using a MXML file. The MXML file define several MX:Button and uses an external stylesheet to style them. There is a problem I am facing at the moment, I am aiming to style the buttons in a way that is similar to the way I can style HTML button elements. However, I could not achieve such look and feel. For example, I could not find a way to define the color and thickness of the borders for each side of the button (top, bottom, left, right), the background color, the margins, the padding, the width, and the height of the button. Also, selector such as hover, active, focus are not available. I was only able to change the size and the font color of the button successfully.
Initially I had a 2039 error I resolved this by using a local testing server, which resulted in a 2038 error. So then I hard coded the url and now I dont get any errors but the file doesnt upload.
Instead a file is created (FileUpload.cs) in the directory where the files should be.
I'm using an xml menu and have the code in a .as that loads as2 & as3 swfs, but I can't load these externally created image galleries (externally because I created them using another software).I want to load 1 of these galleries into a movieclip when I click a button, and load another one when clicking another button, of course the first one should unload first.The Image galleries I have are: carrera, Col_Imanes, Cons_Base, Cons_Hapas, Cons_Imanes, Gallery, and 1.[code]...
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.
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.xmlfilein the second set (slider2)mybtn1 loads gallery1 without any problemmybtn2 loads only one picture from gallery2, nor the text is loaded.
I have a several galleries that I will be loading via several xml files. Gallery1 will load on start and the other galleries will load through buttons using their instance names (i.e. "gallery3" button will load "gallery3.xml"). Currently I have a function + listener (called "home") to initiate gallery1 on start, a function + listener (called "goSection") to initiate the other galleries via button instance name, and a function that loads the gallery (called "fileLoaded") with the listener located in the "home" and "goSection" functions. There is a lot more code in the fileLoaded function that controls the thumbnail and full size images functionality that I am excluding because its probably not necessary for my problem. Im not sure the most efficient way to set this all up so I unload the existing gallery before I load a new gallery. Ive tried to use removeChild and removeEventListener on urlLoader without much success.[code]...
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?
I'm in the midst of creating my very first portfolio site completely in Flash. I followed the tutorial [url]... to create a nice looking gallery. Now, my problem is that I need to create two other galleries for the same website. All three galleries will be on three different pages. The actionscript doesn't seem to work if I try top use different folders and file names, and I can't even make a second gallery in a separate .fla file so I can access the gallery externally via movieclip. I've gone through countless threads on different forums to try to find my answer, but nothing seems to work.
I bought a template and althought I'm usually ok with Flash, I cant put my head around this one.I've got a category section that should link each time to a different catalogue (galery), see screenshot attached. Well after 2 days of trying, I think is fair to say that I dont know how to do it.
There is the following in the Action Layer of the main movie clip:
I downloaded and am using kirupa's flash gallery with xml. It works/looks great. but i'd like to have it behave a little differently. i've seen sites where the thumbnails continue to change their alpha indicating they are loaded and loading while i'm viewing an image. are there any tutorials/samples out there for that? i simply want to see how it would all work together. maybe having 10 thumbnails and an image using xml.
I have uploaded flash galleries I created in bridge CS4 to my site in dreamweaver. I used an iframe within a divtag and everything worked great in the previews, but once I upload the site to my server, the galleries are not showing up.
This is the code from my index file: <html><head> <title>index</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> [Code] .....
I have a SlideShowPro component on my stage and some buttons I've made which I want to load the different galleries when clicked. I've tried tons of different ways of writing it, but just can't seem to get the code right.
I saw many examples in jquery compenents which takes image urls from HTML DOM. But flash photo galleries always need xml configuration files as i have seen till now. I need flash compenents which doesn't need any configuration settings from server. If it is possible to do that flash can get image urls from DOM or even by javascript. Is there such as flash photo gallery compenents ?
I've created a photo gallery that dynamically loads images into a movieclip entitled 'gallery'. Right now the images are listed in an array. how would I make it so that different arrays could be loaded for different image galleries on the site? For example clicking a certain button would tell the movieclip to load different sections. It would load an array that goes
I've created a photo gallery that dynamically loads images into a movieclip entitled 'gallery'. Right now the images are listed in an array. is it possible to make an Array of Arrays so that I could load different Arrays for different image galleries? Is this somewhat how it would work? Lets say I were to switch to a section entitled 'landscapes' which we will pretend is the array "var a:Array = new Array();" for now.
ActionScript Code: var a:Array = new Array( "a1.jpg",[code]....
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.
I am loading some separate .swf image galleries in my main .fla; when you go to different sections the image galleries still stay there. How do I make them go away? When you click on the background it takes you to another spot on the timeline and the gallery should disappear, but it just stays there.
I have just started to learn more about XML in Flash but so far it's all a bit confusing. I have this photo site that I'm working on at the moment and I can't figure out how to load dynamically specified photo galleries. I load in my XML on the first frame of the root timeline with this script:
Right now, I have a successful combo box that loads an external jpg to flash from a folder where I store all my images. However the information that is given about the pictures are all in the flash code. I have an xml document, and I was wondering if there's any way I can load information from the xml file rather than supplying it in the flash code,
this is currently the flash code: -------------------------------------------------------------------- combo_cb.addItem("0001 The Assasain", 1);
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.
I am making a set of image galleries which will have looping background music. What are your opinions about the recommended method to bring music in? I am happy with the attachSound and loadSound methods, but wondered whether attaching a soundtrack.swf using loadMovieNum would be better. If so, I only know how to stop and start the music, not pause it and restart where it left off, which is important if I add a narration. Sound Objects seem more versatile because they let you use "position/1000", but from what I have found on the forums I have searched through, I may have to load the swf into a Movieclip or perhaps use _level somewhow?
Here is the code, which works well, but does not "pause" the music, it just stops and starts at the beginning. Code is in the root timeline of my soundControls_mc (play/pause button). [Flash 8 - AS2] loadMovieNum("includes/number10.swf", 100); soundOn = true; this.onRelease = function() { if (soundOn == true) { unloadMovieNum(100); [Code] .....
I am working on a Flash/AS3 site used to view galleries of images. When the site is loaded, it loads an external XML document which contains the relevant information. An example of the XML looks like this:
[Code]...
I am fairly isolated from any sort of programming community (aside of course from this website and some others) and am curious if this is a reasonable method to manage externally loaded data?Are there other methods that could be recommended?The above functions are wrapped inside of a class of their own. I just pulled them out for the example.
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.
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 ?