Solved

movieclip at the end of flash game

Posted on 2006-07-12
10
215 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:Dushan911
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:
Dushan911 earned 250 total points
ID: 17097631
You must detect it, inside the game.
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

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 250 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:Dushan911
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

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…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

758 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

18 Experts available now in Live!

Get 1:1 Help Now