Bind video.

Q&A about the latest versions
Post Reply
soupstudio
Posts: 14
Joined: Wed May 14, 2008 10:23 am
Location: Chiba-central, JP

I cant bind video with API.

code is below.........

function finished_loading (e:Event) {
}
function initHandler(event:Event):void {
trace("initHandler: " + event);
vr = MovieClip(loader.content); // cast 'DisplayObject' to 'MovieClip'
vr.pano.setWindowSize(640,360);
var VideoUrl:String = "living.flv";
vr.attachVideo(VideoUrl);
}

We need a simple panorama video demonstration(with API).
User avatar
thomas
Chief Gnome
Posts: 2613
Joined: Fri Sep 01, 2006 3:56 pm
Location: Vienna, Austria
Contact:

You need to call the method with the video xml string not just the url. If you change the line to

Code: Select all

var VideoUrl:String = "<video url=\"living.flv\"/>";
it should work.
MfG, Thomas
Post Reply