Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

movieclip at the end of flash game

Posted on 2006-07-12
10
Medium Priority
?
238 Views
Last Modified: 2010-04-03
hi, i have some flash games, and a flash file that i want to show when the game end,
is it possible? how?
0
Comment
Question by:svsvsv
10 Comments
 
LVL 17

Expert Comment

by:Dushan De Silva
ID: 17092369
When the falsh game is over occured , you can call external flash file(swf) using loadMovie() command, with replacing old movie (level0) or overlapping it(level1level2,..etc).

BR Dushan
0
 

Author Comment

by:svsvsv
ID: 17094302
how do i detect the end of the game?
0
 
LVL 17

Accepted Solution

by:
Dushan De Silva earned 1000 total points
ID: 17097631
You must detect it, inside the game.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:svsvsv
ID: 17097656
the problem is that i have 1500 diferent games, i won't start rewriting them all, i want to make a swf that will load up the game, and when it ends i want to load another swf...
0
 
LVL 7

Assisted Solution

by:muxxter
muxxter earned 1000 total points
ID: 17111101
I'm affraid Dushan911 is right, if you want it to be loaded automatically, you have to get the games themselves to recognize when they're done. Surely the games have an end condition.

I'm not sure how you load the games, but if you had a "main" flash page that loads the games within it, you could have that main page define a _global function that can be called from within the game itself. It's actually not a lot of code:

In the game, add this one line to the finished condition:

_global.game_finished(<add parameters here as needed>);

Then, in the main flash page, add the following:

_global.game_finished = function(<optional parameters>) {
     // do stuff here
}
...

The "main" page doesn't even have to be that complicated, you could even just have it as a wrapper. So, it would do nothing but define the global function and load the desired game.
Also, if you already have something like that set up, all you'd have to do is add the function definition, and you'd be done.

MuXx
0
 
LVL 17

Expert Comment

by:Dushan De Silva
ID: 17112974
Yes, I don't think without editing the inside of game code you can't implement it. And even if you use shared objects also you must edit the games.

And as earlier suggested, after loading movies using loadMoive command with levels you can access that loaded movie's variables. But it depends  on the implementation structure of the game.

BR Dushan
0
 
LVL 12

Expert Comment

by:SamuelRostol
ID: 17477996
Hehe, if you have created 1500 games yourself, it's nonsence that you can't figure this out yourself!
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

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,…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
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.

927 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