A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: [AS3] Netstream Flickers when changing video

  1. #1
    Member
    Join Date
    Jul 2008
    Posts
    94

    [AS3] Netstream Flickers when changing video

    Hi guys!

    I have a netstream object playing a video introduction

    ns.play(video.flv)

    and on another frame of my movie I have a menu, at which point I call

    ns.pause()

    and then depending on what the user clicks, the netstream opens a new video:

    ns.play(video2.flv)

    It all works great, except I see a flicker from the previous video I had running. I've tried all sorts of things.

    When you click the menu

    video.visible = false;
    videocontainer.x = 100000;


    when the video says its playing

    else if(stat.info.code == "NetStream.Play.Start")
    {
    videocontainer.x = 0;
    video.visible = true;
    }


    I STILL, often, get this flicker.

    Any ideas? Anyone seen this before?

    Thanks a tonne in advance,

    Dave

  2. #2
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    When you play the second video try this:

    ns.play2(video2.flv);
    - The right of the People to create Flash movies shall not be infringed. -

  3. #3
    Senior Member
    Join Date
    Jan 2009
    Posts
    208
    You should close the netstream and netconnection between changing video.

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