A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Media Playback Component

  1. #1
    Member
    Join Date
    Jun 2002
    Posts
    71

    Media Playback Component

    Hey guys,

    I'm pretty new to using flash components and have a slight problem I would be extremely grateful to anyone and everyone for any help.

    I'm using MX Pro 2004

    This is my problem:

    I have my media component, but it's content is loaded in by using the following script on a button:

    Code:
    on(release)
    {
    	_root.VideoPlayer.totalTime = 72;
    	_root.VideoPlayer.contentPath = "clip3.flv";
    }
    The code highlighted red, as you no doubt will have guessed, updates the component every time this script is executed, with a new flv.

    This all works ace. You click a new button and the component begins playing the new movie. But. If you let a movie play through to the end, it stops, then you click on another button it loads the new movie but does not automatically play. Here lies my problem.

    I have spent a good deal of time searching the web and this forum. Either I am not using the correct search terms or this question hasn't been a recurrant one. Either way I apologise if this has been answered already.

    Any help would be appreciated.

    Cheers,
    -Rob

  2. #2
    Member
    Join Date
    Jun 2002
    Posts
    71
    Sorry guys, I realised what the problem was.

    I forgot to add _root.VideoPlayer.play(); to the script.

    Thanks anyway,


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