[Cp6] Execute action on a specific frame (kind of "onAppear" trigger)

Hello,
I would like an script to be executed without any user interaction on a particular frame (just to set a variable with that particular frame number).
Ideally, I would put the script on an object that appears at this frame and it would be executed when the object appears.
I've go buttons appearing on the final frames of this slide and I need to return back to this particular frame after the buttons have sent me elsewhere.
I know I could set the value on a script for each button. I know I could maybe compute the frame number but the "I'm here and this is my frame number" solution is so straightformward !
Any idea how to achieve this ?
Thanks in advance !
PJ

The only way I know to trigger an action that way is with the time based actions widget, created by Jim Leichliter: http://captivatedev.com/2012/09/26/adobe-captivate-6-0-free-widget-time-based-actions/
Beware: only compatible with SWF output.
Lilybiri

Similar Messages

  • 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).

  • Is it possible to load an external swf at a specific frame?

    Hey! I've got a flash file which acts as the main menu for a
    program I'm developing. Everything works fine from the main menu
    however when you click to return to the main menu the whole main
    menu file reloads. Is it possible to use loadMovieNum( ) to go to a
    specific frame within the main swf file? If not, is there a way to
    do this?
    Here's the button code I'm using now:
    on (release) {
    unloadMovieNum(0); //unloads the current movie so we can
    reload the main menu
    loadMovieNum("DemoMainMenu.swf", 0); //reloads the main menu
    Thank you for whatever help you can provide! :)

    mcommini wrote:
    > Hey! I've got a flash file which acts as the main menu
    for a program I'm
    > developing. Everything works fine from the main menu
    however when you click to
    > return to the main menu the whole main menu file
    reloads. Is it possible to
    > use loadMovieNum( ) to go to a specific frame within the
    main swf file? If
    > not, is there a way to do this?
    First let me clarify one thing with you. Level zero is the
    main level on the flash
    player. By loading things in level zero you will remove
    current content and replace
    it with the new one. This is not a good idea because it works
    like purge, clears the
    player and from there on you can't maintain any functionality
    unless you reload the
    whole html document over again. Also, do not unload and load
    in the same time in the
    same level. Flash can hold single SWF per level, once you
    load content, whatever previously
    loaded will be automatically replaced, so just the loadMovie
    action and you all set.
    Good practice is to have the main level (zero) an empty base
    and than load and unload
    things in above levels, 1 and so on...
    > Here's the button code I'm using now:
    > on (release) {
    > unloadMovieNum(0); //unloads the current movie so we can
    reload the main menu
    > loadMovieNum("DemoMainMenu.swf", 0); //reloads the main
    menu
    > }
    >
    In regard to the load and go to. Yes it is possible but no
    matter what frame you want to
    go to,you need to load the whole movie first. I will come
    back to that in a second.
    While you execute the loadMovie action, you can set up a
    variable, for example:
    loadMovieNum("file.swf", 1);
    Variable="mcommini_01";
    Than in the loaded movie you have preloader which makes sure
    that the movie is loaded before
    playing and once done loading, make it jump to frame which
    has IF ELSE condition in some kind
    of loop, using setInterval or Enterframe. That condition
    checks for the variable value and based
    on it proceed to particular frame.
    That's why I told you not to clear level zero, if you set
    variable and load movie in that level
    in the same time, all the information will be gone and you
    have totally no reference point to
    get the variable from.
    You could as well use shared object which is native form of
    Flash's cookies. Write SOL file into
    user drive temp folder, than read it from the other file and
    go to frame based on the given value.
    Best Regards
    Urami
    Beauty is in the eye of the beer holder...
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • 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^_^

  • 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'

  • 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.

  • 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.

  • Disable Auto Orientation only in a specific frame!

    Hi there! 
    I appreciate if you please guide me with your experience in Mobile App design.
    My App contains 5 frames of data (movieclips), that each frame has 2 designs:
    1- Stand mode design    (portrait)
    2- Wide mode design     (landscape)
    So far it works great and I have published my App both on Google Play and Apple Store.
    Frames structure is as follows:
    frame   1            Loads External Data
    frames 2-6         Each frame contains 1 MovieClip designed based on mobile "Stand mode"
    frames 22-26     Each frame contains 1 MovieClip designed based on mobile "Wide mode"
    (Example: contents of frame 2 and 22 are the same, also 3 & 23 ... 6 & 26)
    (frame 2 is STAND design, 22 is WIDE design, and so on)
    In "Air Setting Dialoge", I have selected aspect ratio "Auto" and "Auto orientation".
    And I have this code in Frame 1 to do the rotation trick:
    stage.addEventListener(Event.RESIZE, resizeLayout);
    function resizeLayout(e:Event):void
                   setPosition();
    function setPosition():void
            //Phone turned from "Wide" to "Stand"
                   if (stage.stageWidth < stage.stageHeight)
                                  //App is now in "Wide" mode - means between frame 22 to 26
                                  if (currentFrame>20) 
                                                 //go to the same position of App but in "Stand" mode
                                                 gotoAndStop(currentFrame - 20);
                   else
                                  //Phone turned from "Stand" to "Wide"
                                  if (currentFrame<20)
                        //go to the same position of App but in "Wide" mode 
                         gotoAndStop(currentFrame + 20);
    Well, and finally my question:
    1- Is this way I have programed my App to rotate, a proper approach?!
          (in this way I can easily arrange objects on screen and also position them based on math calculations)
    2- If I want to disable auto rotation only when app reaches specific frames, what should I do??
       (for example I want the app Not to auto oriente in Frame 6 and 26., but it rotates in other frames)
    Hope it was not confusing and I cant wait to check out your valuable guidance!
    All the best and thanks a lot for your time.

    Hi there all!!
    Still I have no answer for my question No1, BUT I could find my answer to the 2nd question and here it is for your kind notice:
    Special thanks to Daniel Dura
    http://www.adobe.com/devnet/flash/articles/screen_orientation_apis.html
    I just added this code to my first Frame:
    stage.addEventListener(StageOrientationEvent.ORIENTATION_CHANGING, onOrientationChanging);
    function onOrientationChanging(event:StageOrientationEvent ):void
              if (currentFrame == 6 || currentFrame == 26)
                        event.preventDefault();

  • How to create specific Frames

    Hi,
    Using Style and Create Frame I know but some specific frame How to create any one have Idea Please Share.
    Please find the Attached file have Some specific Frame types.
    Thanks
    Dhiraj

    You want to know how to make those specific frames by hand?
    You can find lots with just straight filmstrip tutorials and even some film strip templates...probably images of real ones for that matter... that can be used if you do a Google search. Same goes for the other frames.
    The tutorial I have linked below is using Photoshop. With the exception of doing the transform<warp step, everything can be done using elements. There are other tutorials that build a more detailed filmstrip but  I like this one because it shows how to make a wavy filmstrip.
    http://www.youtube.com/watch?v=ZhLbGleU-iY&feature=related
    Since transform warp isn't available in Photoshop Elements, you'll have to use the displacement filter (filter<distort<displace)  to make the filmstrip wave if desired.
    Above is the displacement map, I made to make my film strip wave. This was made by filling a layer with black and painting a couple of white lines with using the brush tool with a soft wide tip. I duplicated this layer and saved it as a PSD on my desktop.  Displacement maps must be in PSD format. I used this map along with these settings: 0 hoizontal; 50 vertical; stretch to fit; repeat. Note: You must have soft edges to get a wave effect with this filter. If you use hard edges this filter will cut instead of bend.
    Filmstrip images are some CG art I created.
    Frame made using the tutorial.
    Warped with displacement filter using the displacement map of two blurred lines.
    Added a perspective by using free transform as in the video along with a hand made drop shadow to ground the filmstrip. Background was also cropped.
    Final step was to simplify (rasterize) the gradient fill layer that I used over my background layer. I  added a little noise with Add<Noise to my simpified (rasterized) gradient fill layer to get rid of the gradient banding.
    Playing with a different perspective angle because it's kind of fun. Some of the shadow is lightly masked to make it fade a bit where the strip rises.

  • Opening new page to a Specific frame

    I am still learning Action Script but I have a problem with
    writing the full script for combing navigate to new URL and
    gotoAndPlay. More specifically what I want to do is use a button
    which when clicked will open a new page and then start playing my
    Flash movie at a certain frame on the Timeline. I have used buttons
    to navigate to a new URL and used the gotoAndPlay ( ) ; command to
    play a certain frame, both have been successful but when I combine
    the two I run into trouble. What happens is the new page loads
    correctly and goes to the specific frame but then opens the browser
    in a new window with the movie playing from the beginning. The
    correct sequence within the correct Webpage is playing but only if
    I close the current page, in other words what I am trying to
    achieve is running but in the background.
    I have attached some of the code I have tried if that helps.
    Many Thanks.

    How extensive are the corresponding text changes on the HTML
    page? How many HTML pages are there? The reason I am asking is that
    if HTML content is not big - your best bet may be to load all the
    HTML content at once and hide/unhide parts of it based on the
    commands that come from Flash.
    But if you are sticking to your guns:
    Your use case, as you described it, is:
    1. user clicks a button on a column
    2. the column clicked moves across the movie
    3. the movie starts to play a different section
    4. the text on the web page changes to match the new movie
    sequence.
    There is a problem here - No 4 requires browser reloading. I
    believe user experience will not be all that good because of the
    visual break (new html page loading) after all the animation
    sequence after the click occurs. Perhaps a better experience can
    be:
    click --> load appropriate page --> perform animation
    sequence.
    As for the variables that you add to the request,
    conceptually it is not different from appending url variables to
    the url string:
    You can do it this way:
    var url:String =
    "www.domain.com/mypage.html?myVariable1=something&myVariable2=somethingElse";
    Or you can do it this way:
    ar url:String = "www.domain.com/mypage.html";
    var variables:URLVariables = new URLVariables();
    variables.myVariable1 = "something";
    variables.myVariable2 = "somethingElse";
    var request:URLRequest = new URLRequest(url);
    request.data = variables;
    I hope you see the similarity. The result is the same - Flash
    sends request with the variables.
    You may perceive the second way as more cumbersome but there
    are several advantages of doing it this way. One of the most
    important is that Flash automatically makes variables values url
    formatted which is critical when you send strings with special
    characters. In addition, when you send many variables - it is much
    more manageable than keeping track of the variable and making
    assignments in one-line url string.
    How you deal with it further depends on how good you are with
    HTML and JavaScript OR server side processing.
    Say you need to start your Flash movie from a certain frame
    (say No 50). You may want to:
    1. Load HTML page with a url that contains a frame number:
    variables.startframe = 50;
    2. You need to read this variable with JavaScript and write
    an appropriate embed tag. There are several ways to do that. Read
    about FlashVars. It could be (in the embed tag):
    src="myMovie.swf?startframe=50" where 50 comes from browser
    location string.
    3. Inside Flash you will utilize LoaderInfo.parameters method
    to extract the value of the variable startframe.
    4. Write code that will perform and animation based on this
    variable/parameter.
    I guess a question is "How good are you at HTML and
    JavaScript?"

  • 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
    >

  • How to execute Actions programmatically in Acrobat X?

    Hi,
    I need to create and execute Actions programmatically. Is this possible?
    Can anyone provide me the documentation for this?
    Thanks.

    I don't think either of these actions is supported. You can run the individual steps offered by action processors using the AVCommand interface, but the packaging up of AVCommands into batch processes or actions is a non-automatable UI task.

  • 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

  • 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

  • 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

Maybe you are looking for

  • Upgraded to 5.0 and now more fonts aren't showing up correctly

    I had a previous problem with a colon not appearing correctly on websites and instead, I got FF 1A. Initially it looked like FF IR but FF 1A is the unicode or UTF font for that being it is a wider colon than normal. I downloaded every font set I coul

  • Formatting Totals in OBIEE 11g

    Hi, we have a requirement to format the totals of a table in obiee 11g. When I format the totals, the formatting selections I made is not applied for all the entire totals section. If the table has more than one dimension values in it, the formatting

  • Turbo Overclock with MSI P67-GD55

    Hey, I'm trying to overclock my 2500K, but I don't want it to run always on the OC Clockrate. Now I read it should be possible to change the Turbo Multiplier so the OC only applies when heavy CPU Power is needed. When I check my BIOS and go to Overcl

  • HT1977 asking to authorized and deauthorized my computer to be accessed, and why?

    I am very much concern asking my Iphone 5C to authorized and deauthorized my computer to be accessed. I bought the device for my concerned in order to be concievable enjoying all programs, sofwares and etc. on the above-mentioned cellphone the follow

  • Keynote 09 crashes when I try to export in pdf after update. Solution?

    The title says everything. Worked perfectly before OS update. Anyone has the same problem? Anyone has a solution? Thank you Federico