A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Where are the Events????

  1. #1
    Product Designer keyone.it's Avatar
    Join Date
    Aug 2001
    Location
    Rome, Italy.
    Posts
    1,625

    Where are the Events????

    I am trying to build a little Object-Oriented video player (for files, not server).

    I have set up:

    - a NetConnection object with .connect(null);
    - a NetStream object within the connection, and called .play(url);
    - a Video object, to display the stream;

    I have put handlers to handle:

    - NetConnection NetStatus events;
    - NetStream NetStatus events;
    - NetStream onMetaData events (through a custom class as client);
    - NetStream onPlayStatus event (through a custom class as client);


    Well, playing around with commands, I figured that VERY FEW events actually get dispatched.
    Basically, when calling .pause() or .close(), on the stream, no event is fired.
    When the file reaches the end, I see the following events being fired, and the movie plays over again:

    NetStream.Buffer.Empty;
    NetStream.Buffer.Flush;
    NetStream.Play.Stop;
    NetStream.Seek.Notify;
    NetStream.Buffer.Empty;
    NetStream.Buffer.Full;



    What the hell is going on????

    Why don't I see ANY pause/play event?
    Why don't I see ANY complete event?
    Why!!??????
    Altruism does not exist. Sustainability must be made profitable.

  2. #2
    Product Designer keyone.it's Avatar
    Join Date
    Aug 2001
    Location
    Rome, Italy.
    Posts
    1,625
    Well I imagine all this stuff ain't available when working with files (vs server stream).

    So I just have to manage the player state manually, and dispatch my events outside accordingly....
    Altruism does not exist. Sustainability must be made profitable.

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