A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Embedding Video

  1. #1
    Junior Member
    Join Date
    Dec 2008
    Posts
    7

    Embedding Video

    Hi!

    I've embedded a video via the timeline, and have created a 'skip' button to obviously skip the video. The code I used on the button is:

    on (release) {

    gotoAndStop(200) //there is no video footage on this frame!

    }

    It works fine when executing the file!

    BUT! on the same scene, I have added a preloader before the video begins, when running the bandwidth profiler (on low speeds), whilst the page is loading, I click on the skip button and instead of skipping to the frame I want it to go, it would would stop on the frame of the current downloaded and will stop there. In other words, if I repeatedly clicked on the Skip Button whilst running the bandwidth profiler, I will see the video in regards to the percentage it has downloaded:

    E.g. clicked at 1% - towards the beginning of the video
    clicked at 50% - half way through the video

    Hopefully that explained it....Anyway, is there a way to write a code for the button to state that on (release): move to the specific frame (or even scene), and stop the current download of the video?

    Thanks.

    PS: If someone could work this out, your're amazing.

  2. #2
    Flash Designer
    Join Date
    Dec 2008
    Posts
    7
    The code you have is fine in the eyes of Flash.
    try putting:

    on (release) {
    _root.gotoAndStop(200);
    }

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center