video cutting out before end

Ask a Question related to Macromedia Flash Actionscript, Design and Development.

  1. #1

    Default video cutting out before end

    I've got the video playing in a window with Flash, however it only plays the number of frames in the host movie. I want the length to last to the end of the video in the window.

    I'm not sure how to make the host movie persist


    code

    // Create a NetConnection object:
    var netConn:NetConnection = new NetConnection();
    // Create a local streaming connection:
    netConn.connect(null);
    // Create a NetStream object and define an onStatus() function:
    var netStream:NetStream = new NetStream(netConn);
    netStream.onStatus = function(infoObject) {
    status.text += "Status (NetStream)" + newline;
    status.text += "Level: "+infoObject.level + newline;
    status.text += "Code: "+infoObject.code + newline;
    };
    // Attach the NetStream video feed to the Video object:
    my_video.attachVideo(netStream);
    // Set the buffer time:
    netStream.setBufferTime(5);
    // Being playing the FLV file:
    netStream.play("videoFile.flv");


    Hanibal webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. cutting items in a PDF
      cutting items in a PDF I need to use something similar to an eraser to to rub out some defects in a scanned image. How does one go about doing...
    2. cutting a shape
      new to freehand,imported a square with a round drawing on it. how do i select just the circle and cut it away from the square? thanks for your help
    3. Cutting Variable
      Jeff 'Japhy' Pinyan wrote: Cool...that did the trick
    4. Cutting objects
      i want to cut away from a square image i have so that it is curved in, how do i do that? -Thanks
    5. Cutting a picture
      hello, i have taken a picture with my digital camera, it is my kid skateboarding, is it possible to just gut him out and save just him as an image...
  3. #2

    Default Re:video cutting out before end

    i am not sure what your problem is.

    do you have a stop(); in the root level timeline?

    can you use setInterval to pause the timeline as needed for the length of the movie?

    can you load the swf into a MC and use the new event handlers such as loadComplete?


    J___ webforumsuser@macromedia.com Guest

  4. #3

    Default Re:video cutting out before end

    whats the MC?

    I only have one layer and one time line and all this script is in the first frame?


    Hanibal webforumsuser@macromedia.com Guest

  5. #4

    Default Re:video cutting out before end

    MC=movieclip
    You can load video files in swf into a movieclip and control its behaviors.
    Check your documentation for this.

    From what I gather, you have inserted a quicktime video file into your timeline. If this is the case, your best bet is to use setInterval() to pause the movie.

    Then again you best bet is to load the movie dynamically--using the above method or loadMovie().

    tell me more and I can help you more


    J___ webforumsuser@macromedia.com Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139