Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help With Editing Flash Slide Show

Status
Not open for further replies.

ljefferson27

Programmer
Apr 10, 2007
6
US
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);
 
well the only place i can find code is in the actions part of the program but i the only code in the clip you suggest is stop(); am i looking in the wrong place?

 
well in the movie clip you suggested there is a box that appears to be size of the original images but it wont let me edit or even select it to change the size... i changed the size of the flash file its self... does that make sense?
 
ok i have adjusted the size of mc_bg_container i found the layers that were locked.... so i unlocked them and changed the size to fit the images... however once i export the file to .swf and preview the images are still in the same format before i started and i have lost some of the formatting on the slidebar... are there any corordinates that i need to change anywhere?

i really appreciate you helping me out here... im so close!

regards,

lee
 
also if anyone would be willing to take a look at the file for me and make a few changes... its a very simple flash file... please let me know... lee.jefferson@gmail.com i will provide a download link
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top