Felipe Bastos
June 13th, 2003, 09:17 PM
I try and try but could not do it:
I`m trying to attach a mc into position x=0, y=0 and load an image into it.
Until here the code works! But I cant make it duplicate 3 times. What I really need is to duplicate it in 3 different places.
First duplication place: x=310; y=0;
Second duplication place: x=0; y=310;
third duplication place: x=310; y=310;
Here is the code:
// comando para fullscreen
fscommand("fullscreen", "true");
fscommand("allowscale", "false");
stop();
// funcao que atacha mc_loadimg e carrega img
function attachmc () {
loadhere.attachMovie("loadimg", "mc_loadimg", 1);
// load img into attached mc_loading
loadMovie("001.jpg", _root.mc_loading);
// trace
trace("img loaded");
trace("posX =" + _root.loadhere._x);
trace("posY =" + _root.loadhere._y);
}
// funcao que duplica mc_loading
function duplicaMovie () {
for (var i=0;i<4;i++) {
_root.mc_loading.duplicateMovieClip("newmc"+i, i);
// trace
trace("funcao duplicaMovie OK")
}
}
hope I was clear
:)
I`m trying to attach a mc into position x=0, y=0 and load an image into it.
Until here the code works! But I cant make it duplicate 3 times. What I really need is to duplicate it in 3 different places.
First duplication place: x=310; y=0;
Second duplication place: x=0; y=310;
third duplication place: x=310; y=310;
Here is the code:
// comando para fullscreen
fscommand("fullscreen", "true");
fscommand("allowscale", "false");
stop();
// funcao que atacha mc_loadimg e carrega img
function attachmc () {
loadhere.attachMovie("loadimg", "mc_loadimg", 1);
// load img into attached mc_loading
loadMovie("001.jpg", _root.mc_loading);
// trace
trace("img loaded");
trace("posX =" + _root.loadhere._x);
trace("posY =" + _root.loadhere._y);
}
// funcao que duplica mc_loading
function duplicaMovie () {
for (var i=0;i<4;i++) {
_root.mc_loading.duplicateMovieClip("newmc"+i, i);
// trace
trace("funcao duplicaMovie OK")
}
}
hope I was clear
:)