A Flash Developer Resource Site

Page 2 of 2 FirstFirst 12
Results 21 to 27 of 27

Thread: go from one flv to another automatically???

  1. #21
    Senior Member
    Join Date
    Aug 2001
    Posts
    116
    were you able to mess with the file?

  2. #22
    Ө_ө sleepy mod
    Join Date
    Mar 2003
    Location
    Oregon, USA
    Posts
    2,441
    Give this a try in frame 1 (adjust frame 5 and 10 as well):

    PHP Code:
    vid2.addEventListener(MouseEvent.MOUSE_DOWNmouseDownHandler99);
    function 
    mouseDownHandler99(event:MouseEvent):void {
        
    event.target.removeEventListener(event.typearguments.callee);
        if(
    vid){
            
    vid.closeVideoPlayer(0);
            
    vid.removeEventListener(Event.COMPLETEcompleteHandler);
        }
        
    gotoAndStop(5);
    }

    vid3.addEventListener(MouseEvent.MOUSE_DOWNmouseDownHandler98);
    function 
    mouseDownHandler98(event:MouseEvent):void {
        
    event.target.removeEventListener(event.typearguments.callee);
        if(
    vid){
            
    vid.closeVideoPlayer(0);
            
    vid.removeEventListener(Event.COMPLETEcompleteHandler);
        }
        
    gotoAndStop(10);


  3. #23
    Senior Member
    Join Date
    Aug 2001
    Posts
    116
    looks like it's still trying to close the "default" video... when I click vid2 or vid3 buttons... I get this:

    VideoError: 1007: Cannot delete default VideoPlayer
    at fl.video::FLVPlayback/closeVideoPlayer()
    at home1_fla::MainTimeline/mouseDownHandler99()

  4. #24
    Senior Member
    Join Date
    Aug 2001
    Posts
    116
    anymore ideas on this one by chance???

  5. #25
    Ө_ө sleepy mod
    Join Date
    Mar 2003
    Location
    Oregon, USA
    Posts
    2,441
    Well - you can comment out the 'closeVideoPlayer' lines and it will stop that error from occurring. That code should handle your earlier problems but without closing the netstream it's still going to be taxing your download pipe unnecessarily...I've gone over the flvplayback class a couple times and I don't see anything that would give you more direct control of the netstream object inside...

  6. #26
    Senior Member
    Join Date
    Aug 2001
    Posts
    116
    ok.. I'm at work now, but when I get home tonight I'll try getting rid of this:

    vid.closeVideoPlayer(0);

    and leaving the rest... if that doesn't work.. I guess I'll just make each video contain all 3 videos.... if I did that method... (the files would be bigger obviously which would suck) is it possible to get the flv player (vid) to loop?

    Thanks again for all your help!

  7. #27
    Senior Member
    Join Date
    Aug 2001
    Posts
    116
    still goes nuts when I click fast.... dammit!!!!!!!!!!!!

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