.
component categoriescomponent categories
overview
features
samples
help & support
downloads
buy now

Posted by : emot1con 38 purchases
Package includes: FLA
Opens with: Flash CS3, Flash CS4
AS Version: ActionScript 3.0
Viewable with: Flash Player 9 and above
Flash knowledge required: N/A
Documentation: N/A


XML Photo Gallery



A photo gallery that is customized via an XML feed.



Tagstags
Please « login » to add tags.
« Previous 1 2 Next »

emot1con emot1con Component author
 

You must add the url parameter after the swf file. Here is the embed code:


<object classid=“clsid27cdb6e-ae6d-11cf-96b8-444553540000” codebase=“http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0” width=“560” height=“400” id=“PhotoGallery” align=“middle”> <param name=“allowScriptAccess” value=“sameDomain” /> <param name=“allowFullScreen” value=“false” /> <param name=“movie” value=“PhotoGallery.swf?feed=http://www.example.com/images.xml” /><param name=“quality” value=“high” /><param name=“bgcolor” value=”#191919” /> <embed src=“PhotoGallery.swf?feed=http://www.example.com/images.xml” quality=“high” bgcolor=”#191919” width=“560” height=“400” name=“PhotoGallery” align=“middle” allowScriptAccess=“sameDomain” allowFullScreen=“false” type=“application/x-shockwave-flash” pluginspage=“http://www.macromedia.com/go/getflashplayer” /> </object>


Replace http://www.example.com/images.xml with your file.

mylifeinfiction mylifeinfiction
 
Has bought the file

I keep getting this.


TypeError: Error #2007: Parameter url must be non-null. at flash.net::URLStream/load() at flash.net::URLLoader/load() at PhotoGallery()


I am really new to using these so please can you tell me how to use this in my projects step by step because I havnt found much please on this site.


Ernie*

mylifeinfiction mylifeinfiction
 
Has bought the file

Did anyone get this working because not even working when I test movie!?


And theres no step by step instructions???


Please help


Ernie*

elleasan elleasan
 
Has bought the file

where do i paste the embeded code copied from below to get rid of the error#2007


I also tried inputing the action from ‘tutcat’ in flash but got syntax error on last two lines (syntax error: expecting rightparen before colon & rightbrace} )


please help, thanks

sveta sveta
 
Has bought the file

Hi,
I bought this and there is no final .fla file in the zip.
Can I please have the .fla file that goes with the final PhotoGallery_Example.swf
Thanks

Original design :|

tutcat tutcat
 
Has bought the file

Thanks,


I did this and it works ok now.


//Gets the parameters from the HTML embed code


var parametersbject = stage.loaderInfo.parameters;


//Load the XML feed that is grabbed from the feed variable appended to the query string in the HTML embed code


var feedLoader:URLLoader = new URLLoader();


feedLoader.addEventListener(Event.COMPLETE, _handleFeedLoad);


feedLoader.load(new URLRequest(parameters.feed ?parameters.feed :


“file:///C:ThisIsWherethePathToMyLocalXmlFileIs.xml”);
}

emot1con emot1con Component author
 

Open up the file PhotoGallery.html and it shows you the embed code that you need to use to get this to work correctly. Here it is:


<object classid=“clsid27cdb6e-ae6d-11cf-96b8-444553540000” codebase=“http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0” width=“560” height=“400” id=“PhotoGallery” align=“middle”> <param name=“allowScriptAccess” value=“sameDomain” /> <param name=“allowFullScreen” value=“false” /> <param name=“movie” value=“PhotoGallery.swf?feed=http://www.example.com/images.xml” /><param name=“quality” value=“high” /><param name=“bgcolor” value=”#191919” /> <embed src=“PhotoGallery.swf?feed=http://www.example.com/images.xml” quality=“high” bgcolor=”#191919” width=“560” height=“400” name=“PhotoGallery” align=“middle” allowScriptAccess=“sameDomain” allowFullScreen=“false” type=“application/x-shockwave-flash” pluginspage=“http://www.macromedia.com/go/getflashplayer” /> </object>

tutcat tutcat
 
Has bought the file

I just bought this and I have the same problem. Can you be a little more specific about how to fix it.


TypeError: Error #2007: Parameter url must be non-null. at flash.net::URLStream/load() at flash.net::URLLoader/load() at PhotoGallery()

emot1con emot1con Component author
 

You must pass in a value for feed in the query string.


ex.


http://example.com/gallery.swf?feed=http://example.com/myfeed.xml

« Previous 1 2 Next »

 
featured componentsfeatured components