ActionScript 2.0 :: Gallery Movement From Center?
May 23, 2007
modified the XML photo gallery tutorial that uses thumbnails [URL]
The tutorial demonstrates the thumbnails beginning to scroll when you reach the right hittest button.
What I am trying to do is have the thumbnails scroll in either direction horizontally in relation to the center of thumbnail scroller, like this example demonstrates- [URL]
I know that the hit_left and hit_right buttons are what is being referenced to trigger the scrolling, so I'm assuming that the solution lies somewhere in the if statements inside the thumbNailScroller function.
View 2 Replies
Similar Posts:
Jul 30, 2010
I am making an animation that shows roughly how an airplane's localizer works. (It is a guage in the cockpit that tells you the angle of the plane) This explanation might be a bit hard to follow, bear with me. Anyway, when the user moves the mouse side to side, the verticle line on the guage moves side to side. And when the users moves the mouse up and down the horizontal line moves up and down. I have set up limits to how far these lines can move in the guage. The problem I am having is that when you move the mouse in one direction, the coresponding line hits its limit and stops, but if you keep moving the mouse in that direction, stop, and then move the mouse in the opposite direction, the line begins tracking immediately from that point, so now your mouse location is off center from where it should be.
So, is there a way to also limit the active area on the screen so that mouse movement only registers in that area?
Code:
var lastPointX:Number;
var lastPointY:Number;
var diffY:Number;
[Code]....
View 2 Replies
Apr 14, 2010
created in flash. The issue i am having is when an image is loaded it always appears on the left handside attached to the top left point of the stage. Is there anyway i can get these images to load in the centre of the stage? This is the AS that is attached to my flash document.
Actionscript Code:
function initGallery() { function loadXML(loaded) { if (loaded) { xmlNode = this.firstChild; total = xmlNode.childNodes.length;
[code].....
View 1 Replies
Dec 3, 2007
I have built a gallery similar to the one found on Kirupa with a siding thumbnail gallery that references xml. Everything works great except that the images I want to load at their large size vary in width so when they load referencing the upper left hand corner they are not centered. I would like to load them so that each image in centered in the "picture" image area. I created a new movie clip and gave it the instance name of "picture" and center justified it but the images now load with THEIR upper left corner in the center of the "picture" image area. do I have to add code to the xml? is there anything I can ad to th AS to load pictures centered?
View 4 Replies
Mar 29, 2011
can anyone help me about the flash gallery slider on cursor movement either left or right direction like this website URL...
View 1 Replies
Jul 20, 2010
I have a dragable gallery of images separated with "contentSpacer". I'm trying to make each image "snap" when it is close to the centre. I've modified this [URL] and got it working, to a point. My problem is the x value that the gallery being snapped to needs to have "contentSpacer" subtracted from it: if its the third image in the sequence then it need to have ("contentSpacer" * 3) subtracted from it (as there is three gaps between the start of the gallery andthe end of the third image, get it?). In the code below I've put (proximity - (contentSpacer * j)) but "j" does not exist right now, you see what I'm getting at? The code doesn't seem to be aware what image it is snapping.
ActionScript Code:
currsubGallery.onRelease = function() {
this.stopDrag();
cursor.gotoAndStop(1);
//snap "current" fullSizeimage to project boundraies onRelease
if(Math.abs(Math.floor(this._parent.subGallery._x / subGalleryWidth)
[Code] .....
View 1 Replies
Jul 18, 2011
I have used a gallery component from flashXML.net. The problem is that the component makes internal stage conflict between my project and the gallery component, witch is embedded in my flash. The gallery works perfect, but it makes the scaling of my site totally wrong when I go back from the gallery to the rest of the site. Now I have override the problem by putting this code:Code: Select allstage.scaleMode="showAll"; on the frame where the HOME-button in the gallery is jumping to. The only problem now is that the site is about 20% off center at the left side on some screen resolutions. How I can get all the content perfectly centered?
View 1 Replies
Aug 17, 2009
I am trying to create a vertical scrolling gallery. In the past I've created a horizontal scrolling gallery but can't figure out how to switch the horizontal scrolling gallery to a vertical scrolling gallery. I know I need to change the positioning of the movie clips from horizontal to vertical just not sure what to change in the code.
what I would need to change in order for my horizontal scrolling gallery to become a vertical scrolling gallery?
code:
digital_artwork.onRollOver = digital_artworkOver;
function digital_artworkOver() {
this.onEnterFrame = scrolldigital_artwork;
[Code].....
View 2 Replies
Jan 22, 2010
I am looking for the Action Script that will allow me to set up a horiz. set of images and use the mouse movement to move the band of images left or right. Upon clickin on the image I will have a link to other views.
View 3 Replies
Oct 24, 2010
I would like to stop movement of the thumbnails of the Gal100 gallery when my pop-up container "MC" was loaded, so that mouse moving over loaded container "MC" doesnt affect the position of the thumbnails in the gallery beneath it (i'd like for the thumbnails position to remain the same after closing the popup container).
how to do it with AC ?
i'm also wondering why the movie clip "MC" is not listed in the AC properties window as any other movie clip which contains an AC code ? it's simply not there. so, the only way to see the code is actually to select the ac frames of the "MC" movie clip.
View 4 Replies
Aug 15, 2009
I have a center window and a background in my flash file. I am trying to get the center window to stay in the center of the web browser screen and get the background to expand and fill the entire web browser screen below center window layer. Sort of like this site [URL] I've currently converted the background to a movie clip and have this code.
[Code]....
View 11 Replies
Mar 23, 2009
My flash movie is 1440x900 but the area where all the important stuff happens in within 1024x768, i am trying to keep the middle in the center regardless of browers size or aspect ratio.
I can center the page but it doesn't work as i need it to. If the browers is small (1024x768) the swf is justified against the left edge, but not keeping the middle in the middle of the brower.
[URL] is an example of exactly what i am trying to achieve.
View 13 Replies
Jul 9, 2010
I've been playing with carousel code, and was wondering how to change it from circular animation (carousel) to left/right linear (conveyer belt) style animation, how to change the mover code and 't.angle = i * ((Math.PI*2)/numOfItems);'
[Code]....
View 1 Replies
Feb 12, 2003
I have a mc (fStrip) which looks like a piece of filmstrip with thumbnail images in it. I want this mc to move when the users mouse is positioned over it, but I only want it to move only along it's x-axis and in a direction opposite that of the mouse. And I want it to move or flow smoothly.
I've been trying to figure this out (see my lame attempt below) but without much luck.
onClipEvent (mouseMove) {
buffer=20 //movement buffer
mousePos=_root.fStrip._xmouse //store mouse position
if (mymouse!=_root.fStrip._xmouse){ //if the mouse has moved
[Code].....
View 3 Replies
Jun 22, 2004
I wish to get the effect of ants scuttering across the screen or up a tree, I have not decided which direction yet. I started with the tutorial code for the snow effect from kirupa, and changed it around to fit the little vector ant I created. The way I have it now looks pretty good, but the movement is a little too fluid. They obviously move in sinusoidal paths bc the code tells them to. I have about 20 copies of the main obj, and they're all a little different in size and specs (speed, transparency, etc) but what I was wondering was if there is any way I can change the code to make it a little more hectic, or erratic, not so fluid. If there is no way of doing so, it looks pretty good right now. If there is, however, I think it could look awesome. here's the code I'm using for the object.
onClipEvent (load) {
//stage
movieWidth = 850;
movieHeight = 50;
[code]....
View 5 Replies
Jun 10, 2011
how to get the camera to move with a character? At the minute he just moves off screen when i press right rather than the camera following him.
View 3 Replies
Oct 2, 2002
I have a Mogli (Junglebook-like) Character that i got to move with the arrow keys on the keyboard.
I want the character to jump (so for example , he must while moving to the right of the "gamearea" , you must be able to hit a key (say for example the "control" key ) and then the character must jump ( go up ) and as soon as the key is released he must obviously come down.
And also how do one set movement speed on any particular movement.
View 12 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
Jan 29, 2012
Im using a dock gallery fx from flash xml components. But for some reason when I preview in browser the dock gallery scales out of the swf area. This doesnt happen if i change the p[ublish setting to match movie. But if the publish setting is set to perscentage gallery scales.
View 3 Replies
Feb 6, 2009
i was looking for gallery looking like this site [URL] i was looking gallery first page title gallery then Big image like this with description.
View 1 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
Oct 26, 2010
I've made a gallery slideshow before but wasn't as intuitive looking back at it now and I want to start fresh on this new project. I would like to convert a jQuery lightbox style gallery into a flash XML based AS3 image gallery with categories. I don't want to code the FLA, I want separate AS files.
This is a school project for my website. I would use jQuery and I have more experience with it but this project needs a flash component. I'm just not sure where to start and looking for some advice on how and where I could find resources. I want it to be minimal as I can make it;
- 8 thumbnails to a "page/section" with more flowed into page 2 or 3 etc. (or a srcoller)
- a few buttons for categories
- images fading in full size with a description when hovered over and a close button
- preloader (simple bar)
Esentially something like this > http:[url].........works which is using http:[url].... for the thumbnails. That might be ambitious but I'd suffice with a simple fade effect.I've downloaded some galleries out there but most of the code is messy or outdated.http:[url]... this is alright, but all the code is done in the FLA. I might break it into AS files but it depends.
View 1 Replies
Mar 16, 2009
In my "actions" layer I have a function that loads a gallery of a external file called gallery.swf. The swf loads successfully but I cant remove that. The only way to remove is to call removeChild(mLoader.content); I noticed that the movies loads without addChild.
But sometimes also calling removeChild(mLoader.content) the content of mLoader is not removed and still appears in the stage.
[Code]...
View 5 Replies
Jan 24, 2010
I have a flash site that I'm working with that has an xml photo gallery as one of it's menu items. the photo gallery has three pages, all three containing thumbnail images that once clicked, load the larger image. The larger image dissolves in covering the page with the image. Once you click the larger image it dissolves out returning you to the gallery.
What I want to to do is to change the first page of this gallery to a video gallery, or player, leaving the other two galleries as image galleries. I tried simply replacing the images listed in the xml document to flv files and the flv file does not load. I simply want to know what it is I need to do in order to change this one page so that I can embed videos on it.
I've attached the Action script that loads the xml gallery in .txt format
View 6 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
Apr 12, 2011
have a question about loading new photos into a already populated image gallery.So I have my gallery set up so first loads my stage pics. What I would now like to do is load different set of images via the click of a button.So for example the loaded gallery already has all thumbs loaded and the user can click on them to view the full size image. next instead of the user having to close this gallery to allow a new gallery to open with a different set of pictures I would like to have a button. This button will unload the existing thumbs from the gallery and load in new ones.
View 1 Replies
Dec 5, 2007
I've got a website with three links to three different thumbnail galleries. When I click the link to a gallery that has a lesser number of thumbnails, it fills the difference in numbers in with thumbnails from the previous 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
Apr 20, 2009
I'm having trouble centering the stage on screen, its locked to the top left of my window and nothing will make it move. I remember accidentally pressing something on the keyboard just before this happened, but don't know how to get my stage center again. The hand tool does nothing.
Oh and its only happened in this fla, other fla's are fine.
View 3 Replies
Jul 28, 2009
I have been looking all over the place for what seems like should be a really easy thing to accomplish.I have a swf that is 1060x630px and I would like to center it on the page... at the moment it just sits in the far left corner of the screen when I export it to html. My knowledge of html is minimal but I am guessing that this needs to be done in dreamweaver.
View 2 Replies