Multiple "games" in one FLA

I want to make a game where you have multiple minigames, following up on eachother, with Motion Tweens between them.
So this basically means:
[---Motion tween---][actionscript & empty frame][---Motion tween---][actionscript & empty frame]
what is the best way to do this?
I've been trying for an hour now, and i keep getting errors from the ENTER_FRAME functions.. which i try to remove...
here is my code:
stop();
for(var teller1=0; teller1<10; teller1++) {
    var bol1_mc:bol1=new bol1();
    bol1_mc.x=Math.random()*550;
    bol1_mc.y=Math.random()*400;
    bol1_mc.snelheidx = Number(Math.random()*15+5);
    bol1_mc.snelheidy = Number(Math.random()*5+5);
    bol1_mc.geklikt = Number(0);
    bol1_mc.score = Number(-1);
    bol1_mc.addEventListener(Event.ENTER_FRAME,bewegen);
    bol1_mc.addEventListener(MouseEvent.MOUSE_DOWN,zakklik);
    bol1_mc.addEventListener(Event.ENTER_FRAME, volgende);
    addChild(bol1_mc);
for(var teller2=0; teller2<10; teller2++) {
    var bol2_mc:bol2=new bol2();
    bol2_mc.x=Math.random()*550;
    bol2_mc.y=Math.random()*400;
    bol2_mc.snelheidx = Number(Math.random()*5+5);
    bol2_mc.snelheidy = Number(Math.random()*15+5);
    bol2_mc.geklikt = Number(0);
    bol2_mc.score = Number(1);
    bol2_mc.addEventListener(Event.ENTER_FRAME,bewegen);
    bol2_mc.addEventListener(MouseEvent.MOUSE_DOWN,zakklik);
    bol2_mc.addEventListener(Event.ENTER_FRAME, volgende);
    addChild(bol2_mc);
var completed=0;
var geklikt=0;
var score:Number=0;
function zakklik (evt:MouseEvent) {
    evt.target.snelheidy=2;
    evt.target.snelheidx=0;
    evt.target.geklikt=1;
    score += evt.target.score;
function bewegen (evt:Event) {
    if (evt.target.geklikt==0) {
        evt.target.x +=  evt.target.snelheidx;
        if (evt.target.x > 549) {
            evt.target.snelheidx*=-1;
        if (evt.target.x < 1) {
            evt.target.snelheidx*=-1;
        evt.target.y += evt.target.snelheidy;
        if (evt.target.y > 399) {
            evt.target.snelheidy*=-1;
        if (evt.target.y < 1) {
            evt.target.snelheidy*=-1;
    if (evt.target.geklikt==1) {
        if (evt.target.y < 399) {
            evt.target.y += evt.target.snelheidy;
    scoretext.text = "Score: "+score;
/**    if (evt.target.hitTestObject(blok1)) {
        evt.target.snelheidx*=-1;
stage.addEventListener(KeyboardEvent.KEY_DOWN, klaar);
function klaar(event:KeyboardEvent) {
    switch(event.keyCode) {
    case 97:
    completed=1;
    stage.removeEventListener(KeyboardEvent.KEY_DOWN, klaar);
function volgende(event:Event):void{
    switch(completed) {
    case 1:
    this.removeEventListener(Event.ENTER_FRAME,bewegen);
    this.removeEventListener(MouseEvent.MOUSE_DOWN,zakklik);
    this.x = this.y = -100;
    this.removeEventListener(Event.ENTER_FRAME, volgende);
    gotoAndPlay(16);
Please let me know asap what i can change to make this work

create a new movieclip.  copy and paste the frames for the logo animation to the new movieclip.  do the same for the slideshow.  put both movieclips on frame 1 of the main timeline.

Similar Messages

  • Can I have multiple Game Center accounts with one Apple ID?

    My wife and I use the same Apple ID but want to have individual game enter accounts. Is this possible? Or does my wife need to set up her own Apple ID? Any one got any ideas?

    After 2 hours worth of searching with no answer, I decided to run a test and it worked. This is what I did to have multiple Game Center IDs on iOS7. (People responding may have over looked this detail because they assumed it was obvious, but it wasn't)
    Answer: you MUST have multiple Apple ID accounts, however, you use the main one to log in to SETTINGS > ITUNES & APP STORE.
    1. I deleted the Alternate Email Address associated with my account
    2. I created an entire new Apple ID with this email address
    3. I login in to SETTINGS > ITUNES & APP STORE with my original Apple ID (credit card on file)
    4. I login to Game Center, iCloud, etc... with my kid's NEW Apple ID
    So purchasing still goes under our shared account and game center, iCloud, etc... go under my kid's Apple ID.
    ^ ^ ^ ^ This is the simple straight forward answer I was looking for ^ ^ ^ ^

  • How do I add multiple Game Center accounts with one Apple ID and one device(I phone 4s)

    I Need help  adding more then one Game Center account to my iphone and I don't want to make a new Apple ID please help and thanks to all who answer.

    After 2 hours worth of searching with no answer, I decided to run a test and it worked. This is what I did to have multiple Game Center IDs on iOS7. (People responding may have over looked this detail because they assumed it was obvious, but it wasn't)
    Answer: you MUST have multiple Apple ID accounts, however, you use the main one to log in to SETTINGS > ITUNES & APP STORE.
    1. I deleted the Alternate Email Address associated with my account
    2. I created an entire new Apple ID with this email address
    3. I login in to SETTINGS > ITUNES & APP STORE with my original Apple ID (credit card on file)
    4. I login to Game Center, iCloud, etc... with my kid's NEW Apple ID
    So purchasing still goes under our shared account and game center, iCloud, etc... go under my kid's Apple ID.
    ^ ^ ^ ^ This is the simple straight forward answer I was looking for ^ ^ ^ ^

  • HT4314 setting up multiple game center accounts

    how do i set up more than one Game Center accounts without having to set up more itunes accounts. my kids want to play each other in Blockheads but they are all logged into the same game center account that i set up when i started using the iphone way back...

    See:
    Multiple game center accounts for...: Apple Support Communities

  • HT201304 How do you set up multiple game center profiles on a single itunes account? Example, my daughter is too young for her own account but wants games on her ipod touch with her own profile. Any help would be great.

    How does one set up more than one game center profile on a single itunes account? For example, my daughter is too young for her own itunes account but would like her own Game Center profile to except invites and play games with her friends. Any help would be greatly appreciated.

    Maybe:
    Multiple game center accounts for...: Apple Support Communities

  • OS X Maverick Multi Display Support for grouping multiple monitors into one display?

    Will the new Mac Pro be capable of grouping multiple monitors into one large display?  Similar to AMD Eyefinity for the purpose of gaming.

    The current Mac Pro, or any Mac released since 1987 that can support multiple displays can ALREADY support combining all attached displays into one Extended Desktop, onto which you can open the gaming window and game across multiple displays. It is built into the System Software.

  • How do you manage different target platforms from one FLA?

    I am in the throes of trying to publish an app for both iOS and Android mobile devices and am having trouble finding some guides related to how to most easily target these two platforms without duplicating code or FLA files.
    So far, I have one single code base that checks CONFIG::DEVICE constant to know what platform dependant classes it should or shouldn't use, but as for the FLA, I have two copies of this same FLA with different publishing settings (one set for iOS and one set for Android, and each with the appropriate difference set in the config constant). Needless to say, managing two FLAs with nearly identical content is a pain in the butt.
    How am I supposed to do it (using Flash Professional CS6)? I was considering using "Profiles" (upper left corner of Publish Settings panel) but in the past whenever I've relied on Profiles it has been unrealiable. For example, the SWF file name doesn't change, making it a pain to try and make a seperate SWF for iOS and one for Android. If I just change the target platform in the pulldown mennu for that, will it remember the old settings when I come back to a previous selection? (ie: AIR 3.6 for ios, vs AIR 3.6 for Android, etc)
    Suggestions?  I couldn't find anything by Googling.

    Sure but why doesn't Adobe, who has been pitching Flash & Adobe AIR as "author once, publish to multiple targets" fix this very simple problem?
    I experimented some more and I managed to set up one FLA with two profiles. One is configured for iOS and the other is configured for Android. It WORKS fine except the iOS settings loses all the icons except for the 3 it has in common with the Android side. Conversely, the Android side loses extra Manifest parameters I need for Admob extension integration. It's quite frustrating that this works up to 95% and then loses it. All they really need to do is tie separate app.xml files to seperate publishing profiles.
    One way around this would be if I set each profile to publish to a different swf file. AH, but guess what, that is the ONE setting that a profile does NOT save!!!!!!
    Thanks for your tip though.

  • Multiple classes in one file bad?

    Hello.
    I've been coding a load of elements recently, one of which is HUD elements for a game. I separated each element (joystick, fuel gauge etc) into a separate class but in one file, by that I mean more than one implementation in a file. Is this bad practise? Should I use one class and simply write methods that return an element, or is it ok to split them up?
    To me, in my head ,it makes more sense to split the up. I just wonder if this is bad practise?

    I did some reading and decided not to use multiple classes in one file, and instead use methods.

  • Ios7 multiple game centre ids

    I've got one apple id that I'm using on multiple devices in our household - 2 iphones, and ipad, and an ipod.  I'm trying to workout how to have separate Game Centre id's under that one apple id.  I've tried a few things that I've seen listed on here, but it seems things have changed with the ios7 update.  It's frustrating the **** out of me - any help would be greatly appreciated.

    After 2 hours worth of searching with no answer, I decided to run a test and it worked. This is what I did to have multiple Game Center IDs on iOS7. (People responding may have over looked this detail because they assumed it was obvious, but it wasn't)
    Answer: you MUST have multiple Apple ID accounts, however, you use the main one to log in to SETTINGS > ITUNES & APP STORE.
    1. I deleted the Alternate Email Address associated with my account
    2. I created an entire new Apple ID with this email address
    3. I login in to SETTINGS > ITUNES & APP STORE with my original Apple ID (credit card on file)
    4. I login to Game Center, iCloud, etc... with my kid's NEW Apple ID
    So purchasing still goes under our shared account and game center, iCloud, etc... go under my kid's Apple ID.
    ^ ^ ^ ^ This is the simple straight forward answer I was looking for ^ ^ ^ ^

  • Multiple Libraries on one computer

    I want to store more music in iTunes than my iPod has room for (original iPod). I want to use one library for music that I don't want on my iPod and the other for the music I want to sync. I also want to be able to move music back and forth between the them.
    How do I store music in multiple libraries on one computer without making separate computer user accounts or using the playlist work around?
    Any ideas would be greatly appreciated. Thanks, apple-rules

    Yes, I am referring to the auto syncing of playlists. Not all of my music is assigned to playlists and I don't want to create them - too many songs.
    As I mentioned in my original post:
    I want to store more music in iTunes than my iPod has room for (original iPod). I want to use one library for music that I don't want on my iPod and the other for the music I want to sync. I also want to be able to move music back and forth between the them.
    I want to be able to store music in iTunes and play that music in iTunes without having them downloaded to my iPod. It would be nice to have a Library in iTunes that can be separate from the iPod stuff.
    I think I found a work around (#12). Until I get a better solution I am going to create a master folder to which I will move all my music that I do not want syncing to my iPod. Then, I will do a manual sync and exclude that folder.
    Thanks everyone.

  • How to use multiple ipods on one account

    I have an Ipod classic and just bought my sons two nano's how do I use these on the same account without changing my account info?

    Take a look here:
    How to use multiple iPods with one computer
    Forum Tip: Since you're new here, you've probably not discovered the Search feature available on every Discussions page, but next time, it might save you time (and everyone else from having to answer the same question multiple times) if you search a couple of ways for a topic, both in the relevant forums, in the User Tips Library and in the Apple Knowledge Base before you post a question.
    Regards.

  • Can i use multiple ipods on one account

    How do i use multiple ipods on one account so that we can share the music that we own and has been downloaded from cd's

    Just import the CD music into the libraries used by the different devices. Yo can use Home Sharing
    Understanding Home Sharing
    Troubleshooting Home Sharing
    CD music is not locked to any account

  • How to delete Multiple Artists in one action?

    Hi,
    I want to do a big clean up on an iTunes library with over 4000 albums.
    How can I delete multiple Artists in one action?
    It looks like I can only delete 1 Artist at a time, and then this action shoots me to the top of the list.  Which is a pain then having to scroll back down through such a huge list to then delete the others one at a time... each time being shot back to the top of the list.
    For example I have the following artists;
    The Alarm 01 – 1 song
    The Alarm 02 – 1 song
    The Alarm 03 – 1 song
    The Alarm 04 – 1 song
    The Alarm 05 – 1 song
    The Alarm 06 – 1 song
    And I want to delete them all in 1 action.
    Can this be done?  How best to do it?
    Thanks in advance,
    Dave

    You can't delete "artists" - just songs (or songs grouped into albums).  When iTunes displays the library or a playlist in Artists view it is doing so using the metadata values set in the relevant songs.  If you're looking at this view:
    then your selections in the left pane - the artists list - is filtering what you see on the right.  When you select Delete via the keyboard or via a right-click operation, you are initiating an operation to delete the songs by that artist.  To delete songs by more than one artist in a single operation you'll need to select and delete in Albums view:
    or in Songs view:
    where you can also use the Column Browser to filter songs by multiple artists:

  • Can there be multiple accounts on one id?

    can there be multiple accounts on one id?

    Unfortunately you can't do the logical and convenient thing of authorizing a computer with multiple Adobe IDs that are active simultaneously.
    You can authorize accounts from different vendors; one account per vendor.
    If you have multiple operating system users set up on the computer,  you can register different OS users as different Adobe Account users.

  • Can you have multiple Game Center profiles with the same Apple ID

    I want to purchase each of my children their own iPad and keep them in my supervision by using my Apple ID.  However I'd like us all to have our own games so one child doesn't mess up the others activity, or mine!

    Creating a new iTunes account does not remove any purchases made on a different account.
    If you want to create a new account : iTunes: How to set up an Apple ID within iTunes
    Or if you will want to use it in the stores and don't want to give credit card details : Create an iTunes Store, App Store, or iBooks Store account without a credit card or other payment method
    Or if you are not currently logged into an account in game centre then you should have a 'create a new Apple id' link at the bottom of the login screen in it.

Maybe you are looking for