Solved

Using external video files in MX 2004

Posted on 2003-11-03
13
227 Views
Last Modified: 2010-04-03
I have a project that will need to incorporate several video files. From what I've read (and seen), MX 2004 handles video pretty well.

However, I'm having trouble designating local external files to play. I pulled some code from the Flash help files. Here's the sample code I'm using:

//*********************************************************************
// Create a NetConnection object:
var netConn:NetConnection = new NetConnection();
// Create a local streaming connection:
netConn.connect(null);
// Create a NetStream object and define an onStatus() function:
var netStream:NetStream = new NetStream(netConn);
netStream.onStatus = function(infoObject) {
      videoStatus.text += "Status (NetStream)"+newline;
      videoStatus.text += "Level: "+infoObject.level+newline;
      videoStatus.text += "Code: "+infoObject.code+newline;
};
// Attach the NetStream video feed to the Video object:
my_video.attachVideo(netStream);
// Set the buffer time:
netStream.setBufferTime(5);
// Being playing the FLV file:
netStream.play("002Interface.flv");
//*********************************************************************

If I upload the video file (002Interface.flv) to my website and change the last line to:

netStream.play("http://www.mywebsite.com/002Interface.flv")

...it works fine. I've also tried adding "file://" before the file name, but this doesn't work either. I get error messages in my "videoStatus" text box. I am publishing to version 7, so that's not the issue. According to the help files, this should work.

Any ideas? Help would be appreciated ASAP.
0
Comment
Question by:jtlyonsden
13 Comments
 
LVL 27

Expert Comment

by:negatyve
Comment Utility
(file://  works locally, and using: "file://002Interface.flv" or "002Interface.flv" alone it's actually the same thing)

If you use:

file://002Interface.flv

the 002Interface.flv clip should stay in the same folder where the swf lies.
If you use:

file://fodler/002Interface.flv

it means that the clip is in the "folder" folder, nested in the same folder where the swf file lies.
0
 

Author Comment

by:jtlyonsden
Comment Utility
Yep. It still doesn't work.

I have one folder that contains the SWF, FLA, and FLV files. The FLA file contains nothing but the blank video object ("my_video"), the textarea ("videoStatus"), and the code I included above - all in a single frame. I created this exactly the way the Flash help file describes.

Does this work on your end?
0
 
LVL 27

Expert Comment

by:negatyve
Comment Utility
0
 

Author Comment

by:jtlyonsden
Comment Utility
AAAAAARRRRRGGGGGGGHHHHH!!!!!!

I know this is supposed to work, but I'm still not seeing any video. I have the right Player and the right version of Flash. And it works if the movie comes over the Net.

If I publish the movie as a projector, I can see the top video. The other still says "StreamNotFound".

Looks like it's time to call Macromedia support, unless you have any idea this would work on your system and not mine.
0
 
LVL 27

Expert Comment

by:negatyve
Comment Utility
It does not work in the authoring ambient too (i mean in test mode)?
0
 

Author Comment

by:jtlyonsden
Comment Utility
It doesn't work in test mode or in the Player.
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 

Author Comment

by:jtlyonsden
Comment Utility
I figured it out. I have a "/" in the name of one of my folders. As soon as I removed it, it worked.

As soon as I finish banging my head against the wall, I'll continue this project...
0
 
LVL 27

Expert Comment

by:negatyve
Comment Utility
"/" ? You are not using windows, are you?
0
 

Author Comment

by:jtlyonsden
Comment Utility
Nope. Mac OS X.
0
 
LVL 5

Expert Comment

by:abdulqabiz
Comment Utility
Hi,

>>I figured it out. I have a "/" in the name of one of my folders. As soon as I removed it, it
>>worked. As soon as I finish banging my head against the wall, I'll continue this project...

Is your problem solved?

Regards,
Abdul
0
 

Author Comment

by:jtlyonsden
Comment Utility
I solved the problem myself. Close the question.
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
Comment Utility
PAQed, with points refunded (500)

Computer101
E-E Admin
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
The goal of the tutorial is to teach the user how to how to record live broadcast.
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now