How to encapsulate two games in a new flash document

Hi mates!
Now that I have my first two games I want to encapsulate them in a new document!
Here is my idea:
Create a new document with 4 keyframes in the main timeline.
The first one will accommodate the title and two "play" buttons (each allowing to play a game).
The second one will contain the first game.
The third one will contain the second game.
The last keyframe will contain the scores.
Each game contains a movieclip that is being controlled by a main class that I wrote using as3.0. For example imagine that one of the games is a simple rectangle that the user moves with the arrow keys. The motion code is inside the main document class. The second game is something similar.
So, how do I "import" the games (that were developed totally independent of each other ) to the keyframes of my new flash document?
Could you help me?
Thanks in advance

Importing the swf's will destroy any actionscript they have.  You'll need to copy the timelines of the games into movieclips in your other file.
You might instead consider just loading the games dynamically, making the main file more of a loading/summary platform that you use to communicate with the loaded games.  This approach would likely allow you to easily add even more games as long as you have a similar communication scheme established.

Similar Messages

  • How do I transfer games onto a new device without losing game progress?

    Okay so here's the thing. I have an iPod Touch (4th generation) and I am going to be getting an iPad mini. How do I transfer games onto my new iPad without losing my game progress? I have a lot of high scores on some of the games and i am also on high levels in some of the games and i do not want to restart them!! To be clear let's say I  have Cut the rope and i am on level 13 so how do i transfer the game from my ipod to my ipad without losing the levels and having to restart the game????????????
    HELP HELP HELP HELP HELP HELP HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    PLEASE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!
    I DON'T WANT TO RESTART EVERYTHING!!!!!!!!!!!!!!!

    Hi sjryogi ,
    Regarding the game progress, i tried and it do work .
    You can try it
    Take any apple device and download any game that you are playing already on your device
    Sign in game center with your APPLE ID  on the new device and open the game
    U will find it the same as you play it in your device with the same progress .
    You can test it without any risk at all

  • How do I play games on the new version of IPad?

    Hi,
    I want to know how I'm going to play games on the new version.
    Best regards
    Johan

    Hi there,
    I have encountered another problem. I don't know if it's because I downloaded the new Firefox 5.0 (update), but for some reason, I can't download the new game update of POTC and can't play the game. When it finally does, the tutorial starts downloading and it always goes back again and starts downloading... never ending. Please, help. Sorry for bothering too much :) Have a wonderful day!

  • How to assign voided cheque to the new payment document no.

    Hi Experts,
    A cheque no 11111 was manually assigned to a payment document no. created for a vendor X but physically another cheque no. 22222 was issued to vendor X by  mistake. Later on the user issued the cheque no. 11111 phisycally lying with him to vendor Y but did not assigned this cheque to vendor Y's as this was previously assigned to vendor X. When the user came to know this, he reversed the payment document no. by voiding the cheque no. 11111 with void reason ''Inserting wrong cheque lot'' and created another payment document no for vendor X with cheque no. 22222. This way he corrected the vendor X payment document with cheque no. 22222. Now he wants to assign the cheque no. 11111 which is voided to vendor Y's payment document. Further he has issued many cheques from the cheque lot which contain the cheque no. 11111 and 22222.
    Is there any way to assign the voided cheque to the new payment document no as the user wants it very desparately. 
    Hoping for solution.
    Rgds,
    BABA

    Hi Shailesh,
    Use FCH5 to create check information. Enter thr payment document , Company Code, Fiscal year and the house bank information to assign the check. IF the check lot having the check number has further checks assigned from it, this check lot has to be made non-sequential so that we could manually assign the check number.
    Thanks & Regards
    Preeju Susan

  • How do I link a button to another flash document?

    I am using action script 3 to make my website and all my files and done for now and complete however I have no idea how to make the buttons I created in flash link to another flash document.

    Is each page a different html file?  If so, then you would use code like...
    function linkFunction(evt:MouseEvent):void {
        var url:String = "awebpage.html";
        var req:URLRequest = new URLRequest(url);
        navigateToURL(req, "_self");
    btnName.addEventListener(Event.MouseEvent, linkFunction);
    where btnName is replaced by whatever instance name you assign to the button.  A condensed version of the function is...
    function linkFunction(evt:MouseEvent):void {
        navigateToURL(new URLRequest("awebpage.html"), "_self");
    If it is not linking to different html web pages, then you need to provide a clearer description of what your mean.

  • How do I sync game scores to new device?

    Game Center shows scores and achievements for the games I migrated to my new iPhone 5c, but the games boot up without them, as if brand new. How can I get them to acknowledge the Game Center data?
    Sideline: Why does Apple permit bogus high scores in Game Center? That hack must be 9,223,372,036,854,775,807 years old.

    Hi Sonnyboy89,
    I am a little unclear as to what you are trying to do with Game Center on the iPads, but you can enter each user’s Apple ID in Game Center on their device using the steps in this article -
    Using Game Center on your Mac or iOS device
    http://support.apple.com/kb/HT4314
    Thanks for using Apple Support Communities.
    Best,
    Brett L

  • IOS 6 Gamecenter ID did not require email address. iOS 7 does, how do I sync Game Center on new device

    My kid's have 3 iPod Touch's, 4th gen running iOS 6. We all share one Apple ID for purchases, but they each have their own Game Center ID. iOS6 Game Center DID NOT require an email address to use. Now I have bought them all iPad mini's that are running iOS 7. iOS7 REQUIRES an Apple ID to use. How do I import their Game Center info onto the Mini's?

    Hi Sonnyboy89,
    I am a little unclear as to what you are trying to do with Game Center on the iPads, but you can enter each user’s Apple ID in Game Center on their device using the steps in this article -
    Using Game Center on your Mac or iOS device
    http://support.apple.com/kb/HT4314
    Thanks for using Apple Support Communities.
    Best,
    Brett L

  • How do I transfer games onto a new device without losing any game progress and without resetting your iphone?

    So I'm trying to help a friend with her game progress and I'm on her icloud, gamecenter, and appstore accounts on my phone, but her data won't show up! I've even redownloaded the game multiple times. Please help!!

    Click here and follow the instructions.
    (114043)

  • Hey guys, I am new to javascript and I am trying to figure out how to add two spot colors to the active document. I am trying to get it to detect weather or not the spot colors are already in the document, and if they are not, it will proceed to create th

    Here's what I have so far.
    var docRef = app.activeDocument;
    if (docRef.swatches.getByName ("CutContour") === 'undefined') {
    var spotNameCC = "CutContour";               
    var cmykColor = new CMYKColor();
    cmykColor.cyan = 0;
    cmykColor.magenta = 100;
    cmykColor.yellow = 0;
    cmykColor.black = 0;
    // Create Spot
    var spot = docRef.spots.add();
    spot.color = cmykColor;
    spot.colorType = ColorModel.SPOT;
    spot.name = spotNameCC;
    //var spotNameW = "WEED (r)";
    // Create CMYKColor
    /*var cmykColor2 = new CMYKColor();
    cmykColor2.cyan = 50;
    cmykColor2.magenta = 0;
    cmykColor2.yellow = 50;
    cmykColor2.black = 0;
    // Create Spot
    var spot2 = docRef.spots.add();
    spot2.color = cmykColor2;
    spot2.colorType = ColorModel.SPOT;
    spot2.name = spotNameW;
    Let me know what I did wrong lol I know it has to do with the detecting part. Also, if anyone knows any good websites to learn javascript I would be very thankful. I am not sure what a lot of the syntax means. Thanks!!

    Never mind I figured it out. Someone posted a similar question a few months ago on here, damn this forum is awesome wish I had known about it sooner. Sorry if I wasted anyone's time.

  • How to set two FMS URLs in Adobe Flash Media Live Encoder

    Hello Folks,
    Just wondering if anyone can give me any details on how I can set two Flash Media Server URLs on Adobe Flash Media Live Encoder to share one camera but stream it to two servers.
    Thank you.

    Put both URL's in the two FMS url's fields, primary/backup (its just naming, the "primary" and "backup", it could be named FMS1 and FMS2 as well)...
    Same stream name...

  • How to change the fonts (permanently) for new (empty) documents in pages

    I am searching for a way to change the settings/preferences of Pages / Numbers and Co such, that the standard font is not Helvetic, but a font of my choice. I am used to this from the MS Office products in my job, but want to keep my Mac "clean" and "pure".
    I know that I can create and save templates. But somehow I feel, it must be possible to just open an empty/blank document with the font of my choice.
    Any idea?
    Best regards
    Diethard

    --
    --[SCRIPT setiWork_defaultfont]
    Si vous choisissez "Pages" vous verrez:
    /* ----- Font Names */
    "FONT_Helvetica" = "Helvetica";
    "FONT_Helvetica-Bold" = "Helvetica-Bold";
    "FONT_Helvetica-Oblique" = "Helvetica-Oblique";
    "FONT_LucidaGrande" = "LucidaGrande";
    La police utilisée par défaut dans les textes, les notes et les tables est celle dont le descripteur est "FONT_Helvetica"
    éditez la ligne correspondante comme suit:
    "FONT_Helvetica" = "nomDeVotrePolice";
    Par exemple, pour utiliser Palatino, remplacez nomDeVotrePolice par "Palatino-Roman"
    Enregistrez le fichier ainsi modifié par (cmd + S)
    Si vous choisissez "Numbers" vous verrez:
    /* ----- Font Names */
    "FONT_Helvetica" = "Helvetica";
    "FONT_HelveticaNeue" = "HelveticaNeue";
    "FONT_HelveticaNeue-Bold" = "HelveticaNeue-Bold";
    "FONT_LucidaGrande" = "LucidaGrande";
    "FONT_MarkerFelt-Thin" = "MarkerFelt-Thin";
    La police utilisée par défaut dans les textes, les notes et les tables est celle dont le descripteur est "FONT_HelveticaNeue"
    éditez la ligne correspondante comme suit:
    "FONT_HelveticaNeue" = "nomDeVotrePolice";
    Si vous choisissez "Keynote" vous verrez:
    "STYLESeries2" = "Series_2";
    "STYLE_None" = "Aucun";
    "STYLESeries5" = "Series_5";
    "STYLESeries3" = "Series_3";
    "FONT_LucidaGrande" = "LucidaGrande";
    "FONT_Helvetica" = "Helvetica";
    "STYLE_Free Form" = "Format libre";
    "STYLESeries1" = "Series_1";
    "FONT_GillSans" = "GillSans";
    "STYLE_Normal" = "Normal";
    "STYLESeries0" = "Series_0";
    "FONT_MarkerFelt-Thin" = "MarkerFelt-Thin";
    "STYLESeries4" = "Series_4";
    La police utilisée par défaut dans les textes, les notes et les tables est celle dont le descripteur est "FONT_GillSans"
    éditez la ligne correspondante comme suit:
    "FONT_GillSans" = "nomDeVotrePolice";
    Une liste de 564 noms de polices est disponible sur mon iDisk:
    <http://idisk.me.com/koenigyvan-Public?view=web>
    Téléchargez:
    ForiWork:despolices.numbers.zip
    If you choose "Pages" you will see:
    /* ----- Font Names */
    "FONT_Helvetica" = "Helvetica";
    "FONT_Helvetica-Bold" = "Helvetica-Bold";
    "FONT_Helvetica-Oblique" = "Helvetica-Oblique";
    "FONT_LucidaGrande" = "LucidaGrande";
    The font used as default for tables is the one whose descriptor is "FONT_Helvetica"
    edit the line as:
    "FONT_Helvetica" = "yourFontName";
    For instance, to use Palatino, replace "yourFontName" by "Palatino-Roman"
    Save the file (cmd + S)
    If you choose "Numbers" you will see:
    /* ----- Font Names */
    "FONT_Helvetica" = "Helvetica";
    "FONT_HelveticaNeue" = "HelveticaNeue";
    "FONT_HelveticaNeue-Bold" = "HelveticaNeue-Bold";
    "FONT_LucidaGrande" = "LucidaGrande";
    "FONT_MarkerFelt-Thin" = "MarkerFelt-Thin";
    The font used as default for tables is the one whose descriptor is "FONT_HelveticaNeue"
    edit the line as:
    "FONT_HelveticaNeue" = "yourFontName";
    If you choose "Keynote" you will see:
    "STYLESeries2" = "Series_2";
    "STYLE_None" = "Aucun";
    "STYLESeries5" = "Series_5";
    "STYLESeries3" = "Series_3";
    "FONT_LucidaGrande" = "LucidaGrande";
    "FONT_Helvetica" = "Helvetica";
    "STYLE_Free Form" = "Format libre";
    "STYLESeries1" = "Series_1";
    "FONT_GillSans" = "GillSans";
    "STYLE_Normal" = "Normal";
    "STYLESeries0" = "Series_0";
    "FONT_MarkerFelt-Thin" = "MarkerFelt-Thin";
    "STYLESeries4" = "Series_4";
    The font used as default for tables is the one whose descriptor is "FONT_GillSans"
    edit the line as:
    "FONT_GillSans" = "yourFontName";
    A list of 564 names is available on my iDisk:
    <http://idisk.me.com/koenigyvan-Public?view=web>
    Download:
    ForiWork:despolices.numbers.zip
    Yvan KOENIG (Vallauris, FRANCE)
    5 mars 2009
    on run
    if my parleFrancais() then
    set prompt1 to "Choisir l'application"
    set prompt2 to "Choisir un modèle"
    set prompt3 to "Choisir une localisation"
    else
    set prompt1 to "Choose the application"
    set prompt2 to "Choose a template"
    set prompt3 to "Choose a localization"
    end if
    choose the application *)
    set theApp to choose from list {"Pages", "Numbers", "Keynote"} with prompt prompt1
    if theApp is false then error -128
    set theApp to item 1 of theApp
    define some parameters *)
    if theApp is "Pages" then
    set permitted to {"com.apple.iWork.Pages.template", "com.apple.iWork.Pages.sfftemplate"}
    set sub to "Templates"
    set theStrings to "Localizable.strings"
    else if theApp is "Numbers" then
    set permitted to {"com.apple.iWork.Numbers.template", "com.apple.iWork.Numbers.sfftemplate"}
    set sub to "Templates"
    set theStrings to "Localizable.strings"
    else (* it is "Keynote" *)
    set permitted to {"com.apple.iWork.Keynote.kth", "com.apple.iWork.Keynote.sffkth"}
    set sub to "Themes"
    set theStrings to "fontsAndText.strings"
    end if
    choose the template *)
    set p2f to (path to applications folder as text) & "iWork '09:" & theApp & ".app:Contents:Resources:" & sub
    if 5 > (system attribute "sys2") then (*
    it's Mac OS X 10.4.11 *)
    set allowed to permitted
    else (*
    it's Mac OS X 10.5.6 with a bug with Choose File *)
    set allowed to {}
    end if
    set p2f to (choose file with prompt prompt2 default location (p2f as alias) of type allowed) as text
    choose the localization folder *)
    set p2f to p2f & "Contents:Resources"
    set p2f to (choose folder default location (p2f as alias) with prompt3) as text
    open the localizable.strings file *)
    tell application "Finder"
    set nb to count of (files of folder p2f whose name starts with "localizable")
    if nb = 1 then duplicate file theStrings of folder p2f (* as there is no backup, duplicate "localizable.strings" for safe *)
    open file theStrings of folder p2f
    end tell -- Finder
    end run
    --=====
    on parleFrancais() (* Check if Pages is running in French *)
    local z
    try
    tell application "Pages" to set z to localized string "Cancel"
    on error
    set z to "Cancel"
    end try
    return (z = "Annuler")
    end parleFrancais
    --=====
    --[/SCRIPT]
    Yvan KOENIG (VALLAURIS, France.) mardi 11 août 2009 11:29:14

  • I bought iPhone 5c, did backup of my iphone 3gs did restore to 5c, all ok except social games like modern war and kingdom age data did not restore. need to restore data so dont lose game progress.  also no game center app on 3gs and 5c how do i get game 5

    I bought iphone 5c did backup of my 3gs did restore to 5c, all ok except social data did not restore. i do not want to lose games progress in modern war, crime city and kingdom age. how do i get game data to new phoen. also 3gs and 5c both dont have game center app how do i get game center app on 5c

    I bought iphone 5c did backup of my 3gs did restore to 5c, all ok except social data did not restore. i do not want to lose games progress in modern war, crime city and kingdom age. how do i get game data to new phoen. also 3gs and 5c both dont have game center app how do i get game center app on 5c

  • How to select two text boxes (linked) separated by a distance?

    dear all,
    how to select two boxes in an indd CS6 document? I tried to label them also but unable to select.
    Virender

    Dear Uwe, Many thanks for your points.
    I have 10 indd files and each file has one page and a table is only item present on page. So few files has table present in one table and few files has two text boxes because table has many rows so spiltted in two linked text boxes.
    I somehow able to select both text boxes but while exporting them only one text box table get exported as png because of improper code.
    #target Indesign
    var sourceFolder = new Folder ("/Users/admin4/Desktop/INS");
    var myFiles = sourceFolder.getFiles();
    //alert (myFiles.length);
    var destFolder = new Folder ("/Users/admin4/Desktop/folder3");
    for (i=0; i < myFiles.length; i++)
         if (myFiles[i].name !=".DS_Store")
         var sourceDoc = app.open(myFiles[i]);
         app.activeDocument.pageItems.everyItem().select();
         //app.activeDocument.stories[0].tables[0].parent.select();
         var destFile = File(destFolder + "/" + myFiles[i].name + ".png");
         app.selection[0].exportFile(ExportFormat.PNG_FORMAT, destFile, false);  
         // here i need to correct code.
         sourceDoc.close(SaveOptions.NO);

  • Creating a new reports document

    Hi everyone,
    Iu2019m having an issue using In-Proc RAS when creating a new report document in .NET. The following code (C#) will fail (Saying that it requires a Loaded RPT file to do anything against that member)u2026
    CrystalDecisions.CrystalReports.Engine.ReportDocument myTest = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
    myTest.ReportClientDocument.New()
    How are you suppose to create a new blank document using the CrystalReports engine? The only way I can do anything with the above object is to actually load a .RPT file. Itu2019s different then when using the RAS SDK which goes like:
    ReportClientDocument objClientDoc = new ReportClientDocument(); //this is a ReportAppServer object
    u2026Set The Report Server Nameu2026
    objClientDoc.New();
    Thanks for the help!
    Peter

    Hi Peter,
    If you are using ReportDocument object then you need to load the object with a report name.
    //define the object
    ReportDocument rdocument = new ReportDocument();
    //load the report
    rDocument.Load(path of the report);
    //View the report
    CrystalReportViewer1.ReportSource=rdoc;
    However if you use the RAS then you need to use the ReportClient document object for it.
    //define the object
    CrystalDecisions.CrystalReports.Engine.ReportDocument rdoc1 = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
    // assign it to the reportclient object
    ISCDReportClientDocument rClient1 = rdoc1.ReportClientDocument;
    //Load the report
    rdoc1.Load(path of the report);
    //View the report.
    crystalReportViewer1.ReportSource = rdoc1;
    So I do not see any reason why we would need the New() method.
    Does that help?
    AG.

  • New Flash Media Encoder

    So, I've been playing with the new Flash Media Encoder here:
    http://labs.adobe.com/technologies/fme/
    It was a really simple download and works seamlessly with
    Flash Media Sever. I think you have to update FMS2 to the January
    07 update to use it, though. Anyway, below are some options for
    trying it out. Have fun :)
    Per Chris H from adobe:
    1. You don't need a main.asc file on your FMS app to publish
    and broadcast live streams with FME.
    2. You can get a live stream from FME to playback in the
    normal FLVPlayback component that ships with Flash 8 Professional.
    Just make sure you have the "isLive" parameter set to true and the
    contentPath should be:
    rtmp://server_name/app_name/inst_name/stream_name.
    Option from FMS livedocs:
    1 New Flash Document with two layers: actions and video
    display.
    2 Add this code from the FMS livedocs to the actions layer:
    var my_nc:NetConnection = new NetConnection();
    my_nc.connect("rtmp://<YOUR RTMP ADDRESS>/streamtest");
    var my_ns:NetStream = new NetStream(my_nc);
    my_video.attachVideo(my_ns);
    my_ns.play("stream");
    3. Open Window > Library > Click little dropdown toggle
    next to library title and select a new video display object and
    specify actionscript control.
    4. Drag Video Display out of the library and give it an
    instance name of my_ns and publish it. I used a laptop for this
    part so that I could stream to the file from my FMS server. I saved
    the .swf as video_receiver.swf.
    5 Stop Flash Media Server and create a folder called
    streamtest in the FMS Apps folder, then start it again.
    6. Fire up FMEncoder, specify the RTMP address you specified
    in the Flash 8 AS code, and be sure that the stream is named,
    "stream" (no quotes). Also, toggle off the save stream file, unless
    you want to save the recording.
    7. Click start on FME and open the video_receiver.swf and you
    should see the stream playing.
    Another idea:
    Use the receiver from this tutorial:
    http://www.adobe.com/devnet/flashcom/articles/broadcast_receiver.html

    We have our own FMS and I have just installed the FME on a
    workstation. FME reads video perfect but when I try to connect to
    the server it won't accept my username and password. Where do I set
    this? I have installed the add-in for FMS and also upgraded to the
    latest 2.0.7 release. I'm green to the Flash Media Services so this
    may come as a dumb question. Please help!

Maybe you are looking for

  • Need help on object array, please.

    Hello. I'm trying to write a program that stores student id numbers and their names into an array, and then prints them in numerical order. What I did was create an object called DSCC and put it in an array, but I'm having problems. Everytime I run t

  • Transaction Launcher - SAP GUI

    Hi Experts, We are configuring R3 bespoke transaction to CRM 7.0 UI. We used ITS and it worked but that is very slow. The other option we have is using SAP GUI. So we are in process of configuring the transaction and followed steps available in weblo

  • New pages made From Template messed up!

    Hello, I have made a template that is not yet finished... I decided to test it out, but when I make new pages from it, the formatting is messed up (in any new pages that I create from the template). This of course is happening prior to uploading to t

  • Integrated mic uninstalled in error . How can i get it back ?

    Whilst installing Skype last week I have somehow 'removed' the integrated microphone from my hp Pavillion laptop's devices .    Help needed !   I am thinking maybe a system restore would put it back for me ?   Any solution /help appreciated ..... Thi

  • Why does Photoshop CC update fail?

    Hi, This is my second request for help on this matter. I followed the advice to run the Adobe Cloud Cleaner. I uninstalled Photoshop from my Windows 8 system and opened the Cleaner. I was asked questions via a small window - it wasn't possible to enl