Photo Viewer
hi, just wondering if anybody knows of a tutorial (or anything similar) regarding the theory behind this really cool photo viewer - http://www.airtightinteractive.com/p...ostcardviewer/ - (click the photo viewer demo link) Just wanting to know how the movement and enlarging aspects are created, cos it looks rather good. or if it could be modifiyed to have music playing in the background for instance. thanks!!
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 01-16-2006, 09:39 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Photo Viewer
ok, this one's a classic.
i have a bunch of thumbnail photos in my flash movie and would like to let the user click on them to enlarge in another window (and then click on arrows to advance through the entire photo collection).
i'm sure there are many different ways to do it, but...
1. what is the best window-spawning command to use w/thumbnails (assuming that all the enlarged images will end up in this same window).
2. does anyone know of any sites that have implemented this particularly well?
thanks all
Photo Viewer?
Hello may seem simple but can somone help me with a good photo viewer for use on my web site? goto have thumbnails around the edges and when clicked will open bigger in the centre.
Cheers Marl
Photo Viewer
I want to make a nice photo viewer for my own web site to show off my photography portfolio. The current one I made the lazy way, with Photoshop CS2 generating the html - http://www.vduk.co.uk/photography.htm This is now a bit dated and needs upgrading. I want to used scrollable line of thumbnails along the top that can be added to infinitely as I keep shooting more stuff and I want to be able to update the site easily ... if it's not easy it doesn't get done!
I think that the obvious way to do it would be to use a Flash Slide Presentation, which would be cool as I can have nice transitions. I know how to do that bit, but I dont know how to do the scrolling line of thumbnails. In a perfect world the line of thumbnails would be like a belt around a couple of pulleys, where the stage would be a section of one of the pulleys, but I think that this is probably a tad *****ious. I'm using Flash 8 pro and have cracked simple animations and simple navigation, but am no coding guru! If you want an idea of my proficiency have a look at http://www.annagooch.co.uk or http://www.celect.biz or http://www.fw-lighting.co.uk/LED_03.htm . ie I have a basic idea but am no wizard!
Any help would be much appreciated.
Ralph
Photo Viewer
Does anyone know if there's a free download for this photo player? I've seen this player on a lot of websites lately. Thanks.
http://www.beachfire.com/photos/
AS3 Photo Viewer Tut
When I run the app I get an error --- it reads:
"Scene 1, Line 86, Layer actions, Frame 1, 1131: Classes must not be nested. Class ImageContainer extends MovieClip { "
I don't know how to fix it, Will you help ?
Photo Viewer
Hi. I want to create a simple Flash photo viewer using external jpegs rather than including them in the flash movie. Photos may be a mix of landscape and portrait and possibly of different sizes. Does anyone know of a tutorial or a .fla file I can play with? Thnx G :)
Photo Viewer
Greetings from Colorado Springs, Colorado
I am tasked to build a Flash photoviewer that allows the user to click on a thumbnail to bring up a larger pic. Then, forward that pic to a friend or save it to the harddrive. All this without going to another pop-up in HTML. Is this possible?
test site: www.posh-entertainment.com
I really appreciate it!
Photo Viewer
Greetings from Colorado Springs, Colorado
I am tasked to build a Flash photoviewer that allows the user to click on a thumbnail to bring up a larger pic. Then, forward that pic to a friend or save it to the harddrive. All this without going to another pop-up in HTML. Is this possible?
test site: www.posh-entertainment.com
I really appreciate it!
Photo-viewer With External Jpg
Hey all
I was just wandering if anyone out there knows how to make a photo viewer that uses photos that can be easily changed ? I know it is possible - but is it possible that the photos can be faded in and out as well ?
I hope you can help me.
Thanks
Nice Photo Viewer
Hey the photo viewer for this page is really nice:
http://www.qj.net/What-s-that-Major-...g/49/aid/94364
When you click on the picture in the article, it does some nice flash and I was just wondering if anyone knows how they did this so I could do it for some of my pictures on my website. Any help would be greatly appreciated.
Dynamic Photo Viewer ?
Hello, I have a library of images all with Photoshop embedded metadata keywords.
I want to create a Flash picture viewer. that will allow a user to dynamically generate a gallery based on metadata keyword entries ?
Where would I start to implement this sort of gallery ?
ie. are there any packages out there already that offer this sort of functionality ?
Thanks for any leads.
Edited: 04/12/2007 at 10:11:27 PM by phil1943
Photo Sliding Viewer
I can't find any resource or how to make a photo sliding viewer.
something like this
http://www.flash-creations.com/notes/dynamic_slidingviewer.php
i read that page but i coudlnt understand
someone plz help me
Lag Issues With Photo Viewer
Ok I'm new to AS3 but i am well versed in AS2 so making the conversions are proving a bit tricky, the issue i am having is I'm building a photo viewer style kiosk however if you leave it up in the browser for a few minutes it begins to lag and will continually get worse until clicking a button will cause it to crash (took about 10 minutes for that) but this is a large kiosk and very well could be viewed for that long and i have hit a wall trying to find out what it is causing the lag after a while. Please if someone could help out i would greatly appreciate it. Thank you very much
Code:
import flash.events.MouseEvent;
import fl.transitions.Tween;
import fl.transitions.easing.*;
import flash.events.Event;
import fl.transitions.TweenEvent;
var ticker_var :int = 11;
var clickyclicky_var=true;
//ON ENTER FRAME!!!!!!!!!!!!!!!!!!!!!!
addEventListener(Event.ENTER_FRAME, onEnterFrame);
function onEnterFrame(event:Event):void {
//mainmap_mc.lowerlevel_mc.popup_mc.lobbyviewer_mc.lobbypic_mc.lobbyslider_mc.x=lobbyX_var;
//ticker_var++;
/*if (ticker_var>13) {
ticker_var = 12;
}*/
trace(ticker_var);
//var lobbyX_var=mainmap_mc.lowerlevel_mc.popup_mc.lobbyviewer_mc.lobbypic_mc.lobbyslider_mc.x;
//var lobbyXR_var=mainmap_mc.lowerlevel_mc.popup_mc.lobbyviewer_mc.lobbypic_mc.lobbyslider_mc.x;
//mainmap_mc.lowerlevel_mc.popup_mc.lobbyviewer_mc.lobbypic_mc.lobbyslider_mc.x=lobbyX_var;
//lobbyX_var=mainmap_mc.lowerlevel_mc.popup_mc.lobbyviewer_mc.lobbypic_mc.lobbyslider_mc.x;
//var lobbyX :Number=5;
//var lobbyleft:Tween = new Tween(mainmap_mc.lowerlevel_mc.popup_mc.lobbyviewer_mc.lobbypic_mc.lobbyslider_mc, "x", Regular.easeOut, mainmap_mc.lowerlevel_mc.popup_mc.lobbyviewer_mc.lobbypic_mc.lobbyslider_mc.x,mainmap_mc.lowerlevel_mc.popup_mc.lobbyviewer_mc.lobbypic_mc.lobbyslider_mc.x-200, 10, false);
//var lobbyright:Tween = new Tween(mainmap_mc.lowerlevel_mc.popup_mc.lobbyviewer_mc.lobbypic_mc.lobbyslider_mc, "x", Regular.easeOut, mainmap_mc.lowerlevel_mc.popup_mc.lobbyviewer_mc.lobbypic_mc.lobbyslider_mc.x, mainmap_mc.lowerlevel_mc.popup_mc.lobbyviewer_mc.lobbypic_mc.lobbyslider_mc.x+200, 10, false);
//trace(lobbyX_var);
if (ticker_var<11) {
clickyclicky_var=false;
}
if (ticker_var>11) {
clickyclicky_var=true;
}
if (clickyclicky_var==false) {
mainmap_mc.lowerlevel_mc.popup_mc.lobbyviewer_mc.lobbyleft_btn.mouseEnabled=false;
mainmap_mc.lowerlevel_mc.popup_mc.lobbyviewer_mc.lobbyright_btn.mouseEnabled=false;
ticker_var++;
//trace("off");
}
if (clickyclicky_var==true) {
mainmap_mc.lowerlevel_mc.popup_mc.lobbyviewer_mc.lobbyleft_btn.mouseEnabled=true;
mainmap_mc.lowerlevel_mc.popup_mc.lobbyviewer_mc.lobbyright_btn.mouseEnabled=true;
//trace("on");
}
/*var lobbyX :Number;*/
/*var lobbyX :Number=mainmap_mc.lowerlevel_mc.popup_mc.lobbyviewer_mc.lobbypic_mc.lobbyslider_mc.x;
*/
//LEFT BUTTON SLIDER
mainmap_mc.lowerlevel_mc.popup_mc.lobbyviewer_mc.lobbyleft_btn.addEventListener(MouseEvent.CLICK, leftlobbyclick);
function leftlobbyclick(Event:MouseEvent):void {
if ((mainmap_mc.lowerlevel_mc.popup_mc.lobbyviewer_mc.lobbypic_mc.lobbyslider_mc.lobbysensorL_mc.hitTestObject(mainmap_mc.lowerlevel_mc.popup_mc.lobbyviewer_mc.lobbypic_mc.leftlobbystop_mc) == false)) {
mainmap_mc.lowerlevel_mc.popup_mc.lobbyviewer_mc.lobbyleft_btn.mouseEnabled=false;
ticker_var=0;
//ticker_var++;
clickyclicky_var=false;
var lobbyleft:Tween = new Tween(mainmap_mc.lowerlevel_mc.popup_mc.lobbyviewer_mc.lobbypic_mc.lobbyslider_mc, "x", Regular.easeOut, mainmap_mc.lowerlevel_mc.popup_mc.lobbyviewer_mc.lobbypic_mc.lobbyslider_mc.x,mainmap_mc.lowerlevel_mc.popup_mc.lobbyviewer_mc.lobbypic_mc.lobbyslider_mc.x-200, 10, false);
lobbyleft.start();
//lobbyleft.stop();
}
}
//RIGHT BUTTON SLIDER
mainmap_mc.lowerlevel_mc.popup_mc.lobbyviewer_mc.lobbyright_btn.addEventListener(MouseEvent.CLICK, rightlobbyclick);
function rightlobbyclick(Event:MouseEvent):void {
if ((mainmap_mc.lowerlevel_mc.popup_mc.lobbyviewer_mc.lobbypic_mc.lobbyslider_mc.lobbysensorR_mc.hitTestObject(mainmap_mc.lowerlevel_mc.popup_mc.lobbyviewer_mc.lobbypic_mc.rightlobbystop_mc) == false)) {
mainmap_mc.lowerlevel_mc.popup_mc.lobbyviewer_mc.lobbyright_btn.mouseEnabled=false;
ticker_var=0;
clickyclicky_var=false;
var lobbyright:Tween = new Tween(mainmap_mc.lowerlevel_mc.popup_mc.lobbyviewer_mc.lobbypic_mc.lobbyslider_mc, "x", Regular.easeOut, mainmap_mc.lowerlevel_mc.popup_mc.lobbyviewer_mc.lobbypic_mc.lobbyslider_mc.x, mainmap_mc.lowerlevel_mc.popup_mc.lobbyviewer_mc.lobbypic_mc.lobbyslider_mc.x+200, 10, false);
lobbyright.start();
//lobbyright.stop();
}
}
/*lobbyleft.addEventListener(TweenEvent.MOTION_FINISH,handleResetL);
function handleResetL(Event:TweenEvent):void {
//lobbyX_var = mainmap_mc.lowerlevel_mc.popup_mc.lobbyviewer_mc.lobbypic_mc.lobbyslider_mc.x;
trace("left stop");
}
lobbyright.addEventListener(TweenEvent.MOTION_FINISH,handleResetR);
function handleResetR(Event:TweenEvent):void {
//lobbyX_var = mainmap_mc.lowerlevel_mc.popup_mc.lobbyviewer_mc.lobbypic_mc.lobbyslider_mc.x;
trace("right stop");
}*/
mainmap_mc.lowerlevel_mc.lobby_btn.addEventListener(MouseEvent.CLICK, lobbyClick);
function lobbyClick(Event:MouseEvent):void {
//trace("lobby click");
mainmap_mc.lowerlevel_mc.popup_mc.x=88;
mainmap_mc.lowerlevel_mc.popup_mc.y=-67.8;
}
mainmap_mc.lowerlevel_mc.popup_mc.lobbyclose_btn.addEventListener(MouseEvent.CLICK, lobbeyloseClick);
function lobbeyloseClick(Event:MouseEvent):void {
mainmap_mc.lowerlevel_mc.popup_mc.x=789;
mainmap_mc.lowerlevel_mc.popup_mc.y=-470;
}
mainmap_mc.lowerlevel_mc.popup_mc.lobbydrag_btn.addEventListener(MouseEvent.MOUSE_DOWN, lobbyDrag);
function lobbyDrag(Event:MouseEvent):void {
/*trace("draging");*/
mainmap_mc.lowerlevel_mc.popup_mc.startDrag(false);
}
mainmap_mc.lowerlevel_mc.popup_mc.lobbydrag_btn.addEventListener(MouseEvent.MOUSE_UP, lobbyDragstop);
function lobbyDragstop(Event:MouseEvent):void {
mainmap_mc.lowerlevel_mc.popup_mc.stopDrag();
}
}
stop();
XML Photo Viewer Problem
Hi,
I'm in the process of updating a website for an art gallery, which includes a new image viewer (see it here: http://www.artone.co.uk/Flash/currently exhibiting.swf).
Here in the currently exhibiting.swf file the thumbnail scroller at the bottom works perfectly.
The problem arises when my main.swf file loads the image viewer into the loader component (see it here: http://www.artone.co.uk/Flash/main.swf). The thumbnail scroller now operates intermittantly. I think the hit areas are positioning themselves relative to the main.swf file, but I'm not entirely sure.
If anyone has any ideas on how to fix this problem feel free to post a response or email me at: charlie_B_04@hotmail.com. Any help is greatly appreciated.
Cheers,
Charlie
Fading Photo Viewer
im trying to figure out how to make it so when i have an image with an alpha of say 50 and you move the mouse over it, the alpha increases, so color almosts fades into it (if that makes sense).
i'm new at flash, so would i want to write this in an "action layer" or would i just make the picture a button and do this through the button's action?
eventually, i would like to make it so i can have severall (hopefully a dynamic amount) pictures that are thumbnails that are faded out, but when you move the mouse over one, it fades into the rull color and the size increases.
AS2: Check Out This Nearly Done Photo Viewer. Something Wrong
Because I know people here get lazy to read long code, I'll put this up first in hopes that someone has encountered the same problem.
Please visit www.quirkworks.net and go to photography. There you will see a photoviewer I created. As the pictures load, press and leave pressed the circle below it (that's the slider that changes the pictures' size.
You'll notice that the pictures that have started to load when the slider was clicked turn clockwise. I have no idea why this happens - I have no rotate command anywhere in my actions script. I just have a lot of resize, and redefinition of x and y.
Thanks,
How Can I Tweak/modify A Photo Viewer?
I found a photo viewer tutorial
http://www.actionscript.org/resource...ial/Page1.html
that fascinates me, and the author allows use and modification. I like the way it looks except for the 10 buttons (which I believe are present via XML). I need tips on how I should go about replacing the buttons with a scrolling thumbnails movie clip I have. Thus, I will need to assure that the image sizes of the gallery coincide with the positioning of my scrolling thumbnails because my thumbnails are 100x100.
I believe the code was created dynamically based on the number of items loaded from the xml file (10), and it centers to the top of the stage.
yours sincerely
Pviewr (Photo Gallery Viewer)
Hello all,
Just wanted to share this app I created...
Pviewr (Photo Gallery Viewer) is an online tool for viewing web Photo Galleries. It allows you to view photos from either Flickr or Picasa (Web Albums). Pviewr is built using the Flickr API that comes with SWX, and SWXml to incorporate data from the Picasa API.
http://www.pviewr.713flash.com/
cheers to:
Aral Balkan - swx
Florian Palg - SWXml
creatify - McSlider
sephiroth - Color picker component
Photo Viewer Slideshow Urgent Help Needed
Here is the deal, I am a relatively new to web design. I have worked with html for a while, but Flash scares the crap out of me. I have spent days messign with it and the results can barely be seen. My wife has started a photography business, that is starting to go but she needs her photograph albums to be viewable online. Every photographer in our area uses some type of flash display, so I have been working hard to understand how I could create this for her ASAP, so that potential clients would have something to actually look at.
I used Bitmap to draw two designs for the tpye of photoviewers that I am thinking of. If anyone has source files with projects similar to this I would greatly appreciate it and be indebted to you! Any help is appreciated!
Thanks!
red
Amen KAMALELDINE: AS3 Photo Viewer Tutorial
I don't know how else to ask a question about your tutorial so i am posting here. The problem that i have is when i try to load the swf file with this photo viewer into a different swf. Any help that i can get will be appreciated. The error that i am getting is :
Quote:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at DigitalArt$iinit()
The code that i am using to preload it is (It works with other swf files that do not have external xml or as files, so i am guessing that is the problem but i don't know how to fix it):
Quote:
// import the packages
import flash.display.Loader;
import flash.display.Sprite;
import flash.net.URLRequest;
import flash.events.*;
// set variables
var loader:Loader;
var request:URLRequest;
//create new loader object
loader = new Loader();
//create new Loaderbar
var loader_mc:loaderbar_mc = new loaderbar_mc();
models_btn.addEventListener(MouseEvent.CLICK, myClickListener);
function myClickListener(event:MouseEvent):void
{
//assign attributes and display
loader_mc.x=350;
loader_mc.y=150;
addChild(loader_mc);
//add Loader object to the display list
addChild(loader);
//create new URL request object
request = new URLRequest("DigitalArt/DigitalArt.swf");
//load the request object into the Loader object
loader.load(request);
//add listener for loading purposes
loader.contentLoaderInfo.addEventListener(Progress Event.PROGRESS, progressHandler);
//add listener function
function progressHandler(myevent:ProgressEvent):void{
var myprogress:Number = myevent.target.bytesLoaded/myevent.target.bytesTotal;
loader_mc.bar_mc.scaleX = myprogress;
loader_mc.percentage_txt.text = Math.round(myprogress*100) + "% Loaded";
}
//add listener for loading completed
loader.contentLoaderInfo.addEventListener(Event.CO MPLETE, alldone);
//add nav to stage and remove loader
function alldone(myEvent:Event):void{
container.addChild(loader);
removeChild(loader_mc);
}
}
Kirupa Flash Photo Viewer Question
Hi All
Great site love the tutorials, have a question about this tutorial though http://www.kirupa.com/developer/mx/photogallery.htm
Is it possible to insert this overall Gallery movie into another flash movie ? I am currently developing a full flash site and would like to use this to display images but when I try to insert it into the movie I get a continuous loop with the output "NaN"
I've checked all the paths and they're correct, I am fairly new to flash though so it may be a small thing that I am overlooking. Is it possible to do this the way I want to ?
Thanks
Donal
Advice Sought On Creating A Calendar-style Photo Viewer
Hi folks,
I operate a website that has been having a new daily photo shown for several years now. Currently, the photo information (file name, date, caption, etc.) is stored in a MySQL database, and I have a PHP script which will pull the info from the DB in order to show the daily photo.
Now I'm trying to figure out an easy way to present the years of archives. I have an HTML calendar which does the job, although it's pretty cumbersome.
So I'd like to use Flash for this. I've seen plenty of attractive photo galleries and a few tutorials, but I haven't quite seen something that would seem to be the right solution to present thousands of photographs.
Here's what I'm thinking of doing in Flash: I'd like to have a large calendar layout, where each day of the calendar has a thumbnail of that day's picture. Click on any of the 31 thumbnails listed in a given month, and you get the full-sized picture. Then from there, you can navigate to previous months, and the Flash file will dynamically load 31 new thumbnails, and then once again the user would have the ability to click on a thumbnail to view the full thing.
I hope this is clear enough. I can picture the finished product in my head, and I think it would be very user-friendly and would be a good way to let people navigator through so many photos.
So I'm trying to get a grasp on where to start here, and I'm open to any suggestions, ranging from given tutorials to look at, to the wisest approach to take, to... anything, really.
I know Flash 8 Pro has a built-in calendar object, the DateChooser. Is there any way to customize that so as to add a background image to each individual day? Or does anybody have an idea of how to create my own calendar?
Any ideas or feedback would be welcome. Thanks for reading this!
Luke
One Flash Banner Plays Differently When Viewer First Visit The Site And When Viewer N
I have a flash banner at the top, when the viewers first come to my site, my flash banner plays the way I want, when viewers start to navigate my site and got redirected to other pages within my site, the flash banner on the top will paly the same way as the page loaded at the first time, this is kind of annoying, I would like the flash to play once especially the flying buttons, when the visitor trying to buy something on my site, the flash should stay still, don't play the action again and again on every page, How do I do that?
you can see my example at http://leafshoppingcart.viperhosting.net/xcart/
Thanks in advance
Flash Gallery Viewer / Video Viewer
I need to find a Flash gallery viewer that can display still images but also, when the user clicks on that image, can kick off a corresponding FLV file which plays as a video, either where the image was or in its own window on the same page. It needs to be as straightforward as possible for end-users.
Ideally it should have the form of a "pack of cards" i.e users can flip from one "card" to the next, back and forth, perhaps using two controls for left and right to browse one way or the other. The stack of images and videos behind them should also be searchable alphabetically or by other criteria (e.g name).
Does anyone have any ideas as to free Flash applications which can do this and which can be easily built / embedded into web pages?
Roll Over A Small Photo And Above It (or Beside) The Large Photo Is Displayed
Hi All
What is this called: When you roll over a small photo and above it (or beside) the large version of the photo is displayed. I would like to create a photo gallery that works this way. Could someone tell me what this is called? Or better yet, where I can learn how to do this? A free tutorial perhaps?
Loading Next Photo In The Background While View The Current Photo
Is there a way that when you are viewing a photo in the Photo Slide Show using XML > http://www.kirupa.com/developer/mx20..._slideshow.htm
The next photo in the slide show downloading, and once it has it than triggers to display the photo instead of having the preload bar?
Another cool feature > I created the xml to be dynamic based on the photos within a directory, some slideshows might one have 1 image in the direcotry. Is there away to stop the slideshow if this only one image, and only play the slideshow if there is more than 1 image?
Kirupa - Create A Photo Gallery, How Could I Put A Caption For Each Photo?
Hi all, im new here i stumbled upon the photo gallery page when looking at how to create one for my website, thanks to sbeener for the code! :-). It works perfectly however how could i change/add to the code so that for a specific photo a certain caption appears which changes for each different photo?
Any ideas will be greatly appreciated.
cheers, alex350r
Photo Gallery Tutorial Turned Into Photo Carousel
i've taken the tutorial on this site on how to create an flash photo gallery that loads the content from an xml file. i'd like to alter the output of this fine tutorial and would appreciate any help in doing so.
i would like to create gallery, but instead of only showing one picture at a time, i would like to have a carousel effect where more than one picture is shown at a time, and the buttons control the turn of the carousel. i'm thinking in order to do this i'll need to have the as create a movie clip for each picture (maybe during the for loop). each mc instance would have to have a unique name, and then the buttons could play with the properties of each created mc instance.
here's the code from the tutorial on this. any help would be much appreciated....
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
description = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
description[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
}
firstImage();
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("images.xml");
/////////////////////////////////////
listen = new Object();
listen.onKeyDown = function() {
if (Key.getCode() == Key.LEFT) {
prevImage();
} else if (Key.getCode() == Key.RIGHT) {
nextImage();
}
};
Key.addListener(listen);
previous_btn.onRelease = function() {
prevImage();
};
next_btn.onRelease = function() {
nextImage();
};
/////////////////////////////////////
p = 0;
this.onEnterFrame = function() {
filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
if (picture._alpha<100) {
picture._alpha += 10;
}
}
};
function nextImage() {
if (p<(total-1)) {
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
}
}
}
function prevImage() {
if (p>0) {
p--;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
}
}
function firstImage() {
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[0], 1);
desc_txt.text = description[0];
picture_num();
}
}
function picture_num() {
current_pos = p+1;
pos_txt.text = current_pos+" / "+total;
}
Photo Gallery Help - Increase Height Of Main Photo
I have downloaded and walked through the steps in creating the Photo Gallery and have it working properly for my Horizontal shots. However, I am having trouble with displaying my Vertical shots (Height-300 x Width-200). How can I extend the flash in height to display my vertical pics properly?
Also, is there any cody that I can enter between the <Caption> </Caption> that would eliminate any caption being displayed? If it is left blank, it auto inserts undefined.
Thanks!
I Have A Photo That Is A Thumbneil And When I Click On It I Want To Expend The Photo
To expain in detial my probem i have a thumbneil photo and when i click on it I want to display above the thumbnail a larger photo below is the action script I believe will cause this to but maybe not i do not really understand the script full what it is suppose to be doing - here is what i have done in my flash application I have overlaid this bttn_area as a hit zone over the thumbneil photo so when i hit the zone over the thumbnail photo i need to disos play a bigger picture. The thumbniel is 87 by 72 or so
and the large photo 592 by 400 or so can some one help me. THANKS
Up Over Down hit
This is the cation script but how do i modify it to display the filename.jpg when i click on the thumbneil called lets say thumb.jpg so where in this action script do i refenernce the photo names *.jpg. THANKS
on (rollOver) {
this.gotoAndPlay("s1");
}
on (releaseOutside, rollOut) {
this.gotoAndPlay("s2");
}
on (release){
if(_root.f<>1){
_root.cont.cont2.fotos.gotoAndPlay("s1");
_root.f=1;
}}
How To Create A Photo Gallery Of Hundreds Of Photo?
I saw the tut for the creating of photo gallery. Is it possible to do a photo gallery like this one (http://www.kriztal.com/flash.html) with hundreds of them? Do i have to key in the Action dialog all the photos' name in it? Is there another method of doing it with the effect of the web site i gave?Pls give some guidance and advice.
Photo Gallery - Only Loading Every Other Photo [urgent]
I've made a photo gallery from the MX tutoial, modifying it a bit for my needs. When I was using local images they would load fine and every one of them would display. I altered the XML to load images using URLS and now only every other displays (I've checked the urls are correct) - though because of the sequence I can see every image.
There are 7 images and my prev/next buttons loop, so the sequence I get is...
1,3,5,7,2,4,6
Any ideas?
Kirupa Photo Gallery - How To Load 2 Instead Of 1 Photo?
Hi!
How are ya?
I found the tutorial by Kirupa --> http://www.kirupa.com/developer/mx2004/xml_flash_photogallery.htm
Followed the tutorial and everything works great.
However I'm looking for a solution to load 2 instead of 1 photo at a time.
current situation:
[photo 1] *next button* [photo 2] *next button* [photo 3] .. etc!
wanted situation:
[photo 1][photo 2] *next button* [photo 3][photo 4] *next button* etc!!
think of it as a magazine!
How to do this? I tried copy-ing stuff in the actionscript layer and start adding 2's on places that were now double...figured i was doing it right but i was wrong, its not working
I really hope someone can help me out, greatly appreciated!
Thanks a lot.
RocketGuns
Merge Photo Slideshow With Photo Gallery
I am currently working on a website to display photos and have found kirupa's tutorial using the slideshow method very helpful. But I want the added user flexibility to stop the slideshow or skip to another image in the slide-show sequence at any time. So, if you can envision entering the site, a portfolio of images starts to cycle while the user can see what image number he/she is on and skip to or pause the slideshow. I'm not very code savvy and would love some help/ideas where to find help!
Pic Viewer Help
I need help with a pic viewer I'm trying to make. The slider is suppose to follow the curser with in the "film" graphic and display a larger view in the window. I found a .fla on flashkit that showed me how but something still isn't working just right. Please take a look at my .fla.
http://www.geocities.com/rushonline2...hPicViewer.fla
Any help would be appreciated! Thanks for your time.
Viewer 360
hi. There is a 360 Viewer where you can see a picture to the left and to the right. If anybody have seen this. How can I change this picture for one of my own. I dont know if I have to create a new movie clip or whatever. Somebody knows a tutorial for learning to do this.
Thanks.
360 Viewer
i have 360 viewer that is a .mov and i'm trying to import it into flash and it looks like it won't happen.
does anyone have any suggestions as to import something like that into flash somehow?
Map Viewer
plz help me ...im trying to design map viewer can zoom and drag and click .....plz help im not good in Action Scripting......
RSS Viewer
I have downloaded the RSS Viewer example from www.adobe.com/go/learn_programmingAS3samples_flash (The RSSViewer application files can be found in the folder Samples/RSSViewer) It works very well when the file is on my computer.
But once i uploaded it to a hosting server, it is not working!
Kindly, can somebody help me?
You can see the application with that issue on www.metfar.ca/RSS.
Thanks For your Helps!
Elias
RSS Viewer
I have downloaded the RSS Viewer example from www.adobe.com/go/learn_programmingAS3samples_flash (The RSSViewer application files can be found in the folder Samples/RSSViewer) It works very well when the file is on my computer.
But once i uploaded it to a hosting server, it is not working!
Kindly, can somebody help me?
You can see the application with that issue on www.metfar.ca/RSS.
Thanks For your Helps!
Elias
Pi Viewer
I saw a link about some crop circle , and inspired me to do this in flash, a simple PI viewer.
This sample is showing 29 decimals, but it can be easily configured for more.
The engine used is Five3D + a Wedge class made by pixelwelders specially for this 3D engine
you can get the sources here
360 Viewer
has anyone worked on an application to create a 360 view of any given object? there are several applications where you can look inside a car/real estate. i was wondering if this can be done with cF.
one example can be seen at
http://www.scriptsearch.com/cgi-bin/jump.cgi?ID=5672
Load Photo Fade Last Photo
What I am trying to do is;
When you click to the next photo it keeps the one that is already there till the new one has 100% loaded then it fades the old one down and the new 100% loaded fade up. This way there is never the background color there while the photo is loading. So there is a smooth transition between the loading and the fading of the old and new image.
So I had to make two clips one holding the old photo and the other holding the new photo and toggle between the two to either fade up or fade down.
Here is the code there is two things wrong. One is I want to trigger the fadeIn only when the fadeOut is totally finished this way it looks better. Right now the both do fadeIn and fadeOut together.
Also if you check it on this link you will see that it sometimes has a delay before it fades up the new image. If you don't see it empth cache and play again.
Code: .............
Photo To Photo Morphing, Is There Such A Thing?
Hi i searched around and only found tutorials for basic shape to shape morphing which i can already do. I want to do photos to photos like on TV. like a picture of a dog to a cat. can flash do it? and if so how?
Need Photo To Photo Animation For Header
Hi - I'm new to Flash - just bought CS3 web suite, and the included help files are not helping.
I just need a simple header animation that will display through a group of photos with a fade-in/fade-out between each one.
I have sized my pix to the stage, and have them in the library.
Should they be movie clips or symbols?
How do I get them to do what i want? I have made them into an animation in PS, but the file is clumsy and large-size, or converts to lo-res gif. Figured Flash ought to do this, but i can't figure out how.
much thanks,
autwnd
Help - My Photo Xml Photo Album's On Fire...:)
Hello there,
I have recently completed the tutorial on how to make a slideshow with thumbnails. It is found here: http://www.kirupa.com/developer/mx2004/thumbnails.htm . I figured this would be a great way to show off a friends photogallery. The site is viewable here: www.prestigeinteractive.com/anneliephotography .
Well I can get it to work, however, when I try to load the swf file into another fla, the paths are messed up. Sadly, I am not good with code, so I am wondering what lines would need to be fixed in order to make this code work?
First I will tell you how I've structured the site.
- I have a swf file that basically loads a bunch of swf files into their appropriate x y coordinates.
- I have buttons that when selected open up external swf files into a movie clip called siteContentPage_mc . (this is where the site's content is loaded)
- On one page that is called portfolio, I want to have my slideshow photogallery page load. I am wondering how I would have to modify the code to make it work in this setting. I know it has to do with paths, but I am not sure which one's need changing. Currently the xml file resides in the folder with the swf files.
Here is the code at this time.
Attach Code
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
description = [];
thumbnails = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
description[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
thumbnails[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
thumbnails_fn(i);
}
firstImage();
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("images.xml");
/////////////////////////////////////
listen = new Object();
listen.onKeyDown = function() {
if (Key.getCode() == Key.LEFT) {
prevImage();
} else if (Key.getCode() == Key.RIGHT) {
nextImage();
}
};
Key.addListener(listen);
previous_btn.onRelease = function() {
prevImage();
};
next_btn.onRelease = function() {
nextImage();
};
/////////////////////////////////////
p = 0;
this.onEnterFrame = function() {
filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
if (picture._alpha<100) {
picture._alpha += 10;
}
}
};
function nextImage() {
if (p<(total-1)) {
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
}
}
}
function prevImage() {
if (p>0) {
p--;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
}
}
function firstImage() {
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[0], 1);
desc_txt.text = description[0];
picture_num();
}
}
function picture_num() {
current_pos = p+1;
pos_txt.text = current_pos+" / "+total;
}
function thumbNailScroller() {
// thumbnail code!
this.createEmptyMovieClip("tscroller", 1000);
scroll_speed = 10;
tscroller.onEnterFrame = function() {
if ((_root._ymouse>=thumbnail_mc._y) && (_root._ymouse<=thumbnail_mc._y+thumbnail_mc._height)) {
if ((_root._xmouse>=(hit_right._x-40)) && (thumbnail_mc.hitTest(hit_right))) {
thumbnail_mc._x -= scroll_speed;
} else if ((_root._xmouse<=40) && (thumbnail_mc.hitTest(hit_left))) {
thumbnail_mc._x += scroll_speed;
}
} else {
delete tscroller.onEnterFrame;
}
};
}
function thumbnails_fn(k) {
thumbnail_mc.createEmptyMovieClip("t"+k, thumbnail_mc.getNextHighestDepth());
tlistener = new Object();
tlistener.onLoadInit = function(target_mc) {
target_mc._x = hit_left._x+(eval("thumbnail_mc.t"+k)._width+5)*k;
target_mc.pictureValue = k;
target_mc.onRelease = function() {
p = this.pictureValue-1;
nextImage();
};
target_mc.onRollOver = function() {
this._alpha = 50;
thumbNailScroller();
};
target_mc.onRollOut = function() {
this._alpha = 100;
};
};
image_mcl = new MovieClipLoader();
image_mcl.addListener(tlistener);
image_mcl.loadClip(thumbnails[k], "thumbnail_mc.t"+k);
}
Photo Spacing For XML Photo Gallery
Im new to this forum and Im also fairly new to action script. I have some questions regarding the Photo Gallery using XML and Flash. I'm only using the thumbnail portion of this tutorial. The problem that I'm having is that Im using photos with different widths. When I add these photos into the gallery they either overlap eachother or have very wide gaps in between. I've attached my .fla file and my .xml file. PLEASE HELP. Im pretty sure the problem is my action script but I dont know where to go. Thanks.
Photo Scalable Photo Gallery
Hi
Im trying to make a video gallery similar to this
http://www.fiesa2006.com/ (under gallerai link)
Is there a good tutorial on this
thanks in advance
|