Hi,

I have flash video in FLV. I have kept the video in html but my problem is that when clicks the video on browser it's goes to full screen.

Anybody help me?

Dani AI

Generated

This usually comes down to two places: the SWF itself (ActionScript or the FLVPlayback skin) or the HTML wrapper that embeds it. reported the click immediately goes full‑screen; asked about the HTML, and pointed toward the embed parameters — below are focused tests and fixes to pinpoint and stop the behavior.

First, isolate where the trigger lives. Drag the .swf into a browser or open it in the standalone Flash Player. If clicking the SWF still forces full screen, the SWF code or component skin is doing it. If it only happens when wrapped in your page, the embed/object parameters are the likely cause.

If the SWF is responsible, search the FLA/AS sources for fullscreen-related calls (for example use of displayState, FULL_SCREEN, fscommand, or any click/double‑click handlers). To prevent accidental toggles you can capture clicks early and stop propagation:

stage.addEventListener(MouseEvent.CLICK, blockClick, true);
function blockClick(e:MouseEvent):void {
  e.stopImmediatePropagation();
}

Or move fullscreen logic onto a specific control:

import flash.display.StageDisplayState;
fullScreenBtn.addEventListener(MouseEvent.CLICK, function(e:MouseEvent):void {
  stage.displayState = (stage.displayState == StageDisplayState.NORMAL) ? StageDisplayState.FULL_SCREEN : StageDisplayState.NORMAL;
});

If the page wrapper is the cause, explicitly disable fullscreen in the embed/object markup (and avoid using wmode="transparent" unless needed, since wmode has its own side effects):

<object data="player.swf" type="application/x-shockwave-flash" width="640" height="360">
  <param name="movie" value="player.swf" />
  <param name="allowFullScreen" value="false" />
  <param name="wmode" value="window" />
  <embed src="player.swf" width="640" height="360" allowFullScreen="false" wmode="window"></embed>
</object>

If source is not available, inspect the compiled SWF (JPEXS/Sothink decompilers), look for calls above, or swap in a simple test SWF to confirm the wrapper behavior. Quick checklist: (1) test SWF standalone, (2) grep for fullscreen API calls or click handlers, (3) check FLVPlayback skin settings, (4) set allowFullScreen explicitly in HTML or remove the handler in the SWF.

Recommended Answers

All 3 Replies

Member Avatar for Member #334542

do u attach the html file?

hey sreein,

Why don't you share the link here?
Or try to change this attribute in embed and object tags that may help you. "allowFullscree=true/false", make it false everywhere in the html and try it again.

Hi,

I have flash video in FLV. I have kept the video in html but my problem is that when clicks the video on browser it's goes to full screen.

Anybody help me?

Check out ContextClouds post in the thread below, I think it has the answer you're looking for!
http://www.daniweb.com/forums/thread190049.html

Cheers for now,
Jas.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.