How to detect if the timeline plays front or rear

Hello

I have an - i - guess enough exotic - problem or request, and I'm a noob in javascript, so maybe this is kind of silly to the pros...

I'm building a chronology that the user navigates to a rear with sweeping gestures. This chronology combines text, video a grafic-animations that are synchronized. the animations are in a different timeline (called ""grafik_kap_1 "") that is controlled with triggers. I decided to build this structure, this project is less comoplicated and my teammates are able to edit the content. So far so good.

I want the timeline "'grafik_kap_1 ' to be played in different labels - the value by defect-timeline is played forwards or backwards: "

' - If the trigger is played forwards, it should play the timeline ""grafik_kap_1 "label"grafik_kap_1_1 '.

-If its played back that she must play the scenario "'grafik_kap_1 ' back of the label 'grafik_kap_1_1_back'. "

My solution is as follows: I got the javascript code to request the position on the timeline "grafik_kap_1" and decide to play in the way I intended. This is the code I found here (Edge animate, create 'Next' and 'Back' buttons that set current position, thx to @obliviousjd( ), and which I edited to work in my project:

var pos = sym.getSymbol("grafik_kap_1").getPosition)

If (pos < = 0010) {}

sym.getSymbol("grafik_kap_1").play ("grafik_kap_1_1");

}

Else if (pos > = 0520) {}

sym.getSymbol("grafik_kap_1").playReverse ("grafik_kap_1_1_back");

}

It works very well, but to change positions on each trigger (he's going to be in the final draft) is a bit complicated to my teammates, because they have a low level of skills on the edge.

My qeuestion is: is there a way to detect the direction of play value by default-chronology (sym.play(1000) or sym.playReverse) rather than in the position?
It would be a more general solution and my teammates just had to change the labels...

Would be great, if somone would have a solution...!

Thank you very much!

BeBo

{if (sym.isPlayDirectionReverse ())}

reverse

}

else {}

move forward

}

Tags: Edge Animate

Similar Questions

  • How can I access the 'now playing' when first opening the music app?

    How can I access the 'now playing' when first opening the music app? There is no tab or option like in previous iOS, would be in the upper right

    When the music is playing, slide up from the bottom of the home screen to see the center of control and current reading is also there.

  • How to detect if the page is a reload or not?

    I have a form in the cfm page if the user submits the form, I don't want to go to another page. I want to reload the page and I'll capture all values and send the data in this way. However, I need to hide the form once the user submits the form. So, how I detect if the page is a reload (after is submitted) or it's the first time it is been charged?

    You can manage only two ways.  One, add a hidden field to the form that passes a value, then check if the value exists in the URL/FORM variables (if it exists, the page is reloaded by sending the form - if it does exist, it's the first load of the page).

    Perhaps a better approach would be to manage the form via an AJAX request is sent, and then hide the form if the AJAX request is successful.  This all is possible using JavaScript.  The advantage is that the user leaves the page never actually or it recharges.

  • I have a problem with corruption.  How can I change the timeline on an existing project.  Each image is moved about 2.5 min.;  My preferences are for 180 frames.  It does not seem to consider one after the fact.  Is it possible to copy the entire thing on

    I am new to use the forums.  How to start a discussion?  The ICO next which is grayed out.

    I have a problem with corruption.  How can I change the timeline on an existing project.  Each image is moved about 2.5 min.;  My preferences are for 180 frames.  It does not seem to consider one after the fact.  Is it possible to copy the whole thing and put it in a new, m not corrupted project?

    Hello and welcome.

    I feel for you after reading your story, however, it that are supposed to do? It is a forum for Dreamweaver and to my knowledge, Dreamweaver has no functionality called the chronology.

    Could you please explain the problem so that we can understand?

  • The green arrows front and rear under file and Edition disappeared after I downloaded the new Firefox toolbar. How to recover?

    The green arrows to page forward or backward at the top left under the file and edit disappeared after I downloaded the new toolbar for Firefox (for 3.6) and was replaced by the most visited, getting started and last new icons, which I have little use for. How to bring back the original toolbar?

    If the Navigation toolbar is not be displayed? See below.

    Don't see the menu bar not (File, Edit, View, history, Favorites, tools, help)?
    Turn on/off the menu bar is a new feature in version 3.6.
    (~ ~ Red: Linux and OSX see ~ ~: what happened to the file, edit and view menus? )
    Windows Method 1. Press and hold the key and press the letters of the following in this exact order: V T M then release the key
    Windows method 2 Press the F10 key, while the Menu bar, choose "view > toolbars", click on 'Menu Bar' so that a check mark next to the Menu bar
    Method Windows 3 Press and release the button. The Menu bar is displayed; then choose ~ ~ red: V ~ ~ iew > ~ ~ red: T ~ ~ oolbars and click on ~ ~ Red: M ~ ~ enu Bar as well as a checkbox is placed next to Menu bar
    The menu bar should now be displayed permanently, unless you turn it off again using view > toolbars. Check = not displayed, NO check mark is not displayed.
    See:

    http://support.mozilla.com/en-US/kb/Menu+bar+is+missing
    

    http://KB.mozillazine.org/Toolbar_customization#Restoring_missing_menu_or_other_toolbars
    Navigation, bar toolbar bookmarks and other toolbars under view > toolbars. By clicking on one of them will place a check mark (display) or remove the check mark (not shown).
    To display the status bar, view, and then click status bar to place a check mark (display) or remove the check mark (not shown).
    Mode full screen
    http://KB.mozillazine.org/netbooks#Full_screen

    See also:
    Back and front toolbar buttons or others are missing
    Customize controls, buttons, and Firefox toolbars
    How to customize the toolbar

  • How can I browse the timeline with my mouse wheel?

    I usually have 4 tracks in my calendar so I don't have to vertical scrolling. How can I adjust my mouse wheel to scroll horizontally through my calendar?

    In preferences/general, there is an option for scrolling the timeline.

    If you hold down the CTRL key while scrolling to happen from vertical to horizontal or v.v

  • How can I position the timeline 0... ?

    Hello:

    In 'bienvenida_sym' symbol, I have a button called "entrante_btn", when I click on it to run this code:

    sym.getComposition () .getStage ().$("entrante_sym").play ();


    the first click, the animation works well, but if I go back and then click on "entrante_btn" again him

    animation begins on the last point of chronology and not in the timeline to start.

    This code does work and I don't know why...

    sym.getComposition () .getStage ().$("entrante_sym").play (0);

    Hello

    Sym calls the current symbol.

    SYM. Play() call the current symbol and play from the current position.

    SYM. Play (0) called the current symbol and play from the beginning (zero seconds).

    sym.getComposition () .getStage () calls the root of your composition.

    sym.getComposition () .getStage () .play (0) calls the main storyline and the game from the beginning.

    sym.getComposition () .getStage ().$("entrante_sym").play () makes no sense because you do not call a symbol using the getSymbol("symbolName") function.

    sym.getComposition () .getStage ().$("entrante_sym").play (0) makes no sense because you do not call a symbol using getSymbol ("symbolName");

    Your solution?

    You can play a symbol:

    (1) between the current ==> sym.play(1000) symbol (0);

    (2) to another symbol ==> symbol. getSymbol ("entrante_sym"). play (0) ;

    (3) from nested ==> sym symbols. getSymbol ("bienvenida_sym"). getSymbol ("entrante_sym"). play (0) ;

    (4) from the root ==> () .getStage () sym.getComposition. getSymbol ("entrante_sym"). play (0) ;

  • How to detect if the cursor is no longer within the input text area

    Hello.

    My question today is:

    How to detect (in AS3) if the cursor is no longer within the input text area?

    I tried to mouse events, events, events in text but without success.

    Any ideas?

    Concerning

    If you have a textfield of entry with the instance name it '...

    it.addEventListener (FocusEvent.FOCUS_OUT, focusOutHandler);

    function focusOutHandler(evt:FocusEvent):void {}
    trace (evt. Target.Name);
    }

  • How to detect if the Android app is the reconditioned Blackberry version?

    My application can be easily repackaged for blackberry devices using its web portal.

    http://developer.BlackBerry.com/Android/documentation/using_the_bb_packager_1873331_11.html

    So, I can turn my .apk file in a .bar file that users can install on their devices BB10.

    My concern now would be to slightly change the user interface or disable certain features (invoicing app, Google Maps, some intentions) about the operating system.

    I should like, for example, to display a button of the card on legit Android devices and remove this button on the port of Blackberry. I also have some preferences related to the widget that have no reason to appear on a device BB10

    You know an ideal way to detect if the app is the one refurbished or the original apk?

    My guess would be to use the Build information, but I'm pretty sure that there is a better way to do this.

    Try:

        public static boolean isBlackBerry() {
            return java.lang.System.getProperty("os.name").equals("qnx");
        }
    
  • How do I get the xp play sounds off audio Panel frony only and not by the front and rear at the same time

    When I plug my headphones I still get sound of my stage monitors

    Hi neil Wallace.

    · Which is the default audio device on the computer?

    Try changing the audio device by default and to verify the results:

    a. click on start

    b. Control Panel

    c. Select ' sounds and Audio devices, and then click the "Audio" tab

    d. under audio playback

    e. highlight the default device

    With regard to:

    Samhrutha G S - Microsoft technical support.

  • How to detect when the user clicked 2 video clips?

    Hello:

    I would like to know how can I detect when 2 video clips were clicked (order irregardles).

    What I have is this:

    In my main script, I have 2 independent clips (mc_him and mc_her) each in its own layer which, when clicked, playing an internal animation without moving my head of main reading anywhere. What I do is, once both a click (like I said, it doesen't matter in what order), a button that sends me into another section of my film should appear. He really doesen't matter if the button activated with alpha or sending me to a specific framework where all my button. What I detect is two clicks for the button.

    How can I achieve this?

    Thank you very much.

    {btn1.onRelease = Function ()}

    No matter what

    This.Clicked = true;

    checkBothClickedF();

    }

    {btn2.onRelease = Function ()}

    No matter what

    This.Clicked = true;

    checkBothClickedF();

    }

    function checkBothClickedF (): Void {}

    {if (btn1. Clicked & btn2. Clicked)}

    do something. the two clicked

    reset the two clicked on properties?

    }

    }

  • USB-6525 NiDaqmx how to detect where the device interrupts the communication

    This could be considered a more generic question for NiDaqmx, but I write a custom control for internal use with the USB-6525 and possibly other devices of i/o using c#.  I use DigitalChangeDetectionEvent to warn me when an entry has changed and everything seems to work very well.  In an effort to be complete, I decided to unplug the USB cable and see the result and found that no error has been detected until I tried a writing output.  This is not acceptable because under normal conditions abstraction entry begins a process that will change output - given that admission never happens, the system is basically hung.

    I tried many things and have spent more time on what I want to admit so I would like to hear suggestions on how to address this problem.  Here are my attempts that I am not satisfied:

    (1) periodically switch (pulse) output that allows to detect the problem, but I may not be an available exit, so this isn't a good situation.

    (2) periodically trying to read the input byte with the same entry workflow, this does not work because I believe that the other player is still active with the DigitalChangeDetectionEvent.

    (3) attempted to take the message of Windows to change hardware, but seems too complex.

    (4) I read on the guard dog, but not sure that it is available on the box USB-6525.  So before I start with this I'd hear rather suggestions of others with more experience.

    Any suggestions please?

    THX, Ed

    Hi IntegroEd,

    Those are all very innovative way to potentially address the problem, and I'm sorry you haven't seen success with them.  Fortunately, the typical way to capture a break between a device of data acquisition and monitoring system is indeed a timer, and the 6525 has the innate ability to use the feature, as seen on page 5 of the user manual.  I suggest you go that route, if another user does not post a peripheral solution specific to your case.  This is a documentation on the implementation of the monitoring-

    http://www.NI.com/product-documentation/14616/en/

  • How to detect if the NI GPIB drivers are not loaded

    Hello

    I use VS2008 c# to control an instrument based GPIB, using .NET

    The software should also work on a PC that does not have the GPIB drivers loaded in spectator mode.

    So, how can I detect this.

    I have NationalInstruments.NI4882 specified as a reference and I distribute this dll with my package.

    The software works fine on a PC that uses drivers loaded, but hangs on a PC without the NI GPIB software installed.

    Specification of a problem with NationalInstruments.common. I tried that copy on a target computer, but is always a mistake.

    All I have to do is detect if it is not there and then run in spectator mode.

    David

    Hi David,

    You should look for the existence of HKEY_LOCAL_MACHINE > SOFTWARE > National Instruments > NOR-488, 2.   If it is, this means that the drivers must be installed.

    Kind regards

    Thomas Clark

  • How do I stop the auto play music when you open media player

    When I opened my music from Media Player automatically starts playing and I do not know how to stop

    Hello

    (1) have you made changes before the start of this issue?

    (2) what version of Windows Media Player do you use?

    (3) is the specific question of particular songs?

    How to determine the version of Windows Media Player

    http://support.Microsoft.com/kb/190990

    Please update the computer by using windows update and check if it solves the problem.

    Let us know the results.

  • How to detect if the message sent or received

    Hello

    I need to detect if an e-mail message is sent. I tried folder listener do and tried messagefolder.getFolderType () is Folder.SENT, but it does not work as I am unable to find.

    How to get it?

    Concerning

    Good point.  I should have told check the status.  Just to explain, here is an example of method that should delete when the message is transmitted.

    public void changed (MessageEvent e) {}

    try {}
    Message m = e.getMessage ();
    If (m.getStatus () == Message.Status.TX_SENT) {}
    Delete this...
    File f = m.getFolder ();
    f.deleteMessage (m);
    MessageToDelete.deleteMessageToDeleteForMessage (m);
    }
    } catch (Exception ex) {}
    Depending on your application

    }
    }

Maybe you are looking for

  • Satellite P200D - error value package added on Windows 7 64 bit

    Satellite P200D-12F (PSPBQE) and Windows 7 64 bitPVAT ERROR! I can't find a solution to this problem on the internet. can someone please contact Toshiba suppliers on this subject because it's really stupid?Answer me! PLZ! Help

  • How to create a custom control for a button where the look apply to everyone else but not the Boolean text?

    Hi all I would like to create a button custom as a master, so that if I change the look of the master all other buttons are changed. I did it with a custom control, such as a 'type strict def' otherwise the look will change , BUT if I do this as a st

  • Table empty after I save/close/reopen project

    I run a VI Script that analyzes a text file and creates multiple control/indicator, (among others) accompanied by a table that contains all the information, I care for each indicator/control (i.e. its name, address, mask bits, etc.).  This table is a

  • I don't think that this just happened

    I have x 200 tablet running windows vista. I was typing away in MS word. Suddenly MS Word is not responding. It is for me a normal experience now with vista and programs in general. I was hoping word had created a recovery file and I feared the worst

  • Updates to Windows Vista after a complete reformat

    Hi, I reformatted recently my husband old laptop to give to my youngest daughter. Everything fine until I start the Windows updates. There are 93 of them altogether and looking at the dates there are 25 of 2007, about 30 in the rest of 2009 and 2008.