Solved

load

Posted on 2002-03-29
4
177 Views
Last Modified: 2010-08-05
dear experts
Plz help me
iwill explain my problem in steps
i did little game caled color
1-frist level is to color a rat
2-second level to color a car
3-third level to color dog
each of this level in seperate movie
i want to make a movie colect all this movie level by level
i to load movie just have button press on it load first movie rat and when rat movie finsh back to the button i clicked on first and when i press again on it load car movie and so for dog movie .

i did it like that but not complete
i made a new movie and called it  coloecter just have a button i have make new symbol movie clip called it holder just empty load the movie on it  and make  movie clip caled it lod i write in it this script
_root.lods();

and in the frist frame i write this script
function lods(0){
_root.holder.loadmoive("rat.swf",2);
}
i want to make as i explaint above
thx


0
Comment
Question by:yaco
  • 3
4 Comments
 
LVL 3

Expert Comment

by:jeffbeasley
Comment Utility
//Frame 1
IncrementMovie=0;


//Button Action
on(release){
IncrementMovie++;
if(IncrementMovie==1){
loadMovie("rat.swf",2);
}else if(IncrementMovie==2){
loadMovie("car.swf",2);
}else if(IncrementMovie==3){
loadMovie("dog.swf",2);
IncrementMovie=0;
}
}

Is this what you are trying to do...?

Jeff
0
 

Author Comment

by:yaco
Comment Utility
thx it work but still have a little problem
when i press the button and the movie load it's sacle too large and the movie did'nt complete it's work
the file which have the button it's contain
just one fram  have the var increment and the button the second problem is the button shows in every movie i load i want to hide this button just show when the movie finish

so plz i need how to make the scale fit to the screen
and the button load after the movie finish
thx
0
 
LVL 3

Expert Comment

by:jeffbeasley
Comment Utility
add this
//Frame 2
stop();
//Button Action
on(release){
IncrementMovie++;
if(IncrementMovie==1){
loadMovie("rat.swf",2);
}else if(IncrementMovie==2){
loadMovie("car.swf",2);
}else if(IncrementMovie==3){
loadMovie("dog.swf",2);
IncrementMovie=0;
}
gotoAndStop(2);
}

//at the end of each loaded movie add
_level0._root.gotoAndStop(1);

Hope this helps
Jeff


0
 
LVL 3

Accepted Solution

by:
jeffbeasley earned 100 total points
Comment Utility
Did this answer your question yaco?

Just asking since I took the time to answer it for you....
I would appreciate a grade.....

Thanks,
Jeff
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now