This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Flash Site Design > August 2006 > Could someone proofread my AS?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Could someone proofread my AS?
Enemy13

2006-08-21, 6:22 pm

the page setup is as follows: there is an external file in my parent site. in
this external file are two buttons, a right and a left button. i have a mask
acting as a kind of wiping effect for the whole external file. i am trying to
acheive the functionality so that when you click the left button the mask
plays, THEN the new external file loads in its place. with the current code,
the mask plays but the new external file doesnt load. any help would be
appreciated. thanks a lot.
- sean

maskMain_mc is the mask. discog.swf is the new file to be loaded.mcLoader is
my MovieClipLoader in my _root timeline, myLoader is the loader's instance
name. spadeL_mc is the button.
the code:


var frameNo:Number = 61;
spadeL_mc.onRelease = function () {
maskMain_mc.gotoAndPlay("left");
MovieClip.prototype.checkForFrame = function(frameNo) {
mcProg = function(maskMain_mc) {
if (maskMain_mc._currentframe >= frameNo) {
clearInterval(maskMain_mc.checkID);
maskMain_mc.onFinish = function () {
_root.mcLoader.loadClip("discog.swf",_root.myLoader);}
}
this.checkID = setInterval(mcProg, 10, this); }
}

Xak_tre

2006-08-22, 6:24 pm

try this:

var frameNo:Number = 61;
spadeL_mc.onRelease = function ()
{
maskMain_mc.gotoAndPlay ("left");
MovieClip.prototype.checkForFrame = function (frameNo)
{
mcProg = function (maskMain_mc)
{
if (maskMain_mc._currentframe >= frameNo)
{
clearInterval (maskMain_mc.checkID);
maskMain_mc.onFinish = function ()
{
_root.mcLoader.loadClip ("discog.swf", _root.myLoader);
};
}
this.checkID = setInterval (mcProg, 10, this);
};
};
};

Enemy13

2006-08-22, 10:20 pm

cool, thanks a lot
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews