SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Jul 2008
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question what is the difference between MX and CS3?

    Please help if you can. Am desperate.

    I have this code from a tutorial made on MX, however, am using CS3 and for some reason, it just wont work for me.

    Does this work in CS3???

    // Create a NetConnection object:
    var netConn:NetConnection = new NetConnection();
    // Create a local streaming connection:
    netConn.connect(null);
    // Create a NetStream object:
    var netStream:NetStream = new NetStream(netConn);
    // Attach the NetStream video feed to the Video object:
    candyone.attachVideo(netStream);
    // Set the buffer time:
    netStream.setBufferTime(5);
    // Being playing the FLV file:
    netStream.play("candyone.flv");

    rewindButton.onRelease = function() {
    // send the playhead to 0 seconds
    ns.seek(0);
    };
    // play button
    playButton.onRelease = function() {
    // toggle between pause and play
    ns.pause();
    };

    Thanx in advance.

  2. #2
    SitePoint Guru Dijup's Avatar
    Join Date
    Jun 2006
    Location
    Kathmandu, Nepal
    Posts
    790
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    are u using action script 2 or there that can be one of the problem you can choose flash as2 which is compatible with this code.


Tags for this Thread

Bookmarks

Posting Permissions

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