ActionScript 3.0 :: How To Trim Video In Flash
Jan 7, 2010I am using flv player in my application and i want to trim my displaying video in run time.Is it possible in flash or let me know if you have any solution for this problem.
View 2 RepliesI am using flv player in my application and i want to trim my displaying video in run time.Is it possible in flash or let me know if you have any solution for this problem.
View 2 RepliesI've managed to get myself stuck in a situation where a database full of images ( transparent images of various products ) needs to be placed on the stage, all of which need to be aligned the same by the products height. My problem is that the png's of products are 'floating' and I have no control of where about's in the png it will sit ( could be tight at the top and loads of room at the bottom, vice versa)
Does anyone know an existing way to find out the png's 'true' height ( width is an extra ). I've thought about looping through the bitmap data and checking but wondered if anyone has invented this wheel already?
I have a Flash fla file that contains a whole lot of images. The majority of each image is composed of transparent pixels with a visual object in there somewhere. Each image at the moment is at {x:0, y:0}.I want to trim away the transparent pixels of the image down to a minimum bounding box, but keep the object at the same global position. This requires shifting the trimmed image to the global position of the object in the untrimmed image.This is not so much a problem, but the fact that the images are all contained in a fla is the problem. The options I see at the moment are:
investigate JSFL, the Bitmap object has a getPixels, this in combination with a selection and delete operation could work save the fla to xfl and enumerate the images and associated xml with something like Ruby + image processing lib
Questions: Does anyone know upfront if this operation is possible in JSFL? Have anyone done much automated processing of xfl files? Is there an off the shelf image processor that can perform this trimming operation?
I need to trim away away all the extra spaces that a users types into my input text field. I know that there are a few ways possible, but i'm not sure how to go about doing it.
View 5 RepliesI want to trim a sound and then let it loop in a slideshow. The sound -- a roaring crowd at a soccer game-- should loop as a slideshow plays. As the movie repeats the sound should continue to play. It doesn't have to be in sync.
This works if I use Streaming, but there's a gap at the beginning of the movie as if the sound was being loaded over and over again.
I've been advised not to use Streaming, but if I don't, the sound is reproduced in its entirety-- there is no trimming.
how to trim starting and ending spaces and also how to replace two or three spaces into one space in as2
View 9 RepliesHow would I trim the following string: "id":"102184499823699","name":"Montreal, Quebec" to only display Quebec. Basically I want to look for name": and trim everything before it including itself.
View 2 RepliesI have a text field that a user can enter a value and right now they can enter "150.55" or "125.55555"
I want to limit the entry to a decimal with a scale of 1.
So they would be only be able to enter "150.5" or "125.5"
I have a var as an integer that I'm reading for the scale. Just not sure how to trim the string so I only display the shortened 150.5
I am trying to parse a string in order to remove all extra white spaces.Iâm working in AS3 and at the moment the only pattern I found remove all content:
field.text = field.text.replace ("As+|s+z", " ");[code].....
create a function in my program which trims away all the extra heading and trailing spaces in my input text field. I've just begun to learn actionscripting not long ago so I am not really proficient in it yet.
View 0 RepliesIs there a way to trim a bitmap so that the width and height are not effected by transparent pixels?
View 5 RepliesRecently i have visited so many video enriched flash site like this one [URL] Most of them shows video in full size. I downloaded the video using FF plugin. Video framesize is very small compared to the stage size. When i tried to add video and resize the video acoording to the page size , it slows the browser. I tried to embed the flv inside an swf and loaded the swf using normal loader and plyed it.. but the quallity and performance comapred to these site is very low..
View 3 RepliesI made a video in After Effect and export it to flash as a FLV video.. and write de code to load it into flash.. but I need it to loop.. Here is the code
[Code]...
i want to know if it is possible to play a video via flash player, when the video is located on different server's mysql. for example: i want to play video on [URL] which(video) is located in [URL] mysql
View 1 RepliesJust wondering where I could get a flash video player that enables the user to embed the video like youTube functionality.URL....
View 3 RepliesI'm trying to create a flash video that will incorporate powerpoint-like slides along with video footage. So for instance I will have slide 1 (graphic) - slide 2 (video clip) - slide 3 (text). I have used CS4 before for one of my classes but that was a little while ago, and I feel like I'm starting over again. When I import the first graphic (.png), is there an option to have it resize to fit the stage?
View 5 RepliesInternet Explorer will not display flash video in stand alone video players, similar to the one at: [URL] The other embedded flash content is viewable.In the IE8 tools, manage add on's, Adobe Flash Player is not listed.I've also noticed that when I access the Adobe Flash Settings manager, I can not uncheck "hardware acceleration".Windows XP Home Service Pack 2 is the operating system.
View 4 RepliesI am currently working on a flash website that has several flv videos on it. Since the website layout has a slight tilt, I have had to transform the videos to slightly tilt as well. The problem that I am having is that when I do this the image becomes very pixelated and the edges of the video become jagged. I have somewhat fixed the edges issue by making a mask around it but i really dont know how to make the resolution better, or what causes it to loose resolution when slightly transformed. The size of the videos is the same as encoded. All I do is tilt them upwards on the right side a bit.
View 1 RepliesI'm trying to get a video (flv) or an swf video player to work on Facebook walls, however no matter what I do - facebook posts the raw fbml and ignores the code.
<fb:swf
swfsrc='http://www.domain.com/flv_player/Main.swf'
imgsrc='http://www.domain.com/large1.jpg'
[Code]......
Looking into HTML5 video tag, and researching which browsers support which video file types, and my initial thought is things just got harder than just using flash. I am wondering if there is some skeleton code (combined with development approach for videos) that someone has figured out to do the following: If flash is available, use it If not, try html5 video ogg format If that doesn't work, try html5 video h.264 format If that doesn't work, try html5 video webM format Based on what I am seeing, am I correct in thinking that now, in order to accommodate all users on all browsers, a video needs to be published in 4 formats? If so, this HTML5 video thing is an epic fail!
View 2 RepliesI have a FLV playing in Flash with a full screen button. The problem is I want only the video to be shown full screen, not the entire stage. This is the code I'm using to make the video fullscreen.
function fullScreenUP(event:MouseEvent):void {
if (screenCheck == false) {
stage.displayState = StageDisplayState.FULL_SCREEN;
[Code].....
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
Create a html video list that uses a flash video player?
View 14 RepliesI'm currently working on a website design. The idea is a big chromakeyed interactive video in Flash. The size of the video is 1080 (width) x 1500 (height) pixels.I've exported the video in After Effects with the standard settings for flash (File>Export>Adobe Flash Player(SWF)). Now when I import the video in Flash and preview the file, the video plays in a slower speed and it's not playing smooth at all...Is the video too big? Is there a maximum video-size to keep the video running correct in Flash? Is it something else that causes this problem..?
View 5 RepliesI'm pretty much the rookiest rookie when it comes to Flash.
Here's the actionscript (3):
// Here's the dumb-dumb:
/*****************************************************************/
/*****************************************************************/
function captureImage(e:MouseEvent):void {
[Code].....
So I'd still like to find a solution that maximizes the quality.
This will create an flv video file on flash media server:
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
ns.publish("yourCamera", "record");
ns.attachVideo(Camera.get());
How can I generate an image for the current video frame every 2 seconds?
I was wondering how I can delay (2 seconds) a video to play in a Flash Video Player? I know one way is for me to add blank frames but I would like to know some other options.
View 2 RepliesI am using Flash Professional 8 and Dreamweaver 8 to maintain a website. I have just started using flash to show video highlights from high school football games which I record. Using iMovie I export the video as quicktime file and then import to flash to convert to a flash video file to post on the web site. The video coming out of iMovie has very good contrast and the quicktime movie has the same good contrast. When looking at the file in Flash the contrast changes dramatically. I becomes washed out. I am using Max OX 10.6 operating system.
View 2 RepliesWith the Flash Player that comes with CS3 and on my PC XP Pro laptop.I want the player controls to appear at the _bottom_ of the video not on top of the video and not under (behind) the video.
- my video is 640 x 480
- so I modified the "properties" tab at the bottom of the screen to 640x480... (it was 550x400)
- but that just makes everything larger when I click File > Publish
- and then look at the video in Internet Explorer... the Player Controls are still _On Top_ of the video.
I guess I need to learn how to
- Make the stage bigger
- Position the Player controls below the actual video
I am streaming flash video and the dimension of the video is 1280 by 720 (same size as the stage)
but just before the video streams, there is a quick flash of the video (about 320px by 240px) at the top corner of the stage, and then it plays the videos at the correct size (which is 1280 by 720) .... a quick flash is the best way I can explain it.
This is my code:
function clicked(event:MouseEvent):void {
var video:Video = new Video();
addChild(video);
[Code]....
is there anyway I can stop that quick flash of the video .... so when I click on the button, it just plays the video, at the correct size?