A Flash Developer Resource Site

Results 1 to 12 of 12

Thread: AS2 no idea where to go from here!

  1. #1
    Junior Member
    Join Date
    Jan 2010
    Posts
    7

    AS2 no idea where to go from here!

    Hello all!
    I am litterly at a dead end with this project im creating. I have received help from many people to get this working but ive still not managed to iron out the bugs properly.

    Basically I have a flash show reel in as2. There is a 'main' video and when it gets to certain points within the video 'links' appear at the top to play the full version of whats in the 'main' video.

    I have made it in a very unprofessional way - consisting of a massive timeline where the links appear at the same frame as the film is. The problem with this is that when the videos 'buffer' the timeline plays and they all become out of sync. I have created some code to make the 'scrubber' (which can be moved around the video player), related to the position in the film and on the timeline. This only 'snaps' to the right frame after it has been clicked on, however. I have tried getting cuepoints as another method to work but to no avail.

    I have 2 netstream video players that pause alternately when a link or the 'back' button is clicked.

    Basically, all i need to work now is the bloody links to appear at the right points on the video!!!!!!

    Please Please can somebody look at my code and tell me where im going wrong...and if possible add in or remove code thats conflicting. I would be very grateful as I have been trying to get this working for 5 months now!

    Heres an online version of the player; http://www.danielnwilliams.co.uk/websites/crankmedia/


    and here is the .fla file. For some reason its massive (330mb) but when exported the flv is like 24kb. What on earth am I doing wrong!? http://www.danielnwilliams.co.uk/web...-07-10-as2.fla

    Im using cs4 atm but have access to cs5

    Thank you guys, any help really appreciated.

    Dan

  2. #2
    Junior Member
    Join Date
    Jan 2010
    Posts
    7
    Sorry to badger people!

    Has anyone experienced something similar to this problem before?

    To put it simply...Buttons appear at certain points in the film. They are timed with the video in frames. except they start before the video has started due to buffering. The scrubber is linked to the frame number of the swf but only seems 'snap' into it correctly once dragged around.

    Would even be willing to pay a small amount for someone to help me with this!

    Cheers
    Dan

  3. #3
    Senior Member
    Join Date
    Mar 2010
    Posts
    157
    you should add a preloader! that way, te app won't play until it's loaded

    enable a start movie button, but only if getBytesLoaded() == getBytesTotal().
    start the frame with a stop() and if the play button is pressed, just play().

    good luck

  4. #4
    Junior Member
    Join Date
    Jan 2010
    Posts
    7
    Quote Originally Posted by koenahn View Post
    you should add a preloader! that way, te app won't play until it's loaded

    enable a start movie button, but only if getBytesLoaded() == getBytesTotal().
    start the frame with a stop() and if the play button is pressed, just play().

    good luck
    Hi Koenahn,

    Thanks for your suggestions...
    I will try and get a pre-loader in to see if it resolves the issue! The only problem with the play button is that - it needs to auto play, as its the main feature of the website.

    Thanks for your suggestions though, didn't think of that!

    Will give it a go...

    Cheers
    Dan

  5. #5
    Senior Member
    Join Date
    Mar 2010
    Posts
    157
    that makes it even easier!

    stop();

    onEnterFrame = function()[
    if(getBytesLoaded() == getBytesTotal()){
    play();
    }

  6. #6
    Junior Member
    Join Date
    Jan 2010
    Posts
    7
    Hi Koenahn,

    Thanks for your help. Unfortunately it is still not working using the code you have given. I think this is because the swf has 2 video players within it, each loading in flv's (mp4s), So when the page loads the video is still buffering and gets going at differnt times, depending on your internet connection. I have coded the scrubber of the video player to be linked to certain frames within the swf, it just doesnt seem to link to the correct frame until you have at least clicked it once, then it is ok...

    I just want it to sync from when the video starts playing. I have also noticed a glitch where after a few links have been clicked, sometimes the scrubber pushes it self back when trying to drag it to the right.... No idea where its being caused from.

    Please would be so kind to just have a look at my code for me (i know its a big file, i think its because of all the frames I have in the .fla) I am happy to pay for these problems to be ironed out....

    Thank you

    Dan

  7. #7
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    Hi danielnr87,

    Please read this Forum's guidelines. You cannot offer money here.
    If you want to give a job to a programmer, try the Freelance Forum.

    gparis

  8. #8
    Junior Member
    Join Date
    Jan 2010
    Posts
    7
    Oops sorry bout that!

    I will retract my offer!

    I'm just getting desperate!

    All the other info in that last post still holds true though......

    cheers
    Dan

  9. #9
    Senior Member
    Join Date
    Mar 2010
    Posts
    157
    Quote Originally Posted by koenahn View Post
    that makes it even easier!

    stop();

    onEnterFrame = function()[
    if(getBytesLoaded() == getBytesTotal()){
    play();
    }
    this was obviously meant to be


    stop();

    onEnterFrame = function(){
    if(getBytesLoaded() == getBytesTotal()){
    play();
    }

  10. #10
    Junior Member
    Join Date
    Jan 2010
    Posts
    7
    Quote Originally Posted by koenahn View Post
    this was obviously meant to be


    stop();

    onEnterFrame = function(){
    if(getBytesLoaded() == getBytesTotal()){
    play();
    }
    Hi yea I noticed that error, corrected it and tried using it. it didn't seem to make a difference, thanks for your help though! Have you got any other ideas that might work?
    Thank you very much for your help

  11. #11
    Senior Member
    Join Date
    Mar 2010
    Posts
    157
    what exactly happens? maybe you should make it:


    stop();
    movie1_mc.stop();
    movie2_mc.stop();
    onEnterFrame = function(){
    if(getBytesLoaded() == getBytesTotal()){
    movie1_mc.play();
    movie2_mc.play();
    play();
    }

  12. #12
    Junior Member
    Join Date
    Sep 2010
    Posts
    6
    Your link to your fla is broken, could you please supply a new one. Thnks

Tags for this Thread

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