ActionScript 2.0 :: Little Xml Gallery - Open Pop-up Window With Big Picture
May 10, 2006
I'am searching for a gallery with thumbnails which will load from xml file, and each thumb will open pop-up window with big picture. Does anoyone have fla for something like that or tutorial ? I had searched ultrashock and this forum, but every gallery is much more complicated than that what i'am searching for.
I want to make a picture gallery and use buttons that move you from picture to picture and backwards, but I don't want to tell button 1 to go to frame 2 and button 2 to got to frame 3 and so on (I hope you know what I mean)Can I use on button on a separate layer with the same action set? I tried something like that, but it didn't work:
on (release) { thisframe =+1 } [code]........
but it didn't work. I'm kind of new to any action script other than gotAndPlay, easy functions and all that.
1) how do you open a new window if you have thumbnail pics in the flash movie but want the full pic to open up in a new window? Is this Javascript inside flash?
2) How do they do the menu bar here at this site:[URL]
I work with 3d animation. Im have a problem with a personal website Im doing, I have a link in a button inside a flash movie to open a new window and play a youtube movie:
on (release) { var jscommand:String = "window.open('http://www.youtube.com/v/b0L4XLODhAA&hl=en&fs=1&','win','height=344,width=4 25,toolbar=no,scrollbars=yes');"; getURL("javascript:" + jscommand + " void(0);"); }
This works fine in Firefox but in IE it doesnt work, I then change the /v/ in the youtube link with /p.swf?video_id= and now I have the window open showing the small youtube thumbnail of my video but once a click play, nothing happens, I check it and is not loading anything.
i have a flash site that links to PDF's with the navigateToURL function which works etc But now i would like Link to rather open up a download window instead of just a new browser window?
I'm trying to get the link to open in the same window instead of a new window, it's currently set to _blank. I tried _top, _self, _parent. When it's set to anything other than _blank the link doesn't work.
In Flex Air app, how do you open a window behind an active one?
I tried following and i can't seem to get it to work
[Code]...
With this code, I would expect window1 to open behind the main app window and, in 3 seconds, window2 would open behind window1. But if you execute this, window1 will open on top of the main window and window2 will open on top of window1 and the main app will retain focus. This seems like a bug in the Flex. If so is there any workaround for this problem?
I want to create a picture gallery in Flash. I want small thumbnail images all around the edges of the canvass (canvass will be a rectangle). When the user clicks on the thumbnail I want the image to be displayed in the centre of the rectangle in its full size. How do I create such a picture gallery? Is there a simple tutorial? Or simple template I can use anywhere?
I have a movieclip that when click call function moveW()The function work if I didn't add the command to change frame, but when I add command to change frame the function move to different frame before removing the pics. Does anyone know how I can fix this?this is the function:
function moveW(event:MouseEvent){ var i:int = 0; for (i=0; i<=count; i++) scene.removeChild(arr[i]); arr=[]; count=0;
The XML gallery I have has a pop-up window that appears after selecting a thumbnail. What I'm trying to accomplish is for the first picture in the gallery to load into the pop-up window, which is now always shown on the stage. I was able to make it so that the pop-up is always visible, but one thing I couldn't figure out is how to make it so that the first picture in the gallery loads into the pop-up box WITHOUT the user selecting the thumbnail first?I think it has to do with this code:
Code: portfolio_xml.onLoad = function(success) { if (success) { var gallery = this.firstChild.childNodes[index]; galleryInfo.text = this.firstChild.childNodes[index].attributes.title;
I just tried to do a picture gallery.But It has to have around 21 pictures.In 3 sections(this is around 7 pictures per section)
I would like to look like file 1. It must have 21 buttons (on which when you click to see the picture bigger) on the same window,now there are only 13.[url]...
So i have created an XML Picture gallery in AS3. Everything is made in two files:
1) The main file Gallery.fla that has only one layer and has just a stage color applied to it 2) and Gallery.as taht contains all the code and functions.
And now that it all is created i would like to create a preloader, but i am having problems doing it. Have been solving this issue for a week, reading lots of tutorials etc. no luck so far. I even tried creating a seperate .fla file that contained only a preloader, that simply loads an .swf movie - which was my Gallery.swf but no good - it is not working like that because i am using an XML file in that Gallery.swf .
I have created a gallery with pictures that is generated from an XML file. When I look at it on Flash, it works perfectly; However when I upload it to a web server, the images don't appear. The files I have uploaded includes the XML file, the pictures folders, the html and the swf file as well as a swfobject.js.
Ok the fourth page of the website is a portfolio page with 16 thumbnails (4 across 4 down) which opens a larger pic on the same page to the right.
I can't figure out what to change. The first and third thumb down seem to be linked and open the same image. Same with two and two down from that and so on. I want to separate them so each open their own image. If I edit it in PS both thumbs change...
I click several times and well thumb one and the third one down is:
I am building a web site and I have the main movie, which loads a picture gallery (another .swf file) using "loadMovie();" and then the problem comes in - my gallery movie has a preloader which after finishing is supposed to move on frame 2 of the gallery movie, but instead of that it moves to frame 2 of the main site...
This is the main movies button code loading the gallery: on(release) { gotoAndStop(5); Gallery_Sub.loadMovie("../Flash/murals.swf");
Here is my preloaders code on the frame 100: _level0.gotoAndPlay(2);
And at last my gallery movie's code on the preloader frame: stop(); percent = Math.floor(getBytesLoaded()/getBytesTotal()*100); if (percent == 100){ _level5.gotoAndPlay (2); }else{ _preloader.gotoAndPlay(percent); } I tried using loadMovieNum(); but somehow it didn't work as well.
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:
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?
Is there a simple way to create a picture gallery on flash?I literally want to have an image in the middle of the screen and use buttons on the left and right to scroll through the pictures?
I have added 3 staggered backgrounds behind each picture that act as a tri-color border around the image, named borderOuter, borderMiddle, borderInner. When i click on the thumbnail, i would like the border to disappear. [code]...
i'm making a photo gallery in flash AS3. I have two buttons, prev and next, what i want is when you are at the last image end press next, you jump to the first image. I have tried to google it and searched for an answer, but cant find anything. This is my code so far.
I am editing a template made with as2, flash8 and its controlled externally by a html file. I want to add a gallery when the end-user clicks on a picture. The main problem is the structure of the template. Its like that: There is a symbol named "pages" and in that there are 6 frames which one represents a page of the website except the main menu which is in another symbol. In the 4th layer 3rd frame there are 6 movie clips which are instances of another symbol named "p1_3 copy 2" which is a button and an instance of another button named "but_picts". One of those movie clips i want to make it a link for my gallery. So we there is the movie clips with the following actionscript attached:
Here's the situation: I'm making a script that will dynamically load JPG's from a file and will eventually display each JPG's thumbnail them side by side. I've got the code going and would like to know any suggestions for corrections.
i made a pic gallery that loads pics from xml file.. when I open the gallerys .swf itself on my server it works fine.. when I open the website .swf file on my server it looks fine... but, when I open the flash-generated .html file and try to open my gallery on my web site it sometimes shows me only a couple of pictures... sometimes none. also, when I open it up on my computer, it works fine...
btw: the gallery is stand-alone and I load it in my flash web site through the code ->
Code: var ldr = new Loader(); var url:String = "MY GALLERY.swf"; var urlReq:URLRequest = new URLRequest(url);
I am trying to make a picture gallery where each image is contained in its own .swf file and loads with a button click.The gallery works fine but I would like for each image to transition in and out,or play the timeline of each swf.I have a stop action in the middle of each swf so the image tranisitions in and then stops but when another button is clicked it immediately loads the next image and doesnt play the rest of the tmeline and transition out. Here is the code I used to load the swf files.
stop(); var movieName:String; function movieLoad(event:MouseEvent):void[code]........
I have a script for a scrolling picture gallery. I know it works, but I want to know how the script makes it work. What the script does it make it so that when you have your mouse on the far left of the flash canvas, the picture gallery scrolls fast to the right, and if your mouse is close to the middle but on the right slightly, the picture gallery scrolls slowly left,
The script is: onClipEvent ( enterFrame ) {[code].....
I think it means that the move direction of the gallery is to do with (something) divided by the width of the stage, then - 0.5, then x by 5,and if this calculates to be less than 0 and (something) calculates to be less 0, then... I don't get how it chooses which direction to move after that.I also know the picture gallery has some sort of physics engine perhaps, but I'm not entirely sure..In short... I'd like to know how this code works.
I have a problem with my picture gallery. It is working ok. It show's pictures normaly. ...so what's the problem??? Well, I want my picture gallery to show, not only tumbs, but also and folders. Like, some person click on gallery button. It will show folders, and when that person click on one of that folders, then it will show photos.