flash help :(
- Started
- Last post
- 9 Responses
- hiten
trying to load external swf i have it working on a button but not on a movieclip...might be hard to understand but i have uploaded the zip file of the fla and swf whats wrong with the script on the movie clip that you click that wont let it open the swf where the button can.
www.sincerelyhiten.com/public/fi…...
please help...
- nburlington0
i can't open your flash file.
are you using:
loadMovieNum("urlToYourSwf", 2);
- nburlington0
write your script here. it'll be easier.
- jpea0
or use http://pastebin.coconut.se/
- hiten0
Enter response:this is the code i have
//all this code is inside the complex button so you can stick as many as you want
//on the stage and all will work.. they all will have this code in it..stop(); // stop the movie clip from playing (stop button from growing, we want that when the mouse rolls over only
this.onEnterFrame = function(){
if(rewind == true){ //if rewind switch is set to true play backwards
prevFrame(); // play backwards
}
}this.onRollOver = function(){
rewind = false; //set variable (or switch) that decides wether ot not to play backwards...
play(); // play this movie clip.. (grow the button(tween));
}this.onRollOut = function(){
rewind = true; //set or rewind switch to true so it will play backwards...
}this.onRelease = function(){
if (_root.currMovie == undefined) {
_root.currMovie = "movie";
container.loadMovie("movie.swf...
} else if (_root.currMovie != "movie") {
if (container._currentframe >= container.midframe) {
_root.currMovie = "movie";
container.play();
}
}
}the first part is to play and rewind the animation then the bottom is the swf loader.
- nburlington0
loadMovi e("movie.swf");
that's your problem. you have to use loadMovieNum. make it like this:
loadMovieNum("movie.swf", 1);
1 is the level. you can go up to level 20. 0 is the level of your main movie.
- jpea0
no, the problem is that you're not targeting the container clip. you're targeting container and it should be _parent.container since you're not on the same timeline as the container.
- nburlington0
listen to jpea. i thought you were trying to load into a new level. that's how i roll and i was trying to live vicariously through your project.
- hiten0
THX...its works man i love you 2 guys. :) that was fast which is great cause i just started the project and the client wants it tommorrow...without you 2 id be deadmeat....chopped liver.... :)