Skip to main content
Participating Frequently
May 11, 2010
Answered

Two flv's on swf page, fullscreen button on each makes the same video go fullscreen

  • May 11, 2010
  • 1 reply
  • 2122 views

Ok, so I'm using CS3 to try to put two .flv videos on the same .swf page, BUT only one will go full screen no matter which video skin button to go fullscreen I press, and all the rest of the buttons on the skin work for the appropriate video. I recall in Actionscript 2.0, in the component settings for the video you could change the field name in the schema to play multiple videos in a .swf file, wondered if AS3 had similar setting for fullscreen.

This topic has been closed for replies.
Correct answer kglad

Thanks for the link, saw how you put it together, tweaked the code a little bit; instead of having it listen for the mouse click [ if(mouseX<300) ], I changed it so only the video playing would be able to go fullscreen [ if (flv1.playing == true) ], here's the full code:

stage.addEventListener(Event.FULLSCREEN,f);

function f(e:Event){

   if (flv1.playing == true) {

        flv1.fullScreenTakeOver=true;

        flv2.fullScreenTakeOver=false;

    } else {

        flv2.fullScreenTakeOver=true;

        flv1.fullScreenTakeOver=false;

    }

}

It's not perfect, but it gets the job done: most people hit play, then fullscreen, so I think this should work.

Thanks for your help, I've been working on this for two weeks.


you're welcome.

p.s.  please mark this thread as answered, if you can.

1 reply

kglad
Community Expert
Community Expert
May 11, 2010

disable the fullScreenTakeOver property of the flv that you don't want to go fullscreen.

link05gAuthor
Participating Frequently
May 11, 2010

But I want both videos to be able to go fullscreen, but the fullscreen button on both players makes the same video go full

kglad
Community Expert
Community Expert
May 11, 2010

yes so, disable the fullScreenTakeOver property of the flv that you don't want  to go fullscreen.  ie, the one that doesn't have its fullscreen button clicked.