ActionScript 1/2 :: Button - Make Media Display Component Fullscreen
Aug 5, 2010
I am using a media display component to display a short FLV cartoon. I have given the component the instance name "fcEp01" and am successfully controlling its play, rewind and pause functions using buttons using "on (release) {_root.fcEp01.Play();}" and so on. I want to have an additional button that will allow the viewer to toggle the component to fullscreen (and back). I am using AS2 in Flash CS3. I realise that it may be necessary to use a movie clip instead of a regular button, but the tutes I've looked at haven't worked.
I like to make a fullscreen desktop application, with an FLV, using the FLV Playback component. However, I�d like there to be a Fullscreen button on the playback component, which will allow the user to toggle the video fullscreen.I cant, for the life of me, figure out how to do this with various settings�it should be easy! This is what I have--is there a better way to do things (without a custom movie player)? My inital settings are as follows:
I am trying to load .F4V file to Media Display Component on button press using Following Scriptvideo.setMedia("support/name.f4v","F4V")But its not working,
so i'm trying to make a fullscreen button for my flv player, and it only works when my fullscreen_btn.x is < 600 and > around 300. anybody ever encountered this before?[code]
I installed FMS about a year ago, and realized that it broadcasts videos in "real time", just the point where the video is, without a "progressive display and download".Maybe there is a mode in FMS that makes it work in "progressive display and download" way in HTTTP connections, just like youtube or any other tube, so, it will be downloading the rest of a video, while playing its previous part.
I'm having trouble controlling the PAUSE and PLAY states of the pause/play button located on the Media Controller component, while streaming an .mp3 file.
- I set the button to the PLAY state (which shows the pause button) in the authoring enviroment. (Good).
- I set the media, and play the mp3 file. (Good).
- After the .mp3 file is done playing, the button goes back to the PAUSE state...DESPITE a fucntion I have that loads my next mp3 file).
I would like to be able to control the button states to reflect that the player is still playing. (ie. showing the pause image)
I thought "audioController.playing = true;" would do the trick...but it's not working correctly.Below is my code:
//Loads and Plays Audio
Code: function loadAudio() { audioPlayer.setMedia("audio/" + audioNames[_global.nCurAudio]);[code]...............
Player.fla and Controller.as are in the same folder.Player.fla:Button component in the library (with its assets). DocumentClass = "Controller". 1 layer, 1 frame. No code in timeline.Controller.as:(see attached code)My problem:I put a button on the stage, set instance name toplayPauseBtn, change it's label to anything but "Label" in theParameters panel, and for some reason the button cannot be disabledwith code I attached.Not a critical problem because I can set playPauseBtn.label ='' in my class file and it will work, but why would the buttoncomponent require a label of "Label" in the parameter panel toallow disabling?
i am trying to to do the following. I have 2 buttons on a page.when i click the first button it should just display the image i want it to.when i click the second button it should display the other image i want to display.
I'm looking to have a movie clip pop up, play itself after a user clicks on a flash navigation button.
(something like this???) message_btn.addEventListener(MouseEvent.CLICK, goMessage1); function goMessage1(evt:MouseEvent):void{ ???(play message movie clip here)???;}
I am using the Button component (the one shipped with CS3) inmany places in my AS3 project. I am coding in .as files, not on thetimeline.I have skinned the Button to use the colors I like. Now Iwish to "skin" it so that all instances generate a rollOver sound,and I'll be darned if I can figure out how.I know I can listen for ROLL_OVER events in each Buttoninstance. But I have many many Buttons and it seems kludgy to addthat same code to every class I have which tracks a Button. I amhoping there is some way I can make *all* instances of Buttonrespond to rollOver the same way. I am hoping it is likesetComponentStyle or changing the skin for the Button; I can do itin one place and it works everywhere.I guess I can listen on the Stage level for bubble-ups ofROLL_OVER, trap those that come from Button instances, and handleit from there, but stagewide listeners also seem a tad kludgy
I have a component "child" which has a cancel button. Now this component is placed in a state called "newChildComp" I also have another component called "parent". In the parent component, i have a button that dispatches an event. Here is the event code:
[Code].....
so, basically,i am checking to see if the cancel button component in the Child component, while i am still in the parent Compoent, was clicked, if it was clicked, call the cancelButtonHandler. The problem is by the time the addNewChild handles the event, that cancel button was still null. My question is how do i solve this without using the itemCreationPolicy on the cancel button?
I'm making a flash site, and i want it to load full browser with a "fullscreen"-button to go fullscreen. The problem, however, if i resize, the site will keep the same width-to-height ratio...But if i'm testing it using the flash debugger, everything resizes just correct...My html:
HTML Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">[code]......
Im creating a sort of a picture album, i would like the users to be able to click for full screen display! How do I achieve this??? pics. are most probably jpgs.
I have tried numerous things but when I insert the FLVplayback Component into flash that is linked to an external video source the fullscreen function will not work but the video plays as needed.
I am just starting to use AS3 (grumble) and I have a video application that when it runs fullscreen it hides all other movie clips and objects on the stage. I would like to display certain objects/movie clips over the fullscreen video.
I'm trying to make a Flex Tree Component display the children of a sprite in a hierarchical way. Moreover, dragging the items on the FlexTree would resort and reparent the items. I have special Elements set as Folders. This would allow other elements to be added there as a children by dragging an element on the tree and dropping it there. I have a failed attempt which works, but breaks when I try to add folders. Basically, it fails at reparenting the items by dragging and resorting folders and that Does anyone know of a component or something which can do this, has anyone have created any of this or could anyone give me a clue?
So I'm building a flash presentation and one slide has video. I have a flv component on the stage and the user wants the video to initially appear at a smaller size and then to click on it to launch the movie in fullscreen and to play. The playing is no problem but it doesn't want to launch fullscreen.Code below:
// VIDEO moviePlayer_mc.fullScreenTakeOver = false; moviePlayer_mc.addEventListener(MouseEvent.CLICK, launchFullScreen);
I am using a FLVPlayBack component to play some videos back inside a flash site I am making. Obviously I am using a Flash CS3 - AS2 skin since I am making the site using AS2.
Does anyone have the code to create a fullscreen mode button so that the videos go into full screen mode that are playing the FLVPlayBack Component?
I've encountered a really frustrating problem recently when switching to StageDisplayState.FULL_SCREEN with a FLVPlayback component on the stage.
My movie: bottom layer: a movie clip inside of which is a FLVPlayback component playing a flv movie upper layer: movie clip (logo), second mc (fullscreen button)
Effect (Before clicking the fullscreen button): Everything is okay, the movie plays, logo and button are visible.
Effect (After clicking the fullscreen button): The only thing that is visible is the playing movie, but logo and fullscreen button disappear.
What happens: The mc with the FLVPlayback component gets the highest child index and covers the logo and button. It is not the problem with aligning logo and button on the stage, as without the FLVPlayback component they are perfectly aligned. I also tried to manually switch the depth of the mc with the FLVComponent, unfortunately without any result.
I am using the flvplaybackcaptioning component in Flash CS3 along with a flvplayback component.
The XML file is pointed and everything works fine till I go fullscreen mode. Once switched to fullscreen mode, the flvplaybackcaptioning component starts moving up by 1 or 2 lines. This is very distracting.
I have something really weird happening when I try and combine using FLVPlayback Captioning and fullscreen mode to display subtitles.Basically, when I oscillate between normal and full screen...
1. the first time I do so (normal->full) it works - the subtitles are resized fine.
2. Then when I go back to a normal-sized player (full->normal) the subtitles disappear.
3. Then when I try again to go to full screen (normal->full) the subtitles appear - but they are the wrong size - the size that should appear for normal-sized screens.[code]
I have an FLVPlayback component instance on my stage, into which I load videos based on button presses. When I create a .swf of my project though, if I use
I get unexpected behavior. What should happen is the file loads, everything is centered, and the area around the project is whatever the background color is.This sort of works .. until the first FLV is played. The FLV gets scaled to 100% (fullscreen)and if I hit "esc" I go back to the "normal" sized player, but if I then maximize the window (almost the same as fullscreen), the entire flash player now decides to scale, not just the FLV playback component
I'd like to be able to have my windows projector file to take up the entire screen when it's loaded (without being scaled), but this doesn't seem possible. Any ideas what's going on? Regarding the FLVPlayback component, I've tried everything to make it fit and not scale ....set height, width, set scale to "noScale", set registrationHeight, registrationWidth, etc. Nothing works.
We all must have seen players, that when in full screen mode, the controls are set to perfectly align at the bottom of the screen, and the aspect ratio of the controls are perfect (no distortion) - any one know what code acheives this?It must be something to do with, being able to auto detect what screen size the user has, perhaps
basically i'm following this tutorial on how to make a fullscreen HD video [URL]the only difference is i'm not using any flash components with my player.when i play the video on a normal screen, the video zooms in with the size of my object which the embedded plash player. all my controllers are not visible but still somehow it was on the back that you can still click on while the video is playing.also, on fullscreen mode, definitely all controllers are gone.