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


Similar Posts:


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

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 :: 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

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 :: 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 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 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 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

ActionScript 2.0 :: XML For Gallery From Tutorial 'photo Gallery Using XML And Flash'?

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

IDE :: XML Photo Gallery On Mac?

Nov 18, 2004

I can't seem to get the XML photo gallery to work in any mac browsers.

is there a fix for this?

View 3 Replies

Photo Gallery Not Loading?

Nov 8, 2009

I have got a free swf flash photo gallery of the internet. using dreamweaver cs4 to install the swf file,the file plays on my local browser but only some of the master images display on the live internet gallery. the navigation icons do notcan not figure out where the problem lies, is it in the flash code or the structure of the files in the directory. I have no idea

View 1 Replies

Add A Premade Photo Gallery To Fla With CS5

Jun 27, 2010

The problem is that im trying to add a premade photo gallery to my fla with CS5 i have three files swf/xml/photo folder.which one should i add to my fla all three files are in my root folder.

View 1 Replies

Looking For A Third Party Photo Gallery?

Jul 28, 2010

Does anyone know of a easy to install photo gallery. I'm assuming it would have to be flash. I want to implement it on my own site. I am looking for the one that is thumbnails,and when you click a thumbnail, it expands and you can navigate through the other photos.

View 3 Replies

IDE :: Photo Gallery Using XML And Flash

Jan 21, 2009

I've just completed the "photo gallery using XML and Flash" tutorial, but i've managed to get stuck uploading my own images. The tutorial shows you how to place images from the internet into the gallery, but doesnt tell you source images from your own hard drive.

This is the XML code >

<pic>
<image>http://www.kirupa.com/developer/mx2004/pg/kresge.jpg</image>
<caption>Kresge</caption>

[Code]....

** I basically want to put the gallery on a CD so i can give it to someone, and i wanted to source images from the same folder as the actual gallery itself.

View 1 Replies

IDE :: Dynamic Xml Photo Gallery?

Feb 12, 2009

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

View 4 Replies

IDE :: Flash Xml Photo Gallery

Feb 22, 2009

I'm building a portfolio website, and I want one of the pages to be a gallery featuring my work.I want to have small image thumbnails on the side, when I click on a thumbnail an image loads through xml (externally) then I want that image to have a prev. and next buttons these buttons load images that are also external.basically each thumbnail loads a diff. image and that image has next and prev. buttons loading other images.I want the images to have a preloader and I also want the images to fade in and out.I've been searching the web for a tutorial or example to help me out, but I didn't have much success.

View 1 Replies

IDE :: Loading Photo Gallery With XML?

Jun 9, 2009

I'm trying to create a photo gallery using XML. I know there is a lot of tutorial on this, but I cannot make my particular code to work. Actually it seem to work, but only for the first image in the XML file, the others seem to be discarded.what I am doing wrong.Here is my XML code:

Code:
<links>
<images>

[code].....

View 2 Replies

IDE :: Photo Gallery Using XML And Flash?

Jun 21, 2009

I am using Flash Professional 8. I made a Flash photo gallery driven by XML using the tutorial ash_photogallery.htm". When I publish it by pressing ctrl+enter or publish on web by pressing F12, everything is fine. I can see photographs, descriptions, and fully working buttons. But when I put my .swf clip to the website I am developing, nothing comes on it.I am still testing these on my PC and yet to upload them on web.

View 2 Replies

IDE :: Scroller For Photo Gallery?

Jul 18, 2009

tutorial of photo gallery, the problem is that the scroller for the thumbnails doesnt work, i mean it doesnt appear, theres nothing on the screen, i dont know what the problem is, the pictures above appear correctly but the problem is the scroller, i have tried a lot of thing but i cant get it to work, maybe the problem is that i used flash cs3, and the tutorial was made for flash mx 2004

View 1 Replies

IDE :: Getting A Photo Gallery Using Xml And Flash?

Aug 26, 2009

I used this (Photo Gallery Using XML and Flash) that is in the tutorial, it's all write but how can i do the same but putting the images in a folder.Because now they have to be in the same location than the .fla, .swf, .xml.

View 1 Replies

IDE :: Create A Photo Gallery?

Jan 29, 2010

I'm currently building a site for my photography. (broke college student) but I followed this tutorial and loved it but I'm wondering how I could number each photo? So when you click on the next button it shows you that your on photo 2 out of 65? [URL]

View 1 Replies

Making A Rollover Photo Gallery?

Mar 12, 2009

make a photo gallery that, when a photo is rolled over, enlarges that certain image and text appears. did a search in the forum and found something similar i have never used flash before, and i would love a good tutorial.

View 2 Replies

Build A Photo Gallery In Flash?

Sep 30, 2009

I am currently building a website entirely in Flash, and I am fearing that it is becoming too large because I am having it all load on startup. Is there a way for me to have the file load to say, frame 10, and stop loading, then when a button is clicked to bring you to a new frame that has not been loaded, load the necessary frames? (I would also like to have a preloader for each time a button is clicked that takes you to frames that haven't been loaded yet.)

A specific example would be a photo gallery I want to incorporate into the site. When the user presses a button to view the photo gallery, I want a frame with a gallery of thumbnails to load that has not been previously loaded, and then when each thumbnail is clicked, the frame with the large picture in it should be loaded.

View 2 Replies

Auto-Resize Photo Gallery?

Feb 20, 2010

I want to create a photo gallery where the photos don't have to be the same size. I need the photo border or container to smoothly resize to accomadate each new image.

View 10 Replies







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