Solved

load

Posted on 2002-03-29
4
181 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

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…
Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
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 how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

726 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