Gatecrasher
08-12-2006, 05:41 PM
Hey there;
New to action script here and any help would be great!
ok i have some movie clip buttons that i have made and i wan them to load a swf movie (page1) into the main page, and i would also like it, when you click on another button that it plays an outgoing swf or even a set timeline in it's self and then loads next movie
I tried the loadMovieNum and it loaded it just fine, now i want to be able to click on another button and have this page1 unload but first play its timeline or an outgoing swf out then load then next..
and also that it will not load its self when already loaded!
not sure if you get that but...
here is what i got on the button now
on (rollOver) {
//Movieclip GotoAndPlay Behavior
this.gotoAndPlay("Over");
//End Behavior
}
on (rollOut) {
//Movieclip GotoAndPlay Behavior
this.gotoAndPlay("Out");
//End Behavior
}
on (release) {
//load Movie Behavior
if(_root.container == Number(_root.container)){
loadMovieNum("page1.swf",_root.container);
} else {
_root.container.loadMovie("page1.swf");
}
//End Behavior
}
*****here is something i would like toon there as well .But for some reason will not work!
** Further below is what i have in page1.swf***
on(release) {
if (_root.currMovie == undefined){
_root.currMovie = "page1";
container.loadMovie("page1.swf");
} else if (_root.currMovie != "page1"){
if (container._currentframe >= contanier.midframe){
_root.currMovie = "page1";
container.play();
}
}
***page1.swf****
on frame 1 i have this
midframe = 40
on frame 40 i have this
stop();
on frame 80 i have this
_root.container.loadMovie (_root.currMovie+".swf");
Now why can i not have this work with the movie clip button i listed at the top?
Thanks GC
New to action script here and any help would be great!
ok i have some movie clip buttons that i have made and i wan them to load a swf movie (page1) into the main page, and i would also like it, when you click on another button that it plays an outgoing swf or even a set timeline in it's self and then loads next movie
I tried the loadMovieNum and it loaded it just fine, now i want to be able to click on another button and have this page1 unload but first play its timeline or an outgoing swf out then load then next..
and also that it will not load its self when already loaded!
not sure if you get that but...
here is what i got on the button now
on (rollOver) {
//Movieclip GotoAndPlay Behavior
this.gotoAndPlay("Over");
//End Behavior
}
on (rollOut) {
//Movieclip GotoAndPlay Behavior
this.gotoAndPlay("Out");
//End Behavior
}
on (release) {
//load Movie Behavior
if(_root.container == Number(_root.container)){
loadMovieNum("page1.swf",_root.container);
} else {
_root.container.loadMovie("page1.swf");
}
//End Behavior
}
*****here is something i would like toon there as well .But for some reason will not work!
** Further below is what i have in page1.swf***
on(release) {
if (_root.currMovie == undefined){
_root.currMovie = "page1";
container.loadMovie("page1.swf");
} else if (_root.currMovie != "page1"){
if (container._currentframe >= contanier.midframe){
_root.currMovie = "page1";
container.play();
}
}
***page1.swf****
on frame 1 i have this
midframe = 40
on frame 40 i have this
stop();
on frame 80 i have this
_root.container.loadMovie (_root.currMovie+".swf");
Now why can i not have this work with the movie clip button i listed at the top?
Thanks GC