ActionScript 3.0 :: Positioning The Video Controls?
May 12, 2010
how to position my video controls. I thought I had it figured out until I moved my video and the controls did not move with it. I tried doing this: video.addChildAt(vidControls, 2); but it keeps barking at me.
Code:
video = new Video();
video.width = 640;
video.height = 360;
[code]....
View 1 Replies
Similar Posts:
Sep 3, 2009
I'm tweaking the video code found here [URL] His progress bar starts at the edge of the stage. My progress bar starts at x=40 into the stage. My problem is that even though all my mcs related to the progress bar are positioned properly the scrubber mc hops to the edge of the screen when the video starts. It also acts as if the progress bar you scrub though is at the edge of the screen too. I can't figure out why it's doing this. There's nothing in the code to tell it to do as such.
[Code]...
View 6 Replies
Sep 9, 2010
I'm porting in an .flv to Flash for the first time. I created the .flv from an .MP4 using Media Encoder CS5, and then opened a new Actionscript 3 .fla in Flash Professional CS5, clicked File > Import > Import Video. Then selected 'Load external video with playback component'. Everything seems to have imported fine, but when I publish the SWF and import it via Dreamweaver CS5 and preview the page, the video is there, but the controls are not. There's just a white box where the controls should be. Also, the video is out of sync with the audio, which I believe is a problem with Media Encoder, not Flash.
Here are some links:
The page that I'm working on (video at the bottom of the page)
The .FLA
The .FLV
The .SWF
View 2 Replies
Oct 17, 2010
I am building a flash video player with a custom UI, and admittedly I'm not sure exactly what I'm doing. I tried altering a skin, but that always comes out wonky due to whatever coding they use. So I'm altering single video components and putting them in the mc what I want them. It looks great, but the problem is that when video goes to full screen, all of the controls dissappear and I can't figure out how to make them show up. How do I get a movie clip to display on top of the video when it goes to full screen in flash AS3?
View 1 Replies
Jan 2, 2011
I have a video player that plays videos loaded via XML and selected using a combbox. I just got the play and pause buttons to work. What I'm attempting to do now is be able to hit next or previous buttons and select the next or pevious video from the XML file, and update the displayed/selected file in the combobox, my thought was to somehow set the previous/next buttons to directly manipulate the combobox, but nothing I've tried so far has worked.
ActionScript Code:
import fl.data.DataProvider;
var nc:NetConnection = new NetConnection();
nc.connect(null);
[code]....
View 2 Replies
Jun 4, 2009
I have lots of .swf video files from the past years, and recently have been using the flash video encoder in cs3 to create .flv that adds video controls. I was wondering if there was a way to add video controls like slider, stop, pause, volume, etc.. to .swf video files. I have searched for a .swf converter to .flv format but even though all the marketing says it can do it, none of the ones I have tried can do it.
View 1 Replies
Oct 12, 2011
I've landed a project which is centered around building a custom video player with some special functionality (so I can't just use the default Flash video player, unfortunately). I have two small 'problems' in the sense that I could probably solve them myself, but I'd like some input on best practice for solving them:(The project is for Flash Player 10 and the video is intended to run inside a browser.)
Toggling between normal / fullscreen playback Ok, so my custom video player needs to be able to toggle between fullscreen and normal embedded-in-webpage player size. How does fullscreen toggling currently work in AS3 -is there a specific AS3 method for fullscreening a specified video object in the swf (without stretching the video player UI in the swf itself), and if so, does it automatically black out the background if the screen format doesn't match the video format? - or do I need to download a class for this?
Positioning video player UI when going fullscreen As opposed to YouTube, I want the player UI to still show up when the video is toggled to fullscreen mode - but as mentioned above, I don't want to stretch its size along with the video. So is there a best practice for repositioning the video player UI to the vertical bottom and horizontal center of the screen when the user clicks full screen? I'm not entirely familiar with what happens to the Flash stage when it goes full screen,. How to deal with not knowing the coordinates of the vertical bottom/horizontal center when screens have different ratios and resolutions?
View 3 Replies
Oct 12, 2011
I've landed a project which is centered around building a custom video player with some special functionality (so I can't just use the default Flash video player, unfortunately). I have two small 'problems' in the sense that I could probably solve them myself, but I'd like some input on best practice for solving them: (The project is for Flash Player 10 and the video is intended to run inside a browser.)
Problem 1: Toggling between normal / fullscreen playback Ok, so my custom video player needs to be able to toggle between fullscreen and normal embedded-in-webpage player size. How does fullscreen toggling currently work in AS3 -is there a specific AS3 method for fullscreening a specified video object in the swf (without stretching the video player UI overlay), and if so, does it automatically black out the background if the screen format doesn't match the video format? - or do I need to download a class for this?
Problem 2: Positioning video player UI when going fullscreen As opposed to YouTube, I want the player UI to still show up when the video is toggled to fullscreen mode - but as mentioned above, I don't want to stretch its size along with the video. So is there a best practice for repositioning the video player UI to the vertical bottom and horizontal center of the screen when the user clicks full screen? I'm not entirely familiar with what happens to the Flash stage when it goes full screen, How to deal with not knowing the coordinates of the vertical bottom/horizontal center when screens have different ratios and resolutions?
View 3 Replies
Oct 2, 2009
I'm including a video with it's controls into a frame in flash.When I try it and publish it as SWF the control bar of the video shows but when I publish it as a .app for mac or a .exe for windows and run itthe video shows but not the controls
I'm using the FLVPlayBack component to show the video
View 1 Replies
Mar 5, 2011
I'm new to Flash and I'm pretty sure this a dumb question that has been asked many times - but go easy on me as I have searched and searched through and just can't find the answer.
I've created my first animation using a set of digital Jpeg photos and I've figured out the code for inserting this into my web page. It works perfectly and I'm very impressed with the quality of the animation and how small the file is. Now I want to add a simple control bar underneath with Stop, Play, Rewind - the usual stuff you get on YouTube, but I can't for the life of me figure out how to do it.
View 15 Replies
Jun 17, 2009
Is there a way to hide the controls on a flash video (flv) until the user scrolls over the video? So the page opens, the video starts playing (still no controls visable) and then when a user scrolls over the video, you then see the controls for the first time. I have searched high and low.
View 7 Replies
Mar 22, 2010
I'm sure this is a simple thing but I haven't been able to find out out to associate an absolute link with video controls.
View 1 Replies
Feb 21, 2011
i created video player for page to play flv videos and i did it by adding FLVPLayback component to libarary and next code.[code]But i needed to enlarger the size of video and it got nasty blocks so i google.how to enable deblocking and moothing and i had to change code to [code]Disadvantages no controls,square videos stretch to video player on first code they only stretch in height.Is there way to add smoothing and deblocking to the short code i used first?If not how can i add controls to the second code? I also use external videos and buttons to change them how i make sure one is unloaded from memory after another one loaded, for both codes.
View 0 Replies
Apr 22, 2011
Im adding videos to my stage with AS3 and was wondering if it is possible to then add the standard flashh video controls to the video with script..[code]
View 0 Replies
Jul 14, 2010
I followed a tutorial on youtube on how to make a custom flash player but the guy never uploaded continuing videos. Here's the link to the video: [URL]...So all I have now is a 3.0 Action Script file with a layer that has this code in it:
//Vars
var video:Video;
var netCon:NetConnection;
var stream:NetStream;
[Code]...
View 3 Replies
Jun 30, 2008
I am creating a full screen FLV player and I am using the
Stage["fullScreenSourceRect"] = new Rectangle();
method. The problem is, when I go to fullscreen my video controls are zoomed in as well making them a bit pixelated. I have seen some players like the one on
[URL]
where they achieve full screen video and still keep the controls the same size.
View 3 Replies
Apr 4, 2007
I have a puzzle. I have some test movie clips that areoperated (played) by pressing a thumbnail. All works ok in theresultinmg html and flash file that is produced, but when I importthe flash movi into DW, the controls disappear, but the movieplays...if you look at the link below you can see the flash moviecontrols in operation OK[URL](press thumbnail 2 to play the test movie)
View 4 Replies
Aug 12, 2010
I need to access and stream flash video stored on a US server. I do so from one of three PCs - all running Windows 7, all with same updates and same version of Flash. Two of them show a given video fine. The third runs the same video but it is clearly truncated on the right and bottom - that is, only part (top left two thirds?) of the video is visible. And two show timecode and the third...doesn't (or its hidden by the truncation). But how can this be? And more importantly, what can I do to make the third PC play streaming video correctly?
View 1 Replies
Dec 7, 2011
I am not sure how to accomplish what I need. I'm developing an iOS video app. I will package ALL videos with the ipa.I created a net connection and net stream successfully. I'm importing them into an array. They play perfectly. However, I need a way to mask out the main interface. Ideally, I'd like to drop that video into a dynamically called movie clip that has the controls in it. I made one called holder_mc.(There are no controls in it yet.) I cannot seem to get that on screen at the right z-index (not sure if that's the right term). I tried creating an empty movie clip and putting the video in it. That did not work either. This has to be simple.
View 1 Replies
Mar 15, 2012
I'm trying create an expandable banner that when expands plays a video that has play, pause, mute buttons and a seek bar.
I've successfully created the video player and converted it to a symbol and it works when I copy it into other flash files so I know it's the banner that troublesome.
The problem is when I use it in the expanded part of the expandable banner I can't click on any of the buttons. I can see it's working as the video is playing and the seeker bar is moving. It's almost as if there's an invisible button over the top (the hand icon is visible) stopping me from hitting the buttons of the player.
The code for the expanding banner is very simple (see below)
on (rollOver) {
gotoAndStop(2);
}
on (rollOut) {
gotoAndStop(1);
}
View 3 Replies
Sep 26, 2009
How can I streem a video into flash and have the user be able to pause play stop and ff and RW? I can play a streeming video now but I can't get it to respond to controlls.
Here is how I'm importing it.
url = "http://www.hotflashtoons.com/video/SIIDUnratedTrailer.flv";
// initialize net connection and stream
var netConn:NetConnection = new NetConnection();
netConn.connect(null);
[Code].....
View 9 Replies
May 7, 2009
I have three videos recorded from different angles of the same subject. As you can see in the attachment, I need to see one video screen with 3 buttons to jump between the different angles. The transition between the videos should be immediate.I thought of loading the videos internally, but they are over the 16000 frames so they will not load properly into Flash - so using .flvs may have to be the only option. I figured if I could get all three videos started at the same time then I could toggle the viability, but how can I get the three videos to start at the same time?
View 4 Replies
Nov 1, 2010
I'm have a flash movie where I let the viewer push a button to load an external SWF-which in itself is a video I converted to SWF. Once it loads via an empty movie clip into the main flash movie how can I add video player controls such as volume on the lower part of the stage of the main movie to control the externally loaded SWF?
View 1 Replies
Nov 11, 2010
Im working on a video player, and I have a button for full screen, which function properly, however, the controls that surround it are stretched with the video when full screen is active. So I've been attempting to find ways to detect when fullscreen is active to change the controls, but nothing seems to work. I've used both FullScreenEvent and Event.RESIZE. Everytime, it can detect when it goes full screen (aka a black box is placed on the stage) but when i go back to normal screen, it doesnt detect that activity (and the black box remains).
Please see code below. I am trying to do this all inside a class which i will have an instance of on the main stage.
Code:
import flash.display.*
import flash.utils.Timer;
import flash.events.TimerEvent;
import flash.events.FullScreenEvent;
import flash.display.SimpleButton;
[Code] .....
View 4 Replies
Nov 6, 2010
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
View 10 Replies
Apr 4, 2011
Is there a standard set of JavaScript controls for controlling a flash video created with swfobject?
I'm using Akamai Multi Player and I'm trying to find a JS control to seek the video when it loads.
View 2 Replies
Oct 21, 2011
Sites like The Daily Show (I can't post URLs since I'm a new user, but just go to their front page to see) are doing what I need to do. When you go fullscreen with their video, the bottom video controls and the top social media bar aren't scaled. They adjust themselves in width, but the text and button graphics remain the same size.Now, I've had success with a method where, when the FULLSCREEN event is invoked, I downsize my interface elements by a ratio equal to the difference between my SWF size and the screen size, essentially keeping the interface at a constant size in both modes. However, all text and graphics inside those elements are distorted or blurred when I do this.
View 3 Replies
Oct 21, 2011
Sites like [URL] are doing what I need to do. When you go fullscreen with their video, the bottom video controls and the top social media bar aren't scaled. They adjust themselves in width, but the text and button graphics remain the same size.
I've had success with a method where, when the FULLSCREEN event is invoked, I downsize my interface elements by a ratio equal to the difference between my SWF size and the screen size, essentially keeping the interface at a constant size in both modes. However, all text and graphics inside those elements are distorted or blurred when I do this. At [URL], the text looks exactly the same in both modes, and uses no anti-alias.
View 3 Replies
Mar 24, 2010
My question is how do I incorporate playback controls to a Embedded Video that plays with the timeline? I saw how easy it was to add playback components when you import video externally. I figured that I probably need to start by creating my play back components, but then I need code to tell the swf what to do?
View 5 Replies
Nov 13, 2005
i have the controls for car number 1 that would be the arrow keys if [code]but how can i make controls for car 2.i wann use wasd but i cant figure out how the key.a doesnt work.
View 1 Replies