Move to next scene

I have a scene and I want it to move to scene two when the enter key is pressed.
Anyone know how I can do that?
Thanks

You may want to pursue something else for changing scenes.  Using the Enter key can be somewhat of an issue as compared to other keys.  Generally, in order for it to work you need to click the stage or textfield that the listener is assigned to give that object focus before use of the Enter key will register.  In any case, here is some code that will work under the right conditions...
stage.addEventListener(KeyboardEvent.KEY_UP, doStuff);
function doStuff(evt:KeyboardEvent):void {
    if(evt.keyCode == Keyboard.ENTER){
        gotoAndStop(1, "Scene 2");

Similar Messages

  • (Click and move to next scene).  Need help with a simple action, just need a little guidance.

    I am building a simple flash movie clip in Flash cs4. All I want to do is run the play head through a one 5 frame scene and stop, and then you press a button that will send the play head to the next 10 frame motion tween scene.
    When I run the movie all I get is a movie clip that pauses for a millisecond then loops back around.
    I have three different books on flash action script, read all three still not doing so hot. I am using the navigational button concept maybe that is what I am doing wrong. Can someone show me the right method or lead me in the right direction.
    farosgfx ( [email protected] )

    You can just place an invisible button on the top layer of
    the flash time line and code it to getURL. When you said "hyperlink
    to another page", are you referring to an html page or another swf
    file? To make an invisible button in Flash, you can hit Ctrl+F8 to
    bring up the dialog box to create a new symbol, name your button,
    make sure you select the type of button, hit ok, now you are inside
    the button and need to create a "hit" area. Click on the "hit"
    state and press F7 to create a blank key frame. Using the drawing
    tools, select the square, no stroke, and any fill color you want,
    draw a square shape, click on the shape and in your Info Panel,
    change the size of this shape to match the size of your stage,
    lastly, make sure the registration point is (0,0) by using the
    Align Panel. Go back to your main time line, add a layer on your
    time line and make sure it's at the top, drag your new button from
    the library to the stage and align it to (0,0).
    There are two ways to code the button, so to make it easier,
    click on the button once to select it, hit F9 to bring up the
    actions panel and type this
    on(release){
    getURL("
    http://www.someWebsite.com",
    "_blank");// you can also use "_self" //
    If some of this isn't new to you, disregard parts of it. If
    you have any buttons in your Flash application, this will cause
    problems because the invisible button will counter-act anything
    below it. Let me know if this works for you. Of course, this all
    assumes you have access to the flash file.

  • HT1657 I have rented a movie from Itunes, but when I try to watch it it pauses itself, then skips to the next scene...can anyone tell me why and as I have paid money for this shouldn't I at least be able to watch without any hiccups?

    I have rented a movie from Itunes, but when I try to watch it it pauses itself, then skips to the next scene...can anyone tell me why and as I have paid money for this shouldn't I at least be able to watch without any hiccups?

    You've tried restarting the film ? If it still skips then try the 'report a problem' link from your purchase history : log into your account on your computer's iTunes via Store > View My Account and you should then see a Purchase History section with a 'see all' link to the right of it ; click on that and you should see a list of your purchases ; find that film and use the 'Report a Problem' link and fill in details about the problem (iTunes support should reply within, I think, 24 to 48 hours).
    Some people have had a problem with the 'report a problem' link (it's been taking people to this site on a browser instead of showing a form in iTunes) - if it does that to you then try contacting iTunes support via this page : http://www.apple.com/support/itunes/contact/- click on Contact iTunes Store Support on the right-hand side of the page.

  • GotoAndPlay next scene when reach the "end" cue point

    Hi, I have a flv with actionscript cue point "welcome_end".
    It's will be progressive download from web server. It has a
    component name "flv_welcome" on stage. What I want to do is after
    the flv play reach to its end, the flash movie will go to and play
    next scene.
    Any help will be greatly appreciated.

    See FLVPlayback.cuePoint in the help files.

  • Using Cue Points to advance to next scene

    I'm pretty new to AS3. I'm a designer trying to do it myself.
    What I'm trying to do is use a cue point at the end of my FLV (which is loaded using ui loader in my flvSWF) to go to the next scene in my mainSWF file.
    here's the code I'm using in my flvSWF:
    import fl.video.VideoEvent;
    import fl.video.MetadataEvent;
    IntroMovie.addEventListener(MetadataEvent.CUE_POINT, cp_listener); 
    function cp_listener(eventObject:MetadataEvent):void { 
    trace("Elapsed time in seconds: " + IntroMovie.playheadTime); 
    trace("Cue point name is: " + eventObject.info.name); 
    trace("Cue point type is: " + eventObject.info.type); 
    if (eventObject.info.name == "CueNextScene") {
    this.gotoAndPlay("desk");
    But of course it does not work. 
    A.  my traces don't show up. 
    B. Am I suppose to use this code in my mainSWF instead of the flvSWF
    C. An FYI  the IntroMovie is one of 4 random movies that gets played for the intro in mainSWF. The random script works fine.

    You can build out a menu by reading the cuePoints array in
    the NetStream.onMetadata handler, or by using the MetadataEvent
    with the FLVPlayback component (AS3). The simple thing for me to
    say is to refer to Chapter 9 of my new Flash Video book. :) (see
    link in my signature below.)

  • Lose sound exporting movie to camera.Scene selection problem

    Dear friends, thank you for your time!
    I have 2 painful questions!
    1-I have Macintosh G5. New! I can't export my edited movie back to camera with sound of music that I add to my movie. Sound of shooting is there but not an additional track of music from CD
    2-I tried to burn a DVD, but I can't split my movie into parts. It is a wedding, and I want separate parts of the wedding-ceremony, reception, blessing... I used chapters markers in iMovie program, but in DVD project it is going like that: Ceremony and everything after that, next scene is reception and everything after that,next scene is interview and everything after that. Something small is missing, that I do not understand.How do I end each chapter so it does not run on?
    Thank you!

    Hi Vera
    My main guess.
    There is a factor if the sound is recorded with 12 bit or 16 bit in the Camera.
    Many Cameras are factory preset to 12 bit sound (to make it possibly to
    add sound directly in the Camera - for those without a Mac)
    Change this with the menu on Your Camera and try again.
    This is of Course if the sound is OK in iMovie. Play to the end of Your project
    and be very observant on the sound at the end part of it.
    Yours Bengt W

  • Preloading Next Scene?

    Hello, I'm making a sort of flash comic. In order for most
    users to be able to view it without delay or poor rendering, I want
    each scene to be pre-loaded before it can be viewed.
    So, in order to do this, I want to preload the next scene as
    soon as the current scene is entered by the user. And once the next
    scene is fully loaded, I want two buttons to show up: a button to
    replay the current scene but not preload the next one again, and a
    button to continue to the next scene.
    Anybody have any suggestions on how to do this? Thanks!
    BTW, I have Flash CS3 Professional.

    Heheh, sorry, I'm a total newb to actionscripting, so I don't
    quite understand what you're saying.
    What is the main timeline? Is that like the total number of
    frames in the movie? How can I automatically check the number of
    frames in the next scene? How can I automatically check the number
    of frames in the next scene, and how do I make the two buttons
    present on the stage?

  • In the previous version, the menu table in table options, there is an option that gives me the option: the Return key moves to next cell. I do not see this option in the new number. can you help me please?

    in the previous version  of Number, the menu table in table options, there is an option that gives me the option: the Return key moves to next cell. I do not see this option in the new number. can you help me please?

    Hi silvano,
    If you use a regular pattern when entering values, press enter (return) after entering the last value in a row. That will take you to the first Body Cell of the next row.
    Start in Cell B2
    1 Tab 2 Tab 3 Enter
    4 Tab 5 Tab 6 Enter
    7 Tab 8 Tab 9 Enter
    Now you are ready to type into B5 .
    Another way that some people find easier is to enter one column at a time
    Start at B2
    1 enter
    4 enter
    7 enter
    etc.
    Now start with C2.
    Use whatever suits your work flow.
    Regards,
    Ian.

  • See my problem no master record move to next record

    hi master
    sir
    i have master detail block master table have all data but detail no data i need feed data in detail then i goto in detail block write value and press F10 for save
    for new record in detail
    in detail blick post-block or post_record or post_insert event i write this code
    go_block('masterblock');
    next_record;
    go_item('detailblock.item');
    but not responses no master block move to next record still and my curser sitll in last postion
    sir how i move master record after save the detail record and jump to detail block for new record
    please give me idea or code
    thanking you
    aamir

    thank for reply
    sir your help very usefull for my but when i press F10 then system show massage do you want to save change the record
    sir how i avoid that window and directly move to next record
    please give me idea
    thanking you
    aamir

  • My code not give me result and error for move to next record please see

    hi master
    sir i import this file also
    import javax.faces.event.ValueChangeEvent;
    then my error remove
    i am use this code in button event
    getMfatableDataProvider().cursorNext();
    form1.discardSubmittedValues("virtualForm1");
    and my textField is bounded with data provider table field
    please give me idea how i show next rocord in page when user press button
    thank's
    aamir

    thank for reply
    sir your help very usefull for my but when i press F10 then system show massage do you want to save change the record
    sir how i avoid that window and directly move to next record
    please give me idea
    thanking you
    aamir

  • Why doesn't Firefox run an adobe flash player slide show (no arrows to move to next/previous slide), but internet explore does?

    When I try to run a slide show in Firefox, the first slide displays but the arrows to move to next/previous slide do not appear. When I try in Internet Explorer, the arrows appear. Flash Player is enabled in Firefox. There must be another setting I need to adjust. I am running Windows 7. I don't see how to access Tools menu item in Firefox. I don't see where I can check my Firefox version. It is the current version as is Flash Player.

    When I try to run a slide show in Firefox, the first slide displays but the arrows to move to next/previous slide do not appear. When I try in Internet Explorer, the arrows appear. Flash Player is enabled in Firefox. There must be another setting I need to adjust. I am running Windows 7. I don't see how to access Tools menu item in Firefox. I don't see where I can check my Firefox version. It is the current version as is Flash Player.

  • Choppy movie clips and scenes

    I am having a problem in which I have movie clips containing
    tweens in a file containing two scenes. On publishing, the movie
    clips in Scene A play fine, but the clips within Scene B are very
    choppy -- they appear to be playing only the first and last frames
    of a tween.
    The tweens themselves are definitely OK -- sometimes it
    happens that the clips from Scene B play fine, but then the ones
    from Scene A don't work.
    To see specifically what is happening, you can go to
    http://www.boston.com/news/specials/local/danvers_explosion/interactive_graphic/
    The file is done in two scenes -- one for the content under
    the "The Blast" tab and one for that under "Getting Out." The
    pulsing arrows on the map in "The Blast" are movie clips with
    motion tweens, and these are working correctly. Go to "Getting
    Out," though, and the explosion symbol on that map is supposed to
    expand and fade out, but as you can see, it's not working. But as I
    said, sometimes that clip plays fine, but then the arrows (and
    other clips in "The Blast") don't work.
    This is not the first time I've run into this bug, so I don't
    think it is anything project-specific. Anybody have any
    ideas?

    dont think it is a "bug" because scenes dont exist in the
    compiled SWF - they are only for managing
    your FLA timeline.
    example: say you have 2 scenes 100 frames each. Upon export
    to SWF, frame 1 in scene 2 is really
    frame 101.
    perhaps you just need a preloader?
    can you provide the FLA?
    ~~~~~~~~~~~~~~~~
    --> Adobe Certified Expert
    --> www.mudbubble.com
    --> www.keyframer.com
    ~~~~~~~~~~~~~~~~
    fredward23 wrote:
    > I am having a problem in which I have movie clips
    containing tweens in a file
    > containing two scenes. On publishing, the movie clips in
    Scene A play fine, but
    > the clips within Scene B are very choppy -- they appear
    to be playing only the
    > first and last frames of a tween.
    >
    > The tweens themselves are definitely OK -- sometimes it
    happens that the clips
    > from Scene B play fine, but then the ones from Scene A
    don't work.
    >
    > To see specifically what is happening, you can go to
    >
    >
    http://www.boston.com/news/specials/local/danvers_explosion/interactive_graphic/
    >
    > The file is done in two scenes -- one for the content
    under the "The Blast"
    > tab and one for that under "Getting Out." The pulsing
    arrows on the map in "The
    > Blast" are movie clips with motion tweens, and these are
    working correctly. Go
    > to "Getting Out," though, and the explosion symbol on
    that map is supposed to
    > expand and fade out, but as you can see, it's not
    working. But as I said,
    > sometimes that clip plays fine, but then the arrows (and
    other clips in "The
    > Blast") don't work.
    >
    > This is not the first time I've run into this bug, so I
    don't think it is
    > anything project-specific. Anybody have any ideas?
    >

  • Move to next record / wildcard search

    Hi
    Hope you can understand this explanation..
    I have searchable database for Holiday & Residential
    property here
    http://www.roomtobreathesl.com
    (search facility in the navigation menu)
    The results page for this search works fine for when you
    specify a certain
    area, certain amount of beds etc as it only shows a small
    amount of
    properties.
    However when you do a search for any area / any amount of
    rooms / any type,
    the query brings up over 40 results, so a move to next record
    is used. This
    is where the problem lies. You cannot move to next record as
    the 'Next
    record' link is looking for another wildcard search (see
    status bar).
    Any ideas how to remedy this?
    Thanks for any help
    Gary

    oops!
    Sorry sent you the previous version that's online.
    I also tried doing a search and replace and changing all
    'Request.Form' to
    'Request'
    Still didn't work.
    This is how it was when it wasn't working.
    <%@LANGUAGE="VBSCRIPT"%>
    <!--#include file="Connections/YotShop6.asp" -->
    <%
    Dim rsResults__MMColParam
    rsResults__MMColParam = "1"
    If (Request("yscon") <> "") Then
    rsResults__MMColParam = Request("yscon")
    End If
    %>
    <%
    Dim rsResults__ysbed
    rsResults__ysbed = "1"
    If (Request("ysbed") <> "") Then
    rsResults__ysbed = Request("ysbed")
    End If
    %>
    <%
    Dim rsResults__MMColParam3
    rsResults__MMColParam3 = "xyz"
    If (Request("type") <> "") Then
    rsResults__MMColParam3 = Request("type")
    End If
    %>
    <%
    Dim rsResults
    Dim rsResults_numRows
    Set rsResults = Server.CreateObject("ADODB.Recordset")
    rsResults.ActiveConnection = MM_YotShop6_STRING
    rsResults.Source = "SELECT * FROM YotStock WHERE Area LIKE '"
    +
    Replace(rsResults__MMColParam, "'", "''") + "' AND bedrooms
    LIKE '" +
    Replace(rsResults__ysbed, "'", "''") + "' AND type LIKE '" +
    Replace(rsResults__MMColParam3, "'", "''") + "' ORDER BY
    price ASC"
    rsResults.CursorType = 0
    rsResults.CursorLocation = 2
    rsResults.LockType = 1
    rsResults.Open()
    rsResults_numRows = 0
    %>
    "Julian Roberts" <[email protected]> wrote in message
    news:euj4if$ici$[email protected]..
    >>> Use Request instead of Request.Form for runtime
    parameters.
    >
    > You haven't done it :)
    >
    > --
    > Jules
    >
    http://www.charon.co.uk/charoncart
    > Charon Cart 3
    > Shopping Cart Extension for Dreamweaver MX/MX 2004
    >
    >
    >
    >

  • Move to next field after typing item code in a document

    Hello experts,
    In a marketing document we type 1000 in item code field and press tab.
    we would like the cursor to move to next field but instead a list of items is being opened.
    in the list there are two items 1000 and 10001
    in another company we can do it but we couldnt find what is the difference between the two companies setup definitions.
    Thank you,
    Rinat

    Hi,
    Please make sure item number fully entered at item code. If not complete, then list of items window will open.
    If possible please post screen shot above window
    Thanks & Regards,
    Nagarajan

  • Help: Data validation before commit or move to next record

    The form that I am working on allows data insert. It needs to have a feature to inform the end user for incomplete field(s) before commit_form or move to next record for updating. Please let me know how you would do it.
    Thank you,
    Jimmy

    To prevent cursor movement out of a field in a When-validate trigger, all you do is    Raise Form_trigger_failure;However, if the field is null and the user does not enter anything while tabbing through, or just clicking in then clicking somewhere else, the When-validate-item trigger does not run. You have to specifically check if the field is null in the When-validate-record trigger.

Maybe you are looking for