Goto a specific frame on a scene

Hello everybody
I was wondering: I know that we can access a frame by its
name. For example: gotoAndPlay("Transition"). Can I have, in two
different scenes, two Transition frames and access them by
something like <gotoAndPlay("Scene1.Transition")> or an
another similar command or do they need to have a unique name?
Thanks
Rick

Yes you can move between scenes to specific frames but the
code for it depends on which version of actionscript you are using.
If you look at the gotoAndPlay Flash documentation for the version
of AS you are using, it will define what you need to use where, and
will likely provide examples.

Similar Messages

  • Going to a specific frame in a clip on another page

    As may be self evident I am not an expert..... Is it possible
    for a button (or series of buttons) on one page which, when
    clicked, opens another html page with an embedded swf movie and
    then goes to a specific frame in that movie ???
    If that makes sense

    no - simply put, if the html page/SWF and frame isn't loaded
    when button is pressed - there isn't a
    way because it doesn't exist yet.
    Chris Georgenes / mudbubble.com / keyframer.com / Adobe
    Community Expert
    LindnArden wrote:
    > As may be self evident I am not an expert..... Is it
    possible for a button (or
    > series of buttons) on one page which, when clicked,
    opens another html page
    > with an embedded swf movie and then goes to a specific
    frame in that movie ???
    >
    > If that makes sense
    >

  • IE11 can't post form data to specific frame or window dialog opened via window.open()

    Hello,
    Form POST targeting to specific frame or dialog popped up via window.open() no longer works in IE11.
    It worked fine in IE10 and all previous versions of IE.
    Please see screenshot attached with simple test that reproduces this problem.
    Direct Link to screenshot:
    http://173.231.98.44/cgi/TestFolder/IE_11_widow_frame_targeting_BUG.jpg
    Direct link to simple test page demonstrating this problem:
    http://173.231.98.44/cgi/TestFolder/page2.asp
    Note: IE11 doesn't report any errors, doesn't complain about anything, even when debugged via F12 developer tools. The only thing it complained initially was missing doc type declaration on top of page, but even after adding doc type definition, problem still
    persists, makes no difference.
    I tested this on fresh install of Windows 2012R2 while testing our web application with the new IE11.
    I believe doing this on Windows 8.1 with IE11 will result in same bug/problem.
    Our web application uses a technique whereby it launches a popup window via call to window.open(), passing blank URL and specifying a name for the new window. It then does a from post targeting the name of new dialog.
    In IE11 this functionality has been broken and no longer works.
    Problem is that IE11, instead of posting form to the newly created dialog, it launches a new instance of IE and then loads the requested form in this new instance of IE, while the dialog launched via window.open() remains on screen and is empty. If user repeats
    launching same form post request (via button click for example), IE 11 keeps creating new empty dialogs and new IE instance for every form post executed. This totally breaks our application because we use many so called "wizards" that encapsulate
    specific functionality in separate web page launched in a popup window.
    Another related problem is that if a dialog is launched with window.open(), the java script code in the dialog can not target the parent frame that opened the dialog anymore. In our application, when a dialog is closed, it typically needs to trigger a refresh
    of a specific frame within the parent window (again targeted by name) to reflect saved/updated info that user entered in the popup dialog. The result is that we can't refresh the parent frame after the pop up dialog closes. Instead, IE11 launches
    a new instance of IE (not just a tab, but a whole new instance) and loads the parent frame in it.
    The problem seems to be caused by broken frame name targeting mechanism in IE11.
    Note that we force IE to compatibility mode 5, but even without specifying any compatibility, the problem remains.
    Typical java script to reproduce this is:
    <input type="button" onClick="Popup(this.form);" name="btn2" value="Popup Dialog">
    function Popup(f){
        window.open("","MyNewDialogName","width=200,height=150");
        f.action = "page3.asp";
        f.target = "MyNewDialogName";
        f.submit();
    Expected: IE11 should correctly post form to and load targeted page in the newly popped up dialog, without opening new IE instance and new tab. Repeatedly posting form to existing popup window should reuse that window, not keep on launching more popup windows
    and then more IE instances.
    Steps to reproduce the problem (include URL if applicable):
    URL with sample page: http://173.231.98.44/cgi/TestFolder/page2.asp
    1) Create page1.htm: <html><body>display "I'm in a popup window now ..."</body></html>
    2) Create page2.htm with a button and onclick() event calling function to open dialog, and do form POST targeting new dialog calling page1.htm, like below.
    <input type="button" onClick="Popup(this.form);" name="btn2" value="Popup Dialog"> function Popup(f){
        window.open("","MyNewDialogName","width=200,height=150");
        f.action = "page1.asp";
        f.target = "MyNewDialogName";
        f.submit();
    3) Open IE11, navigate to page2.htm, click the "Popup Dialog" dialog button. IE 11 will popup the new dialog, but then it will also launch new instance of IE11 and display the page1.htm in it, instead of in the popup dialog.
    Has anyone else encountered this problem?
    Any insight or help is appreciated.
    Regards
    Peter

    the default action of <input type="button" is submit. Note also that the default type of <button> elements is 'submit' also.
    add a return false to the onclick inline event handler (which constructs the form submit attribues) to cancel the default form.submit behavior.
    form elements have a target value with which you can specify the name window into which you want the form to open in.
    <form action="process.aspx" target="popup">
    you can use the window.open method with a query uri to achieve the same outcome.
    window.open('process.aspx?s=search+term&amp;foo=bar','popup',{features})
    the outcomes of all scripted windows are affected by
    your IE Popup blocker and tabbed browsing settings
    which in turn is affected by your IE Security zone settings (for popup blocking handling)
    and the settings of any third-party popup blocker you may have installed and enabled... it may not necessarily be visible on your browser toolbar.
    The first step in troubleshooting web browser issues is to test in no-addons mode.
    Use the Developer Tool to find out what documentMode the test page is opening in on your system. On Modal/Modeless popup windows use the f12 key to display the Developer tool positioned on the contentWindow.
    Use File>Properties to find out what IE Security zone it maps to... there is a security setting to prevent navigation into zones of lower integrity.
    Rob^_^

  • Can an swf movie be opened on a specific frame?

    When I call up an Flash-generated swf movie in its own
    browser window via a navigation bar button, it always open on its
    first frame. Is there a way to tell the browser in conjunction with
    the getURL command to open at a specific frame other than frame 1?
    I can't find an Actionscript code sample that allows this while
    using getURL. Or is there some other way -- e.g. appending the swf
    file with frame number in its HTML page in some way, using
    Javascript, FSCommand, etc?
    Jody

    Maybe this will help
    http://www.adobe.com/devnet/flash/articles/deep_linking.html

  • How link from html page to a specific frame in flash cs5 as3

    Hi!
    I'm kinda new around here. I am interested in knowing how to link from a specific html page to a specific frame in flash cs5 as3.
    I have a website that I originally began to design in flash but later started developing new pages for it in html. The flash part of it has several pages on different frames and I have created links from the flash part to the other html pages, but, I can only link the html pages back to the main flash home page, and not the other pages in the flash part of the website.
    I have read that in cs3 it was possible using the flashvars skip variable, but I don't know how to do it. I have not yet seen any working examples and I could not find any instructions / tutorials online for cs5.
    Can someone help here?

    add a query string, to the swf's embedding html, with variable/value indicating the frame you want to display in your swf.  add a javascript function to return the query string (or entire url), call the javascript function from flash using the externalinterface class.  and finally add code to your swf to parse the returned url or query string, parse it and then direct your timeline to the appropriate frame.

  • Linking to a specific frame from JSP page

    I am trying to link to site that has frames. I want to load a specific jsp in frame 3. Does anyone know how to pass the target and source values? I have been looking for tutorials unsuccessfully.

    You can not point to a specific frame ina document from an external document.Your best bet might be to pass the parameters using URL and on the recieving end write some javascript to parse the url adn if it has a parameter then process that else just load standard document.
    Khalid

  • Jumping to a specific frame in another movie

    I'm wondering how to jump to a specific frame in an external
    movie. I'm not using the loadmovie command so I don't think the
    _level command will work. I just have two swf movies playing on the
    same page. I need to have a button in Movie A when released will go
    to a certain frame in Movie B. Thanks!

    well this certainly should work if the code is on the main
    timeline, and there is nothing else. However when you say
    'scrubber' do you mean that your 'testing' the movie by pressing
    'enter' while in the IDE, so that you're actually 'seeing' the
    playhead move? If this is the case, yes, no actions will execute.
    To test the swf file, use Ctrl+Enter (or Command+Enter on Mac) to
    run an actual 'test'

  • Button link to a specific frame in time line

    Ok I have created my buttons and the content for the specific
    frames. I have named the button and given it an instance name. I
    have also given my specific frame a name and set that label type to
    Name.
    Whats the code for turning getting my button to link to a
    specific frame?
    I've also done the stop() code in each frame as I want it to
    stop at each frame until the button is clicked again.
    I have more than one button and each will link to a different
    frame.
    Thanks.

    I've duplicated an FLA with exactly the assets you have in
    the same places, with the code on the main timeline. And mine
    didn't work, just the same problem as you had. The solution I
    proposed above works, but it is not the only way (See #2 below).
    On Frame 1, select the UIScrollbar. if you look in the
    Parameters tab of your UIScrollbar component, you'll notice that
    the
    scrolltargetName refers to
    Instance_0. This is a default instance name assigned by the
    Flash compiler, because you did not give your dynamic textfield an
    instance, and your UIscollbar is referencing that. Now go to Frame
    4. You will find that your dynamic textfield has the same instance
    name, and the UIScrollbar is referencing the same instance. Problem
    is, you have more than one textfield on more than one frame using
    and referencing the same instance name, your UIScrollbars will get
    confused as to which textfield is actually "Instance_0". The moment
    you click to another frame, you've confused the UIScrollbar(s), so
    they never work again.
    The solution is simple.
    First, put a stop() action on the first frame, if you have
    not already done so, so your timeline stays put until you click on
    a button.
    Then you can solve the problem in one of two ways:
    Give your textfields different instance names, and make sure
    the
    scrolltargetName property of each UIScrollbar refers to its
    respective textfield.
    Or set the text dynamically, which after all is what a dynamic
    textfield is for. Have only one textfield/UIscrollbar combo, on the
    first frame, and place code on a keyframe for each section which
    changes the
    text or
    htmlText property of the textfield.
    That should work. It did on mine.

  • Linking to a specific frame from html?

    Hello all:
    Does anyone know if it is possible to have an html page that
    links to a swf file, but ALSO goes to a specific frame or label
    within that file? I'm trying to avoid having to start the Flash
    file from the very beginning, but I can't say that I've ever seen
    this done.
    Thanks,
    Wayne

    The simplest way:
    in the HTML you expand the two occurences of "movie.swf" (in
    the object and embed tag) to "movie.swf?jump=50", where "jump" is
    the variable name and "50" is the frame somewhere in the middle of
    your movie.swf that you want to start with.
    In the first frame of movie.swf you have actionscript
    if(this._framesloaded<jump) {
    this.gotoAndPlay(1)}
    else {
    this.gotoAndPlay(jump)}
    Of course, this doesn't check for error conditions and has
    other weaknesses, but I hope you get the point.
    Good luck
    Wolf

  • GotoAndPlay specific frame in external swf from main swf

    I have a main swf that loads 2 external swfs.
    I click on button to see content of external swf #1 and see stuff. I do something that causes external swf to show other stuff (i.e. not at beginning state)
    In the main swf I click on button to see content of external swf #2. External swf #1 content is made invisible and I see content of external swf stuff.
    NOW, if I click on button to take me back to see external swf #1, I see it's content in current state. I want to force it to start over again at frame #1 which will reset content.
    However, no matter what I try, I can't seem to control which frame to go to in external swf using gotoAndplay.
    Here is code in frame #1 of main swf to load external swfs:
    //load academic movie
    var swfLoader1:Loader = new Loader();
    container1.addChild(swfLoader1);
    var url1:URLRequest = new URLRequest("academic.swf");
    swfLoader1.load(url1);
    //load wisdom movie
    var swfLoader3:Loader = new Loader();
    container3.addChild(swfLoader3);
    var url3:URLRequest = new URLRequest("wisdom.swf");
    swfLoader3.load(url3);
    Here is code in frame 2 of main swf that checks button to see where to go in external swf:
    //academic button clicked
    function academicClick(event:MouseEvent){
       container3.alpha = 0;
       container3.visible = false;
       container1.visible = true;
       container1.gotoAndPlay(1); //this is where I am trying to force it to start at frame 1
       container1.alpha = 1;
    I don't want to reload the external movie to force it to start over.
    Any help would be much appreciated.

    You can easily control this by making the external swf to load with your movieclip, The below is the code snippet that clear on accessing the specific frame on external swf.
    //Loading clips content
    var ldr:Loader;
    var mcExt:MovieClip;
    //Loading
    loadswf("external.swf");
    function loadswf(tmp:String):void{
        unloadSwf();
        ldr= new Loader();
        ldr.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, progressListener);
        ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, swfLoaded);
        ldr.load(new URLRequest(tmp));
        function progressListener (e:ProgressEvent):void{
            ploader.visible=true;
        function swfLoaded(e:Event):void {
            mcExt = e.target.content as MovieClip;
            ldr.contentLoaderInfo.removeEventListener(Event.COMPLETE, swfLoaded);
            mcExt.addEventListener(Event.ENTER_FRAME,onEnterfn);
            ploader.visible=false;
            addChild(mcExt);
    //UnLoading
    function unloadSwf():void{
        if (ldr!=null){
            ldr.unloadAndStop();
            removeChild(mcExt);
            mcExt=null;
    //Intervals (The part you work on the specific frame within the external swf
    function onEnterfn(e:Event):void{
        var num:int=mcExt.currentFrame;
        if (num==1) mcExt.play();
        if (num==9) {
                mcExt.skipmc.addEventListener(MouseEvent.CLICK,skipfn);
                function skipfn(e:MouseEvent):void{
                    mcExt.stop();
                    mcExt.removeEventListener(Event.ENTER_FRAME,onEnterfn);
                    gotoAndStop("help");
        if (num==mcExt.totalFrames){
            mcExt.removeEventListener(Event.ENTER_FRAME,onEnterfn);
            gotoAndStop("help");
    hope it solve

  • Print Specific Frames and Dynamic XML content

    Hello, I am trying to print specific frames of my Flash movie
    with the dynamic text loaded from an XML file. The code below only
    prints the current frame I am on and does not print the XML text.
    The dataOK that is commented out is a function I have before that
    loads the XML content. The XML content is loaded to dynamic text
    boxes. Any help on this would be greatly appreciated.

    I am still having difficulty loading the XML data and the
    frameNum parameter does not seem to work. Argghhhh....
    function printTut(myevent:MouseEvent):void{
    var myPrintJob:PrintJob = new PrintJob();
    var mySprite:Sprite = new Sprite();
    var printArea:Rectangle = null;
    var options:PrintJobOptions = null;
    var frameNum:int = 2;
    mySprite.addChild(stage);
    mySprite.rotation=90;
    mySprite.scaleY=.80;
    mySprite.scaleX=.80;
    myPrintJob.start();
    myPrintJob.addPage(mySprite,printArea,options,frameNum);
    myPrintJob.send();
    print_btn.addEventListener(MouseEvent.CLICK,printTut);

  • Motion 3 Crashing at specific frame - only in Best Quality setting!

    Hello everyone,
    I've got several Motion projects that show the same problem:
    The project behaves and exports fine as long as I don't set the Render Quality to "Best". When I set the Quality to "Best", Motion will always crash at a specific frame (not the same frame in different projects, but always the same frame for a specific project). E.g. Motion exports the clip fine (Image Sequence or Quicktime movie) up to the problematic frame. When it reaches that frame it simply crashes. If I check that frame in Motion, Motion crashes instantly if I have the Render Quality set to Best. If I set it to anything else, it shows the frame without problems.
    This behaviour is the same on my MacBookPro 2 GHz, 2 GB Ram as on a G5 Dual 2 GHz, 3 GB Ram.
    I hope anyone has an idea how to fix this, I need to render those clips!
    Thanks in advance!
    Bjoern

    No one at all?
    That's too bad. I can't imagine that I'm the only one having this problem.
    I sure hope that Apple releases an update to Motion that fixes the numerous bugs.

  • Using Flach CS4 and action script 2.0 how do I advance to a specific frame of the main timeline when a movie clip instance come to the end of its timeline?

    Using Flach CS4 and action script 2.0 how do I advance to a specific frame of the main timeline when a movie clip instance come to the end of its timeline?

    code on the last frame of your movieclip instance:
    _root.gotoAndStop('whatever_frame');  // will work unless this swf is loaded into another swf.  in that situation, you should use a relative path to the main timeline (eg,  _parent or _parent._parent etc).

  • Selecting a random frame in another scene

    I have an app I'm creating with Flash CS5.5 with 42 different short stories in it.  It has 2 scenes.  Scene 1 is the opening and contents menu to access the stories.  Scene 2 contains the 42 stories.
    In scene one, I have a button that I want to be able to pick a random story so it would need to pick a random frame between 1 and 42 in scene 2.  I have seen some code in here that will pick a random frame when you open the program, but I don't know how to tie it to a button or pick a random frame in another scene.  Any ideas on how this is done?
    Thanks!

    I don't understand why, but it's not working properly for some reason.  I have only one scene now and the 42 stories ended up being in frames 88-139.  When I click the random button the first time, it seems to work ok.  It sometimes works a 2nd or 3rd time, but it eventually gets to the last story and it won't do anything after that.  I think it's going past the last frame of the timeline so the buttons no longer work after that.
    There is a randomizing button on every frame except for frame 1.
    This is the code I'm using for it with the first randomizing button located on frame 2:
    Random02.addEventListener(MouseEvent.CLICK, gotoF02);
    function gotoF02(e:Event):void{
    this.gotoAndStop(88+Math.floor(this.scenes[0].numFrames*Math.random()), this.scenes[0].name)
    After frame 2, the button changes to Random03, 04, etc. and the function changes to gotoF03, 04, etc.
    Any ideas of what is going wrong?
    Thanks!

  • Can you have a button play a specific frame in a different Edge Animate page?

    I'd like to create a movie that can open other HTML files and go to a specific frame within those other pages. Is there any way to handle that inside of Edge Animate?

    Thanks for the suggestion, but I'm looking for something a little different.
    I'm looking to figure out a way to pass along some information from one movie to another.
    For example. If I have a page (Movie1.html) that has Button A, Button B and Button C. Is there a way for me to open a different page (Movie2.html) AND point to a different frame based on what they clicked in Movie1.html?
    So if they click Button A, it will open Movie2.html and go to frame label "IntroSection"
    But if they click Button B, it will still open up Movie2.html, but this time it would jump to the label "AboutUs"
    And if they click Button C, it will open up Movie2.html, it would jump to the label "End"
    The idea is to have a few different files, but be able to point to specific frames or labels within an external movie.
    Thanks!
    Jeff

Maybe you are looking for

  • Two Data Objects is one too much

    I got a field in a database named 'Date'. Now i want to get the date and formate it. For both operations i need the packages java.sql (for database) and java.text.SimpledateFormatter (to formate the date). Now i get the errror message that java don't

  • I have music on my iPhone 5 that, when i connect it to the computer, does not show up in my itunes library. How do i get that music in my library?? Please help!

    when i plug my iphone 5 into the computer, some music on my phone is not in my itunes library. How can i get this music in my library?!?! Please help!

  • Having problem with setting variable on a textfield

    I'm using createTextField to create a textfield. I have also created a input textfield with a variable called textline1 (I don't create the inputfield with as). I want to display the letters in the created textfiled that I'm typing in the input field

  • Webflow problem Urgent

    Hi, I'm trying to create my first simple webflow whcih will take the user to yahoo.html /hotmail.html depending on the link the user clicks.This is what i had done : 1. Create a new webApplication . i can access the default page by giving http://port

  • As 2 to as 3

    hello,,I have a trouble,, I want to make an interactive media simulation,,in as 2 I can, but to change the script in as 3 I don't know,,could you help me please to change this script into as3 Frame 1 var x0:Number; var v0:Number; var a:Number; var t: