Welcome, Guest
  • Author Topic: Load video into the Mediaplayback component  (Read 2797 times)

    Zar

    • Server what's that
    • *
    • Posts: 2
      • View Profile
      • Email
    Can anybody tell me how to load different videos into a mediaplayback component by clicking buttons?

    Thanks

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re:Load video into the Mediaplayback component
    « Reply #1 on: 10/08/03, 07:06 »
    You need to use the setMedia() property, i.e

    myButton.onPress = function(){
        myMedia.stop()
        myMedia.setMedia("gol2.flv", "FLV");
        myMedia.play(0)
    }

    See also this interesting tutorial: http://www.ultrashock.com/tutorials/flashmx2004/video.php

    Jorge

    Zar

    • Server what's that
    • *
    • Posts: 2
      • View Profile
      • Email
    Re:Load video into the Mediaplayback component
    « Reply #2 on: 10/08/03, 13:23 »
    Thanks a lot!!! :D