slideshow problems

  • plugin+
  • Newbie
  • Newbie
  • plugin+
  • Posts: 10

Post 3+ Months Ago

Here is my slideshow located on the portfolio of site I am designing (p.s click on go):

It works fine until I call the portfolio movie from the main movie (p.s click on portfolio):

I think it might have something to do with the module preloader set up on the main timeline, this basically creates empty movieclips to load the external movies into.

Any help would be appreciated, I can supply the actionscript or even the .fla files if required.

  • roarmeow
  • Professor
  • Professor
  • User avatar
  • Posts: 859
  • Loc: BKNY

Post 3+ Months Ago

try using
Code: [ Select ]

where 100 is whatever level you want to load it into... instead of
Code: [ Select ]

sometimes loadMovie acts kinda funky...
you will have to make sure that in your portfolio.swf, you make the stage the same size as the main movie and place the portfolio wherever you'd want it in there ('cos you won't be able to place it with an empty movieclip...)

let us know if that works, aight?

  • plugin+
  • Newbie
  • Newbie
  • plugin+
  • Posts: 10

Post 3+ Months Ago

I don't want to load the external movies using loadMovieNum beacause I have a preloader set up on the main timeline that wouldn't work that way, here is the code I have for the preloader:

function init() {
//Load the preloader
var obj = new Object();
obj._x = 310;
obj._y = 230;
obj._visible = 0;
this.attachMovie("preloader", "preloader", 9, obj);
//Create holder movieclips for the different sections
this.createEmptyMovieClip("navigation", 8);
this.createEmptyMovieClip("home", 2);
this.createEmptyMovieClip("portfolio", 3);
this.createEmptyMovieClip("services", 4);
this.createEmptyMovieClip("jobs", 5);
this.createEmptyMovieClip("login", 6);
this.createEmptyMovieClip("contact", 7);
//Load the movies we need to start
//Make an array containing the paths to the objects we want to preload
var preloadContent = new Array(this, navigation, home);
//Call the preload function
//Store the first section used in a variable
lastSection = home;

function switchSection(section) {
//Unload the last section used
//Load the new section into the appropriate target
this[section].loadMovie(section + ".swf");
//Update the lastSection variable with the new section
lastSection = this[section];
//Preload the new section
var preloadContent = new Array(this[section]);

function preload(preloadContent) {
//Turn on and initialize the preloader
preloader._visible = 1; = 0;
preloader.display.text = "0% Loaded";
//Set an interval to update the loading progress
intervalId = setInterval(preloadCallback, 10, preloadContent);

function preloadCallback(preloadContent) {
//Initialize variables to track the loading progress
var download = 0;
var downloaded = 0;
var percentLoaded = 0;
//Loop through each object passed to the function
for (var i in preloadContent) {
//Make sure the object exists, if not, exit the function
if (preloadContent[i].getBytesTotal() > 0) {
//Grab the total and loaded bytes
download += preloadContent[i].getBytesTotal();
downloaded += preloadContent[i].getBytesLoaded();
} else {
//Update the preloader display
percentLoaded = Math.ceil(downloaded / download * 100);
preloader.display.text = percentLoaded + "% Loaded"; = percentLoaded;
//See if we're finished
if (downloaded == download && download > 0) {
//Initialize the preloaded movies
for (var i in preloadContent) {
//Delete the interval and turn off the preloader
preloader._visible = 0;

  • plugin+
  • Newbie
  • Newbie
  • plugin+
  • Posts: 10

Post 3+ Months Ago

Anyone :(

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 7 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum

© 1998-2017. Ozzu® is a registered trademark of Unmelted, LLC.