via PayPal / credit card
Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.
Hi, I tried contactin the author about this by email as I see he no longer appears to reply to questions on this forum. I've had no luck there so I'll try my question here. My only fear is that I've seen the same result on every thread this is asked: The people who get it to work run off and those who don't get it to work are left with an unanswered problem.
I have MSS contained inside a main container swf file. The main timeline actionscript for that file is below. It runs MSS fine and attempts to load a new gallery when I call the function 'portfolioswitcher', but the tweens get messed up and it flickers. I cannot clear them no matter how much re-ordering of the code I've tried. The debug shows __OnEnterFrameBeacon being wiped momentarily then reinstated, so the StopAllTweens and CleanUp functions are running ok but having no different effect to the same actionscript without them. Thanks for any help (and I'd appreciate any thoughts on this).
var galleryname = "monoslideshow";
function loadingFinished(target:MovieClip):Void {
var monoslideshow:Object = new Monoslideshow(target, galleryname + ".xml");
monoslideshow.start(Stage.width, Stage.height, false);
}
var listener:Object = new Object();
var movieClipLoader:MovieClipLoader = new MovieClipLoader();
listener.onLoadInit = loadingFinished;
movieClipLoader.addListener(listener);
this.createEmptyMovieClip("holder", this.getNextHighestDepth());
movieClipLoader.loadClip("images/monoslideshow.swf", gallerycontainer);
Stage.align = "TL";
Stage.scaleMode = "noScale";
gallerycontainer._x = 0;
gallerycontainer._y= 0;
bg_white93_mc._visible = false;
bg_white93_mc._x = 0;
bg_white93_mc_mc._y = 0;
text_contact_mc._visible = false;
portfolio_container_mc._visible = false;
greybarHeight = new Object ();
greybarHeight = greybar._height / greybar._width;
greybarWidth = new Object ();
greybarWidth = greybar._width / greybar._height;
greybar._width = Stage.width;
greybar._height = greybarHeight * greybar._width;
greybar._y = Stage.height / 5 * 4;
bg_white93_mc._width = Stage.width;
bg_white93_mc._height = Stage.height;
portfolio_container_mcHeight = new Object ();
portfolio_container_mcHeight = portfolio_container_mc._height / portfolio_container_mc._width;
portfolio_container_mcWidth = new Object ();
portfolio_container_mcWidth = portfolio_container_mc._width / portfolio_container_mc._height;
portfolio_container_mc._height = Stage.height;
portfolio_container_mc._width = portfolio_container_mcWidth * portfolio_container_mc._height;
sizeListener = new Object();
sizeListener.onResize = function() {
_root.greybarOffset = Stage.height / 5 * 4;
greybar._y = _root.greybarOffset;
}
sizeListener2 = new Object();
sizeListener2.onResize = function() {
greybarHeight = new Object ();
greybarHeight = greybar._height / greybar._width;
greybarWidth = new Object ();
greybarWidth = greybar._width / greybar._height;
greybar._width = Stage.width;
greybar._height = greybarHeight * greybar._width;
bg_white93_mc._width = Stage.width;
bg_white93_mc._height = Stage.height;
portfolio_container_mcHeight = new Object ();
portfolio_container_mcHeight = portfolio_container_mc._height / portfolio_container_mc._width;
portfolio_container_mcWidth = new Object ();
portfolio_container_mcWidth = portfolio_container_mc._width / portfolio_container_mc._height;
portfolio_container_mc._height = Stage.height;
portfolio_container_mc._width = portfolio_container_mcWidth * portfolio_container_mc._height;
}
Stage.addListener(sizeListener);
Stage.addListener(sizeListener2);
function rightclicklink(){
getURL("http://www.com", _blank);}
function rightclick(){}
MENU = new ContextMenu();
MENU.hideBuiltInItems();
Functioned = new ContextMenuItem("Design credit", rightclicklink);
MENU.customItems.push(Functioned);
_root.menu = MENU;
// switches MSS to a different gallery
function portfolioSwitch() {
_root.gallerycontainer.removeMovieClip();
_root.holder.removeMovieClip();
movieClipLoader.removeListener(listener);
delete listener;
galleryname = "portfolio2009";
var listener:Object = new Object();
var movieClipLoader:MovieClipLoader = new MovieClipLoader();
cleanUp();
listener.onLoadInit = loadingFinished;
movieClipLoader.addListener(listener);
this.createEmptyMovieClip("holder", this.getNextHighestDepth());
movieClipLoader.loadClip("images/monoslideshow.swf", gallerycontainer);
}
function cleanUp():Void {
stopAllTweens();
for (var garbage:String in this) {
if (typeof(this[garbage]) == "movieclip") {
this[garbage].removeMovieClip();
}
}
}
function stopAllTweens():Void {
delete __OnEnterFrameBeacon.onEnterFrame;
__OnEnterFrameBeacon.removeMovieClip();
}
1 to 1 of 1