ActionScript 3.0 :: HTML Links In Fullscreen Mode?
Jul 28, 2010
Is there any graceful way one could have Flash leave FULLSCREEN mode (return to NORMAL) when a user clicks on a link formatted with HTML which opens a new (_blank) window? Currently, it opens the new window but remains in fullscreen mode (focus remaining on the current), so you never notice the window or have any indication that a window opened until you return to NORMAL.
It would be easy enough to do this with other buttons by throwing it into the MouseEvent handler function, but as far as I know HTML-formatted links (ones created with the <a> tag in an HTML TextField) only dispatch an event if the URL prefix is "event:", according to the docs:
Dispatched when a user clicks a hyperlink in an HTML-enabled text field, where the URL begins with "event:".
I suppose I can just throw the actual URL into the 'text' property of the LINK event and open a new window from there....but I was hoping there was a better way?
(Actually, now that I think about it, maybe in future projects I will create a simple urlOpener utility class which does exactly this, and handle *all* links this way so they go through a common funnel....)
I've made a flash application using actionscript 3, I wanted this application size to be dynamic, To be able to embed it in any size and let it adjust itself accordingly. I managed to accomplish this, theres a problem though: The original width of the application is 700 pixels. I'm embedding the flash in a smaller size, (400 for example) going to full screen, and when I exit, the application sets itself back to being 700 pixels wide, and isn't adjusting itself to the 400px width of the actual embedding area..
I wanted to make a video player that has normal mode and fullscreen mode. The part I am having trouble understanding is how to handle the video once it gets set to fullscreen. Do I just use the current video or do I get a high quality version of the video to show during fullscreen mode? What would be best practice for this situation?
Is there any way to debug fullscreen mode? I Ctrl+enter and I see the swf but the fullscreen button never works, like when I forgot the allowFullScreen param in my HTML code.Do I have to add some parameter to the CS5 properties?
I am loading an image in a back mc stretched to 100% of the stage width and height. Everything works fine except in fullscreenmode - the image does not resize to fit the new stage width and height. Here is the code:
PHP Code:
function loadFunc(What, Where) { var LoadingObject = new MovieClipLoader(); var NewObject = new Object(); NewObject.onLoadInit = function(mc:MovieClip) {
I need to play a flash website in full screen mode. That runs fine but then I have a link where we have an FLV video component. Whenever I browse to the link having the FLV video, the video goes fullscreen and fills the whole screen. I want the FLV so that it remains at the original video dimensions while I'm at Full Screen. Also I have another problem, if I let the video play in full screen, then when I press escape to get out of video it exits the full screen mode as well, how can I exit the video yet not exit full screen mode.
BTW, I've searched the internet and couldn't find any example of flash where we have flv video in full screen mode website.
I'm encountering a strange problem with using Fullscreen mode. Basically I want the whole piece to become fullscreen, but because there is an flv active within the page the flv is taking over the fullscreen instead of the whole piece. Is there any way to stop it from doing this?I'm applying it like this:switch(FS_STATUS){ case false: stage.displayState = StageDisplayState.FULL_SCREEN; FS_STATUS = true; break; case true: stage.displayState = StageDisplayState.NORMAL; FS_STATUS = false; break; default: break; }If the flv is there it causes the flv to go fullscreen instead of the whole thing, frustrating!
I built a flash player using the flvplayback component. I have a menu that slides up when the user brings the mouse down over the bottom 130 pixels of the flvplayback component. I did this by creating a symbol that is a clear box called "trig" and using "trig.addEventListener(MouseEvent.MOUSE_MOVE, slidebar);" with "slidebar" being a function that calls the tween to make the menu appear. To go into fullscreen mode i use the command "video.enterFullScreenDisplayState();" which is called by a button. Is there any way to set it so that my sliding menu will still work in fullscreen mode?
In a related question is there anyway to to have the player start in fullscreen mode? I tried using video.enterFullScreenDisplayState(); as the first line of the action script file after the import commands, but that didn't seem to work.
I'm running a standalone EXE file via the Projector (or whatever it's called when you run a standalone EXE file made with Flash). It's NOT a web-based application. Every time I go to fullscreen mode, I just get a blank screen. All of the images are gone. However, if I press Esc to exit the full screen mode, then the pictures appear again. Is this a bug with Flash CS3? This is what I put in the first frame of my movie in the 'actions' section:
When I run the Flash program (as an exe file), the program goes fullscreen, but all of the elements on the stage disappear, leaving the screen blank. However, when I exit out of fullscreen mode (by pressing ESC) then everything looks like it's supposed to, with the images showing up and everything.
I have a main FLA into which at certain points flvs and swfs are loaded and played, my current problem is that I have a loaded flv(display) which is set to loop using this code:ActionScript Code:import fl.video.*;
// Video component instance name var flvControl:FLVPlayback = display; var flvSource:String = "mainscreen.flv";
I've started now working with the fullscreen mode (for a project in college), and I already made the code for a button to turn the stage on fullscreen.I'd like to know if anyone knows how to leave the fullscreen mode by button?I used this code for turning the fullscreen "on" on the opening button:[code]Then I tried turning the fscommand on the fullscreen "false" on the closing button, but it doesn't work.And btw, how can I make the "open" button appear if I use ESC?
coming from a print background i am trying to teach myself both as2 and as3 and am working on a couple of small projects for myself. I have run into the issue, where the user is in fullscreen mode cannot use keyboard commands to inout text. I would like to know how i could make an alert that appears when the user is in fullscreen mode only.
I'm running a standalone EXE file via the Projector (or whatever it's called when you run a standalone EXE file made with Flash). It's NOT a web-based application. Every time I go to fullscreen mode, I just get a blank screen. All of the images are gone. However, if I press Esc to exit the full screen mode, then the pictures appear again. Is this a bug with Flash CS3? [code]...
I've got a PHP script that searches for links in a block of text and converts them to HTML values. The $message variable is then entered into my database using a simple INSERT. So far, so good. Then I have Flash parse the message using XML:
ActionScript Code: function messStyling() { messCSS = new TextField.StyleSheet(); var messCSSURL = "include/links.css";
[Code].....
The problem, however, is that my links don't work. The rollover works from the CSS styling, but the links don't actually go anywhere. When I rollover the links, the hand cursor doesn't appear, and clicking only serves to change the color back to the non-hover value.
This probably is a stupid question but does anyone know how I can start a standalone swf file in fullscreen mode.I want it to cover the whole screen when it starts.
Been a while since i've posted on here but im running in to a snag. It seems that when i go in to fullscreen mode with ie it runs correctly. However when i run it with mozilla I get a security error. Hitting continue, and repeating the process gives me the error again and im denied fullscreen. When i hit "dismiss all" and repeat the toggle it goes in to fullscreen.
You will notice that if you click on the white textarea, youcan type in it and the keyCode is printed at the bottom. NOW, ifyou click on the black background it launches into fullscreen mode.In fullscreen mode, you CANNOT type in the text area. You canselect the text, but you can't type. If you jump out of full screenmode then it works.What is going on here? Has anyone seen this before? Is it aFlash bug? Here's the code, FLA linked below:
My flash presentation contains video which I imported using the flash video component. When I play the presentation 100% size they play fine - contained within there window on the screen - When I play the presentation in full-screen mode they take over the whole screen. They also play untill the video is finished whithout moving onto the next scene.
I seem to have hit a bug in the current flash player (tested on 10.1.52.14): If I programmatically change the color of a sprite consisting of a text and a circle the output is different if the application is in fullscreen mode (the text is not re-colored in fs). Inside the mousedown event handler of my class I call the following (somewhat simplified code to make things easier to understand here):
var cTrans:ColorTransform = new ColorTransform(); _hColor=0xD78500//recolor the clicked sprite cTrans.color = _hColor; this.transform.colorTransform = cTrans;
This is what I get in windowed mode (expected behavior): That's the same sprite in fullscreen: I can switch between windowed and fullscreen and the text gets colored or not as shown above.
I have an executable with several embedded videos that plays fine but when I go Full Screen I lose the video. Anyone have this problem before? I am working in CS4 and using AS3.
I'm having an issue with an FLV video playback in a scene. When I go to fullscreen mode, I seem to lose the ability to adjust the video object.
I am loading a new video via FLVPlayerback(). Since the video is being loaded into the scene on top of everything else, I use swapChildren() to put my button back on top of the video. When the video is done playing, I removeChild() the video.
This works in the normal playstate.
However, if I am in fullscreen mode, swapChildren() and removeChild both do not work. If I exit fullscreen mode, they are indeed working.
The scribd fullscreen mode is pretty neat (example: http:url...). The advantage (for RIAs specifically) is that it doesn't (almost) completely disable the keyboard the way the 'default' fullscreen mode in Flash Player does. Seems to also work when embedded.
I have an FLVPlayback component on my timeline (frame 4 or so), and my Flash Projector is running in fullscreen mode. The problem is that I can't seem to make my FLVPlayback component NOT be in fullscreen mode and at the same time, have my stage in fullscreen mode.
I need to know all methods to exit from a fullscreen mode of a flash application on a touchscreen (because i want that people exit with my custom button).
I know that with a traditional desktop, ESC of the keyboard and double click with left button of the mouse allow to exit from fullscreen (like youtube).