ActionScript 3.0 :: Photo Gallery - Sliding Thumbs Reverse Button?
Aug 13, 2009
I'm trying to make a site with a photogallery that has sliding thumbs in the bottom corner ("slidingOut_mc"). I've got them sliding from right to left with a simple tween that is infinite. The problem is that I have a left arrow and right arrow that I want to slide the thumbs in reverse (left arrow i.e. "back_btn") or at double speed (right arrow i.e. "forward_btn") on a roll over of the button. I used the ENTER_FRAME thing to get the mc to reverse with prevFrame when rolling over the "back_btn" but I can't get it to stop when I roll out.
This is what I have so far...
back_btn.addEventListener(MouseEvent.ROLL_OVER, backF);
function backF(event:MouseEvent):void{
slidingOut_mc.addEventListener(Event.ENTER_FRAME, everyFrame);
function everyFrame(event:Event):void{
slidingOut_mc.prevFrame();
[Code] .....
It tells me the "everyFrame" is an undefined property. I think and hope the problem should be obvious to those who know more than me. Do I need some sort of import at the very start of it all?
View 3 Replies
Similar Posts:
Mar 29, 2006
I've downloaded and slightly modified the Photo Gallery with Thumbnails .fla file. It works fine, except when you mouse over the right side, it keeps scrolling until all of the thumbnails are off the screen. Going to the left, it works fine, stopping when you reach the first thumbnail. On the original, it works as it should.
View 1 Replies
Dec 16, 2009
I'm trying to make a site with a photogallery that has sliding thumbs in the bottom corner ("slidingOut_mc"). I've got them sliding from right to left with a simple tween that is infinite. The problem is that I have a left arrow and right arrow that I want to slide the thumbs in reverse (left arrow i.e. "back_btn") or at double speed (right arrow i.e. "forward_btn") on a roll over of the button.I used the ENTER_FRAME thing to get the mc to reverse with prevFrame when rolling over the "back_btn" but I can't get it to stop when I roll out.
This is what I have so far...//////
back_btn.addEventListener(MouseEvent.ROLL_OVER, backF);
function backF(event:MouseEvent):void{
slidingOut_mc.addEventListener(Event.ENTER_FRAME, everyFrame);
[code]...
That's the part that seems to work. I've tried to make a roll_out function in a few way but none work. I feel like I must need a removeEventListener event but I figure out the code with out being an error. Here was my best attempt at the roll out button.
back_btn.addEventListener(MouseEvent.ROLL_OUT, backOffF);
function backOffF(event:MouseEvent):void {
slidingOut_mc.removeEventListener(Event.ENTER_FRAM E, everyFrame);
[code]....
View 1 Replies
Jul 24, 2006
I was working with the XML Photo Gallery Thumbnail Tutorial on this site: http:[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:
function thumbNailScroller() {
// thumbnail code!
this.createEmptyMovieClip("tscroller", 1000);[code]....
I'm also trouble figuring something out from the same tutorial, that I want to change. The tutorial uses these "Next" and "Previous" buttons. On the far right hand side, the half-circle buttons are what I assigned this to, but I don't really want them to have that function. I would rather have them function just like how the mouse functions when it rolls over the thumb gallery, except they scroll the thumbs up and down when clicked.
View 14 Replies
Aug 20, 2009
I have a sliding photo galley with a previous and next button. I have added action script to tell the linked pictures to slide along and for the next button its fine (I took the script from a forum...as you do). I put stop commands on the key frames over the next picture, Now if I am on the 4th image and click previous, its goes all the way back to the start!
stop()
this.onEnterFrame = function(){
if(rewind == true){
prevFrame();
}} next_btn.onPress = function(){
rewind = false;
play();
} prev_btn.onPress = function(){
rewind = true;
}
View 5 Replies
Jul 19, 2005
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:
[Code]...
View 2 Replies
Oct 16, 2008
I am having an issue with my photo gallery thumbs not showing up.When you first land on the page the thumnails do not appear with the flash photo gallery. However, if you refresh the page, they show up.
XML loading code frame 1
Code:
photo_filename = new Array();
photo_thumbnail = new Array();
photo_description = new Array();
[code]....
View 3 Replies
Jul 27, 2006
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:
[Code]....
View 1 Replies
Aug 7, 2007
I've built an xml gallery with thumbnails only, layed out in a grid, and am trying to link each thumb to a centered popup. I'm getting a centered popup when clicking the image, but instead of the page loading inside, I'm getting an error message: Not Found. The requested URL /tas-dp_new/undefined was not found on this server.Here is my actionscript:
Code:
cliparray = [];
columns = 6;[code].....
View 2 Replies
Mar 16, 2009
I just pulled together a picture gallery, where the pictures simply scroll across the screen using arrows. I used the template from [URL] The problem is that when I added my own pictures, the graphic symbol was obviously a different size from the original template. So when the images scroll they should stop at a certain point as to not show any empty space. I changed the values that i guessed were the ones setting up where the graphic has to stop at, but it doesnt seem to be doing anything. The code below is the only script of any importance, at least that I know of. The other stuff just points to targets and gotoandplay stuff.
View 3 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
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 14, 2009
Basically I have a movieclip on the stage which is masked by some shape in order to get a curved look... inside this movieclip which has the instance name "thumbContainer" I am loading thumbs from an XML file. So now I want to scroll the thumbs when roll over the sides of the thumbContainer mc with a buffer area of 50 pixels in the middle. Also, I'd like to have arrows on the side that would also scroll the thumbs left and right.
View 2 Replies
Sep 14, 2010
My sliding, gliding thumbnail menu is located at the bottom of the page, and it reacts to the cursor movements as intended. However if I were to move the cursor around the page somewhere on the top the menu is still reacting to the cursor movements. I would like it to become inactive once the cursor off the menu. You can check the page at [URL] and then go to "applications".
The menu consist
[Code]....
The position of the cursor moves the Sliding Gliding animated menu even if it is not on bgClip_mc. For the first time it works as it should but once it is activated and I move the cursor away from the bounding parameters of the bgClip_mc the Sliding Gliding Menu is still reacting to the mouse movements.
View 2 Replies
Jul 24, 2008
1. He wants the image slider device to scroll from left to right, instead of the default right to left.2. He wants to make it so that when you click on one of the photos (which are all buttons) the scrolling stops, and when you click "close" the scrolling starts again.Here is the actionscript for the sliding mechanism:
_quality = "BEST";
moview = 770;
w = slider._width;
[code].....
View 2 Replies
Sep 5, 2009
I have a very nice picture gallery made in CS3 / AS3. I managed to personalize it and all. But, I have difficulty with (or no clue... actually), how to add a precious and next button to it(image).
This is the link for the zip file, containing all the neccesary files: [URL]
And in the attachment I pointed out where I prefer to have these two buttons.
View 2 Replies
Jan 26, 2009
I have a movie clip within my Flash movie that shows a photo gallery. Within the gallery, I have a area called "holder" which is another movie clip which is where the photos display. To the left of "holder", I have a forward and back arrow button. The forward arrow button works just fine.[code]...
View 1 Replies
May 11, 2007
I need to add a backward and forward button to a photo gallery I am working on, but not sure how to do it.
Here is the code:
[Code]....
View 1 Replies
Mar 23, 2005
I am a bit confused on doing a photo galery.... I want to set one up. I want to alpha out one photo and alpha in another on a button release. I know how to go forward on a button release for timeline sake but I don't know how to go to the previous picture when the previous button is clicked. Is there a way to play the timeline backwards or is the xml way the only way. If the xml is the only way than how to set my own photos into the code or link my photos to the code.
View 5 Replies
Jun 2, 2010
I'm rather new to AS3 but I have to make a gallery like on this website. [URL]. I have only 4 pictures and 4 buttons but I have also two arrows on each side. I would like to make it in a main timeline. Like an easy animation and than with as3 send user to one of those four pictures when he is clicking on buttons.
View 1 Replies
Aug 26, 2006
I found the tutorial by Kirupa
[Code]...
View 2 Replies
Aug 15, 2010
I'm using the code below to create a simple gallery of thumbs in a line with space between each thumbnail.[code]I have a rollover/out function that scales up/down the thumb outwards from the centre of the thumb.I was expecting the scaling thumbnail to "push" the other thumbnails left and right as it scaled...but it only shifts the thumbs to the right of it and the thumbs to the left do not move.I need code to allow a scaling thumbnail to push aside the other thumbs in every direction.
View 2 Replies
Aug 17, 2010
I'm using the code below to create a simple gallery of thumbs in a line with space between each thumbnail.
ActionScript Code:
onEnterFrame = function () {
for (projIdx = 0; projIdx < projectsArray.length; projIdx++) {
//space between photoThumbs
[Code].....
I have a rollover/out function that scales up/down the thumb outwards from the centre of the thumb.
I was expecting the scaling thumbnail to "push" the other thumbnails left and right as it scaled...but it only shifts the thumbs to the right of it and the thumbs to the left do not move.
Imagine a 3 thumbnails in a horizontal line, I want the middle thumbnail (thumbnail 2) to scale from the centre and push thumbnail 1 to the left and thumbnail 3 to the right. But obviously I want this to work for x amount of thumbs.
View 4 Replies
Apr 12, 2005
I need to get more control over the thumbnails.
gallXML.ignoreWhite = true;
gallXML.onLoad = gallery;
gallXML.load ("gallery.xml");[code]....
this has to be an array, so that I can give all thumbnails together an order. I thought this was an array, but I can't get control over this. When I trace 'thumbHolder', I get back only the last thumb. If I trace 'this', than I get the right one. i.e:
_level0.thumbnails.thumbnail4) */
thumbHolder._y = i * spacing;
thumbHolder.title = picHolder.attributes.title;[code].....
View 8 Replies
Feb 6, 2009
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:
Code:
import com.mosesSupposes.fuse.*;
ZigoEngine.simpleSetup(Shortcuts, PennerEasing);
[code].....
View 9 Replies
Jul 10, 2009
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.
View 2 Replies
Oct 15, 2010
i'm currently re-using a code snippet of xml gallery with scrolling thumbs, but i got a problem : my mask is stagewidth and my pictures holder depend of thumbs numbers, sometimes after resizing windows browser, while scrolling to the browser sides limit i cannot see the end of the last pic or the start of the first pic
[Code].....
View 7 Replies
Apr 12, 2005
I need to get more control over the thumbnails.
[Code]...
I've been busy to understand the Bokel class, but I couldn't find a good tutorial about thumbnail threatment.
View 9 Replies
Nov 19, 2010
i'm currently re-using a code snippet of xml gallery with scrolling thumbs, but i got a problem : my mask is stagewidth and my pictures holder width depend of thumbs numbers, sometimes after resizing windows browser, while scrolling to the browser sides limit i cannot see the end of the last pic or the start of the first pic, how to fix that ?
tha'ts part of a bigger project, but i've isolated the bug in this source : [URL]
the fix i would like :
-seeing the whole first pic and whole last pic when scrolling to the border left and right
-placing the first pic at x:70 at start, and enter fullscreen
if someone may have a look on this , that's only a 2 mn fix for a skilled as3 programmer, but for me a headache
View 3 Replies
Feb 17, 2008
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?
View 14 Replies