What kind of code do you use to switch to a new/next screen?

Greetings,

I worked with CC animate and a bit of ActionScript 3.0 for about a month as part of my study IT. As part of my final project for this course animate CC, I chose to create a Visual Novel game. Basically, the idea is that you can see a screen, you click an option to 'talk' (like "move to your home" or "the city") and clicking on an option translates in the transition to a new screen (with a House/town as a background image).

Unfortunately, I don't have to do all assignments in the past involving "screen switching", so I have no idea as to what kind of code I need to make this work. Google for it, without success. So now my question is, what kind of ActionScript 3.0 code/functions/etc. to apply to just "switch to the next screen" host in a selfmade in CC game?

Thanks in advance,

Sander

I assume you are using the calendar to develop each of these individual screens. You probably use the stop(); order to keep the playhead on the frame where the first decision point, the screen of your option. You will need for each of the options create a badge and join some Actionscript to the keyframe where the point of this decision.

Here's a good tutorial for this kind of thing: creating a site Flash (AS3 Version)

Tags: Adobe Animate

Similar Questions

  • Can someone tell me what kind of desktop / laptop, you use for AE/Pr/Ps?

    I don't know where to start more and I don't know if building a computer is the only way. I really appreciate it guys.

    look for a 4 core intel code name resemble i7-x7xxx. you will perhaps find one with 8 GB memory and improve memory and ssd disc later.

    something like this for an example. Laptop ASUS ROG GL551JW - WH71 (WX) 4th generation Intel Core i7 4720HQ (2.60 GHz) 8 GB memory 1 TB HARD drive

    You should be able to download the manual for any laptop that you look to see if it allows the upgrade of memory and hard drive.

  • Error codes when you use windows update 0 x 643

    Error codes when you use windows update

    Received error code 0 x 643 during the installation of update for Visual C ++ 2010 (KB2467173). What should I do?

    Hey Joe,

    You can check if this article helps.

    You receive error code 80070643 0 x or 0 x 643, code error when you use the Windows Update

  • No matter what kind of program that I use or what printer I print on, my PC has produced a preview before print screen every time I click on print. Anyone know how to disable this option?

    No matter what kind of program that I use or what printer I print on, my PC has produced a preview before print screen every time I click on print. Anyone know how to disable this option?

    It doesn't seem to be anything the given that this happens no matter what printer print on the printer. Any program, I use the same thing also happens.

    Hello

    Apart from the valubable solutions provided, I suggest that you post your question on the TechNet Forums as it appears, it comes to your work computer.

    Windows XP IT Pro

    Thank you.

  • What kind of filter/effect is used in this vid?

    what kind of filter/effect is used in this vid by Björk about 0.26 s https://www.YouTube.com/watch?v=M1Wwbw2gCcA

    Find edges and CC Vector Blur with settings excessively overcranked will give such a look. Additional blur before the operation to find the edges may be involved, and of course to get multiple lines of 'height' you will work in 8 bit in support of quantification.

    Mylenium

  • What stage of treatment do you use for email autoresponder to each sender form?

    Hello

    What stage of treatment do you use for email autoresponder to each sender form?

    Thank you

    Hello

    You can use option send email.

    Thank you

    edynamic expert Eloqua

  • What kind of photoshop file you can color in Illustrator?

    What kind of Photoshop file you can color in illustrator?

    A range of grayscale TIF or PSD for sure. Why not experiment and discover?

  • Satellite 1400-503: what kind of RAM should I use?

    It is pre-installed with 256 MB of RAM (I think) and I would like to enhance it with additional 256 MB in the free location. What kind of RAM I need? the preinstalled is a samsung with the inscriptions on it: Korea 0228 pc133s-333-542-81 L7A M46453254CT

    Hello

    I want to clarify that you can upgrade the memory to 1024 MB.
    As far as I know Toshiba recommend using these memory modules:
    PC133 512 MB (PA3108U - 1 M 51)
    PC133 256 MB (PA3086U - 1 M 25)
    PC133 128 MB (PA3085U - 1 M 12)

    But as you mentioned the laptop supports modules SODIMM 144 pin PC133 .
    In this case, you use modules with these properties.
    But I prefer the modules Kingston or Toshiba. You know that no names module performance is not very good.

  • What value for p_print_server when you use the Rest Data Services as a print server?

    Hello

    I have my report server on the internal workspace defined as BI Publisher URL as default... It works for my BI Publisher reports.

    I have 2 reports who need to use the rest Data Services FOP engine and use GET_PRINT_DOCUMENT function Signature 4

    https://docs.Oracle.com/CD/E59726_01/doc.50/e39149/apex_util.htm#AEAPI146

    For these 2 reports, I need to pass a parameter to p_print_server. The documentation describes this as the URL for the print server

    My question is, how to find the URL for p_print_server when I want to use the rest Data Services FOP on ADR?

    I can not put as NULL as at the time, it will use the default BI Publisher URL and then these 2 reports will not work

    Moreover, when I put the server reports on internal workspace as 'Rest Data Services', my two reports work fine, but not when I put is as URL BI Publisher - which is necessary

    Help, please

    Concerning

    Matt

    Hi Matt Mulvaney,

    Matt Mulvaney says:

    I already have the correct configuration to be able to produce reports FOP including two steps you mentioned. This set works very well when I put the "Print server" preference in the settings of APEX Data Services Instance remains - and reports can be produced. But as I said, this must be set to a URL of BI Publisher.

    If you use "Print server" as "Oracle BI Publisher" then the p_print_server parameter would have been:

    http://myserver.mydomain.com:8888/xmlpserver/convert

    Where:

    • Printing of the address of the host server: myserver.mydomain.com (you can also use the IP address)
    • Print Server Port: 8888 (depending on what your BI Publisher Server uses port)
    • Print server script: / xmlpserver/convert

    Similarly, if you choose "Print server" as 'Oracle REST Data Services', the instance settings don't ask questions on the print settings, but internally it uses the following parameters and the p_print_server parameter is:

    http://myserver.mydomain.com:8080 / ADR / _ / fop2pdf

    Where:

    • Printing of the address of the host server: myserver.mydomain.com (host computer on which ADR is hosted)
    • Print Server Port: 8080 (the port used by what ADR/APEX Forum)
    • Script of the print server: / ords / _ / fop2pdf (this is not disclosed by APEX/ADR documentation, but as mentioned by Marc Sewtz in the following thread)

    Reference: Re: Apache FOP disappeared by Oracle APEX installable APEX 5.0 and 5.0.1 APEX

    Kind regards

    Kiran

  • How do I get this off my departure to the top of the page, what kind of Web do you want? Join the Firefox users around the world, shape its future.

    I googled and upon my departure to the top of page, under Google search space, that question is beneath him.
    What kind of Web you want? Join the Firefox users around the world, shape its future. I don't like it and want to remove it. I did it ask me, but that it contains to appear?
    Thank you

    Hi Demberg, regarding your problem of message on the home page of firefox, I think that not fair to say that you can't remove it. Indeed, it is a message to get involved.

    I hope I've been helpful.

    romsdu81

  • 80070643 error code when you use Windows update

    I am running Windows 7 Home Premium - 32-bit. I get the error code 80070643 when you use Windows update - it fails on the Office Live add-in 1.5. I uninstalled .net Framework and reinstalled. Office Source Engine turned on, started work. Any ideas how I can fix it. I am running Office 2010 beta as well.

    Assuming that Office 2007 or 2003 is also installed, uninstall try Office 2010 Beta and once again. ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • What stage of treatment would you use to alert a seller on a form submission?

    Can someone tell me what step treatment would you use to alert a seller on a form submission?

    Hello

    Send a notification e-mail.

    Thank you

  • Hello do not know, I am in the right place - I want a document by email to clients where you can ask them what kind of other products they use and I thought it would be an idea to make them able to check a box or put the dot in a box - is this the right p

    Hi - I want to be able to send the docs where people can check say yes buy us this stuff.  We are a supply of office and stationery company, and we thought it would be an easy way for our customers to let us know what other products they use, that they are not currently buying from us.

    Hi susanna7221542,

    You can create interactive PDF forms using the Acrobat application to collect data creation and distribution of PDF in Adobe Acrobat DC forms.

    Kind regards

    Nicos

  • 71622 error code when you use read data from the encoder vi

    Hi, im using PXI7340 Motion control and I get the error-71622 code that is not defined if I try to search in the help explain error section. I get this error when I try to use reading encoder vi data. I would like to get the index data and I can not find that an another vi Traoré did this. Any suggestions

    Again, could you please show me how you have implemented that?

    Let's take a step back. What exactly are you trying to accomplish? You want to find the index position? Can find reference should do the job for you.

  • What kind of details/units do use command of the crib for Action 'Place '?

    I used the Listener script to make this Applescript function to place images. I placed a bunch of different images very precisely on the canvas. "I get the dimensions of the image in pixels and then I need to do some calculations based on the dimensions and use it to feed the correct" "xCoordinate" and "yCoordinate" variables in the.


    The thing is, I can not understand what on Earth these numbers refer to the. Pixels? Cannot be, if I change the numbers, the inserted graphic does not jump the same number of pixels that change my value. The title of the document in inches, but he is not jumping the correct distance of thumb. Is that picas or points or something? Is it possible for me set the Info window to show me the same coordinates that will be used to determine location of the code of the Action of eating in the same way the interpreter?


    In addition, it seems that if I change the size of the placed image, it is just in some unpredictable place. "If I place a 4"x 4"300 DPI image square with this, use exactly the same " ""xCoordinate "and" 'yCoordinate ' values and place an image from 300 dpi 2 "x 2", they do not come with everything that I can perfectly recognize in common - both images are not perfectly aligned at the top, down, left, right or Center. And different, I place the same image with the same coordinates, I swear to you that sometimes in different places if I went and did other things in between. So what's happening?


    Any help?


    Thank you


    Tom.



    on place_image(filePath, xCoordinate, yCoordinate, imageScale)

    tell application"Adobe Photoshop CS6.

    say the active document

                          do JavaScript "

    var idPlc= charIDToTypeID("------" "Plc------');

    var desc4 = new ActionDescriptor();

    var idnull = charIDToTypeID(\"null\');

    desc4.putPath( idnull, new file (\ "" & "\" & path"));

    var idFTcs = charIDToTypeID("------" "FTCS------");

    var idQCSt = charIDToTypeID("------" "QCSt------");

    var idQcsa = charIDToTypeID("------" "Qcsa------");

    desc4.putEnumerated( idFTcs, idQCSt, idQcsa );

    var idOfst = charIDToTypeID("------" "Ofst------");

    var desc5 = new ActionDescriptor();

    var idHrzn= charIDToTypeID("------" "Hrzn------");

    var idRlt= charIDToTypeID(-"#Rlt------");

    desc5.putUnitDouble( idHrzn, idRlt, "& xCoordinate &");

    var idVrtc= charIDToTypeID("------" "Vrtc------");

    var idRlt= charIDToTypeID(-"#Rlt------");

    desc5.putUnitDouble( idVrtc, idRlt, "& yCoordinate &");

    var idOfst = charIDToTypeID("------" "Ofst------");

    desc4.putObject( idOfst, idOfst, desc5);

    var idWdth = charIDToTypeID("------" "Wdth------");

    var idPrc = charIDToTypeID(-"#-Prc');

    desc4.putUnitDouble( idWdth, idPrc, "& (imageScale) &");

    var idHght = charIDToTypeID("------" "Hght------");

    var idPrc = charIDToTypeID(-"#-Prc');

    desc4.putUnitDouble( idHght, idPrc, "& (imageScale) &");

    executeAction ( idPlc, desc4, DialogModes.NO); »

                   end tell

           end tell

    end place_image

    OK, there is still much to do.

    But right now, you can add these pure javascript in your originalscript (before the end of the first say)

    var aLayer = activeDocument.activeLayer;
    var Pos = aLayer.bounds;
    Pos[0] = 10 - Pos[0];  // 10 or your own value for " & xCoordinate & "
    Pos[1] = 10 - Pos[1];  // 10 or your own value for " & yCoordinate & "
    aLayer.translate(-Pos[0],-Pos[1]);
    

    Have fun

Maybe you are looking for