How to detect end of a wallaby converted flash animation?

Hi let's say i want to put an alert box in the end of the animation in this html:
http://staging.comwerks.net/terrence/html-cover/animation-cover.html
where should i put the alert("end")??
i tried at serveral places many places they are failed. i need a single entry point when the entire animation is completed. help!: D

Great question.
The first step to figuring out the answer is understanding both the Wallaby HTML structure and CSS3. I highly suggest taking a look at the various tutorials we have at http://labs.adobe.com/wiki/index.php/Wallaby:Technical_Tips.
What you really want here is to add an event listener for the 'webkitAnimationEnd' event.
If you look at the Wallaby structure of your output, you'll notice that each of the Ponds tubes are contained in a
with the wlby_1 class attached. Looking at the CSS file you see that wlby_1 defines a -webkit-animation-duration of 2.04167s. This is the total length of your animation. You should also notice that for each
associated with a tube there is a
with the display style of 'none' (i.e. the ones with wlby_5, wlby_9, wlby_11, and wlby_13). These are used to get the delays before the various tubes come onto the stage.
You might think to add a listener on 'wlby_1' but that would end up getting called at the end of the animation of each tube. What you really want in this case is to get a hit only on your last tube. From looking at your animation this is obviously the blue tube which is animated by the wlby_14 class.
So, what you want is to add a listener in the  section of your HTML like this:
$('.wlby_14').each(function()
{ this.addEventListener('webkitAnimationEnd', function(evt) { alert('end'); }) });
Alternatively you could modify the wlby_14 div to have an identifier (i.e. id="last") and then do:
last.addEventListener('webkitAnimationEnd', function(evt) { alert('end'); });
I've tested out both of these locally with your output and they worked as expected.

Similar Messages

  • How do I make multiple buttons in my flash animation?

    I am new to flash, and I have no training in it whatsoever. I
    created a flash animation with flash CS3 for my photography
    website, and I want to link each of the images to different
    galleries on my site. When I created my first button it worked
    fine, but when I try to create actions to link more than one image
    as a button, keep getting an error that says "1021: Duplicate
    function definition." How do I make each image as a separate
    button?
    I used the video of this tutorial as my guide to learn how to
    create a button:
    http://www.adobe.com/designcenter/flash/articles/flacs3it_firstflash_pt1.html
    Also, when I run the animation to test it, it loops, and I
    don't want it to loop. How do I stop it from looping?

    I used the method shown in the tutorial I mentioned to create
    it (created a new layer for the button, selected the area of the
    image for the button,used modify -> convert to symbol
    -> button, I edited it so it was an invisible button by
    moving it to the hit frame, gave the selected area an instance name
    of Hizumi_btn, inserted a new layer for actions and added the code
    I have attached to this post.
    I assumed that I would just need to repeat this procedure for
    each of the other images in my animation, but when I did that I
    received the error.
    I greatly appreciate any help you can give me.
    Thanks for the information on how to stop the animation.
    Here is the code I used to create my first button.

  • Converting Flash animations to .mov

    What is the best way to convert an animation created in Flash to a .mov file. I've tried the export movie command in the file menu, changing various settings in the publish settings in Flash and and in the Quicktime options boxes.  But the resulting .mov file has all kinds of fragments and artifacts. Has anybody had any luck creating animations in Flash and then converting them into a format that can be assemble in iMovie? Thanks.

    I updated my CS5 Applications on 4/25 and then tried publishing the Flash animation file that I was have trouble with and the artifacts in the .mov file had disappeared. I still have some artifacts in other files but they have improved. I don't know if the bug (in Flash or in Quicktime) was fixed or what happened I guess the lesson is to update frequently. If somebody fixed some thing, Thank you, dedmonds91

  • How to detect end of flash movie (SWF file) in Javascript

    I have used Dreamweaver CS4 to integrate my SWF file as shown
    below. So far so good. See GoToNext()
    my website
    What I wouldd like to do is have the SWF movie trigger a
    javascript function in my html page when the video is stopped
    playing (i.e. when it is finished) There are no controlls in that
    SWF file - it is basically am add banner. I would think this would
    be easiest done by rasinng an event in SWF that is communicated to
    javascript, where I can add an event listener, and thus trigger my
    function.
    How can this be done in the simplest way?
    <div id="bodyFlash"
    class="clearfloat"><p> </p>
    <object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="760"
    height="150" id="FlashID" title="Chillifire Banner">
    <param name="movie" value="flash/chillifire.swf" />
    <param name="quality" value="high" />
    <param name="wmode" value="transparent" />
    <param name="swfversion" value="6.0.65.0" />
    <!-- This param tag prompts users with Flash Player 6.0
    r65 and higher to download the latest version of Flash Player.
    Delete it if you don’t want users to see the prompt. -->
    <param name="expressinstall"
    value="Scripts/expressInstall.swf" />
    <!-- Next object tag is for non-IE browsers. So hide it
    from IE using IECC. -->
    <!--[if !IE]>-->
    <object type="application/x-shockwave-flash"
    data="flash/chillifire.swf" width="760" height="150">
    <!--<![endif]-->
    <param name="quality" value="high" />
    <param name="wmode" value="transparent" />
    <param name="swfversion" value="6.0.65.0" />
    <param name="expressinstall"
    value="Scripts/expressInstall.swf" />
    <!-- The browser displays the following alternative
    content for users with Flash Player 6.0 and older. -->
    <div>
    <h4>Content on this page requires a newer version of
    Adobe Flash Player.</h4>
    <p><a href="
    http://www.adobe.com/go/getflashplayer"><img
    src="
    http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif"
    alt="Get Adobe Flash player" width="112" height="33"
    /></a></p>
    </div>
    <!--[if !IE]>-->
    </object>
    <!--<![endif]-->
    </object>
    </div>
    ...

    on the last frame in the banner file you can use the
    ExternalInterface class to call a specific JS method, and even pass
    data if needed.

  • How to detect end of FLV Video - and then call another web page?

    I'm using Flash CS3 v9 on a PC to...
    - use File > Import an AVI video and convert it to an FLV video.
    - use File > publish to publish it.
    - Then upload the four files...
    .. MyVideo.flv
    .. MyPage.html,
    .. MyPage swf
    .. AC_RunActiveContent.js
    to my website.
    Works Great!
    My Question:
    Since Javascript seems to run the .swf file which pays the .flv video... (or some such)
    Can I use Javascript (or html) to tell when the FLV Video has finished playing...
    And then automatically call another webpage...
    If so would someone be kind enough to share a code sample with me to get me quick started.
    Thanks for any help.

    I'm using the defaults in Flash CS3 ver9.
    I'm not creating any action script myself.
    I open Flash and select from the Flash menuio options...
    "Create New Flash File (Action Script 3.0)"
    I then File | Import my AVI video to convert it to an FLV video...
    and choose the player options for controls, etc
    and then punch through the menu's until Flash finally imports the video.
    I then "Publish" the project to the the 4 files mentioned in my initial posting.
    So, I think the answer to your question is...
    Yes, I'm using the default Flash playback component to play the flv
    and yes, I'm letting Flash default to CS3 even though I'm not writing the code... Flash is.
    Thanks for the help.

  • How to detect end of a html

    hi,
    Can anyone help me to determine how I can know if a html document has been displayed in a JEditorPane?

    Check out this [url http://forum.java.sun.com/thread.jsp?forum=57&thread=333171]thread.

  • Detect end of the .swf file from captivate

    Hi,
    I've a .swf file sent by our clients. They want to put that .swf file on the webpage. The .swf file is published from captivate.
    Now they want to display a submit button on end of the .swf (video). I don't know how to detect end of the video.
    Need help...!!!
    Thank you,
    Himadri

    Welcome to our community
    Within Captivate you are able to choose different actions to occur when the Captivate movie completes play. Of course if you don't have Captivate and the project file you are pretty much stuck with what you have. If you *DO* have access to the source, you would then configure the end action to be what you like. Perhaps execute some JavaScript, load a different page, etc.
    If you don't have access to the source file, you may be better off asking whomever provided the SWF to you to make a small change to the end action. They would then compile a new SWF and provide that to you to use.
    You just said a "Submit" button should appear after the video plays. What exactly is this button supposed to do?
    Cheers... Rick
    Helpful and Handy Links
    Begin learning Captivate 5 moments from now! $29.95
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcererStone Blog
    Captivate eBooks

  • How to detect the end of a loaded swf file

    Hello Guys
    This is my first time on this forum, come here with a great
    hope
    I have loaded a picture file (jpeg) and a video file (swf)
    into the main flash file using xml
    on frame 3, I load the picture and on frame 7, I load the
    video, there is a stop action on frame 6
    Now when the flash is executed the picture is displayed ( it
    says "Click here to view the video")
    when the user click the picture , the video is loaded and
    starts to play ---- so far everything is working fine
    now what I want to do is, once the video finishes playing (
    not stoped) I want to display the picture again
    can you tell me how to detect the end of an external loaded
    swf files,
    Please help me
    Thanking You
    Shriram

  • How does labview detect end of file?

    Hello!
    My question is how labview detects the end of file at the Read from Spreadsheet File VI.  What I would like to do is basically to read from a  text file a number of numeric values and afterwards build an array containing these values. Till now I have made a vi that uses the aforementioned vi and put it in a while loop that its conditional terminal is connected to the EOF? but it never stops. Could you please suggest a solution to my problem? (I have already seen a similar question in this forum but the answers didn't help me..) The VI along with an example file to read are attached.
    Thank you very much
    Attachments:
    readfromfile.vi ‏9 KB
    Book1.txt ‏1 KB

    Please take off the while loop. and directly connect the indicator to the all rows output of the VI.
    That will give you a 2D array of whatever is there in the spreadsheet.
    Hope this helps. 

  • ANSWER: HOW TO DETECT Java Plugin from JavaScript

    I created a new topic because the questions about
    how to detect Java Plugin in browsers are scattered
    thoughout this forum.
    Basically you need to employ two approaches for IE and NS.
    In IE you need to try to instantiate a small applet
    (not your production applet) in order to see if browser
    can do it. if the browser can do it, you can make a
    call applet from JavaScript in order to find version of
    JRE (as well as a host of other things).
    In NS you can write a simple JavaScript which will
    interrogate the browser for all plugins installed. Then
    ypu can make a desicion whether to pass execution to
    the next(or generated) page which hosts your applet,
    or ask the user to download/install a plugin.
    I ecourage everybody to host a plugin on your site
    rather leave default link to it which is generated by
    html converter.
    In order to run sample,
    Prerequisites:
    Java Plugin 1.3.
    If you have a different version of plugin,
    substitute hardcoded plugin version in JavaScript for
    value that you have.
    1. compile java file
    2. put class file in the same directory with html file
    3. load html file into the browser.
    4. press "Check Java Plugin.." button
    5. see it work
    6. examine code
    7. uninstall plugin
    8. repeat steps 1 - 4
    9. see it work
    10. install plugin.
    Sample code follows:
    **********************HTML FILE BEGIN***********
    <HTML>
    <HEAD>
    <!-- Generated by Kawa IDE -->
    <TITLE>Detect Java Runtime</TITLE>
    </HEAD>
    <SCRIPT LANGUAGE="JavaScript">
    var browsername;
    function doNetscape()
    for (i=0; i < navigator.plugins.length; i++)
    for (j = 0; j < navigator.plugins.length; j++)
    if(navigator.plugins[i][j].type == "application/x-java-applet;version=1.3")
    alert("You are running Netscape with Java Plugin 1.3.0 - OK");
    return;
    alert("You are running Netscape\nPlease, install Java Runtime Environment 1.3.0");
    function doMicrosoft()
    var applet = document.myApplet;
    if(applet == null)
    alert("You are running Microsoft Browser.\nPlease, install Java Runtime Environment 1.3.0");
    return;
    var version = applet.getJavaVersion();
    if(version == "1.3.0")
    alert("You are running IE, Java Plugin 1.3.0 installed - OK");
    else
    alert("You are running IE, other plugin installed - mybe OK if later that 1.3.0\nYour version: " + version);
    function getJava()
    var applet = document.myApplet;
    if(applet == null)
    alert("Please, install Java Runtime Environment");
    return;
         alert("JRE Version: " + document.myApplet.getJavaVersion());
    function checkJavaPlugin()
         browsername = navigator.appName;
         if(browsername.indexOf("Netscape")!= -1)
              browsername="NS";
              doNetscape();
         else
              if(browsername.indexOf("Microsoft")!=-1)
                   browsername="MSIE";
                   doMicrosoft();
              else
                   browsername="N/A";
                   alert("Unknown browser: " + browsername);
    </SCRIPT>
    <body>
    <Strong>Check Java Plugin</strong>
    <OBJECT id="myApplet" classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
         WIDTH = 1
         HEIGHT = 1 >
         <PARAM NAME = CODE VALUE = "DetectPluginApplet.class" >
         <PARAM NAME="scriptable" VALUE="true" >
         <embed type="application/x-java-applet;version=1.3"
              code = DetectPluginApplet width = 2 height = 2 MAYSCRIPT = "true" >
         </embed>
         </EMBED>
    </object>
    <FORM>
         <INPUT TYPE="button" value="Get Plugin Version in IE" onClick="getJava()">
         <INPUT TYPE="button" value="Check Java Plugin in NS and IE" onClick="javascript:checkJavaPlugin()">
    </FORM>
    </BODY>
    </HTML>
    **********************HTML FILE END***********
    ***************APPLET FILE BEGIN***********
    import java.awt.*;
    public class DetectPluginApplet extends java.applet.Applet
         public void init()
              add(new Label("DetectPluginApplet"));
    public String getJavaVersion()
    return System.getProperty("java.version");
    **************APPLLET FILE END************

    Try following java script, it works on new browsers (NS 4+, IE5+). For IE you have to enable 'ActiveX objects creation' in security options.
    var agt=navigator.userAgent.toLowerCase();
    var is_major = parseInt(navigator.appVersion);
    var is_nav = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1)
    && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1)
    && (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1));
    var is_nav4up = (is_nav && (is_major >= 4));
    var is_ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
    var is_ie5 = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")!=-1) );
    var is_ie5_5 = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.5") !=-1));
    var is_ie6 = (is_ie && (is_major == 4) && (agt.indexOf("msie 6.0") !=-1));
    var is_ie5up = (is_ie && (is_major == 4)
    && ( (agt.indexOf("msie 5.0")!=-1)
    || (agt.indexOf("msie 5.5")!=-1)
    || (agt.indexOf("msie 6.0")!=-1) ) );
    var pluginDetected = false;
    var activeXDisabled = false;
    // we can check for plugin existence only when browser is 'is_ie5up' or 'is_nav4up'
    if(is_nav4up) {
    // Refresh 'navigator.plugins' to get newly installed plugins.
    // Use 'navigator.plugins.refresh(false)' to refresh plugins
    // without refreshing open documents (browser windows)
    if(navigator.plugins) {
    navigator.plugins.refresh(false);
    // check for Java plugin in installed plugins
    if(navigator.mimeTypes) {
    for (i=0; i < navigator.mimeTypes.length; i++) {
    if( (navigator.mimeTypes[ i].type != null)
    && (navigator.mimeTypes[ i].type.indexOf(
    "application/x-java-applet;jpi-version=1.3") != -1) ) {
    pluginDetected = true;
    break;
    } else if (is_ie5up) {
    var javaVersion;
    var shell;
    try {
    // Create WSH(WindowsScriptHost) shell, available on Windows only
    shell = new ActiveXObject("WScript.Shell");
    if (shell != null) {
    // Read JRE version from Window Registry
    try {
    javaVersion = shell.regRead("HKEY_LOCAL_MACHINE\\Software\\JavaSoft\\Java Runtime Environment\\CurrentVersion");
    } catch(e) {
    // handle exceptions raised by 'shell.regRead(...)' here
    // so that the outer try-catch block would receive only
    // exceptions raised by 'shell = new ActiveXObject(...)'
    } catch(e) {
    // Creating ActiveX controls thru script is disabled
    // in InternetExplorer security options
    // To enable it:
    // a. Go to the 'Tools --> Internet Options' menu
    // b. Select the 'Security' tab
    // c. Select zone (Internet/Intranet)
    // d. Click the 'Custom Level..' button which will display the
    // 'Security Settings' window.
    // e. Enable the option 'Initialize and script ActiveX controls
    // not marked as safe'
    activeXDisabled = true;
    // Check whether we got required (1.3+) Java Plugin
    if ( (javaVersion != null) && (javaVersion.indexOf("1.3") != -1) ) {
    pluginDetected = true;
    if (pluginDetected) {
    // show applet page
    } else if (confirm("Java Plugin 1.3+ not found, Do you want to download it?")) {
    // show install page
    } else {
    // show error page
    }

  • Detect "end of file" while send n numbers files over a socket?

    Hi!
    I�m trying to find a way to detect "end of file" while send n numbers files over a socket.
    What i'm looking for is how to detect on the client side when the file i�m sending is downloaded.
    Here is the example i�m working on.
    Client side.
    import java.io.*;
    import java.net.*;
    public class fileTransfer {
        private InputStream fromServer;
        public fileTransfer(String fileName) throws FileNotFoundException, IOException {
            Socket socket = new Socket("localhost", 2006);
            fromServer = socket.getInputStream();
            for(int i=0; i<10; i++)
                receive(new File(i+fileName));
        private void receive(File uploadedFile) throws FileNotFoundException, IOException {
            uploadedFile.createNewFile();
            FileOutputStream toFile = new FileOutputStream(uploadedFile);
            byte[] buffer = new byte[4096];
            int bytesRead = 0;
            while ((bytesRead = fromServer.read(buffer)) != -1) {
                toFile.write(buffer, 0, bytesRead);
        public static void main(String[] args) {
            try {
                new fileTransfer("testa.jpg");
            } catch (Exception ex) {ex.printStackTrace();}
    }Server side.
    import java.io.*;
    import java.net.*;
    public class fileTransferSend {
        Socket serv = null;
        OutputStream toClient;
        public fileTransferSend(String fileName) throws FileNotFoundException, IOException {
            StartServer();       
            for(int i =0; i<10; i++)
                send(new File(fileName));
        public void StartServer() throws IOException {
            ServerSocket ssocket = new ServerSocket(2006);
            System.out.println("Waiting for incomming");
            serv = ssocket.accept();
            System.out.println("incomming");
            toClient = serv.getOutputStream();
        private void send(File f) throws FileNotFoundException, IOException {
            if(f.exists() && f.canRead()) {
                FileInputStream fromFile = new FileInputStream(f);
                try {
                    byte[] buffer = new byte[4096]; // 4K
                    int bytesRead = 0;
                    System.out.println("sending: "+f.getName());
                    while ((bytesRead = fromFile.read(buffer)) != -1) {
                        toClient.flush();
                        toClient.write(buffer, 0, bytesRead);
                finally {
                    //toClient.close();
                    fromFile.close();
            } else {
                System.out.println("no files");
        public static void main(String[] args) {
            try {
                new fileTransferSend("test.jpg");
            }catch(Exception e) {e.printStackTrace();}
    I know that the client never reads -1 becuase i doesn�t close the stream.
    Is there anyway to tell the client that the file is downloaded?

    A common (and easy) TCP/IP protocol is to send length, followed by data.
    Because TCP/IP is a stream-oriented protocol, a receiver can never absolutely determine where the first packet ends and the second packet begins. So it is common to send the length of the packet, followed by the packet itself.
    In your case, you could send length of file, followed by file data. It should be fairly easy to obtain file length and send that as a 32-bit (or 64-bit value). Here is an idea (not code) for the receiver:
    receive (4) // where 4 = number bytes to receive
    unsigned length = convert 4 bytes to unsigned integer
    while (length != 0)
    n = receive ( length ) // where n = number bytes actually received, and length = number bytes desired
    Or, you can use the concept of an "Escape" character in the stream. Arbitrarily choose an ESCAPE character of 0x1B (although it could be any 8-bit value). When the receiver detects an ESCAPE char, the next character can be either control or data. So for end of file you might send 0x1B 0x00. If the byte to be sent is 0x1B, then send 0x1B 0x1B. The receiver would look something like this:
    b = read one byte from stream
    if (b == 0x1B)
    b = read one byte from stream
    if (b == 0x00) then end of file
    else place b in buffer
    else
    place b in buffer
    Later.

  • How to detect a selected row in ALV GRID

    Hi,
    Can anyone tell me how to detect and catch an event when a row is selected in an ALV GRID?
    I would like to catch such event when the end user presses Ctrl + Shif + Space bar.
    Thank you and best regards.
    Hassane.

    Hi,
    Use this wiki link, to have a checkbox with all the records in ALV Grid and to process those selected records at a user command, as per the requirement.
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/alv%252bgrid%252bdisplay%252bwith%252bcheckbox%252bto%252bprocess%252bselected%252brecords%252bat%252bruntime
    Hope this solves your problem.
    Thanks & Regards,
    Tarun Gambhir

  • How to Detect browser crash

    hi i want to know how to detect browser crash or the way to go about it , i can use any language to any api's plz specify me some solution .It would be really healpfull

    paul_123 wrote: hi i want to know how to detect browser crash ..
    Like the other person that replied, I do not quite understand why it is of interest that the end user's browser crashes. If, like they suspect, it is to do with your applet, I think the best solution is to launch the applet using webstart and forget the browser. If the end user launches a webstart based applet from the browser and the browser crashes, the applet will keep working just fine.
    Is your applet publicly available? If so, what is the URL where we can see it?

  • How I detect in a dynamic website either PHP or CFM or JSP that cookies & javascript are enabled ?

    How I detect in a dynamic website either PHP or CFM or JSP that cookies & javascript are enabled ?

    You do that on the browser end using JavaScript. For cookies, simply establish session variables in PHP or whatever you use. if the browser refuses them, they wil lreturn a respective value in the referrers...
    Mylenium

  • AS3 - 1) Countdown Timer to the designated Date for Live-Broadcast-Event yet to take place; 2) Detect End of Live Stream on FLVPlayback with FLVPlayback.isLive = true - ActionScript 3 - flash cs3 cs4

    Hi folks,
    Ronny's here again on forums, having particularly 2 (two) questions/problems to resolve:
    1) Countdown Timer to the designated Date for Live-Broadcast-Event yet to take place
    2) Detect End of Live Stream on FLVPlayback with FLVPlayback.isLive = true
    attached is the .zip file (as3_Countdown Timer_ver 1.0.1_by Ronny Depp.zip) with all flash source files containing:
    a) The FLash Source (file: timer_module.fla) - (FLA flash source file - Flash CS3 Professional, Flash Player 9, actionscript 3.0)
    b) com.othenticmedia.utils.dateAndTimeManagement package including 2 .as actionscript 3.0 Class files.
           i) com.othenticmedia.utils.dateAndTimeManagement.DateAndTimeManager Class in the said package. (file: DateAndTimeManager.as)
           ii) com.othenticmedia.utils.dateAndTimeManagement.CountdownTimer Class in the package. (file: CountdownTimer.as)
    c) The compiled SWF file version of this Application's blueprint. (file: timer_module.swf).
    What i need to confirm is: ........................................................ see the next post of mine. (for Problems  need to be Resolved)

    Problems to Resolve:
    Problem#1) - Countdown Timer to the designated Date for Live-Broadcast-Event yet to take place.
    Problem#2) - Detect End of Live Stream on FLVPlayback with FLVPlayback.isLive = true;
    Problem#1 Description:
    I need to pinpoint the Logical TimeSync Exception, i am still unable to figure out. That is I'm using a webservice in my Application to Synchronize the Time with the actual ET (eastern time) with accomodation of auto-adjustment for EDT GMT-4 (eastern daylight time) & EST GMT-5 (eastern standard time), times. I am using the zipcode: "10012" to pass it to the Web Service in urlRequest object, to retrieve the Current ET eastern time according to EDT & EST time settings for Manhattan/Brooklyn areas or others within  New York, NY 10012.
    Currently the Web Service is returning accurate date/time based on local EDT GMT-4 daylight time.
    Is there some defined set of dates for EDT & EST times for New York region that I can check for to ensure the correct Dates/Times for Eastern Time in New York area ??? I am using NY zipcodes because i am sure to get correct ET values.
    The Major Problem Part: is I need to correct the time by 2 seconds or approx. 2 secs, some millisecs.
    When I retrieve the Time Value from WebService, it lags behind for 2 seconds as compared to DateObj i create using computer's local time, on my Windows XP Service Pack 2 with Automatic Updates turned-on. And I'm sure about my Windows will be having latest updates for Time Management already installed. I also added the 2 secs. to the TimeSync(ed) Date to make correction to this Date obj.
    I call my custom fucntion addSeconds(dateObj:Date, secs:int) to add 2 seconds to the Date by Converting Seconds to Milliseconds.
    Please comb through the as code in files attached and Help Me Out !!!
    Problem#2 Description:
    Secondly I need to Detect the End of Stream state while using FLVPlayback component, an rtmp:// live Stream from FLASH MEDIA SERVER.
    I need to Play a YuMe Post-Roll Ad when Steam Finishes/Ends.
    Live Broadcast Stream Event starts every night on Wednesdays & Saturdays exactly  at 10:59 PM EDT GMT-4.
    Live Events only Streams/Broadcasts the stream for 50secs. exactly. When [playback stopped] it plays a PostRoll Ad and after the CountdownTimer again comes back to life. The Next upcoming Event is calculated & the Countdown begins until Next Event's time/date is reached.
    Here is the  code on the frame 1 on the MainTimeline: (rest of the params like source, volume, skinAutoHide are Set using Property Inspector for FLVPlayback instance on Stage)
    //myStream instance of FLVPlayback is on the Stage
    myStream.isLive = true;// Frame 1 Actions in the FLA
    myStream.addEventListener(VideoEvent.COMPLETE, onEndOfStream);
    myStream.addEventListener(VideoEvent.STATE_CHANGE, onState);
    myStream.addEventListener(String(VideoError.NO_CONNECTION), onStreamError);
    myStream.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
    /*if(myStream.stopped){
         trace("tracy: "+myStream.state);
    } else if(myStream.state == VideoState.STOPPED){
         trace("tracy: "+myStream.state);
    function onStreamError(event:VideoError) {
         trace(event.code + "\n\t" + event);
    function onState(event:VideoEvent) {
         trace(event.state + "\n\t" + event.toString());
    function onEndOfStream(event:VideoEvent) {
         trace(event.state + "\n\t" + event.toString());
    function netStatusHandler(event:NetStatusEvent):void {
         switch (event.info.code) {
              case "NetConnection.Connect.Success":
                   //connectStream();
                   break;
              case "NetStream.Play.StreamNotFound":
                   trace("Stream not found: "/* + myStream.source*/);
                   break;

Maybe you are looking for

  • How do I limit the number of emails in my inbox?

    OS 6 allowed the limitation of emails in the inbox to 50. How does one do this with OS 7?

  • Ad hoc query missing amounts

    Hi: I'm having problems in order to obtain amounts from a custom infotype, this custom infotype (9001) is attached to the positions. When I try to obtain information about amounts that I have store in the custom infotype with the ad hoc query, I have

  • Meaning of RFC and web services

    Experts,    Can anyone explain the basic meaning of RFC and webservices.What do u mean by RFC call etc.When do we use webservices and what are the advantages of using this? I will not disappoint any  expert. Thanks Veeru

  • I have iPhone 5s and i cant open any videos from YouTube, Safari and instagram!! (I have a good wifi connection)

    I have iPhone 5s ios 8.2.1 when try to open a very in youtube it keep loading and then tell me "playback error" and on safari the vidoe doesn't even load it just wont open, the same thing on instagram and tumblr when i try to watch a video the wont p

  • Updating firmware on locked E61

    I recently got an E61 as an Xmas gift and spent some time playing with various features. By the time I'd finished I'd setup wireless browsing/email via our home LAN and also sync'd all my contacts and calendar entries courtesy of Zyb.com from my prev