A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: Loading an FLV from a variable

Threaded View

  1. #1
    Member
    Join Date
    Nov 2000
    Posts
    90

    Loading an FLV from a variable : SOLVED!!

    I could have sworn I saw something about this in the forums, but after doing a few searches I came up with nothing so here goes...

    I want to be able to pass a variable to load an flv video...here is the script I'm using

    code:

    function videoLoad(videoChoice) {
    videoPath = "videos/" + videoChoice
    var connection_nc:NetConnection = new NetConnection();
    connection_nc.connect(null);
    var stream_ns = new NetStream(connection_nc);
    _level0.video_window.my_video.attachVideo(stream_n s);
    stream_ns.play(videoPath);
    }

    And then on my button I have something like this...

    on (release){
    videoLoad("video1.flv");
    }



    Doesn't work though... any thoughts???

    Ideally I will load the list of my videos from either XML or a database or even a text file or whatever...so they variable idea is important...

    Thanks!!!
    Last edited by Branden; 01-26-2005 at 09:36 AM.

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