ActionScript 3.0 :: Loading A Video Using The URL Method?

May 7, 2010

I am trying to load a video using a URL, and I keep getting this error:

Code:
VideoError: 1005: Invalid xml: URL: "http://pegasus.dev.webriverinteractive.com/API/Resource.ashx?ResourceID=16&FLVPlaybackVersion=2.1" No root node found; if url is for an flv it must have .flv extension and take no parameters

[Code]....

View 5 Replies


Similar Posts:


ActionScript 3.0 :: Loading Video Through AddChild Method?

Mar 21, 2010

I have a main SWF e-learning tutorial and want to have video pop up on certain screens. over the main area.It would be like a person walking over a screen shot of a program.

1. Should I do an load the video through an Add Child method or load it to another level? User would click a button to see the video.

2. Can you pull out all the back ground in a program like Adobe Premiere and have a transparent background or will I need to put some form of a background in like the screenshot.

View 2 Replies

Professional :: Best Method To Playback Video?

Mar 29, 2011

I import the video manually from the File Tab. I change the stage size to match video (I want it full screen because I have "liquid layout" AS3 code in order to match browser window) I center the video on the stage.I make the video an Object (MovieClip)

And that's it.

The video play well, matching the full brower window and resizing accordingly.

My questions are :

1 - I am making the video a movie clip but is it necessary. I have tried without and it still works!! The only thing I find weird is that the "publishing" doesnt work when the video is not made a MovieClip. (I struggle to center the SWF in the HTML page)

2 - I don't know about the Netstream class. My server is a normal FTP (with PHP MYSQL) but not a streaming server. Would it be appropriate (better) to call the video through AS3 using the Netstream class ? (actually I am not sure of what the Netstream class is for)

3 - I have tried to loop the video using the classic AS3 code (that can be found anywhere). What is funny is that the code works when the movie is not converted to an object. But when it is, the looping doesnt work at all. Do you see a reason why ? (Maybe because the video is imported manually and not an instance created from the Video MovieClip Object ??)

View 1 Replies

Actionscript :: Load A FLV Video On Flash Without Method GET?

Sep 23, 2010

I want load a video on flash, without a GET call to get the video. how the code is something like this:

var Player:FLVPlayback = attachMovie("FLVPlayback", "Player", _root.getDepth()-1);
Player.autoPlay=false;
Player.bufferingBar=buff;
Player.contentPath="myVIDEO.flv";

View 2 Replies

Actionscript :: Call Method From JS Without Loading SWF?

Sep 27, 2011

Well yeah, it sounds funny, but all I want is to read the value of Capabilities.version to get the right version of the Flash player? I have tried getting the version info from swfObject library, but it doesn't give the complete version info:[URL]..

FP version info have 4 numbers: major, minor, release and build. I couldn't find an API which can give me all four on all browsers without loading SWF. Hence I am looking for help here.

View 2 Replies

Security :: Secure And Cheap Method For Streaming Flash Video?

Sep 8, 2010

I'm working on a site which allows people to pay to stream videos online. I'm currently using JW Player to stream FLV/F4V files from Amazon S3, using a signature.This method is extremely unstable, and needless to say, useless. I've heard I can use Amazon CloudFront as a CDN for my videos. But that it won't make the files any more secure, if I've understood it correctly.Price is an important thing. I know hosting/streaming video is expensive, but what are my best options, for a cheap, reliable, and as-safe-you-can solution for me? I have very little hosting experience,

View 2 Replies

ActionScript 3.0 :: Loop XML - Sort Through Video URL's Using A Switch / Case Method

May 26, 2010

I have a function videoList which I want to sort through my video URL's in my XML, using a switch/case method. The for loop in each case is bringing back all videos in the XML. How can I get just the videos for a particular case? Example: Introduction has one video, Our Work has none and Our Services has 5.

[Code]...

View 4 Replies

ActionScript 1/2 :: Method Of Loading External Webpage?

Apr 20, 2010

What method is used to load a flash web in to another flash webpage? Something like Iframe do in HTML. Will loadmovie do it?

View 3 Replies

Flash :: New To - Method Of Loading External Files?

Sep 6, 2011

i have been working with a few basic flash presentation to learn the ropes. However, I am working on a flash file which, when compiled, pulls in flash content from elsewhere in the Parent folder. I have read through the FAQ and cannot find the answer, as there doesn't seem to be any Actionscript which handles the importing of these external files.

Are there other methods that I am unaware of? I need to edit these other files, however I find it more beneficial to first understand how the Flash file is compiled before editing.

View 2 Replies

ActionScript 3.0 :: Setter Method - Loading Images In SWF Using XML

Sep 30, 2010

I want to use setter method for my xml object which is contain Images path. Actually I want to load images in swf using xml so for this purpose I make a xml object using URLloaing class and I want to setter and pass these object to other class ........like ImageLodingClass. My question is how to receive this object in ImageLodingClass IS it is String so how to Convert in Array for storing All path of images?

View 3 Replies

Flash :: Unloading Swf Using The UnloadAndStop() Method, But Video Sounds Remain Audible

Feb 16, 2011

I have tried many approaches to unloading my swf, but to no avail, the video sounds within my laoded swf keep playing even once the swf has been loaded.

I have created a universal loader as follows:

var loader:Loader = new Loader();

I then load various swf's into a movie clip named mov_contentLoader, for example the video swf is loaded as follows:

loader.load(new URLRequest("video.swf")); //assign SWF url to loader
mov_contentLoader.addChild(loader); //add loaded content to movi clip

I then have a generic "exit" button, based on the state of the application, certain windows are closed, swf's are unloaded etc. For my video.swf file, when the exit button is clicked, I call the unloadAndStop(); method on the loader as follows:

loader.unloadAndStop(); //unload all content, do some garbage cleanup
mov_contentLoader.removeChildAt(0); //just to be safe, a second layer of reassurance ??

The SWF is unloaded, but for the life of me I can NOT get the sounds to stop! I even resorted to adding stage listeners on the video.swf to listen for an exiting state, but that still did not stop video sounds.

If I load the video.swf in again and play a different video, the two soundtracks play ontop of each other.

View 4 Replies

ActionScript 3.0 :: Static Utility Method Requires Loading?

Jun 29, 2010

I have a bunch of functionality which is going to be used throughout the application.I already have some utilities which work ok such as changing an AS3 object into XML.public static function convertMyObjectToXML(o:Object): XMLThis can go in a UTIL class somewhere.nother thing i would like to do is create a "createDirectory" via php. public static function createDirectory(name:string, path:String): voidThe problem is, in order to get the response from the server, i need to listen for the load to complete (or fail).So am i right to think that static methods are not possible or desirable here? How else can i solve the problem of reusing such a method throughout an application?

View 0 Replies

ActionScript 2.0 :: MovieClipLoader's LoadClip Method Is Loading Swf Before Its Downloaded 100%?

Aug 27, 2008

I created a MovieClipLoader a few days ago that is reuseable. I will be using the same preloader graphics when I am loading in external swf on my stage. My MovieClipLoader functions fine with jpegs and smaller sized swf files. But whenever I load a larger sizes swf it loads the movie before it has fully downloaded in simulation mode. The odd part is that everything works fine with smaller swf files but not larger ones . I have tested a few movies and that seems to be the common theme.

In the example below main.swf is the clip I am loading into "mcBackground".

[Code]...

View 7 Replies

ActionScript 3.0 :: Method - Loading Thumbnail + LargePic - Matching Them To Another?

Aug 13, 2010

I am loading 20 thumbnails. I am loading 20 large pictures of the thumbnails. Large pics load second, pushed into largePicArray They all load at different times. So I can't just throw them in their own array, and them call upon them by their elements. So I can't push 20 thumbs to array1, and 20 large pics to array2, and hope that their elements are in the same order. It won't happen.

So my Q is this. What is the easiest way to place them in the same element order after they all have loaded? So that, for example, "thumb17.jpg" can be in any element of its thumbArray, and then "largePic17.jpg" would be in the same element position, in largePicArray. If "thumb17.jpg" is in element 5 of thumbArray, I need largePic17.jpg to be in element 5, in largePicArray.

I have a few ideas, but I want to hear ideas. Maybe you know a nice, easy route?

View 5 Replies

Flex :: Proper Method To Stop Loading A Module Before It Has Completely Loaded?

Jun 17, 2010

I seem to recall that Loader.unload() could once be used to stop loading a swf before it had finished loading. I can no longer find documentation or the blog where I read this. Perhaps it was an unofficial feature. Anyhow, IModuleInfo, returned by ModuleManager.getModule() has an unload() method. If I want to halt loading a Flex Module that is in progress, do I just call iModuleInfo_instance.unload()?

View 1 Replies

ActionScript 3.0 :: Cannot Access A Property Or Method Of A Null Object Reference, When Loading Swf

Aug 6, 2009

I'm trying to load external swf into my main swf, but I keep getting this misterious error:

TypeError: Error #1009: Cannot access a property or method of a null object reference.

here is my main swf code:

ActionScript Code:
var loader:Loader = new Loader;
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete);

[Code].....

View 9 Replies

ActionScript 3.0 :: Video Viewer Error #1009: Cannot Access A Property Or Method Of A Null Object Reference

Feb 6, 2009

I have made an xml video viewer which works great, however I am getting output errors when I run it- I'm not sure why or what is being affected

[Code]....

View 0 Replies

Flash :: Difference 'Music / Video Is Loading' Vs 'Music / Video Is Buffering'?

Dec 1, 2011

What is technical difference between buffering and loading ? Say, i have a video, which is showing loader bar in progress. Then what's happening exactly ? Buffering or Loading ?

View 1 Replies

ActionScript 3.0 :: Error #1009 While Loading Swf "Cannot Access A Property Or Method Of A Null Object Reference?

Nov 18, 2009

I'm trying to load a swf called "polaroids.swf" into my main swf called 9replacesSWF.swf". I keep getting the error when I test the movie. I'm completely lost and have been at this for hours. If I just test polaroids.fla the movie works fine but if I try to load it into 09replacesSWF.swf, I get the error.I tried to debug the movie and flash says......."Cannot display source code at this location"........ TypeError: Error #1009: Cannot access a property or method of a null object reference.  at Polaroids$iinit()
 
Here is my AS code
package   import flash.display.*;  import flash.filters.*  import flash.utils.*;  import flash.net.*;  import flash.events.*;  import

[code].....

View 7 Replies

Professional :: Embed A Video Window From UStream - TypeError: Error #1009: Cannot Access A Property Or Method Of A Null Object Reference

Aug 24, 2010

I have a web page in joomla and I embed a video window from UStream that allows my users to see or hear our transmissions. Every time I load the page in which the embeded window is, I receive this error message:

[Code]...

I posted this message before but I notice it was no longer posted. I have no knowledge of programming so I am lost.

View 1 Replies

ActionScript 3.0 :: Preloader.swf Is Loading A Home.swf Error #1009: Cannot Access A Property Or Method Of A Null Object Reference

Jul 26, 2011

I am quite confident i am having no issue with my preloader codes and have managed to identify why i keep getting the Error #1009: Cannot access a property or method of a null object reference. My preloader.swf is loading a home.swf. Within this home.swf i have some codes that makes reference to the stage. EG stage.stageWidth/2 Once i deleted away this line of code there is no error. Is there anyway that i can still reference my stage in home.swf without getting Error #1009?

View 2 Replies

Get Video To Play While Loading?

Oct 15, 2009

view my video: http://media.*************.com/v/test/video_player.html

After clicking the play button, the video starts to load, but won't play until it fully loads. I would like the video to start playing as it is loading.

View 1 Replies

Loading Video To FLVPlayback?

Jun 26, 2009

I'm doing the exercises included in the book "ActionScript 3.0 for Adobe Flash CS4 Professional Classroom in a Book", but I have run into a problem I cannot solve regarding the use of the source property of the FLVPlayback component.

[Code]...

An error like this appears: "NetsStream.Play.StreamNotFound", saying that there is no video file there I also try with absolute paths, with slashes instead of backslashes..., and I just get to get it working if I copy this video file in the same folder in which lesson11_start.fla is, and enter "solution5.f4v".

View 1 Replies

ActionScript 2.0 :: XML Video Not Loading?

Aug 11, 2009

I have created a video gallery jukebox from the gotoandlearn site however when testing the movie the video doesnt load.There are no errors in my as

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

[code].....

View 2 Replies

Actionscript 2.0 :: Loading Video With XML?

May 11, 2009

I am using an XML gallery that I created originally for an image gallery but now I am trying to use it for flv files and I am having trouble getting the flv to load. I can trace them and see them but they are not loading into my flv loader.

here is the XML code:

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<videos>
<video>

[Code]....

View 1 Replies

ActionScript 3.0 :: 1180: Call To A Possibly Undefined Method Error For DEFINED Method

Nov 19, 2010

I am getting this error: 1180: Call to a possibly undefined method startWorld.but the method startWorld is defined as you can see in attachment.

View 4 Replies

Loading Video Into Specific Area?

Mar 18, 2009

how do I load video into the movie area like in the pic? where I can click on a box on bottom and the video for that will load in movie area?

View 1 Replies

Large FLV Video Only Partially Loading?

May 5, 2009

I have a large ON2 VP6 encoded FLV video (334 MB, 75 minutes) hosted on the web and being played back using a basic Flash movie player:
 
[URL]
 
Many people are having problems getting the entire video to load. The loading progress bar will increase quite quickly at first, but then it will either slow down to a crawl or will stop completely. If the progress bar stops increasing before the video has fully loaded, it will not continue no matter how long you wait. Reloading the page does help.
 
Is this likely to be a problem with the FLV file, the Flash player or is it more likely to be a problem with our web host?

View 6 Replies

Video Player Loading Different From Links In IE?

Sep 15, 2009

So we have a basically skinless video player embedded in a web page. Works fine in Firefox, Safari, Opera... but... in IE... if you type the URL in the browser, it works fine... however if you go to the page from a link, the player renders only the very bottom right of the video skin, as if the align property were seriously out of whack.The video player is 360 x 480 and when broken shows up all white, with the player controls in the top 60 x 10 pixels or so.

View 1 Replies

Video Not Loading Using Button Event

Nov 30, 2009

I am trying to load a video which is in the same folder as the flash file using a buttons but its not loading.
Here is the code I am using:
_root.Cross.onRelease = function() {
_root.gotoAndStop(9);
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
Gamevid.attachVideo(ns);
ns.play("gta.flv");};

View 7 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved