Skip to main content
Participant
September 15, 2010
Answered

Action Script Code to Turn Auto Play Off

  • September 15, 2010
  • 2 replies
  • 2593 views

Hi.


Quick, hopefully simple question.

I have to following code to play a FLV video is flash

import fl.video.MetadataEvent

flvPlayback.addEventListener ( MetadataEvent.METADATA_RECEIVED , onMetadata ) ;

flvPlayback.play ("Movie.flv");

How do I code the Action Script to set autoplay to "false"?


Thanks,
Javier

This topic has been closed for replies.
Correct answer Plystire

Use the ".load" method instead of .play

That should load the video instead of playing immediately.

~Plystire

2 replies

PlystireCorrect answer
Inspiring
September 15, 2010

Use the ".load" method instead of .play

That should load the video instead of playing immediately.

~Plystire

Participant
September 15, 2010

Thanks so much!

That did the trick

Participant
September 15, 2010

Just quick addendum

In my Flash document, I have an SWF player. In the Parameters, I have autoPlay set to False, but everytime I load the vidoe, it still plays automatically.

Javier