Hello all,
I have a main SWF and am loading external SWFs to act as different “pages” using the following AS:
[INDENT]stop ();
loadMovie(“Gallery.swf”, “Placeholder_mc”);
[/INDENT]where obviously, Gallery.swf is the external SWF and Placeholder_mc is where it will be loaded.
When I test the movie in Flash the Gallery “page” (the gallery page is the http://www.kirupa.com/developer/mx2004/thumbnails.htm tutorial) loads ok and the thumbnails fade in and out on roll over and the button rollovers work fine but it does not scroll (when I play the Gallery.swf alone it works fine) and when I upload to the server to test it there, the external SWFs do not even load. :puzzle:
Each of the External SWFs have a preloader with the following AS:
[INDENT]stop();
loadingBar._xscale = 1;
var loadingCall:Number = setInterval(preloadSite, 50);
function preloadSite():Void
{
var siteLoaded:Number = _root.getBytesLoaded();
var siteTotal:Number = _root.getBytesTotal();
var percentage:Number = Math.round(siteLoaded/siteTotal100);
loadingBar._xscale = percentage;
percentClip.percentDisplay.text = percentage+"%";
percentClip._x = loadingBar._x+loadingBar._width;
bytesDisplay.text = “loaded “+siteLoaded+” of “+siteTotal+” bytes”;
if (siteLoaded>=siteTotal) {
clearInterval(loadingCall);
gotoAndStop(10);
}
}*
[/INDENT]The content for the thumbnail gallery starts on frame 10 of the Gallery.swf
Where am I going wrong?
Please forgive me if this a rather trivial problem, but I am trying to learn…
Thank you for any help.