ActionScript 3.0 :: Error Loading Gallery?
Nov 24, 2010
I'm using a gallery template from flashmo. I can see the demo perfectly but when using the flash file I get the following error:
Error loading gallery data!Error opening URL 'file:////Volumes/MannyOSX/Users/mannyv/Desktop/FM%2D2248%2DPhoto%2Dstudio%2Dfull%2Dscreen%2DXML%2 Dflash%2Dtemplate/flash/data/data/cgal.xml?1290620356308'
and also
Scene=Scene 1, layer=Action Layer, frame=9, Line 14There is no property with the name 'displayState'.
This is the script used:
ACTIONS FOR FRAME 1
function resizeBack()
{
back._width = Stage.width;[code]......
The file was created with Flash CS3 and I'm using CS5.
View 2 Replies
Similar Posts:
Nov 15, 2010
How would you defer loading of other graphics on the page until after the images in a Flash gallery's images.xml file are finished loading?Is there any way to detect for this, or would I only be able to check if the flash swf object is finished loading? I'm pretty sure the swf object would be loaded/ready as with document.getElementById('flashobject').onload = function(){}; before the corresponding images have loaded though, instead of after.
View 1 Replies
Feb 15, 2010
I followed a tutorial online to create a photo gallery using an XML file. It works fine when tested in flash via the test movie window and with the bandwidth pro-filer turned on. So, I uploaded the page to my website to test it, and when I load the page in any browser I receive this error message in an adobe flash player pop up box: Error #2044: Unhandled IOErrorEvent:. text=Error #2036: Load Never Completed. Here's the Actionscript I am using: var xmlRequest:URLRequest = new
URLRequest("http://www.davidframpton.co.uk/Gallery/galleryData.xml"); var xmlLoader:URLLoader = new URLLoader (xmlRequest); var imgData:XML; var imageLoader:Loader; var rawImage:String; var rawH:String; var rawW:String; var imgNum:Number = 0; var
[code].....
View 3 Replies
Jun 26, 2009
I am new to AS3 but very comfortable with AS2. I am trying to build a page with multiple image galleries pulling images from a few xml documents and I'm running into a snag. I am using a custom scrollbar based on the gotoAndLearn tutorila and loading the full size images into a movie clip on the stage. Everything is perfect until I move to the second frame and attempt to load the next xml and new set of images.[url]...
View 1 Replies
Feb 23, 2008
i used the xml gallery with thumb tutorial i just changed around the var nameseverything thing runs in my xml until it gets down to tracing from the onLoadStart and the rest of the onLoads, which loads the thumbnails. i just can't figure out what it is. this is the functionyou can see where the one trace works and the others don't **also wanted to know if anyone knows how to create a preloader for all the thumbnails from this code, so your not stuck with a blank screen waiting for the thumbs to download **
ActionScript Code:
function thumbs_fn(num){
//create empty movieclips inside thumbnail_mc to hold the images in
[code].....
View 1 Replies
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
Oct 17, 2009
Can this be done via UILoader Component?
View 3 Replies
Nov 21, 2009
I have a gallery of photos made and i have this little problem.When i run the files from my pc it works just fine but when i upload it to my server it doesn't run . It stacks at preloaders (wherever they are).What could it be going wrong? The gallery uses an xml file for loading externally the files.
View 2 Replies
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
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
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
Mar 29, 2011
I'm trying to make a photo gallery with thumbnails to select the image. The thumbnails load up fine from the XML file but the other images give the error
'Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found'
I have checked and re-checked the URL's in the XML file and they seem fine to me.[code]...
View 1 Replies
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
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
Sep 16, 2009
while trying to exprot a xml supported flash (AC3) gallery I get the following error: Description: xmlLoader.load(new URLRequest("data/images.xml"));
View 6 Replies
Jun 30, 2009
I have a page containing multiple image galleries and thumbnail scrollers pulling in from external XMLs. The first scene containing gallery 1 loads the thumb and full size image perfectly.We I navigate to the second scene containing a new instance of my scrollpanel and container movie clip for my full size image I this error: Error #1009: Cannot access a property or method of a null object reference.at index_fla::MainTimeline/index_fla::frame6()I am wondering if I have to remove an event listener from the previous frame. Everything on the stage has an instance name and I am calling all new variable son the second frame.
View 1 Replies
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
Sep 17, 2009
I have started putting together a flash based website to present my works. I am dynamically loading thumbnails and the larger companions using an XML file. Everything seems to work fine on my comp but when I upload it to my host sever the larger images do not want to load and on occasion a page of thumbnails doesnt want to load. My address is [URL]. Also the code I am using only places one image atop another, so when I click on a thumbnail it will place the larger image on top of the last it does not take the previous one away. which can be a problem if one image is smaller than the last. or if I wanted to load movie clips.
Here is the AS of one page.
//XML Trails stuff
//var to hold Tween;
var fadeTweenPhotoP1:Tween
// Creating image txtfield
var imageTextPhotoP1:TextField = new TextField();
// Instance of loader class
var imageLoaderPhotoP1:Loader;
[Code] ....
View 4 Replies
Jul 28, 2010
I have a website created all in Flash AS3 and I have a XML Photo Gallery created in a separate file and I am trying to load the gallery into a specific frame on my site.
[Code]...
View 8 Replies
Jun 18, 2009
I modified some code for loading xml images into a gallery that I found somewhere, but I have no idea how to go about preloading the images. Everything works fine, I would just like to know the best way of going about doing this. Here's the code I got:
[Code]...
View 3 Replies
Apr 29, 2010
I'm trying to load a xml gallery into a website template i've downloaded.i've tried importing it using the code below, into the main timeline.
code
var my_loader360:Loader = new Loader();
my_loader360.load(new URLRequest("gallery.swf"));
[code].....
View 0 Replies
Sep 16, 2010
i have a xml gallery with a mouse hover scroll bar which loads up photos. I want to have this movie clip load into a container in my menu movie clip but whenever i try nothing shows up. I can load other movie clips fine. I am guessing its something to do with the xml.
View 9 Replies
Aug 13, 2005
The XML gallery I have has a pop-up window that appears after selecting a thumbnail. What I'm trying to accomplish is for the first picture in the gallery to load into the pop-up window, which is now always shown on the stage. I was able to make it so that the pop-up is always visible, but one thing I couldn't figure out is how to make it so that the first picture in the gallery loads into the pop-up box WITHOUT the user selecting the thumbnail first?I think it has to do with this code:
Code:
portfolio_xml.onLoad = function(success) {
if (success) {
var gallery = this.firstChild.childNodes[index];
galleryInfo.text = this.firstChild.childNodes[index].attributes.title;
[code]....
View 3 Replies
Jul 18, 2006
Ok so i have looked thru the forums for the past two days trying to solve my issue and i didnt find anything that works. I have the xml thumbnail gallery from the site working here.Its the base code except i change some things so that it would work if i loaded with the mxloader component into another movie. When i try and do so the XML file doesnt load. you can see this here. Im not sure if theres something else that i need to do to make this work or what, but i cant seem to figure it out. all the paths are absolute paths (http://ect...). and even stranger is that it worked like 3 or 4 times when i first started then stopped working. so i dont know if its
View 1 Replies
Apr 8, 2007
I am having a little trouble with some code:
Code:
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
[Code]....
The problem I think is on the bolded part. If I replace ref["thumb"+i] for say thumb0, it loads the first thumbnail into the first movieclip. I have on the stage ten movieclips with instance names of thumb0. thumb1, thumb2, etc. What I would like to do is to load a thumbnail in each movieclip without having to write the bolded line ten times.
View 3 Replies
Jun 20, 2007
the problem occurs when I put the xml gallery online, otherwise the gallery loads and works perfectly when its local. When online the thumbnails load no problem but the main image will not, I dont know what is happening?? Here is my code:
[Code]...
View 3 Replies
Sep 27, 2007
Im trying to create a photo gallery site with lots of menus/images using thumbnails and rollovers.I havn't placed anything onto the stage as it is all called from Action Script.My thumbnails are loaded as external jpegs from an array. So these are all on different depths. These thumbnails then load external swf's with buttons and images (also called from an array) and cover the whole stage. This is part of the script:
Code:
this["mythumb"+i].createEmptyMovieClip("visual",this["mythumb"+i].getNextDepth());
this["mythumb"+i].visual.loadMovie(thumbnail[i],i);
[code].....
View 2 Replies
Aug 6, 2009
This is really strange, and I'm not sure what the problem could be. I essentially made an XML/Flash image gallery where the images are loaded dynamically. I followed this tutorial:[URL]When I tried the site with the "www" in IE6, it warns me that the some Active X control is attempting to be installed, and blocks the whole flash block (even though the other flash along the sides show up fine in IE6)Edit: By the way, just to be clear, the FLASH is loading in both cases, but when the "www" is present, the images do not load from the XML file, even though the flash movie itself is visible and loaded.
View 1 Replies
Jul 26, 2010
I have a website created all in Flash AS3 and I have a XML Photo Gallery created in a separate file and I am trying to load the gallery into a specific frame on my site.
EDIT:Here is the code I am using:
[AS]var Xpos:Number = 152;
var Ypos:Number = 350;
var swf:MovieClip;
var loader:Loader = new Loader();
[code]....
When I have the XML file in the same folder as the gallery (which it has to be) Flash gives me an error and the gallery doesn't show up. When I move the XML file though the gallery itself loads into the correct spot but the pictures don't because the XML file isnt there to call them.This is the error it gives me when the XML is in the same file as the gallery:
"Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: file:///ANTHONY/Portfolio/Ggallery.xml
at Ggallery_fla::MainTimeline/frame1()"
View 3 Replies
Feb 29, 2004
what i would like to do is load the photo gallery template into an .swf that is to be loaded into my main .swf. sound confusing enough? yea, i know. so i know that i need to change the _root in the action script but i don't know what to chage it to. in my main swf here is the action script i am using for the button...
[AS]
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
[code]......
View 1 Replies