CS3 Video Question
Is there a way to use the same code to display video in both and .exe version and web-based version?Thanks.Rob Childress
Adobe > ActionScript 1 and 2
Posted on: 01/09/2008 08:06:13 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
XML Image & Video-playing Gallery Issue. Video Doesn't Hide When Online.
Hi guys,
I've created a gallery using kirupa's tutorial that loads in, through xml, both images and streaming video swfs.
here's the link (then click on 'Real Art', then on 'Roster' in the menu):
http://www.studiotonne.com/tira/
All links (xml and content links in the xml) are pointing to an online server, so it should work offline in the same way it does online.
So offline, it all works fine and browsing through the gallery in the Roster for each artist, selecting each number in the gallery closes the current image/video and displays the new one, as it should.
Online however, the issue is different. For instance, clicking on 'Build', then on number 5 in the gallery (which is a streaming video embedded in a swf pulled in via xml), it streams in the required video. However, upon trying to select a different picture in the gallery, or choosing to view the gallery of a different artist, the video doesn't want to disappear and allow other images to be seen, as it does when viewed offline.
I'm sure its quite a simple thing to make the streaming video swf that the xml loads in, to disappear. I just don't understand why it works properly offline, whereas online, the video issue occurs.
Could it be a netConnection or netStream issue?
Here is the code for the build gallery in the roster:
Code:
stop();
function loadXML(loaded) {
trace("XML loading...");
if (loaded) {
xmlNode = this.firstChild;
image = [];
description = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
description[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
}
firstImage();
displayPages();
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("clientupdates/build/xml/build.xml");
p = 0;
this.onEnterFrame = function() {
filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
/*
if(blnPreview) {
previous_btn._visible = false;
next_btn._visible = false;
} else {
previous_btn._visible = true;
next_btn._visible = true;
}
*/
} else {
preloader._visible = false;
if (picture._alpha<100) {
picture._alpha += 10;
}
}
};
function nextImage() {
if (p<(total-1)) {
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
}
}
}
function prevImage() {
if (p>0) {
p--;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
}
}
function firstImage() {
trace("firstImage");
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[0], 1);
// Only show the artwork data unless we're not in preview mode
//if(!blnPreview) {
desc_txt.text = description[0];
picture_num();
//}
}
}
function picture_num() {
current_pos = p+1;
pos_txt.text = current_pos+" / "+total;
trace("Pic num:" + current_pos);
}
function displayPages() {
for(var i=1;i <=12; i++) {
if(i <= total) {
this["PageMC" + i].pgNum.text = "a";
this["PageMC" + i]._visible = true;
} else {
this["PageMC" + i]._visible = false;
}
}
}
function setPage(pageNum) {
if(pageNum>=0 && pageNum <total) {
picture._alpha = 0;
picture.loadMovie(image[pageNum], 1);
desc_txt.text = description[pageNum];
picture_num();
}
}
var my_nc:NetConnection = new NetConnection();
my_nc.connect(null);
var my_ns:NetStream = new NetStream(my_nc);
Thanks for reading guys. I hope you can help.
Jerome
Video Stops And Audio Continues - Individual Scenes Work, Together Video Freezes
This is my first flash project ever, but I think I got a handle on layers, scenes, using streamed audio, etc. The sync works for every scene when tested independently. Those exported .swf run fine. But when I try to publish the entire movie as a .swf or .exe or any other format, it always freezes at a certain point. The video stops but the audio continues.
Can anyone help me or give me an idea of where to start diagnosing the issue?
I've resorted to converting each individual .swf into .avis then combining the segments into the video that I want, but, of course, this doesn't retain the size, scalability, and quality benefits of a .swf file. Please help!
XML Image & Video-playing Gallery Issue. Video Doesn't Hide When Online.
Hi guys,
I've created a gallery using kirupa's tutorial that loads in, through xml, both images and streaming video swfs.
here's the link (then click on 'Real Art', then on 'Roster' in the menu):
http://www.studiotonne.com/tira/
All links (xml and content links in the xml) are pointing to an online server, so it should work offline in the same way it does online.
So offline, it all works fine and browsing through the gallery in the Roster for each artist, selecting each number in the gallery closes the current image/video and displays the new one, as it should.
Online however, the issue is different. For instance, clicking on 'Build', then on number 5 in the gallery (which is a streaming video embedded in a swf pulled in via xml), it streams in the required video. However, upon trying to select a different picture in the gallery, or choosing to view the gallery of a different artist, the video doesn't want to disappear and allow other images to be seen, as it does when viewed offline.
I'm sure its quite a simple thing to make the streaming video swf that the xml loads in, to disappear. I just don't understand why it works properly offline, whereas online, the video issue occurs.
Could it be a netConnection or netStream issue?
Here is the code for the build gallery in the roster:
Code:
stop();
function loadXML(loaded) {
trace("XML loading...");
if (loaded) {
xmlNode = this.firstChild;
image = [];
description = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
description[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
}
firstImage();
displayPages();
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("clientupdates/build/xml/build.xml");
p = 0;
this.onEnterFrame = function() {
filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
/*
if(blnPreview) {
previous_btn._visible = false;
next_btn._visible = false;
} else {
previous_btn._visible = true;
next_btn._visible = true;
}
*/
} else {
preloader._visible = false;
if (picture._alpha<100) {
picture._alpha += 10;
}
}
};
function nextImage() {
if (p<(total-1)) {
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
}
}
}
function prevImage() {
if (p>0) {
p--;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
}
}
function firstImage() {
trace("firstImage");
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[0], 1);
// Only show the artwork data unless we're not in preview mode
//if(!blnPreview) {
desc_txt.text = description[0];
picture_num();
//}
}
}
function picture_num() {
current_pos = p+1;
pos_txt.text = current_pos+" / "+total;
trace("Pic num:" + current_pos);
}
function displayPages() {
for(var i=1;i <=12; i++) {
if(i <= total) {
this["PageMC" + i].pgNum.text = "a";
this["PageMC" + i]._visible = true;
} else {
this["PageMC" + i]._visible = false;
}
}
}
function setPage(pageNum) {
if(pageNum>=0 && pageNum <total) {
picture._alpha = 0;
picture.loadMovie(image[pageNum], 1);
desc_txt.text = description[pageNum];
picture_num();
}
}
var my_nc:NetConnection = new NetConnection();
my_nc.connect(null);
var my_ns:NetStream = new NetStream(my_nc);
Thanks for reading guys. I hope you can help.
Jerome
Upload Quicktime Video File And Convert It To Flash Video
Hi
this is the problem i am facing.
I am uploading video files from my desktop to run in a website.
is there a way to convert whatever video format i upload to be converted to flash video format and stream online?
the website is the place where one can upload their personal videos and share with others online.
having a tool to convert the files to flash video would be a pain for the users. (most may be novices of technology)
Thanks in advance for any help in this regard.
Thanks
cheers
GugZ
INDIA
Flash Video Gallery €“ Link To Specific Video Upon Launch
I saw this question asked before when first doing a search on this topic, but have yet to see any replies, let alone any that work.
How can I link from within a web page to a specific video that is contained within a modified version of Adobe's Flash video Gallery tutorial?
When a user clicks on a link that says "View Dr. Jones Lecture", I want the Flash Video Gallery to launch with Dr. Jones' video loading and playing immediately. As it stands now, the video player just wants to wait until someone locates and then clicks on the video of their choice WITHIN the video player itself. That is fine if a generic "Launch our Video Gallery" link is clicked, but not if the user is expecting a specific video to play.
Any help is very much appreciated.
Cheers!
Flash Video Menu (button - Download Video From Cd - Problem)
Hi!
I made a flash movie which looks like menu (functions like dvd menu). Inside of it you can view videos, make some calculations, use small programs,... I have burned it on cd. When you put cd into computer it autoruns. It works great.
But....(theres always but ) On cd I have one video (97MB) which I would like user to be able to download. For example: inside flash move there is a button, which has a function to download this video from cd.
Please does anybody know what script do I have to put inside a button to be able to download this move from cd to users computer!?!?!
tnx for reply
Embedded Video Object In Video Basics - Part 1 Tutorial
I am a total newbie at Flash, so please bear with me. In Lee's Video Basics - Part 1 tutorial, one of the first steps is to create a Embedded Video object in the library. Flash Professional MX 2004 is being used in the tutorial and I am using Flash Professional 8, so maybe that is the reason I'm having a problem. The tutorial shows that by clicking "New Video" in the library panel, the embedded video object is automatically added to the library. When I click "New Video", I get a Video Properties dialogue box that defaults to "Video (ActionScript-controlled)". When I check the Embedded option, the OK button becomes disabled...only Cancel and Import are enabled. Clicking the Import button gives me an open dialogue box for a *.flv file. I'm not sure what to do here. Am I supposed to select the .flv file that I am going to use? I was under the impression that the tutorial was creating a generic object that I would be able to reuse whereas selecting a .flv file would make it specific to what I'm working on now. Can someone that is using Flash Professional 8 clarify what I should do?
Thanks,
Pat
Wanna Run A Video In MX? I Have A COOL Video Component If Anyone Is Interested?
http://www.studioxmedia.com/video_component.swf
http://www.studioxmedia.com/video_component.fla
I got this from a posting by someone else. I'm not sure even how to create a component, but the component works like a charm and looks like the Quicktime (start,volume, play, pause) handler.
Thought I'd share it.
Thanks,
fitchic77
Making A Presentation/commercial/training Video...(using Video)
Hail everyone...
I wanted to know what best to use if I wanted to make the above mentioned (in the topic subject)...
Seeing as tv res is 350x200 (or somesuch) the res won't be a problem (using DV cam), but as soon as I import the movie in flash, it pixalates BADLY (no quality for use in a TV commercial)...
What is the best format & encoding to use for this...
Or is there an app that can import layers from flash...
Because I need intricate shapes over my movie (playing as part of background, or only displayed half way across the screen)
I have to whip out a miracle with limited resources & I need some help please
Thanks before hand...
Unable To Scroll Video Until Video Plays In Entirety
Hi all.
I'm making a simple flash file to play a flv off a server. I'm using a flash skin with seekbar but the scroll triangle on the seek bar doesnt show up until the movie has played in its entirety. I would like to have it show up as soon as the movie starts playing.
Here's the steps I did using Flash Professional 8 on a Mac
import video (set the url path)
custom skin URL (typed in path) to SteelExternalPlaySeekMute.swf
My component inspector looks like this
autoplay - true
autorewind - true
autosize - true
buffertime - 0.1
contentpath - the url of the file
cuepoints - none
islive - false
maintainaspectr - true
skin - url of the skin
skinautohide - true
totaltime - 0
volume - 100
so what do I have to do to make the ability to scroll the video once the video starts?
I've tried this with numerous skins and all have the same results
TIA
- Pete
Play Diffrent Video Infront Of Bigger Video
Hey guys, and many thanks to all the gurus for taking the time to help us none gurus out.
I'm using Flash CS3 with AS3, and using .swf to stream .flv
Here is want i would like to do:
I have some video clips that i am playing in a .swf (MAIN.swf)(i am doing this via streaming .flv) and its working fine. What i would like to is have a shorter video (SMALL.swf)(which will also be a .swf via .flv) play before the MAIN.swf, and i want to rotate or change the SMALL.swf every 3 times the SMALL.swf gets played and keep the MAIN.swf constant. With a cycle of about 3 diffrent SMALL.swf's going down a list SMALL1.swf, SMALL2.swf, etc. I would, if it is an all-in-one .swf, to have a preloader. Kinda like this:
Page loads...
Preload....
SMALL1.swf...plays....MAIN.swf.....done.
Page loads...
Preload....
SMALL1.swf...plays....MAIN.swf.....done.
Page loads...
Preload....
SMALL1.swf...plays....MAIN.swf.....done.
Page loads...
Preload....
SMALL2.swf...plays....MAIN.swf.....done.
Page loads...
Preload....
SMALL2.swf...plays....MAIN.swf.....done.
Page loads...
Preload....
SMALL2.swf...plays....MAIN.swf.....done.
Page loads...
Preload....
SMALL3.swf...plays....MAIN.swf.....done.
etc.....
I'm pretty sure you have to store a varible somewhere, somehow to keep up with the loads.
I'm not sure where to begin with this, Im not the best at AS...so any code you can give me would be awesome. Thanks
__________________
Sorry....I can't spell to save my life...Enjoy
XML Video Gallery: How Do I Target A Video To Play In Popup?
Ok, so we have an XML driven video gallery... pretty common.
On our site, we have various stories that will need links to open a popup containing the video gallery and play a specific video from the library.
How can I target a certain video (define the contentPath) with a link on an HTML page thru the window.open javascript command.
For instance:
This link will open videoA.flv
This link will open videoB.flv
Hope that makes sense.
Making A Music Video -- Audio-video Sync?
Apparently, the sound file must be set to stream to assure synchronization.
I also read this somewhere:
Note that it's critical to add a preloader to allow the music file to properly stream down to the player before playback begins. With the sound file set to Stream, the animation and song may be out of step with each other if this step is not taken.
What does this mean? If the song it's set to stream it just isnt loaded in the preloader -- how do I make it load?
One more question, what is the optimal framerate for a music video? 30?
Pull Video From Client Or Push Video To Server
Hi,
In windows media server there are options such as pull or push.
In pull mode the server asks clients to stream data when required.
In push mode clients continiously stream data to the server.
push consumes more bandwith because it is a constant stream-it does not care if there are users who want to view live stream or not-it just streams.
pull is more intelligent way of publishing because it only generates traffic between clients and server if someone wants to view the stream.
So is there such a configuration in Flash Media Server? If not, does the push mode always streams the data?
Thanks in advance!
Beri
Video Encoder Can't Read MPEG-2 Video Track
I've recorded some MPEG-2 videos from a new Sony camcorder, and I can't turn them into FLV files using Flash CS3 Video Encoder. Each time I open the settings window, it says "This file has no readable video track."
However, the mpeg's play fine on ALL my media players (Real, Windows Media Player, etc.).
I've found a workaround -- I have to use some freeware to convert the MPEG-2 files into MPEG-4 files, and then the encoder can read them. But I'm still mystified as to why the Adobe encoder won't read the MPEG-2's.
Any ideas?
Peter
What's The Best Method For Video Loop + Precached Video Transitions?
Hello, I am hoping that a kindly Flash guru can send me running off in the right direction.
What I want to do is make a SWF which works in the same manner as a DVD menu, using Flash video.
Simply put, that means having a video loop for the background of each 'page', with links to other pages. Each of these links would travel through a video transition to reach the next page.
I am an experienced Java programmer; After Effects user and DVD Author but I have to admit that as a beginner to Flash, I find the number of ways you can embed video... symbols... media server etc. quite confusing.
All I want to do is have my loops and transitions as FLV files on my normal HTTP server, play the current loop while precaching the possible transitions etc.
I am very happy to research the precise coding aspect of this but I am hoping someone can tell me which of the (apparently numerous) methodologies available is the best one to go down.
Do I need to have all my objects in the timeline, or can I have a single object and reassign the video with code?
If it helps my video loops and transitions are 400x300 and around 4-10 seconds, so the bandwidth requirements aren't unreasonable.
Any advice greatly appreciated.
AS2 CS3: Video Player Class W/ NetStream Video Object
is it possible to use the properties of the videoPlayer class with a video object that is not wrapped in a flvplayBack component. I am having trouble using the maintainAspectRatio property with my current video object. Additional question, If you use a flvPlayBack component are you forced to use a skin for the controller or can you use a controller that was built in the swf of the video object?
FLASH 8 Video / Flv/skins In Subdirectory Cause Video Not To Display.
When I do my flash work, I usually keep my flash files in a directory that's not the same as my php or html files.
I usually keep my .swf files in /siteswf/
When I upload the html that calls my flash movie , for example siteswf/movie.swf
it would normally play fine as long as the html and the .swf are uploaded. but for some reason the .swf won't play because it wants the flv and the skin of the flash 8 movie (flv) to be in the same directory as the html file calling it. How do I fix this so I don't have to put the movies and the skin in the same directory as my html files?
-Line
FLASH 8 Video / Flv/skins In Subdirectory Cause Video Not To Display.
When I do my flash work, I usually keep my flash files in a directory that's not the same as my php or html files.
I usually keep my .swf files in /siteswf/
When I upload the html that calls my flash movie , for example siteswf/movie.swf
it would normally play fine as long as the html and the .swf are uploaded. but for some reason the .swf won't play because it wants the flv and the skin of the flash 8 movie (flv) to be in the same directory as the html file calling it. How do I fix this so I don't have to put the movies and the skin in the same directory as my html files?
-Line
Actionscript 3.0 Video Basics - Video Allways On Top Layer
Hy!
After doing the "Actionscript 3.0 Video Basic" Turorial, i'm facing some troubles with the video layer!
The embeded video is allways shown in the top layer so that i can't add any buttons for example...
how can i get the video zu a lower layer or the other layers to top? or what other ways are possible to solve my problem?
thx
Kam1kaz3
Video Sharing Site (like Youtube) With AS3 Video Player?
I was planning on using YouTube to upload some content then stream the videos (as swf's) back into my project. The problem is that the YouTube player is AS2 so I have to use some workarounds to be able to control the video. I was wondering if there were any other video sharing sites that used an AS3 based player so I could control it from within my own code without the workarounds needed for you tube.
No Video (only Audio) When Playing Basic Video Player.
Hey everyone.
I used to be fairly good at flash, and then i had a break. Now i'm struggling with this really simple problem, that no one else seems to be having...
Here is my actionscript for playing the video
Code:
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream (nc);
theVideo.AttachVideo(ns);
ns.play("antena1wheel_1.flv");
When i preview it, it comes up with the white stage, and you can hear the sound... but no sign of any video.
Thanks, and appologies for my stupidity...
Tim =)
Attached Standard Video Controls To External Video
I have loaded a video using NetStream/Net Connection, etc. I am able to control it by creating my own buttons, but I'd like to just attached the standard FLV Playback components. Is there a way for me to do that?
Flash Video - Video Editing Help Needed
Hi, I was wondering if I could find help here.
I wasnt to replace the "face" of a character in a video with another face. Example:
www.elfyourself.com
I do not want to load different pictures like on that site, I just want to replace one face with another. Its a fun video so i dont need it to be perfect. Just want a replace face.
I would also appreciate if you could direct me to some tutorial where similar thigns can be done.
Thanks in advance.
Interactive Video; Action After Video Is Played.
Hi everyone,
I'll skip the "I'm new to flash.. yada yada", you probably find out when reading this anyway, since I think this might be a basic thing.
The scenario:
A video is played. When the video finish, a screen pops up with buttons with options. Depending on what options the person picks a new video plays; Option A plays video A and option B plays video B, and so on..
Problem:
How do I make this happen? How do I assign this option screen to pop up when a movie clip is finished playing?
The video clips are .flv's at different labels in the timeline, is this the right procedure?
Video Thumbs With Video Description And One Button
Hi,
I am new to actionscript.
I want to create a list using xml or json data in which there will be a video thumb, some description of that video and one button which must be clickable on click of that needs to call some another function.
Can anybody help me in this issue?
Any help will be highly appriciated.
Thanks in advance
Ruchi
Flash Video Encoder - Sizing Video
Hello
I have an uncompressed video at 720x486. I need to encode it to Flash video at 640x480. When I import it into Flash Video Encoder, I use the custom settings to output a 640x480 movie at 30fps and 550kbps using the VP6 codec.
Flash video outputs a 720x486 movie.
What am I doing wrong?
http://www.dorseygraphics.com/forumphotos/flashvideo.png
Thanks,
---------------------S
Video Worked Fine, Then No Controller, Now No Video
My video here:
http://mrrogershood.com/
used to work fine. you click on the play and the video starts with a clear controller laying over the video. then yesterday i got on and the controller was gone. now the video won't play at all. WHATS GOING ON!!!
Speed Up Video Using Flash Video Encoder
Hi,
I'm converting a quicktime movie into an flv file and am also trying to increase it's speed. I've tried playing about with the frame rates option but it dosn't change anything. Is it possible to do this in the video encoder?
Any rays of light thrown on this subject will be greatly soaked up!
Flv Video Created With Flash 8 Video Encoder
anyone know why flv files that I've created using the flash 8 video encoder don't seem to have any metadata in them? or maybe they do but they never kick off the NetStream.onMetadata event so I can't read it...
Similarly if I use the 'import video' function of Flash Pro 8 I get the same issue - yet FLV video created using Sorenson Squeeze works fine, so I'm fairly confident that my code is OK.
Even more bizarrely, if I use the FLVPlayback component that ships with Flash 8, that seems to read in the metadata OK!
argh!
Just to confuse things even more, the flash help for NetStream.onMetadata says: "The Flash Video Exporter utility (version
1.1 or greater) embeds a video's duration [...] into the video file itself."
As far as I can tell I've got version 1.0 of the flash video encoder/exporter but I'm damned if I can find out where to get an update from...! Ever since CS3 came out it's been harder and harder to get hold of stuff about flash 8 on the Adobe site...
Video With Synched Slides Used As A Video Component ?
I would like to take an existing Synched video and slide show .fla file and convert it to a FLV file for insertion onto a page with multiple videos. I was willing to try and convert to QT format and then convert to FLV and drop the video component on the page, however CS3 reqiuries you to output in flash 5 format for QT conversion....... CS3 wont let you convert synched slides and video below flash 6. Hope this makes sense to somebody.... I suppose there is a much better way to handle what I am trying to do.... Any help would be most appreciated ....
Streaming VIDEO : FLV Controllers For Video Jukebox
How do i add action script so that when my video 1.FLV comes to and end it then loads up video 2.FLV
i need this sequence to execute through all 5 tutorial.FLVs
The command i am looking for is along the lines of when current FLV ends play current FLV + 1
upto 5.FLV then go back to 1.FLV
Hope does actionscript regonise the end of the FLV file ?
Help me obi won kenobi - your my only hope....
Video Captioning Causes Major Video Distortion
So,
This is a good one. I have a number of videos in an interactive program I'm doing. It's standalone, and the videos are vertically oriented. They'll play back on an LCD screen flipped on it's side and displaying 768x1366. I have it running in flash vertically so that when I play it back on the kiosk, I rotate the display 90 degrees in the display driver. I tried to program this so it ran on it's side, but the transitions and other effects I was doing were much choppier for some reason, so I decided to just go with rotating the display. At any rate, it was all going well until we realized that we needed captions on the screen. I did this in AS3, so I loaded up some XML files, set the caption target to my own text box, and when I went to run the program on the vertical screens, now all the video looks like static and is distorted. I removed my customer caption box, and when played in the default box, it also looks crazy. When I have the display driver set to standard, it looks fine. And, if I remove the caption component from the videos, the whole thing plays fine. I can actually see the videos start to play, and as soon as the captioning kicks in, they go nutty, and the program stays that way. I should say that the videos go crazy, but all the graphics in the program are distorted too, so it's not like the video is the only thing.
I don't really know how to start troubleshooting, and I imagine I am going to have to caption this stuff a different way, but I was wondering if anyone had any insight into how the captioning component works, and why it might cause this type of issue. I realize this is a fairly specialized thing I am describing, so there aren't a ton of people who would have experience with it exactly, but I am not really even sure why the component would cause this. Thanks folks.
- B
Video ActionScript To Stop A Video And Go To Another Frame.
I'm brand new to Flash (taking a course at junior college) and for my final project I'm trying to stop a video on Frame (2) and return to frame (1) but I don't really know what all the script and parameters I need to accomplish this. I have a home page set up on Frame (1) with a canteen_btn to go to Frame (2) where the video resides in a FLVPlayer... the return button resides above the player. I don't know if I need a "var" reference or which parameters to stop the video when I return to Frame (1). Any suggestions would be greatly appreciated. The following is the AS on Frame (1):
stop();
this.canteen_btn.addEventListener(MouseEvent.CLICK,clickListener1);
function clickListener1(event:MouseEvent):void {
gotoAndPlay(2);
//gotoAndPlay("intro");
}
The AS on Frame (2) is:
stop();
this.homepage_btn.addEventListener(MouseEvent.CLICK,clickListener3);
function clickListener3(event:MouseEvent):void {
gotoAndPlay(1);
}
Thanks
Edited: 05/13/2008 at 10:13:39 AM by TheDesertHermit
Video Preview Larger Than Video Space
Hi,
I have added a video preview to my videos but when the page loads they appear larger than video space. Then when I click play it jumps down to it's smaller size. Does anyone have a fix for this?
Thanks!
FLASH 8 VIDEO: Video Automatically Starts...help...
Hello everyone. I've got a quesiton for you Flash 8 video gurus...I've got websites that I'm using Flash 8's incredible video delivery on, for example, Billy Idol's keyboardist Derek Sherinian's site. I've been looking everywhere for a way to get the flash video NOT to automatically play. I.E. if a visitor wants to view the video, they'd have to physically push PLAY on the control.
Can you guys help me out? Thanks very much!
-Chad
Video Tips? - Embedded Video HOGGING CPU
I can't figure out what's going on here- I've tried every setting and even tried to sacrifice control by using an .flv all to no avail. I'm getting CPU usage of upwards of 60-70% at times when running my video at quality - medium (and this is on a dual processor g5).
Any tips or tricks on how to work with lots of embedded video? I'm working with uncompressed quicktimes and am importing them into flash with medium 400 kbps compression. Then I'm working with embedded video right on the stage so that I have paramount control. I've replaced all the pauses with a still so that the timeline rests over an empty video keyframe to unload CPU usage.
I've visited several sites with lots of video and most of them rarely jump above 30-40% CPU. BILLY BUSSEY'S is pretty similar as far as video content to the site I'm working on (lots of 3d animation) and it's way more efficient. I will post a link to my site tomorrow once I get it tidied up a bit more.
Thanks everyone
Linked Video, Streaming Video In Flash MX
hi!
so, I want to be able to import and publish video in Flash. I know how to work with video when I embed it into the .swf, that's farly easy, but my problems come here:
how to control/make controls for linked video?
why the hell can't I get anything workin when I try to publish a file with linked video (even when I publish it as a .mov)
How to preload large (~10 mb) files when the content is offline, say a cdrom?
so in a nutshell, are there any tricks in flash and video, especially when the content is offline. Communication Server MX is solution for online streaming, but offline?
it's **** hard to make a decent cd-rom, when you want to work with flash and use video. please help!?!?!?!?!?!
Captioning Video With Custom Video Class
I've written my own FLV player not using the FLVPlayback class and I'd like to be able to add captions to my videos.
Any suggestions on the best way to go about this?
Thanks.
Walk Out Video / Video Spokes Models
More and more websites are starting to add either spokes models or sales people in video to their websites. I'm talking about the videos filmed with a green screen and when the model walks out the background is transparent you can see the website behind them.
Here are a few examples:
I can't post links...
So Google and you'll see what I mean.
Rovion is one company doing this. And, ISpeakVideo.com
I have the capability to video. I can also get models. What I don't have is a set of step by step instructions.
Before I spend a lot of time dissecting the scripts and code behind one of these web sites reinvent the wheel.
I'm wondering if anyone knows of a tutorial or a guide out there with coding instructions?
Flash Video: Playing A Huge Video From Cd
Hi Guys,
I'm creating a presentation cd with flash and flash video, the FLV file size is 200mb and plays ok when the flash movie opens.
However if i try scrub to the end of the video a couple seconds into the movie the movie pauses for about 2 seconds before the buffering bar shows up, then it buffers what it requires and plays.
The problem is the 2 seconds, it seems messy or jerky because the buffering bar takes so long to come up.
I think this is because the video is loading into the computers memory, as I've read up, yet I was wondering if there is a way to preload the entire movie into the machines memory before playing, or making the buffering bar come up more quickly.
it is playing from a cd so:
FLVPlayback.bytesLoaded - does not help nor does
FLVPlayback.bytesTotal.
Id appreciate any insite into this issue
Thank you
Roark
[as] [video] [comps] ComboBox To Select Video
I using Flash MX 2004 and I want to use a comboBox component to select diferent FLV movies to play in an embeded video clip or a MediaDisplay component (I don't know what's better).
I need some help with the ActionScript to manage the change event in the comboBox to select the FLV and play it.
Any suggestions?
Thanks!
Flash Video: Play Intro Before Video
Hey guys, first post, and already i'm requesting something, sorry about that. I wish to give a big thanks to Lee and all the users helping out here, being a total newb at actionscript, I found alot of useful tips and tuts. Ok now to the point of my request.
I created a custom player following the video basics (which is a great tut by the way), now what I would like to do is that each time someone plays a video on my website, they have this short 2 second intro play first, and then have the actual video start playing, and when it reaches the end, have the player return to the start of this video and stop, so that people don't have to watch the intro a 2nd time (unless they go and play another video, or leave and come back).
So in other words, have 2 flv files, one for the intro and one for the video, just so I don't have to edit each of my videos manually to add the intro, before encoding them. I thought of using a XML playlist, the problem is that i'm loading the videos dynamically through flashvars so it wouldn't be practical.
Hope this makes sense. Any help at all with this would be greatly appreciated. Thanks in advance!
Flash Video Basics (Stop Video At End)
I recently watched the tutorials on Flash Video Basics. I tried it myself and it worked great. I was wondering if any one would know an easy way to make the video stop at the end, instead of replaying over and over. Also wondering if there would ever be more parts to the tutorial down the road, like displaying how long the video is and where it is in seconds now.
Thanks In Advance,
Dave
XML Video Playlist: Cannot Get 2nd Video To Play Upon Click
Hey guys. I did the video tutorials exactly as indicated on the site here but I cannot seem to get the second video to play once I click on that item in the video list. There are not action script errors. I have attached my action script and the .xml file. Any help would be greatly appreciated since I'm trying to meet a deadline. Thanks.
Here is my action script code:
Code:
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
ns.setBufferTime(3);
ns.onStatus = function(info) {
if (info.code == "NetStream.Buffer.Full") {
bufferClip._visible = false;
}
if (info.code == "NetStream.Buffer.Empty") {
}
if (info.code == "NetStream.Play.Stop") {
ns.seek(0);
}
};
theVideo.attachVideo(ns);
rewindButton.onRelease = function() {
ns.seek(0);
};
playButton.onRelease = function() {
ns.pause();
};
var videoInterval = setInterval(videoStatus, 100);
var amountLoaded:Number;
var duration:Number;
ns["onMetaData"] = function (obj) {
duration = obj.duration;
};
function videoStatus() {
amountLoaded = ns.bytesLoaded/ns.bytesTotal;
loader.loadbar._width = amountLoaded*137.5;
loader.scrub._x = ns.time/duration*137.5;
}
var scrubInterval;
loader.scrub.onPress = function() {
clearInterval(videoInterval);
scrubInterval = setInterval(scrubit, 10);
this.startDrag(false, -7, this._y, 128, this._y);
};
loader.scrub.onRelease = loader.scrub.onReleaseOutside=function () {
clearInterval(scrubInterval);
videoInterval = setInterval(videoStatus, 100);
this.stopDrag();
};
function scrubit() {
ns.seek(Math.floor((leader.scrub._x/128)*duration));
}
var theMenu:ContextMenu = new ContextMenu();
theMenu.hideBuiltInItems();
_root.menu = theMenu;
//new menu
var i1:ContextMenuItem = new ContextMenuItem("::::: Video Controls :::::", trace);
theMenu.customItems[0] = i1;
var i2:ContextMenuItem = new ContextMenuItem("Play / Pause Video", pauseIt, true);
theMenu.customItems[1] = i2;
var i3:ContextMenuItem = new ContextMenuItem("Replay Video", replayIt);
theMenu.customItems[2] = i3;
var i4:ContextMenuItem = new ContextMenuItem("Copyright Brevard Public Schools", trace);
theMenu.customItems[3] = i4;
function pauseIt() {
ns.pause();
}
function replayIt() {
ns.seek(0);
}
_root.createEmptyMovieClip("vSound", _root.getNextHightstDepth());
vSound.attachAudio(ns);
var so:Sound = new Sound(vSound);
so.setVolume(100);
mute.onRollover = function() {
if (so.getVolume() == 100) {
this.gotoAndStop("onOver");
} else {
this.gotoAndStop("muteOver");
}
};
mute.onOut = function() {
if (so.getVolume() == 100) {
this.gotoAndStop("on");
} else {
this.gotoAndStop("mute");
}
};
mute.onRelease = function() {
if (so.getVolume() == 100) {
so.setVolume(0);
this.gotoAndStop("muteOver");
} else {
so.setVolume(100);
this.gotoAndStop("onOver");
}
};
var vlist:XML = new XML();
vlist.ignoreWhite = true;
vlist.onLoad = function() {
var videos:Array = this.firstChild.childNodes;
for (i=0; i<videos.length; i++) {
videoList.addItem(videos[i].attributes.desc, videos[i].attributes.url);
}
ns.play(videoList.getItemAt(0).data);
videoList.selectedIndex = 0;
};
var vidList:Object = new Object();
vidlist.change = function() {
ns.play(videoList.getItemAt(videoList.selectedIndex).data);
};
videoList.addEventListener("change", vidList);
vlist.load("videos.xml");
here is my videos.xml file
Code:
<?xml version ="1.0" encoding="ISO-8859-1"?>
<videos>
<video url="vid1.flv" desc="Introduction" />
<video url="05intro.flv" desc="Interviews" />
<video url="vid1.flv" desc="Employee of the Year" />
<video url="vid1.flv" desc="Assistant Superintendent" />
</videos>[/code]
|