ActionScript 3.0 :: Error 1010 On Dynamic XML Photo Gallery

Jul 24, 2009

I'm building a dynamic XML photo gallery/case study application that allows users to filter relevant results and then view the corresponding text/photos. So far I've used list components to scan my XML document and return the results for the filters, and then add thumbnails to a panel. When you click on the thumbnail, it brings up the first of a series of images, which I load into a Loader instance and add it to the stage using addChild();

The image sequence is then controlled by a series of navigational buttons, of which currently I only have "Next" and "Previous". The buttons work by incrementing/deincrementing a variable that is the index of the image currently being displayed, so when you hit next, it adds/subtracts 1 from that variable, and then uses that number for the index of my <image> tag in the XML doc. All works fine until you reach the end of the images.

I have a conditional that tests if the currentImg variable is equal to the length(); property of the XML tag, and if it is, it resets the currentImg value to 0. And vice versa for the previous button. But when the file is published, and I reach the last image and hit the next button, I get this error:
TypeError: Error #1010: A term is undefined and has no properties.
at MethodInfo-346()

The strange thing is, that if I hit next again, it does what it is supposed to do by going to the first image. Then if I cycle through the images once again the same thing happens. And the same scenario and error occurs when I hit the previous button on the first image. If I need to somehow remove the images from memory, or if they are still in memory and I need to access them a different way the second time around?

View 3 Replies


Similar Posts:


ActionScript 3.0 :: Error #1010 On Dynamic XML Gallery

Jul 23, 2009

I'm building a dynamic XML photo gallery/case study application that allows users to filter relevant results and then view the corresponding text/photos. So far i've used list components to scan my XML document and return the results for the filters, and then add thumbnails to a panel. When you click on the thumbnail, it brings up the first of a series of images, which i load into a Loader instance and add it to the stage using addChild();

The image sequence is then controlled by a series of navigational buttons, of which currently i only have "Next" and "Previous". The buttons work by incrementing/deincrementing a variable that is the index of the image currently being displayed, so when you hit next, it adds/subtracts 1 from that variable, and then uses that number for the index of my <image> tag in the XML doc. All works fine until you reach the end of the images. I have a conditional that tests if the currentImg variable is equal to the length(); property of the XML tag, and if it is, it resets the currentImg value to 0. And vice versa for the previous button. But when the file is published, and i reach the last image and hit the next button, i get this error:TypeError: Error #1010: A term is undefined and has no properties. at MethodInfo-346()

The strange thing is, that if i hit next again, it does what it is supposed to do by going to the first image. Then if i cycle through the images once again the same thing happens. And the same scenario and error occurs when i hit the previous button on the first image. if i need to somehow remove the images from memory, or if they are still in memory and i need to access them a different way the second time around? this is very frustrating.

View 3 Replies

ActionScript 3.0 :: Make A Flash Photo Gallery That Displays All The Image Files In A Certain Directory With The Usual Photo Gallery Functionality

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

IDE :: Dynamic Xml Photo Gallery?

Feb 12, 2009

Anybody knows create dynamic photo gallery same as http:[url].....

View 4 Replies

ActionScript 2.0 :: NaN% Error - Use Of Photo Gallery For .swf?

May 20, 2008

i am trying to get the photo gallery made by flashmo available here: [URL]to display .swf instead of external .jpg files as it was originally intended for. This system is .xml based where it obtains details of the images to display from the external .xml file.

I have the system working for the photo gallery but i need a page where a show animations that are already compiled into self contained .swf files. The site I am building if purely flash and consists of just one main.swf file.

To get the system to work I simply changed the filename in the .xml file to direct the system to a .swf animation file as oppose to a .jpg file and the system worked perfectly. oh so i thought...........

Testing the site within flash under the "test movie" (ctrl + enter) option proved the system to be fully functional with no issues at all. However when exported as a flash .swf movie file as a standalone file when ran locally through directly clicking on the .swf the animations page would simply display "NaN%" where the percentage loaded should be displayed and clicking on the thumbnails to load different .swf movie files didn't do anything, the .swf animation files will never load, nothing is ever shown apart from the empty loading bar and "NaN%". Loading the .swf locally through the browser by means of a simple html page doesn't make a difference either.

To make it a little more strange, when the site was uploaded to an online server and visited remotely through the browser it would do the same but clicking on the thumbnails loaded the corresponding .swf animation file fine and the "NaN%" error after the initial display is never seen again until the browser is closed and re-opened to visit the site again. The system is set to initially load the first .swf animation clip.

The code for the loading is:

pic._alpha = 0;
pic.loadMovie(filepath + photo_filename[p]);
pic_desc.txt = photo_description[p];

[code]....

Only minor changes to the code have been made by me and I am no expert at this at all so it could be something really simple. I feel the fact that it works under testing, partially when online and not at all when run directly and indirectly (browser) locally is strange and there must be an explanation for this that one of you experts must know.

View 2 Replies

ActionScript 2.0 :: Dynamic Photo Gallery?

Jun 18, 2007

been playing around with the bitmap data class for a while, and i got to a point when i realized i was never gonna be saticfied with it... so im releasing the site as it is today

View 2 Replies

Flash :: Error In Creating XML Photo Gallery With CS4

Apr 28, 2011

I've been creating an XML photo gallery with Flash CS4 and AS 3.0 following a tutorial. I followed the instructions step-by-step but at the end I got the following error message instead:
 
Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found. Could anyone in the community assist me as to how to solve the problem? The script has no errors and last time I checked all the applicable files (the .xml file, the .jpg files, the .swf and the .fla file) are in my Documents folder on the Mac.

View 1 Replies

ActionScript 2.0 :: Photo Gallery Error Opening Url

Nov 15, 2009

I download a free photo gallery from [url]... and works fine. But when I put this gallery in a frame in my flash site justs appears but doesn't work. It's says Error opening URL 'file:undefined'

Should I change all the paths in the actionscript?

View 5 Replies

ActionScript 3.0 :: Dynamic AddEventListener - Error #1010: A Term Is Undefined And Has No Properties"

Aug 17, 2010

I trying to migrate below eval to AS3 by using addEventListener as shown below on AS3. But it show some "TypeError: Error #1010: A term is undefined and has no properties"

[Code].....

View 9 Replies

ActionScript 3.0 :: Make A Dynamic Photo Gallery?

Nov 9, 2008

I want to make a dynamic photo gallery. The layout will be a scrollable bar at the bottom with thumbnails and then when you click one, a big version of the picture in the main window. Pretty simple layout. But! I want it to be dynamic in the sense that follows;

I have a txt file that contains the number of photos in the folder (at the moment, there are 5). Flash reads that number, and inputs that into a for statement, which then gets the filename of each of the 5 files (p0, p1, p2, etc) and slaps a .jpg on the end. Its like this so that i can add files to the folder, change the number in the text file, and be done (no site maintenance required).

Now comes the problem. I want to be able to, within the for statement, load those files AND be able to resize them. What i'm doing now is putting an instance of the gallery itself on the stage (just an empty movie clip), and in the for statement I am adding a "thumb" movie clip into that gallery movie clip, and loading the image into that. Visually:

Gallery_mc
--->thumb_mc
------->loaded image file.

The problem is that I can't resize them. I've tried using the loadercontentinfo stuff, but when i do that, it messes up my for loop somehow. I could always make all of my thumbnail files that size anyways, but I am also hoping to maybe implement my creation here in the future so that I can give it to others who aren't tech savvy and having them be able to use it without any difficulty. Here is the code:

Code:
//Create the URLLOader instance
var myLoader:URLLoader = new URLLoader()
//the data will come as URL-encoded variables

[code]....

I took out the loaderinfo stuff because it didnt work. As it stands, this version actually does sucessfully load the images, but doesnt do anything to resize them.

View 15 Replies

ActionScript 2.0 :: Dynamic Auto-run Photo Gallery?

Jun 28, 2004

I am trying to make a photo gallery that is dynamic instead of throwing the pictures in a movie and tweening effect inbetween them. I know, why take the easy route.

What basically I want to happen is that when the movie loads the first image is displayed for 4 seconds then fades out as the next image is fading in. I have 11 pictures that are in a folder called "weddings". The pictures are all named "weddings0.jpg", "weddings1.jpg", "weddings2.jpg",...... "weddings10.jpg". Here is the code for this part, I have tested and it works:

Code:
totalImages = 11;
k=0;
var aWedding = new Array;

[Code].....

View 3 Replies

ActionScript 3.0 :: Create A Dynamic Photo Gallery

Oct 28, 2010

I'm looking for a lightweight, simple way to create a dynamic photo gallery, with specification. Basically, I have 55 head shots arranged like a yearbook page. I want someone to be able to click on an image, and have a window pop-up that shows the photo, plus additional text information. (I'm pretty sure I can create 55 frames and put an image on each one, but that is bulky, I do not want to go clicking around to different frames on the timeline,) I was hoping there was an alpha/tweening option, or an xml option.

View 1 Replies

ActionScript 2.0 :: Dynamic Auto Run Photo Gallery

Jun 28, 2004

I am trying to make a photo gallery that is dynamic instead of throwing the pictures in a movie and tweening effect in between them. I know, why take the easy route. I have something really wierd going on, maybe you can help. What basically I want to happen is that when the movie loads the first image is displayed for 4 seconds then fades out as the next image is fading in. I have 11 pictures that are in a folder called "weddings". The pictures are all named "weddings0.jpg", "weddings1.jpg", "weddings2.jpg",...... "weddings10.jpg".

Here is the code for this part, I have tested and it works:
totalImages = 11;
k=0;
var aWedding = new Array;
//The for statement creates new movieClips with the images loaded and stored within
//stores the movieclips in an array.
[Code] .....

At this point I have loaded all the images into movieclips and stored their references in an array. I have also gotten them all alpha of 0 except the first image, weddings0, which I want to display first. My function to make the images scroll through doesn't work. If I trace what the alpha is as it scrolls though I get wierd numbers like 93.3233432 or 32.323223 which doesn't make sense to me because I am increasing or decreasing the alpha by += 2 or -= 2. I don't know where the functions come. Anyway, here is the code, or what I have I should say, btw

I have the code linked to a button right now to test if it works, I would like it to run automatically on load:
Code:
butt.onRelease = function(){
trace(k + " k");
tempInt = setInterval(fadeInOut, 10, aWedding[k], aWedding[k+1]);
} function fadeInOut(mcPic1, mcPic2){
[Code] .....

View 3 Replies

ActionScript 2.0 :: Dynamic Photo Gallery To Display PNGs

Feb 24, 2012

I want to create a flash gallery that simply reads all of the files within a folder (they are all PNGs) and show them on the screen, then move to the next photo after a preset time. This would give us a dynamic was of displaying our content, if we could 'drop' the resource in a 'Images' folder and flash would then read that folder.

View 1 Replies

ActionScript 2.0 :: Dynamic Masking For XML Driven Photo Gallery?

May 24, 2009

I am creating a photo gallery using xml and a thumbnail bar at the side. I want each picture to fit into a square without distorting the image, so I will need to use masks. Currently I am using the loadClip metohd for loading pictures then I am attempting to use onLoadInit to dynamically set the masks. It is hard to show the problem on here so I have here's the link..[URL]...

It seems that you can't place "i" values in the onLoadInit part which I tired previously, atm I can only get one to work as you will be able to see.

View 2 Replies

ActionScript 2.0 :: Built A Dynamic Photo Gallery Which Works From An XML Database?

Jan 20, 2005

The easiest thing is if you look at my swf: [URL]..Ive built a dynamic photo gallery which works from an XML database. The database contains the various gallery titles, the photo image paths and their captions.

The first page of the gallery is a thumbnail index page (lots of small preview images of the photos). The thumbnails load up one by one, they are only 1kb each but there are hundreds so takes some time. If a user clicks on one, the thumbnail movieclip is hidden with (._visible) and the photo page is shown, also with (._visible). The problem is, the thumbnails are still being loaded in the background, so the chosen photo is not downloaded+shown until all the thumbnails have loaded.

What kind of code do I need to place on the thumbnail's "onRelease" function to cancel the parent "make thumbnails" function ive made?

View 2 Replies

ActionScript 3.0 :: Load The Pictures From Xml Photo Gallery - Error #1034: Type Coercion Failed

Feb 2, 2009

im fairly new to actionscript 3 and i am trying to make a xml photo gallery for my father. It's nowhere near done but I am trying to load the pictures from xml and i keep getting this error

[Code]...

View 2 Replies

ActionScript 3.0 :: Photo Gallery - Error #1009: Cannot Access A Property Or Method Of A Null Object Reference?

May 14, 2009

i am trying to create a photo gallery i did a few months back but have come into a problem...
TypeError: Error #1009: Cannot access a property or method of a null object reference.    at Surrey_fla::masterclip_1/onClick()

i have a main movie clip called masterMC, with the thumbnails inside and another movie clip called photosMC which has all the different photos.here is my code
 
thmb1_btn.addEventListener(MouseEvent.MOUSE_OVER,onRoll);thmb2_btn.addEventListener(MouseEvent.MOUSE_OVER,onRoll);thmb3_btn.addEventListener(MouseEvent.MOUSE_OVER,onRoll);thmb4_btn.addEventListener(MouseEvent.MOUSE_OVER,onRoll);thmb5_btn.addEventListener(MouseEvent.MOUSE_OVER,onRoll);thmb6_btn.addEventListener(MouseEvent.MOUSE_OVER,onRoll);[code]....

View 3 Replies

ActionScript 2.0 :: XML / Flash Photo Gallery Tutorial - Load The Swf File Into Another Movie The Dynamic Text Will Not Display

Jan 6, 2007

I'm having some problems with the XML/FLASH Photo Gallery Tutorial ([URL]). When I load the swf file into another movie the dynamic text will not display. Any thoughts to why this is happening.

View 1 Replies

ActionScript 2.0 :: Photo Gallery - Photo's Start Automatically, Rather Than, On A Button Click?

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

ActionScript 2.0 :: Kirupa Photo Gallery - Load 2 Instead Of 1 Photo?

Aug 26, 2006

I found the tutorial by Kirupa

[Code]...

View 2 Replies

ActionScript 2.0 :: Preload First Photo Of XML Photo Gallery?

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

IDE :: Photo Gallery - User To Be Able To Click On A Photo For It To Appear In The Box Above

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

Actionscript 3 :: Error With 2D Array - Error #1010: Term Is Undefined And Has No Properties

Feb 15, 2012

The first 2 loops set the textfields just fine. But the next 2 give me the error Error #1010: A term is undefined and has no properties. Something is NULL, but what? Can't figure out :(

[Code]...

View 3 Replies

ActionScript 3.0 :: TypeError: Error #1010: A Term Is Undefined Error Is Thrown Only If Application Is Online

Jan 15, 2011

I have strange error which i tried to fix all day but with no result. The application is working fine in debug modus, but after I uploaded it to my server it throws following Error:

[Code]...

View 4 Replies

ActionScript 2.0 :: Photo Galley - Make A Gallery Based On The Tutorial Gallery (thumbs)

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

ActionScript 3.0 :: Error Is On The Trace Line TypeError: Error #1010?

Jan 31, 2009

the error Iam getting

TypeError: Error #1010: A term is undefined and has no properties.
at Untitled_fla::MainTimeline/Untitled_fla::frame1()

For some reason the error is on the trace line.

var haha:Array = new Array();
haha.push(new Array("a","a1","a2"));
haha.push(new Array("b","b1","b2"));
haha.push(new Array("c","c1","c2"));

[code]....

View 2 Replies

ActionScript 2.0 :: Photo Gallery XML - Html File Shows The Extra Image In The Gallery But The Swf Doesn't

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

ActionScript 3.0 :: TypeError: Error #1010:swf File Run Error?

Jun 24, 2009

when swf file run then dis errors cm--TypeError: Error #1010: A term is undefined and has no propertiesat tm.template::PagesEngine/::createGalleryEngine()  at Function/http://adobe.com/AS3/2006/builtin::apply() at MethodInfo-71( at

[code]....

View 1 Replies

ActionScript 2.0 :: XML Photo Gallery Change To Video Gallery?

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







Copyrights 2005-15 www.BigResource.com, All rights reserved