A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: MediaController

  1. #1
    Senior Member
    Join Date
    Jan 2008
    Posts
    394

    Unhappy MediaController

    is there anyway through AS to tell the controller what flv to load? I thought of triggering it with a varibale

    if (_global.playmovie == L1) {
    this.loadMovie(nem.flv);
    }

    but that doesn't work, it always has errors

    even with
    on (load) {
    }

    around it. please help

  2. #2
    Senior Member
    Join Date
    Jan 2008
    Posts
    394
    or should I put this on the frame
    Code:
    stop();
    _root.vidplayer.loadMovie(_global.vid);
    or

    Code:
    stop();
    if (_global.vidplay == L1) {
    _root.vidplayer.loadMovie(L1);
    }

  3. #3
    Student
    Join Date
    Apr 2001
    Location
    -
    Posts
    4,756
    maybe you have better luck by posting this in the appropriate section

  4. #4
    Senior Member
    Join Date
    Jan 2008
    Posts
    394
    k, hopefully

  5. #5
    Senior Member
    Join Date
    Apr 2008
    Location
    Nottingham, UK
    Posts
    348
    what errors are you getting?
    are you using the flvplayback component?

  6. #6
    Senior Member
    Join Date
    Jan 2008
    Posts
    394
    I'm using the MediaController and component inspector to set the path of the file, but can you do that in AS

  7. #7
    Senior Member
    Join Date
    Jan 2008
    Posts
    394
    ok change everything I changed it to use the seperate parts, display and controller. Now I want to load the .flv into the display with AS

    so this is wut I have on the frame
    Code:
    stop();
    _root.player.contentPath = L1.flv;
    I also have tried this....


    Code:
    stop();
    _root.player.contentPath = "L1.flv";
    but it never works. Is my coding wrong?

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