Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 03-12-2008, 10:14 AM   #1
felisan
Senior Member
 
Join Date: Mar 2005
Location: Denmark
Posts: 114
Default Error #2044 #2095 og #1069 on loading .flv-file

hej everybody.


I've tried loading a .flv-file into my Flash, and it actually works properly.

I use the following actionscript:
Code:
var videoConnection:NetConnection = new NetConnection();
videoConnection.connect(null);
var videoStream:NetStream = new NetStream(videoConnection);
var video:Video = new Video(700, 480);
addChild(video);
video.attachNetStream(videoStream);
videoStream.play("shine_introduction.flv");
and when I test, the .flv is loaded and all is honky Dory.
except...

I get the following error in my trace-window:
Error #2044: Unhandled AsyncErrorEvent:. text=Error #2095: flash.net.NetStream was unable to invoke callback onMetaData. error=ReferenceError: Error #1069: Property onMetaData not found on flash.net.NetStream and there is no default value.
at loading_flv_files_fla::MainTimeline/frame1()



how do I avoid these errors, and how much do they actually matter?

an example of flash loading the .flv-file can be seen here
http://felisan.wordpress.com/2008/01...i-flash-del-1/

thanks
felisan
felisan is offline   Reply With Quote
Old 03-12-2008, 12:23 PM   #2
straydog
Hands Resist Him
 
straydog's Avatar
 
Join Date: Jun 2006
Posts: 180
Send a message via AIM to straydog Send a message via MSN to straydog
Default

To be honest I don't know why its throwing those errors, unless you have other code in your swf. Try looking at these, they might help.

onMetaData

AsyncErrorEvent

if nothing else works try rewriting your code in a new fla
straydog is offline   Reply With Quote
Old 03-12-2008, 03:32 PM   #3
wvxvw
Holosuit User
 
wvxvw's Avatar
 
Join Date: Oct 2006
Location: Tel Aviv
Posts: 4,301
Send a message via ICQ to wvxvw
Default

AsyncErrorEvent is a notification for any error that happened during recieving the stream.
One of the errors that happened was that you have not provided the stream with onMetaData handler. There are few more errors of this kind you may run into: no onStatus handler, no onPlayStatus handler. There are 2 more events that are being called on the client recieving the video (you need them to test the bendwidth, just forgot the names %). I'll edit this when I'm home =)
wvxvw is offline   Reply With Quote
Old 02-14-2010, 06:47 PM   #4
rwt
Registered User
 
Join Date: Feb 2008
Posts: 4
Default

ah, but you need to create both onMetaData and Async listeners and callbacks. It is not a compiler error though, so you needn't worry too much about them.
rwt is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem in loading swf files into flash file akj ActionScript 1.0 (and below) 1 05-17-2005 07:24 PM
External text loads partially & Render text as HTML prevents loading of text file piercedwater ActionScript 2.0 20 03-02-2005 11:33 PM
Loading multiple files at once (in one single file) pitu ActionScript 2.0 1 02-25-2005 10:57 PM
Problem with loading a file on the server bionicsamir Server-Side Scripting 13 05-22-2003 02:32 PM
Problem with loading a file on server bionicsamir ActionScript 1.0 (and below) 6 05-21-2003 09:01 AM


All times are GMT. The time now is 07:33 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.