Adobe Flash - ActionScript PrintJob.send method does not work in Electron. The screen just flashes without showing any Print Dialog.
Is there any alternative to show the Print Dialog in ActionScript?
Related
stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE
I'm using this command to make my flash application fullscreen, and on that frame I have a video and a button to skip and pause the video and go to next frame,
PROBLEM I'm Facing:-
when I open flash application it launch's in fullscreen but my buttons are not visible at all.
I want to make only canvas fullscreen but not the video.
please help
I just create an interactive flash website and it doesnt work without flash player. Is there a code to make my website work well on any browser and without flashplayer?
Thanks :)
Bad news, if you want to run flash animation in a web page, the browser should have FlashPlayer installed and enabled.
But if it's not in a webpage, you have the possibility to convert your Flash animation in an application with Adobe AIR for desktop and mobile.
http://www.adobe.com/products/air.html
With the last Flash IDE (Animate CC), you can export your Flash animation in HTML5, to be compatible with a browser that not have Flash Player. But not support all Flash functionalities.
https://helpx.adobe.com/animate/using/creating-publishing-html5-canvas-document.html
I already know about StageWebView and HTMLLoader, but that only works in Adobe AIR. Is there any way (maybe third party) to do the same in a SWF.
Reason:
I'm building a game in AS3 that will run on mobile devices with Adobe AIR, and there is also a web version that will run as a SWF.
The game has some links, URLs that open in a StageWebView for mobile. My problem is that the SWF has to open these URLs in a browser popup or i-frame... I don't like it :(
What you're trying to accomplish isn't possible in a SWF. However, on the web you will have access to javascript and HTML, and with that, you could replicate the functionality with an iframe that sits directly over your SWF.
I want to get several Flash animations to come up on different displays at start up. Is there a way in Actionscript that I can force the movie to go fullscreen on a particular display?
Package your flash animations into AIR applications - you can then set the x,y of each application within the properties box / xml.
Flash Player chooses which monitor to full-screen to. If there is a solution, it is not AS3.
"Flash Player and AIR use a metric to determine which monitor contains the greatest portion of the SWF, and uses that monitor for full-screen mode."
I am using a flash image viewer developed with actionscript 2.0 and used only with IE. It uses flash PrintJob to print images.
var printJob:PrintJob = new PrintJob();
printJob.start()
printJob.addPage(printMc)
printJob.send();
delete printJob;
But when PrintJob is invoked at fullscreen mode, print dialog appears and flash player exits fullscreen mode. Is this a security limitation in Flash ? or Is there any workaround to stop exiting fullscreen mode?
Tested environment
Browser: IE9
OS : Windows 7 64 bit
Flash Player: 11.1.102.63
I would imagine that it's down to the Operating System rather than a unique Flash issue. You can't keep a window in fullscreen mode if it's not the active window; and when you open the Print dialog, that becomes the active window - thus bumping your Flash out of fullscreen mode.
No workarounds that I can think of, because it's not Flash that's controlling this - it's the OS.