# Level in other .fla

**URL:** <https://forum.kirupa.com/t/level-in-other-fla/12549>\
**Category:** flash\
**Created:** [February 1, 2003, 4:49pm UTC](https://forum.kirupa.com/t/level-in-other-fla/12549 "2003-02-01T16:49:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![luster](https://avatars.discourse-cdn.com/v4/letter/l/ec9cab/32.png) [@luster](https://forum.kirupa.com/u/luster)\
**Post date:** [February 1, 2003, 4:49pm UTC](https://forum.kirupa.com/t/level-in-other-fla/12549/1 "2003-02-01T16:49:39Z")

</div>

Hi i made a simple Space Invaders game. It works like this : enemies coming from the right if you kill one ( press Ctrl to fire laser) you get 700 points ( using \_root)  
If you are hit by an ememy you die and start again.  
I want this to happen: if you get 70000 points, you go to another swf, wich is basically the same but with other enemies and stuff.  
(Like: Level1: get 70000 points, then you go to Level 2)  
How should i do this?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 1, 2003, 5:23pm UTC](https://forum.kirupa.com/t/level-in-other-fla/12549/2 "2003-02-01T17:23:54Z")

</div>

Well… Take the current score the player has…

currentScore to say…

Then compare that score with the current level’s score to move on…

levelScore = 70000;

if(currentScore \>= levelScore)  
{  
// change level  
}

You would then just follow the normal steps in creating an outside .swf to make another level… You might wnat to make this a function…

function changeLevel()  
{  
// change level score max…  
levelScore += 70000;  
// load up the new level .swf  
// can’t remember exact code…  
}

I hope this helps you out…
