This content has been marked as final. Show 3 replies
function setVideo(newWidth, newHeight, newURL)
_root.videoGizmo._height = newHeight;
_root.videoGizmo._width = newWidth;
//then set the filename. That will be different depending on what video component you are using. If you are using flash 8 and using the flash 8 video playback component then it will be the contentPath like so
_root.videoGizmo.contentPath = newURL;
Keep in mind that if you are using flash 8 and that's OK for users then then video playback component will autosize for you if you set its autosize property to true.
Thanks very much! Looks pretty straightforward. I'm assuming that "_root" is literally "_root" and is part of actionscript's object model... As for "videoGizmo" - at the risk of seeming dense, I'm not clear on what object this is or what text should be placed here. The name of the swf?
The videoGizmo is whatever you are using to display the video. The thing you are trying to re-size.
I don't know if you are using a video component or a movieclip, so I refer to the thing you are putting the video into for playback as the videoGizmo.