Solved

load

Posted on 2002-03-29
4
182 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 3

Expert Comment

by:jeffbeasley
ID: 6905031
//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
ID: 6906789
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
ID: 6910218
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
ID: 6915592
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

688 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