-
1. Re: buttons do not work! function script problem
kglad Aug 26, 2010 6:37 PM (in response to borys_k)1. slider.swf isn't correct
2. first check if your preloader is created. what do the trace() statements show:
function startPreload(url){
Cont.loadMovie(url);
var mc:MovieClip = attachMovie("preloader anim", "prldr", 500, {_x:400, _y:300});trace(mc);
onEnterFrame = preloadContainer;
}
function preloadContainer(){
ar ldd = Cont.getBytesLoaded();var ttl = Cont.getBytesTotal();
Cont.stop(); // this won't work until loading is complete
Cont._visible = false; // this won't work until loading is completeif (bytes_total > 0){
var prcnt = ldd/ttl;
preloader_mc.value = prcnt;if (prcnt == 1){
Cont.play();
Cont._visible = true;
trace("removed");
preloader_mc.removeMovieClip();
delete onEnterFrame;}
}
} -
2. Re: buttons do not work! function script problem
borys_k Aug 27, 2010 6:08 AM (in response to kglad)when i previously used a script:
on (release) {
loadMovie("slider.swf", Cont)
}
everything was fine
it seems like the problem is between photo instance and the button ;/
-
3. Re: buttons do not work! function script problem
kglad Aug 27, 2010 6:11 AM (in response to borys_k)ok
-
4. Re: buttons do not work! function script problem
borys_k Aug 27, 2010 6:25 AM (in response to borys_k)I changed the code so it is directly in the button:
on (release) {
startPreload("slider.swf");
};
and now it is fine. But when I tried the trace code it said in the output:
undefined
removed.
I have the preloader anim in the library. Is it enough?
-
5. Re: buttons do not work! function script problem
borys_k Aug 27, 2010 6:53 AM (in response to borys_k)I sincerelly do not know what it was. When I replaced the preloader anim movie clip with the one from a tutorial it works fine. Everything I did in the movie clip was identical except of the appearance. However. There is another problem. When I load slider.swf It seems it is loaded to another movieclip. Different from the Cont because the buttons in it do not work. like the path was wrong or something.


