ljefferson27
Programmer
Hi,
i am trying to edit a flash image slide show... the images i am using are a different size than the flash file allows. i am able to increase the size of the flash file but not the size of the images i am using i have pasted the only code i can find making a reference to size would anyone be kind enough to explain the code and explain how change the code so that the images i am using will display in the right size?
The file is currently set to for the following dimensions:
770x550
the size of the files i am using are 840x749
here is the code i think that controls the size of the images (please forgive me i am new to flash)
any help that anyone could give me would be greatly appreciated.
thanks.
lee.jefferson@gmail.com
onEnterFrame = function() {
filesize = mc_bg_container.mc_bg_container_pic.getBytesTotal();
loaded = mc_bg_container.mc_bg_container_pic.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.gotoAndStop (Math.round ( 100*loaded/filesize) );
} else if (loaded == filesize) {
preloader._visible = false;
}
};
function loadThumb(mc, num)
{
mc.thumbPic.loadMovie(xmlData[num].thmbPic);
}
attachMovie ("thmb", "thmb_L1", 0);
attachMovie ("mask", "mask", 1);
moveX = 70 + 20;
thmb_L1._x = 34;
thmb_L1._y = 412;
mask._x = 24;
mask._y = 400;
mask._width = moveX * 8 + 8 * 2 - 17;
mask._height = 110 * 2;
scrollRgh = true;
quantity = 10;
u = i = 0;
noVar = undefined;
var Mask = mc_bg_container.mc_bg_container_pic;
_root.timer_stop = false;
while (u < quantity)
{
loadThumb(_mc, _mc.num);
var _mc = thmb_L1.thmb_L2.duplicateMovieClip("thmb_L2" + u, u);
_mc._x = _mc.objectX = moveX * u;
_mc.num = i;
loadThumb(_mc, _mc.num);
if (u == 8 + 1)
{
_mc._x = _mc.objectX = -moveX;
_mc.num = i = picNumber - 1;
loadThumb(_mc, _mc.num);
} // end if
if (loaded == filesize) {
Mask.loadMovie(xmlData[0].thmbLink);
mc_bg_container.gotoAndStop(10);
}
thumbTitles = xmlData[0].title;
if (xmlData[0].title == undefined)
{
thumbTitles= "";
}
if (i == picNumber - 1)
{
i = 0;
}
else
{
++i;
} // end else if
_mc.onRollOver = function ()
{
noVar = this.num;
timerDis.gotoAndStop(1);
};
_mc.onRollOut = function ()
{
noVar = undefined;
if (_root.timer_stop){
timerDis.gotoAndStop(1);
}
else{
timerDis.gotoAndStop(2);
}
};
_mc.onEnterFrame = function ()
{
var z = this;
z._x = z._x + 3.000000E-001 * (z.objectX - z._x);
if (z.num == noVar)
{
z.nextFrame();
return;
} // end if
z.prevFrame();
};
_mc.onRelease = function ()
{
thumbTitles = xmlData[this.num].title;
if (xmlData[this.num].title == undefined)
{
thumbTitles= "";
}
if (loaded == filesize) {
Mask.loadMovie(xmlData[this.num].thmbLink);
mc_bg_container.gotoAndPlay(2);
}
};
++u;
} // end while
function btn_Rgh()
{
for (var xmlNode = 0; xmlNode < quantity; ++xmlNode)
{
var z = thmb_L1["thmb_L2" + xmlNode];
if (z.objectX == -moveX)
{
z._x = z.objectX = moveX * 8;
z.num = rghNumber;
loadThumb(z, rghNumber);
if (rghNumber == picNumber - 1)
{
rghNumber = 0;
}
else
{
++rghNumber;
} // end else if
if (lftNumber == picNumber - 1)
{
lftNumber = 0;
}
else
{
++lftNumber;
} // end else if
continue;
} // end if
z.objectX = z.objectX - moveX;
} // end of for
}
function btn_Lft()
{
for (var xmlNode = 0; xmlNode < quantity; ++xmlNode)
{
var z = thmb_L1["thmb_L2" + xmlNode];
if (z.objectX == moveX * 8)
{
z._x = z.objectX = -moveX;
z.num = lftNumber;
loadThumb(z, lftNumber);
if (lftNumber == 0)
{
lftNumber = picNumber - 1;
}
else
{
--lftNumber;
} // end else if
if (rghNumber == 0)
{
rghNumber = picNumber - 1;
}
else
{
--rghNumber;
} // end else if
continue;
} // end if
z.objectX = z.objectX + moveX;
} // end of for
}
nextBtn.onRelease = function ()
{
btn_Rgh();
scrollRgh = true;
};
prevBtn.onRelease = function ()
{
btn_Lft();
scrollRgh = false;
};
rgn = thmb_L1["thmb_L2" + 8].num;
if (rgn == picNumber - 1)
{
rghNumber = 0;
}
else
{
rghNumber = thmb_L1["thmb_L2" + 8].num + 1;
} // end else if
lftNumber = picNumber - 2;
thmb_L1.thmb_L2._visible = false;
thmb_L1.setMask(mask);
i am trying to edit a flash image slide show... the images i am using are a different size than the flash file allows. i am able to increase the size of the flash file but not the size of the images i am using i have pasted the only code i can find making a reference to size would anyone be kind enough to explain the code and explain how change the code so that the images i am using will display in the right size?
The file is currently set to for the following dimensions:
770x550
the size of the files i am using are 840x749
here is the code i think that controls the size of the images (please forgive me i am new to flash)
any help that anyone could give me would be greatly appreciated.
thanks.
lee.jefferson@gmail.com
onEnterFrame = function() {
filesize = mc_bg_container.mc_bg_container_pic.getBytesTotal();
loaded = mc_bg_container.mc_bg_container_pic.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.gotoAndStop (Math.round ( 100*loaded/filesize) );
} else if (loaded == filesize) {
preloader._visible = false;
}
};
function loadThumb(mc, num)
{
mc.thumbPic.loadMovie(xmlData[num].thmbPic);
}
attachMovie ("thmb", "thmb_L1", 0);
attachMovie ("mask", "mask", 1);
moveX = 70 + 20;
thmb_L1._x = 34;
thmb_L1._y = 412;
mask._x = 24;
mask._y = 400;
mask._width = moveX * 8 + 8 * 2 - 17;
mask._height = 110 * 2;
scrollRgh = true;
quantity = 10;
u = i = 0;
noVar = undefined;
var Mask = mc_bg_container.mc_bg_container_pic;
_root.timer_stop = false;
while (u < quantity)
{
loadThumb(_mc, _mc.num);
var _mc = thmb_L1.thmb_L2.duplicateMovieClip("thmb_L2" + u, u);
_mc._x = _mc.objectX = moveX * u;
_mc.num = i;
loadThumb(_mc, _mc.num);
if (u == 8 + 1)
{
_mc._x = _mc.objectX = -moveX;
_mc.num = i = picNumber - 1;
loadThumb(_mc, _mc.num);
} // end if
if (loaded == filesize) {
Mask.loadMovie(xmlData[0].thmbLink);
mc_bg_container.gotoAndStop(10);
}
thumbTitles = xmlData[0].title;
if (xmlData[0].title == undefined)
{
thumbTitles= "";
}
if (i == picNumber - 1)
{
i = 0;
}
else
{
++i;
} // end else if
_mc.onRollOver = function ()
{
noVar = this.num;
timerDis.gotoAndStop(1);
};
_mc.onRollOut = function ()
{
noVar = undefined;
if (_root.timer_stop){
timerDis.gotoAndStop(1);
}
else{
timerDis.gotoAndStop(2);
}
};
_mc.onEnterFrame = function ()
{
var z = this;
z._x = z._x + 3.000000E-001 * (z.objectX - z._x);
if (z.num == noVar)
{
z.nextFrame();
return;
} // end if
z.prevFrame();
};
_mc.onRelease = function ()
{
thumbTitles = xmlData[this.num].title;
if (xmlData[this.num].title == undefined)
{
thumbTitles= "";
}
if (loaded == filesize) {
Mask.loadMovie(xmlData[this.num].thmbLink);
mc_bg_container.gotoAndPlay(2);
}
};
++u;
} // end while
function btn_Rgh()
{
for (var xmlNode = 0; xmlNode < quantity; ++xmlNode)
{
var z = thmb_L1["thmb_L2" + xmlNode];
if (z.objectX == -moveX)
{
z._x = z.objectX = moveX * 8;
z.num = rghNumber;
loadThumb(z, rghNumber);
if (rghNumber == picNumber - 1)
{
rghNumber = 0;
}
else
{
++rghNumber;
} // end else if
if (lftNumber == picNumber - 1)
{
lftNumber = 0;
}
else
{
++lftNumber;
} // end else if
continue;
} // end if
z.objectX = z.objectX - moveX;
} // end of for
}
function btn_Lft()
{
for (var xmlNode = 0; xmlNode < quantity; ++xmlNode)
{
var z = thmb_L1["thmb_L2" + xmlNode];
if (z.objectX == moveX * 8)
{
z._x = z.objectX = -moveX;
z.num = lftNumber;
loadThumb(z, lftNumber);
if (lftNumber == 0)
{
lftNumber = picNumber - 1;
}
else
{
--lftNumber;
} // end else if
if (rghNumber == 0)
{
rghNumber = picNumber - 1;
}
else
{
--rghNumber;
} // end else if
continue;
} // end if
z.objectX = z.objectX + moveX;
} // end of for
}
nextBtn.onRelease = function ()
{
btn_Rgh();
scrollRgh = true;
};
prevBtn.onRelease = function ()
{
btn_Lft();
scrollRgh = false;
};
rgn = thmb_L1["thmb_L2" + 8].num;
if (rgn == picNumber - 1)
{
rghNumber = 0;
}
else
{
rghNumber = thmb_L1["thmb_L2" + 8].num + 1;
} // end else if
lftNumber = picNumber - 2;
thmb_L1.thmb_L2._visible = false;
thmb_L1.setMask(mask);