Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Menu For Loading Video



Hi guys...

im having a bit of a nightmare adding video to the stage underneath a movieclip already on the stage...

also, i cant seem to get the video's to load to the stage from a menu, which is itself a movieclip, that is already on the stage...

i hope this makes sense... the swf can be seen at www.pineapplearts.com/rob/pine_menu.swf to make it a bit clerer for you....

basically i want to be able to load a video underneath the curtains but in the middle of the stage from the roll out menu "part 1, part 2" etc buttons....

any help you can give me will be appreciated!!

thanks in advance!!

Rob

p.s. here is the fla if it will help www.pineapplearts.com/rob/Rob.zip



ActionScript.org Forums > ActionScript Forums Group > ActionScript 3.0
Posted on: 09-09-2008, 12:12 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

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

[F8] Loading Video W/ Video Class
Trying to load a video into a movieclip I created on the stage.. Here's the code I'm using to load it..


Code:
//video_mc is the movieclip on the stage
var my_nc:NetConnection = new NetConnection();
my_nc.connect(null);
var my_ns:NetStream = new NetStream();
_root.video_mc.attachVideo(my_ns);
my_ns.play("VIDEOCLIP.flv");


Anyone?

Video Player Menu
I made a video player menu so I can navigate etc when the movie is playing.
Everything works fine only I want the menu to go away when I don't have my mouse pointer on the flash movie, and to come back up when I float over it. How do I do this?

Help With An Interactive Video, Like A DVD Menu
I'm just starting out using Flash and need a little help.

I have about 20 video files I wish to make into a single interactive flash video. The root video has a number of different regions of interest, and what I would like to do is click different parts of the root video and then load another video. A concrete example could be a movie of cloud cover over a map of a continent, and then being able to click on different countries/states to load a video that deals just with that state. Each different movie needs to have different regions of interest.

I already have something like this working in an interactive dvd with video menus, however I don't know the best approach to get this working in Flash. Does anyone know the best way to achieve the above, or can anyone point me in the right direction to find some more information?

Flash Video With Menu
Hi All,

Does any body know where I can download a free or under $50 Flash video player with menu on the side with image that I can use on my site?

Examples:
http://media.ps2.ign.com/media/811/811719/vids_1.html - Click on the image.

http://s154076880.onlinehome.us/videoplayer/index.htm

Thanks,

Devante

CSS Drop Down Menu Behind FLV Video
I can't get the CSS drop down menu to go in front of a flash video (see http://www.svendsweb.com/bc/). I tried the wmode = "opaque" and wmode = "transparent". This works if it's just an swf file but not with an flv file set as "progressive Download Video".

Flash Menu For Quicktime Video...
Hi all,

Can anybody tell me where I can get/or how I can create a simple menu for a qucktime video.

Something like the Hi-Res showreel menu. It's just a simple drag bar with play, stop, etc buttons.

Cheers.

[help]video Panning + Interactive Menu
hi folks,

i've got an idea of getting a 360deg panoramic-able video, in which you're able to "pan the room" when you hover the mouse on the far right or far left.

the problem i'm facing is, there will be an interactive menu in the "room", whereby (for eg,) there's a tv button and clicking on it will load another external swf file. is there a way for flash to recognise that once the "tv area" is clicked, it will perform a certain event?

i've done a similar room panning by stitching a couple of images to form a 360deg panoramic image and coding some AS for the image to pan. i'm just wondering if there would be an alternative method using video-based 360deg, since video's animation will be smoother than image, yes?

thanks for reading. appreciate your thoughts and time for reading this.

rgds,

Papervision 2(GW) Video Menu Thing
I have been messing with Papervision (Great white) quite a bit and someone wanted me to create a menu system/gallery that played video.

After a mind boggling day I have finished it for you all to hack away at you do require the latest PV3D v2.0 (Great white) which is svn (http://papervision3d.googlecode.com/...es/GreatWhite/)

No classes with this although I will be converting soon. so its all in the fla.
It was a bit of a hack to get it to work so if anyone improves on it please let me know.

Example
Source

Ok it appears my site is down so here is a temp location

Example (http://t19.propaganda2.co.uk/pv3d.html)
Source (http://t19.propaganda2.co.uk/pv3dVideoMenu.zip)

How To Create A Professional Menu For A Video...
Hi,

Does anyone know of any sites that have tutorials to create a professional menu in Macromedia Director/Flash? If not Director, then using any other software?

Thanks
Kev

CSS Drop Down Menu Behind Fash Imbedded Video
I can't seem to get my css drop down menu to go in front of a Flahs imbedded video. I've tried the wmode=transparent and wmode=opaque and also set the video's z-index to -1 and the menu to z-index to 1. Please help!!!



Here is the link to the site: http://www.svendsweb.com/bc/

XML VIdeo Playlist - Addition Menu (with Images)...help?
I have made a Video Playlist using XML. I have looked for my answer on this forum but could not find it...
I have the list component, a video, and another menu (with images) on the bottom. I have it almost working but I have a problem I can't figure out.

What happens now: the videos play in a loop (this is good), when I click on the list it changes video to the associated video (good), when I click on the image on the bottom opens video associated with the image and highlights the associated title on the list too.

Now, my problem is:

I want the "image" from the "other" menu to be highlighted too when it is selected; via the list component or when it is clicked on by itself. I'm just not sure how to do this... By highlight I mean there is a dynamic text layer (called "NowPlaying") in the "Button" (the image in the "other" menu) that I want to make visible while the current video that is playing.

Also, the loop...when the last video plays it goes back to the first...but does not highlight the first in the list (it just stays on the last)



Download the FLA


XML:
Code:

<?xml version="1.0" encoding="iso-8859-1"?>
<videos>
   <video url="videos/two.flv" desc="This is video one" />
   <video url="videos/one.flv" desc="This is video two" />
   <video url="videos/two.flv" desc="Tfdsfdsfo one" />
   <video url="videos/one.flv" desc="This is video 3" />
</videos>


AS:
Code:

//Video
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
VideoHolder.theVideo.attachVideo(ns);
//The Menu Part
var VidURLNode:Array = new Array();
var VidDescNode:Array = new Array();
var NodeCount:Number = 0;
var CurrentNode:Number = 0;
var NodeSpace:Number = 200;
var vlist:XML = new XML();
vlist.ignoreWhite = true;
vlist.onLoad = function() {
   var RootNode:XMLNode = this;
   var videos = RootNode.firstChild.childNodes;
   for (i=0; i<videos.length; i++) {
      NodeCount++;
      VidURLNode.push(videos[i].attributes.url);
      VidDescNode.push(videos[i].attributes.desc);
      videoList.addItem(VidDescNode[i], VidURLNode[i]);
      var VidMenu = MenuHolder.attachMovie("Button", "Button"+i, i);
      VidMenu.CurrentNode = i;
      VidMenu._x = NodeCount*NodeSpace;
      VidMenu.vidTitle.text = VidDescNode[i];
      VidMenu.onRelease = vidListfromMenuCh.change;
      //Filters
      import flash.filters.*;
      var glowOutMen0:GlowFilter = new GlowFilter(0xFFFFFF, 50, 2, 2, 3, 3, false, false);
      var glowOutMen:GlowFilter = new GlowFilter(0x88B7FF, .5, 50, 50, 3, 3, false, false);
      VidMenu.TheImage.filters = [glowOutMen0, glowOutMen];
   }
   //Start 0 - First Video - also highlight on list
   ns.play(videoList.getItemAt(0).data);
   videoList.selectedIndex = 0;
   //VidMenu Placement
   MenuHolder._y = StH-140;
   MenuHolder._x = ((StW-VidMenu._x)/2)-NodeSpace;
   //LOOP
   ns.onStatus = function(info) {
      if (info.code == "NetStream.Play.Stop") {
         if (videoList.selectedIndex>=videoList.length) {
            videoList.selecteditem = 0;
         } else {
            videoList.selectedItem = videoList.selectedItem;
         }
         ns.play(videoList.getItemAt(videoList.selectedIndex).data);
      }
   };
};
//Select Desc on List
var vidList:Object = new Object();
vidList.change = function() {
   ns.play(videoList.getItemAt(videoList.selectedIndex).data);
};
videoList.addEventListener("change", vidList);
var vidListfromMenuCh:Object = new Object();
vidListfromMenuCh.change = function() {
   ns.play(VidURLNode[this.CurrentNode]);
   videoList.selectedIndex = this.CurrentNode;
};
vidListfromMenuCh.addEventListener("change", vidList);
vlist.load("xml.xml");
//Placement
var StW:Number = Stage.width;
var StH:Number = Stage.height;
var StWx:Number = Stage.width/2;
var StHy:Number = Stage.height/2;
VideoHolder._x = StWx-VideoHolder._width/2;
VideoHolder._y = ((Stage.height-VideoHolder._height)/2)-30;
videoGlow._x = VideoHolder._x;
videoGlow._y = VideoHolder._y;
videoList._x = StW-videoList._width;
videoList._y = 0;
WaterMovement._width = StW;
WaterMovement._height = StH+20;
WaterMovement._y = 0;
WaterMovement._x = 0;
var Resize:Object = new Object();
Resize.onResize = function() {
   var StW:Number = Stage.width;
   var StH:Number = Stage.height;
   var StWx:Number = Stage.width/2;
   var StHy:Number = Stage.height/2;
   VideoHolder._x = StWx-VideoHolder._width/2;
   VideoHolder._y = ((Stage.height-VideoHolder._height)/2)-30;
   videoGlow._x = VideoHolder._x;
   videoGlow._y = VideoHolder._y;
   videoList._x = StW-videoList._width;
   videoList._y = 0;
   WaterMovement._width = StW;
   WaterMovement._height = StH+20;
   WaterMovement._y = 0;
   WaterMovement._x = 0;
};
Stage.addListener(Resize);
//Filters
import flash.filters.*;
var glowOut:GlowFilter = new GlowFilter(0xFFFFFF, .5, 100, 100, 2, 3, false, false);
var glowOut1:GlowFilter = new GlowFilter(0x88B7FF, .5, 50, 50, 2, 2, false, false);
var glowOut2:GlowFilter = new GlowFilter(0x88B7FF, .7, 100, 100, 2, 2, false, false);
var glowOut3:GlowFilter = new GlowFilter(0x88B7FF, 50, 2, 2, 2, 1, false, false);
var glowInforVI:GlowFilter = new GlowFilter(0xFFFFFF, 50, 5, 5, 3, 3, false, false);
videoGlow.filters = [glowInforVI, glowOut3, glowOut2, glowOut1, glowOut];

Fade Video Menu Similar To ITunes
I have created a video player that has a movieclip that contains my video/sound controls such as: forward, rewind, play, pause, video slider, sound slider, timecode, etc. The majority of the controls are movieclips. I have tried multiple ways to fade this menu (movieclip) in and out when the user moves the mouse over it without success. I can get the menu to fade in and out, but the controls will not work. I have tried tween/easing class to no effect as well as the _alpha property. At this point I am at a loss as how to proceed.

Flash Video Player - Dynamic Menu List
All,

I'm a beginner to ActionScript, but know most of the other ins and outs of Flash Video. I'm trying to create a Dynamic FLV player similiar to the look and feel of the one below. Althought this one uses Flash and Microsoft's Media Player. I've seen the examples on Adobe.com of the playlist driven. http://www.adobe.com/devnet/flash/articles/prog_download.html I don't want
a scrolling combobox. I want to populate video thumbnails and text just like they do in this example below.

http://www.foodnetwork.com/food/video_guide/

QUESTIONS:
1) What do you do in ActionScript to get a video to play when you click on a thmubnail?
2) Does the thumbnail and the FLV player all have to be in the same SWF file?
3) Does anyone know of any pre-built package that looks a lot like the above food network video player?

I searched the net and Adobe and haven't found as a slick a player yet.

Thanks

Dan

Video Loading
I'm having trouble getting a button to load an AVI file into flash on my website. I don't want to embed it, because it would make the .swf way too big for anyone using dial-up. If there's any way to get it to just load into Media Player or something like that, that would be fine. What would be even better of course would be something like a dynamic video field, if anything like that even exists?!?

Pre Loading Video
Ok hope someone can help out there, this is doing my sweed in

I have been building a web site in flash and want to have a page where you can steam a video. I have created a scene with the vid i want to view in, plus a preloader to load it first but the pre loader I am using which is also on the main menu scene, seems to try and load the entire movie, rather than loading each scene at a time. Making the movie take aaaaages to load when entering the web site.

I wanted the movie to load each scene at a time, rather than the whole lot. Is my best option just to use a different pre loading script? what would this be? or has anyone got a better suggestion of how to stream a vid off my site?

Video Not Loading
what drives me nuts, is that i have loaded video before. Tonight, it just won't go in. All said, i know the paths are correct, as i did a trace statement of "daVid" (variable below)...any help on this would be great:


Code:
var netConnect:NetConnection = new NetConnection();
var netStream:NetStream = new NetStream(netConnect);
netConnect.connect(null);
thisVideo.theVideo.attachVideo(netStream);
buttons.onRelease = function() {
var buttonLabel=this.labelHolder.txLabel.text
loadVideoThumbs(buttonLabel)


nTyper=setInterval(typeIt,50,buttonLabel,txTitle)
}
function loadVideoThumbs(arg) {
var daVid= "images/video/"+arg+".flv";

vidFrame=thumbLayer.createEmptyMovieClip("vidFrame",thumbLayer.getNextHighestDepth());
thisVideo=vidFrame.attachMovie("videoClip","thisVideo",this.getNextHighestDepth());

thisVideo._x=100;
thisVideo._y=100;
netStream.play(daVid);

}

Loading A Video , Please Help
ok , i have a button i want to make it so when i click that button this video http://www.visualkreations.com/video/pooltricks.wmv plays , i dont want it to open a new window , i want this video to play inside the flash movie.


thanks.

Loading Video With AS
Hey all,

I'm looking to load a video file into flash using AS, and stumbled upon some code at this site (AS3 example mid down)

I got the example working, however im mostly looking to use .swf files instead of .flv like in the code.
This doesn't seem to work for me. Is there an easy way to get this working with .swf files?

And furthermore, is it an diffulcult task to integrate a play / pause button?

AS3 CODE:

Code:
// ActionScript 3.0

var video:Video = new Video();
addChild(video);

var nc:NetConnection = new NetConnection();
nc.connect(null);

var ns:NetStream = new NetStream(nc);
ns.client = {onMetaData:ns_onMetaData, onCuePoint:ns_onCuePoint};

video.attachNetStream(ns);
ns.play("http://www.helpexamples.com/flash/video/cuepoints.flv");

function ns_onMetaData(item:Object):void {
trace("metaData");
// Resize video instance.
video.width = item.width;
video.height = item.height;
// Center video instance on Stage.
video.x = (stage.stageWidth - video.width) / 2;
video.y = (stage.stageHeight - video.height) / 2;
}

function ns_onCuePoint(item:Object):void {
trace("cuePoint");
trace(item.name + " " + item.time);
}

About Video Loading
Hi,

is it better to load videos (.avi, .mov, .mpg, etc.) from actionscript or convert them to swf and include them into my project ?

Or to convert them to swf and load external swf ?

thanks

Loading SWF With Video Within A SWF
Hi, I was hoping someone could help me.

I have an application that manages numerous SWFs and loads/unloads on different events. So imagine my main SWF-loading-application is called (A). (A) loads other SWFs, (B) and (C). But, given (B) has a video embedded in its timeline as a fullscreen video (which plays fine by itself), when I load this in full-screen through (A), the video within (B) doesn't play full-screen

Any ideas?

Loading Video After Another
Hi Guys,
I created a new video clip that plays on my site. Following code it working fine. The problem is I want to add another video after first video plays. Can any one help me out.

var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
theVideo.attachVideo(ns);
ns.play("video.flv");

Thanks
Santhosh

XML Video Not Loading
I have assetts loading into my file with an xml doc. The images and text is loading fine but when I try to load in external .swf's i get a error. I am sure my mc on the stage is labeled correctly and that the files are in the right location.

here is the error and the code.







Attach Code

Error opening URL "file:///Mac%20OS%20X/Users/to9v9jv/Desktop/Work/2007/EBB/Denim%28M%29/Fla/
media/straight.swf
"



GenerateMenu = function (container, name, x, y, depth, xmlNode) {
var curr_node;
var curr_item;
var curr_menu = container.createEmptyMovieClip(name, depth);
for (i=0; i<xmlNode.childNodes.length; i++) {
curr_item = curr_menu.attachMovie("menuitem", "item"+i+"_mc", i);
curr_item._x = x+5;
curr_item._y = y+i*curr_item._height+105;
curr_item.trackAsMenu = true;
curr_node = xmlNode.childNodes[i];
curr_item.name.text = jean_arr[i].name;
curr_item.ivar = i;
curr_item.onRelease = function() {
loadMovie(jean_arr[this.ivar].media, vHolder);
trace(jean_arr[this.ivar].media)
if (xmlNode.childNodes[i].nodeName == "item") {
curr_item.xmlNode = curr_node;
}
};
}
};

Loading Video FPS..
Hey ya'all!

Theres the thing! I'm trying to load a movie into target (this MC contains a videoclip) - but the problem is, my main movie runs at 40fps, and the loaded video part needs to run at 24fps! I know that the loaded movie is then set to run at 40fps because of the main movie! I've tried using the setInterval function, but then I lose the sound or the video is still running to fast!..

Any help would be NICE!

VIDEO: Loading From CD
Hi all,

Seen a lot of people having the same problem:

Is it possible to decrease the waiting time when loading an external (embedded video) .swf into the main movie?
Quick example a 16mb .swf will take approximately 8-10seconds to load from cd before starting to play . . . . .

I've tried all sorts of different combinations/preloaders, while the movie loads all animation and mouse movements stop dead then the preloader flashes on the screen for a split second.

Another option -
loadSWF = function (swf, startFrame) {
_root.container_mc.loadMovie(swf);
checkLoaded = function () {
if (_root.container_mc.getBytesLoaded() >= _root.container_mc.getBytesTotal()*0.25) {
stopAllSounds();
_root.container_mc.gotoAndPlay(startFrame);
clearInterval(itv);
}
};
itv = setInterval(checkLoaded, 10);
};

The above code was given to me by Kalliban(Cheers mate ;o)
It also by-passes, so the video fully loads first before you can do anything . .


Any ideas?????????????

Pleeeeeeeeeeeeeeeeeeeeease

VIDEO: Loading From CD
Hi all,

Seen a lot of people having the same problem:

Is it possible to decrease the waiting time when loading an external (embedded video) .swf into the main movie?
Quick example a 16mb .swf will take approximately 8-10seconds to load from cd before starting to play . . . . .

I've tried all sorts of different combinations/preloaders, while the movie loads all animation and mouse movements stop dead then the preloader flashes on the screen for a split second.

Another option -
loadSWF = function (swf, startFrame) {
_root.container_mc.loadMovie(swf);
checkLoaded = function () {
if (_root.container_mc.getBytesLoaded() >= _root.container_mc.getBytesTotal()*0.25) {
stopAllSounds();
_root.container_mc.gotoAndPlay(startFrame);
clearInterval(itv);
}
};
itv = setInterval(checkLoaded, 10);
};

The above code was given to me by Kalliban(Cheers mate ;o)
It also by-passes, so the video fully loads first before you can do anything . .


Any ideas?????????????

Pleeeeeeeeeeeeeeeeeeeeease

Loading Video
io've visited a lot of flash sites, taht contains a lot of videos. someones had and optimized loading and another ones no.
when i say optimize i mean, play the video while is loading, without interruptions, you'll play it when you've calculated that it is time enough to load it complete.
can you optimize any type of video (avi, asf, mov ...)??

Loading Flv Video
Hey all, things have been working good. I have a quick question that I am sure can be answered here. I have a flv video that is on frame 5. I want it to load while I am on frame 1. Frame 1 has a stop action.

Becuase its a four minute video and is very choppy. Can someone help me out. I know basics but I need more help.. Thanks

Loading Video Into Flash
Please help. I know that Flash cannot display digital video, but is there another way to display video in a Flash movie. Can I write script that would open a video? I have seen several site that have used Flash to develop their pages and there is also video contained on these pages. How do they do this?

Loading Video With Actionscript
Hi all,

Does anybody know if it's possible to dynamically load a .flv into Flash with actionscript?

Thanks,

Makac

Loading Video With Actionscript?
Hi,

I have a page in my flash site that uses a small .mov file as a design element.

Is it possible in Flash 6 to load the file externally or am I stuck having to import it every time? I'd like to ba able to just upload a new .mov to the server without having to open flash. Obviously the purpose here is not to 'add' content, just update the page with a new video.


cheers!
jen

Video Only Loading After Refresh?
I have a flash video playing in a .asp page and I'm having some trouble with it loading. When the .swf plays the first time on a browser the video won't load, but if you hit refresh the video will play. I have no idea what it could be. Any help would be great.

Thanks.

Loading External Video
I've Googled and searched the forum and it sounds so easy, yet doesn't work for me. I simply want to play a video on the hard drive from actionscript. I found this code and some other very similar code at various places on the net.

test_nc = new NetConnection();
test_nc.connect(null);
test_ns = new NetStream(test_nc);
holder_video.attachVideo(test_ns);
test_ns.play("map1.flv");
trace("I just exectuted the above code");

I created a blank video from the library called holder_video and placed it on the stage but ---I get no video and no sound---. It is just a blank stage that I see. If I trace the hard drive access with FileMon I notice that the map1.flv file is being accessed. Yet I do not see it at all. The trace works so I know the code was exectued without errors.

Any ideas? All I can think is that most of the tutorials I saw were made right after this feature became available in Flash 7. I have Flash 8. But still even Adobe's web site makes it sound like this should work.


Thanks,

Thread79

[F8] Loading Video Externally
Hi,

I'm having problems getting my videos to play properly.
They load ok into a mc however when I play them only the sounds play. The image remains static but I can hear the sound on the background?

Does any of you have any idea why this is happening?
Here's what I'm doing:

holder.loadMovie("video1.swf","video1.flv");
This is within a movie clip. (mc1)
Could this be a path problem?
Any ideas?

Tks

Video Loading Problem
i'm having one of those unique flash problems that happens at the end of a project just before it goes live where i've no clue what's going on.

basically, i've a flash website, and part of it loads in images and videos. so far so good. locally, everything works fine.

i copy over the files to the network location at our office (network as in network folder, not on the web), and run the program. lo and behold, the images load in but none of the videos do.

i do some printing to try and see what the cause is. netConnection connects fine, there's no errors, but i get a netStream.Play.StreamNotFound error when i play the video. if i load in the exact network address it works, so for some reason, local addresses don't. local addresses work for images, but not for videos. even if i copy the video into the images folder it still comes up StreamNotFound.

if i copy the files back to my local drive, everything works as it should. can anybody explain this? maybe point to something that i need to switch on? i've looked at the security permissions, but seeing as it works if i put in the exact address of the flv, it's not that. i don't want to stick in the exact addresses for all the videos, cause there's a hell of alot of them, and chances are, then whole site's going to be moved later

if you can shed some light on this, you might possibly save my computer's life

Loading Youtube Video
Hi,
maybe somone can help me:

I tried to load a video located at youtube into my flash website.

myMC.loadMovie("http://www.youtube.com/v/FzI5VtUhH7g&autoplay=1");

It works basicly, but it seem that the scaling of the video is done inside the youtube player and the player scales to the size of the _root movie.

I also tried to set the size of "myMC" after the "onLoadInit" and during "onLoadProgress" via a moviecliploaderm - without succes.

Thanks

rkoch

Video Loading Issue
Ive created a basic media player to play flv files which dynamically load from an xml file.

When I strict type ns.play("video1.flv"); code to link the flv file it plays without a problem

however when I load it like this,

videoXML.onLoad = function(success) {
if (success) {
videos = videoXML.firstChild.childNodes;
ns.play(videos[0].attributes.url);
}
else
{
trace("failure");
}
}


it fails to load the flv file.

Its got me totally stuffed. It is loading the xml file cuz its not returning the trace "failure". But it isnt loading the flv whereas the other way it does.

Anyone out there have half a clue about dynamically loading xml? please help with my issues here

Thanks

Loading A External Swf With Video
I am looking for some help or a tutorial on loading an external swf into a flash movie, the external swf contains a video..

If i load this swf, will the swf start streaming immediatly? and if i wanted to preload pre-load this swf with the movie, would I build the preloader into the main Movie or just make a preloader in the external swf to be loaded?

Thanks for any help.

Biscutty

Loading Streaming Video Swf In Xml
hi all,

i've created a picture gallery that uses a little xml to load in pics. however, the client wants to have video too. i've got a videoplayer swf that, when executed on its own from a link our test server, streams in a flv from off the web, and works fine.

however, when i try to load in the same swf through xml, all attributes of the swf load in except for the video itself.


any ideas of how to get the flv working? i don't really want to change my picture gallery too much; i.e. don't really want a set of video buttons on the main gallery and loading in the flv through the xml, though this may have been the better way to do things it seems.


can you actually load in swfs that stream video through xml?

hope that all makes sense? prob not.

Best Way For Loading Video Into A Project
Hi there

I am compiling a program in flash which makes use of around 15 videos (around 220 meg all up) which is eventually gunna run off a cd. Ive tried two ways of bringing them in.

Firstly i just embedded them all into the project using FLVs, but when i went to publish it as a SWF or EXE, flash told me it didn't have enough memory and couldn't publish it.

Secondly i loaded them in externally using the loadMovie() function. This works fine if it runs off the hard drive, but when it runs off the cd, the project freezes until the video is loaded in (which can take anywhere between 10 - 50 seconds which can be a pain in the ass!)

So was just wondering if anyone knows of a different way of doing this. Would a preloader that loads all the video files into the project first help me out? Any thoughts would be great

Flash Video Not Loading
I have two videos at this location http://faithandrevival.com/bookpromotion.html.

I had trouble yesterday with the Adobe Security settings before I finally got the videos to show in my browser IE6.

I am at a different location right now, and the videos are not loading.

Any ideas appreciated.

K

XML Video Loading Problem
I created a video player that plays flv video from xml file. The Problem is after the first video clip stops, I need to auto play the next .flv video from the xml file. Some one please help me.
Here is the code..







Attach Code

stop();
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);

ns.setBufferTime(25);
ns.onStatus = function(info){
if (info.code == "NetStream.Buffer.Full"){
bufferClip._visible=false;
}
if (info.code == "NetStream.Buffer.Empty"){
bufferClip._visible=true;
}
if (info.code == "NetStream.Play.Stop"){
ns.seek(0);
}
}


theVideo.attachVideo(ns);
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.selectedInde x).data);
}
videoList.addEventListener("change",vidList);
vlist.load("videos.xml");

Loading Flash Video Through XML
Hello,
I have an Flash gallery that loads dynamic content from an XML file. I'm trying to display a flash movie in the main display section, so when a user clicks a thumbnails the corresponding video would play in the main display area. Right now the thumbnails are displaying wonderfully but when I try to load an external swf file using the loadClip() method, that itself is the the container of an FLV(01.swf + 01.flv), the video doesn't play. Nothing loads. But the funny thing is I tried to load a simple swf file and it loads fine. I'm guessing it has to do with the video. There's some drawback to loading flash videos in this manner. I've attached the code, and would appreciate any help. Thanks.







Attach Code

function loadSelectedClip(nodePos:Number):Void {
clipNode = GalleryNode.childNodes[nodePos];
var filename:String = clipNode.attributes.filename;
var caption:String = clipNode.attributes.caption;
emptyLoader_mcl.loadClip("clips/mov/"+selectedGallery+"/"+filename+".swf", display)
caption_txt.text = caption;
preloaderMC = this.attachMovie("preloader_mc", "preloader", 5000, {_x:360, _y:280} );
preloaderMC.loadBar_mc._xscale = 0;
};

Dynamically Loading Video
How can I implement the following code to load video from xml file path as opposed to net stream?

Thanks in advance!








Attach Code

var video:Video = new Video();
addChild(video);

var nc:NetConnection = new NetConnection();
nc.connect(null);

var ns:NetStream = new NetStream(nc);
ns.client = {};
ns.client.onMetaData = ns_onMetaData;
ns.client.onCuePoint = ns_onCuePoint;
ns.play("http://www.helpexamples.com/flash/video/cuepoints.flv");

video.attachNetStream(ns);

function ns_onMetaData(item:Object):void {
trace("metaData");
// Resize video instance.
video.width = item.width;
video.height = item.height;
// Center video instance on Stage.
video.x = (stage.stageWidth - video.width) / 2;
video.y = (stage.stageHeight - video.height) / 2;
}

function ns_onCuePoint(item:Object):void {
trace("cuePoint");
trace(item.name + " " + item.time);
}





XML
<?xml version="1.0"?>

<videos>
<video url="videos/alright2.flv" />
<video url="videos/alright2.flv" />
<video url="videos/alright2.flv" />
</videos>

























Edited: 12/04/2008 at 04:43:37 PM by pillowsr4u

Loading A Portion Of Video
i am loading an external .swf that has a quicktime movie emedded in it. is it possible to only preload a small portion (say a quarter) of the file and then load the rest while it is playing? thanks!

this is the code i am using right now for the preload:

bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.loadBar._width = getPercent*100;
this.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
this.gotoAndPlay(3);
}

Loading External Video
is it possible to load a video (quicktime, mpeg, etc) into an empty movie clip in flash or do you have to import the video into the library?

what i would want to do is call a video file, that would change or be overwritten on a regular basis, to play in an empty clip. i would want to be able to do this without having to REimport the video everytime.

possible?

anyone?

Loading Video, When Does It Stream?
I have a flash game that has the following situation.

I want to play videos, but in my situation would rather proload all the videos first than to have to wait for some streaming or buffering to kick in each time i load each external flv.

I'm guessing that even though they are streaming some loading may be necessary. (won't it?)

These videos also have sound, so I cannot embed them without a lot of problems. Instead, I have to stream them with flv's. Is there are any point or any way to load them before hand in this way? I'm don't have a lot of understanding about video, so any help would be great.


Thanks
Jason

Loading A Portion Of Video
i am loading an external .swf that has a quicktime movie emedded in it. is it possible to only preload a small portion (say a quarter) of the file and then load the rest while it is playing? thanks!

this is the code i am using right now for the preload:

bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.loadBar._width = getPercent*100;
this.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
this.gotoAndPlay(3);
}

Loading For Flash Video
I have a flash page that has several video FLVs in it. I notice the FLVs slow down the flash a little. the entire flash is 307 K. Should I put a loading window into the flash video? I have never done this before.
Does anyone know how to put a load into each FLV so it runs smoother?
Thanks for your help.
Flash Video Load Sample

Copyright © 2005-08 www.BigResource.com, All rights reserved