desperate hlp.....
- Started
- Last post
- 25 Responses
- jaybee
Does anyone have the code or better still a .fla that unloads a movie from the main contents and loads another movie in the same, but it has to unload with movement like this:
thanks guys i hope someone can help me here.
j.
- jaybee0
please, pretty please.....
i'm counting on ya!!!!
- jaybee0
C'mon guys, there must be someone out there with a heart.
Anyone?
a heart?
please?
- vespa0
i'm not sure what you're asking.
if you want to know how to load an external swf into an mc it's
loadMovie(URL, target);
if you want to know how to animate each bit of that site I reckon you need to be more specific or no one will be arsed to help.
- jaybee0
well now i've sucked you into this i'll explain better:
first of all did you check the url?
right, when you enter the site the main contents load, ok?
then if you click another button the main contents that is already loaded, unloads with MOVEMENT (everything disappears gradually), then the contents of the butto nyou pressed loads and so on...how do you get the loaded content to unload gradually?
thats the question.
is it cler enough?
- unfittoprint0
err, this?
myButton.onPress = function(){
holderMC.unLoadMovie();
holderMC.loadMovie("movie.swf");
}if you want eye candy movie between each action you'll have to wati for the transition movie to end...
myButton.onPress = function(){
loadTransition.play():
wait = setInterVal( function(){
if(loadTransition._currentframe == loadTransition.totalframes){
loadTransition.stop();
mainMovie.loadMovie("movie1.swf...
clearInterval(wait);
}
}, 30)
}oh, I don't think anyone it's going to give you an FLA of such a thing.... c'mon!
- jaybee0
is holderMC the main clip where the movie are loaded into?
and where do i put the second bunch of code you wrote?
- woodyBatts0
dude, it's a simple load an unload with animation in the beginning of the loaded clip, they ain't connecting to any server. Look closely and you'll see. word word
- unfittoprint0
the #1 is a simple unload/load thing.
Use the #2 if you want the 'transition' option...
- jaybee0
sorry to say but your wrong, 'coz if you look closely, it also unloads with movement thats the tricky bit.
i know how to animate a movie when it starts, but not when buttons are in the way unloading a loading different swfs
- vespa0
i'm sure there are a million ways to do it but being a flash simpleton i'd have each content movie stopped at a certain point on the timeline, with an alpha fade after the stop point. Then when you release a button on the nav you'd just have to tell each movie that you are unloading, to play, and unload at the end of it's timeline.
- JamesEngage0
It's as difficuly as you want to make it. You're obviously on the look out for someone to just give you the code.
Just think logically and all will become clear.
- jaybee0
that's exactly what i want to do, how do i tell the buttons to do this:
unload movie1 from a certain frame;
then load movie2 and so on for as many buttons there is.
- jaybee0
Engage your wrong.
all i need is someone that CAN help me out with the CODE that tells the movies (unloaded and loaded ) to do what i want them to do.
but no, someone (in this case you) alway has to jump into conclusions.
I asked for help, if you don't wanna help, go somewhere else man.
- jaybee0
VESPA you got it, how do i tell the button to go and play the last frames of the movie and then unload?
that's it.
thanks in advance
- JamesEngage0
I would label your frame "blendin" , "blendout" etc... just so it's easier for you to keep track.
- rasko40
nextMovie="this.swf";
loadMovieNum(nextMovie,1);
//services buttons actions_root.homebutton.onRelease=funct...
if(nextMovie!="this.swf"){
nextMovie="this.swf";
_level1.gotoAndPlay("outro");
}
}
- JamesEngage0
I seem to have the inability to read actionscript in these windows!
- jaybee0
yeah, i agree.
could you explain your code rasko4...please of course.
- jarmstrong0
Here's what you do:
1) onRelease play fade or whatever
2) on the last frame of the fade out call a function that unloads your current movie and loads the new one.
something similar can be seen here: http://jonathanarmstrong.com
- rasko40
put that code on the first frame of your base .fla
_root.homebutton is the name of the button that is going to trigger the action.
in the file to be loaded put this in frame 1:
this.onEnterFrame = function() {
this.gotoAndPlay("intro");
this.onEnterFrame = null;
}
stop();you have an intro animation labelled intro, a stop frame then an outro animation labelled outro
put this on the last frame:loadMovieNum(_level0.nextMovie,1...
you can then add all the buttons you need to the code in your first frame, just name the buttons. no code goes on the buttons themselves.
not the best way probably but it works.