Getting into dynamic sites with php is a bit over my head. I have a client that needs me to back engineer a site for a property he bought. I have the site swf decompiled back to FLA. The site had a photo gallery that calls an images.php file.
Im guessing its supposed to load thumbnails into a 6 panel grid and pop them into a larger preview area to the right of said grid. I guess im asking how to code a php file to work with this code.
Appreciated.
Code:
function prevAlbum()
{
if (album > 0)
{
--album;
showAlbum();
} // end if
} // End of the function
function nextAlbum()
{
if (album < albums - 1)
{
++album;
showAlbum();
} // end if
} // End of the function
function showAlbum()
{
album_txt.text = "ALBUM " + (album + 1) + " OF " + albums;
var imgs = imgs_xml.firstChild.childNodes;
var _loc3 = album * 6;
for (var _loc1 = 0; _loc1 < 6; ++_loc1)
{
var _loc2 = mc["img" + (_loc1 + 1) + "_mc"];
_loc2.init(imgs[_loc3 + _loc1]);
} // end of for
} // End of the function
function show()
{
setProperty("", _visible, true);
if (!imgs_xml.firstChild)
{
imgs_xml.load("images.php");
} // end if
} // End of the function
function hide()
{
setProperty("", _visible, false);
} // End of the function
function clickAt(node)
{
_root.content_mc.content3.loadImage(node);
} // End of the function
var album = 0;
var albums = 0;
var imgs_xml = new XML();
var mc = this;
imgs_xml.ignoreWhite = true;
imgs_xml.onLoad = function (suc)
{
if (suc)
{
albums = Math.floor((this.firstChild.childNodes.length + 5) / 6);
album = 0;
showAlbum();
clickAt(this.firstChild.firstChild);
}
else
{
trace ("Loading failure");
} // end else if
};
hide();
Im guessing its supposed to load thumbnails into a 6 panel grid and pop them into a larger preview area to the right of said grid. I guess im asking how to code a php file to work with this code.
Appreciated.