Hi,
This problem is really stumping me, and I’ve been searching for an answer with no luck.
I have a button that loads two swfs into two empty movie clips on the stage, at _root. In one of those swfs is a button to unload both movie clips. This works fine the first time, but clicking the first button to reload the swfs, they don’t show up. Here’s the code:
function showPhotoAlbum():Void {
// load swfs
mc_PhotoAlbum.loadMovie("AlbumPageFlip.swf");
mc_Photos.loadMovie("Photos.swf");
// initialise objects
// position & hide photo album container
mc_PhotoAlbum._alpha = 0;
mc_PhotoAlbum._x = 0;
mc_PhotoAlbum._y = 0;
mc_PhotoAlbum._width = 849;
mc_PhotoAlbum._height = 507;
// position & hide photo container
mc_Photos._alpha = 0;
mc_Photos._x = 142;
mc_Photos._y = 53;
// fade in clip
var twnAlbum:Tween = new Tween(mc_PhotoAlbum, "_alpha", mx.transitions.easing.None.easeNone, 0, 100, .6, true);
}
function hidePhotoAlbum():Void {
mc_Photos._alpha = 0;
// fade out clip
var twnAlbumOut:Tween = new Tween(mc_PhotoAlbum, "_alpha", mx.transitions.easing.None.easeNone, 100, 0, .6, true);
mc_Photos.unloadMovie();
mc_PhotoAlbum.unloadMovie();
}
I’ve tried tracing the visibility and alpha values of both mc_PhotoAlbum and mc_Photos, and both report true and 100, but nothing is showing on the stage.
I’m not very advanced at actionscript. I’m in Flash 8 with AS2.
Any help at all is very appreciated!
Thank you!
(edited to remove a bunch of traces for simplicity)