SWFObject embedded Flash fullscreen doesn't work on PC - actionscript-3

I created a fullscreen flash app on
http://dominggus.nl/school/afstuderen/expo/
I used the SWFObject generator to create the embedding code.
Furthermore, I need to put the screen.width/screen.height (with JavaScript) as flashVars to the SWF...
This all works perfectly on MAC on Chrome/FF but, on windows it only works in IE...chrome and Firefox refuse to go fullscreen...
how can that be?
edit: I already tried static/dynamic publishing with SWFObject, same results
(see http://dominggus.nl/school/afstuderen/expo/index2.html for dynamic)

Ah looks like you're running into a flash run-time error but not seeing it in Chrome or FF cause of no Debug player installed, this is easy for FF just install the netscape compatible debug player to see the error (for Chrome the install is more complicated, due to it managing Flash player updates internally).
In FF I get this error:
SecurityError: Error #2152: Full screen mode is not allowed.
at flash.display::Stage/set displayState()
at nl.dominggus.infographic.ui::NoFullScreenPage/startButtonClickHandler()[/Users/dominggus/Documents/dpdk/eclipse_workspace/cmd_afstuderen_infographic/src/as/nl/dominggus/infographic/ui/NoFullScreenPage.as:54]
I believe this means the allowFullscreen parameter for the plugin isn't being set correctly.
Verify Flash player version here (bottom of page shows debug Yes/No):
http://helpx.adobe.com/flash-player/kb/find-version-flash-player.html
Get the appropriate Debug player for a given platform:
http://www.adobe.com/support/flashplayer/downloads.html
Edit pasted from the docs
FULL_SCREEN_INTERACTIVE Constant
public static const FULL_SCREEN_INTERACTIVE:String = "fullScreenInteractive"
Language Version: ActionScript 3.0
Runtime Versions: Flash Player 11.3, AIR 1.0, Flash Lite 4

Related

swfobject not working on iOS

I'm trying to embed Twitch player using Javascript API - here is documentation how to embed a player using swfobject - https://github.com/justintv/Twitch-API/blob/master/player.md. My Problem is that the code works great on desktop, but on mobile browsers - iOS (I haven't had a chance to check Android yet) script simply doesn't embed a video. It works when I use iframe method though. Is there any fix for iOS to make this works using JS API and swfobject?
swfobject is the flash player (swf = ShockWave Flash). Flash does not, and never will, work on iOS. The iframe method runs coder that detects the OS, and loads the native iOS player on iOS, and flash for everything else. You need to duplicate that functionality.

Actionscript How to debug using getStackTrace() in any web browser, not in flash player without the browser

How to debug using getStackTrace() in any web browser, not in flash player without the browser
trace2(err.getStackTrace());
I'am trying to get the error stackTrace in my broswer, but it returns NULL, according to the documentation the stack trace is only displayed in the flash player debugger, but I need to see it in the browser, cause many data is passed through web server, is there any browsers or addons who can help me to see the stackTrace?
You have to use the Flash Player content debugger plugin, with that you'll be also able to use the debugger for the Flash movies loaded in the browser.

publishing a flash project in html, fullscreen code preventing animation

Hello I'm making a flash interactive CD and my clients needs a mac, pc and linux version, for linux he asked me to make a html with the flash inside. PC and mac are running perfectly however when I export into the html my flash timeline gets stuck at frame1 and the little animation I made to zoom to the main screen is not loading.
After some testing I realized that my very first code line is somehow doing this:
import flash.display.StageScaleMode;
stage.scaleMode =StageScaleMode.SHOW_ALL;
stage.displayState = StageDisplayState.FULL_SCREEN;
This is the code I use to force fullscreen in mac and pc but it makes the html one stuck on frame 1, if I delete that code the html version runs fine, what is it?
Working on Flash cs6, as3, for flash player 9 (tried up to 11.2 and not working either)
thanks
Your animation probably doesn't work because there is an error while executing in browser.
The security restriction for StageDisplayState.FULL_SCREEN in flash player is different from the AIR desktop application.
In Flash Player, full-screen mode can only be initiated through ActionScript in response to a mouse click (including right-click) or keypress. AIR content running in the application security sandbox does not require that full-screen mode be entered in response to a user gesture.
Adobe documentation
Also check if you use the tag in HTML while embedding. That is allowing web content to become fullscreen.
<param name="allowFullScreen" value="true" />

as3 Video not displayed on PC in debug mode

I am developing an app in as3+AIR for iPad with Flashdevelop.
I stream a flv with StageVideo and everything is working fine deployed on iPad.
But on the PC in Flashdevelop Debug mode no video is shown, although it gets played (NET_STATUS events are dispatched).
Any idea whats happening?
According to Adobe's Flash Roadmap, StageVideo won't be supported on PCs until 2013.
Try adding some code which checks for StageVideoAvailabilityEvent.STAGE_VIDEO_AVAILABILITY:
function onStageVideoState(e:StageVideoAvailabilityEvent):void
{
var available:Boolean = (e.availability == StageVideoAvailability.AVAILABLE);
trace("Got StageVideo?", available);
}
stage.addEventListener(StageVideoAvailabilityEvent.STAGE_VIDEO_AVAILABILITY, onStageVideoState);
When StageVideo is not available, you'll have to use a regular Video object as a fallback.

SecurityError: Error #2152: Full screen mode is not allowed.

I have one flash player , which have full-screen functionality . which is not working in FF and MAC Chrome . and throws an error as below.
SecurityError: Error #2152: Full screen mode is not allowed.
at flash.display::Stage/set displayState()
at com.IQMediaCorp.core::IQMediaCorpPlayer/ToggleFullScreen()
I have googled about the issue and already verified some points below
my player have allowfullscreen = true in html object / encode
element.
the methid ToggleFullScreen is an mouse click event
below is code for ToggleFullScreen method
public function ToggleFullScreen(e:MouseEvent)
{
if (stage.displayState == StageDisplayState.FULL_SCREEN_INTERACTIVE)
{
bKnob.alpha=0;
bigScreen=true;
stage.displayState=StageDisplayState.NORMAL;
}
else
{
bigScreen=false;
stage.displayState=StageDisplayState.FULL_SCREEN_INTERACTIVE;
bKnob.alpha=0;
}
}
i don't get the reason why it is not working. can anybody help??
Thanks
Yes the reason this is happening is you cannot have StageDisplayState.FULL_SCREEN_INTERACTIVE in Flash less than version 11.3
Try StageDisplayState.FULL_SCREEN instead!
So check which version of flash you are building for here is an exerpt from the Adobe docs on displayState
Runtime Versions: Flash Player 11.3, AIR 1.0, Flash Lite 4
Specifies that the Stage is in full-screen mode with keyboard interactivity enabled. As of Flash Player 11.3, this capability is supported in both AIR applications and browser-based applications.