Jump to content
Search Community

ppdc

Members
  • Posts

    28
  • Joined

  • Last visited

Everything posted by ppdc

  1. did you have the chance to look over my code? thanks. ppdc
  2. well sure. where shall i send it? info@greensock.com? wouldn't want to post it publicly, not sure the customer would appreciate… peter
  3. Hi, thank you for the quick reply, and yes, now I do see what you mean… seems to work now except that it looks like it scales porportional inside instead of outside. i set all the sizes to the original swf's sizes (1260x760 that is): bgVideo = new Video(1260, 760); addChildAt(bgVideo, 0); var nc:NetConnection = new NetConnection(); nc.connect(null); ns = new NetStream(nc); bgVideo.attachNetStream(ns); var listener:Object = new Object(); listener.onMetaData = function(evt:Object):void {/*trace(evt);*/}; ns.client = listener; ns.play("flv/cara_denon.flv"); videoStage = new LiquidStage(this.stage, 1260, 760); videoStage.attach(logo, videoStage.TOP_RIGHT); var videoArea:LiquidArea = new LiquidArea(this, 0, 0, 1260,760); videoArea.attach(bgVideo, ScaleMode.PROPORTIONAL_OUTSIDE); videoStage.addEventListener(Event.RESIZE, onLiquidStageUpdate); is there still something i'm missing? thanks again. peter
  4. hi, i have to make a flv play fullsize in the background of my site and can't seem to get it right, either it's fixed top left and doesn't resize or it resizes but won't align to the left border of the stage… here's how i tried: bgVideo = new Video(stage.stageWidth, stage.stageHeight); addChildAt(bgVideo, 0); var nc:NetConnection = new NetConnection(); nc.connect(null); ns = new NetStream(nc); bgVideo.attachNetStream(ns); var listener:Object = new Object(); listener.onMetaData = function(evt:Object):void {/*trace(evt);*/}; ns.client = listener; ns.play("flv/videofile.flv"); videoStage = new LiquidStage(this.stage, stage.stageWidth, stage.stageHeight); videoStage.attach(logo, videoStage.TOP_RIGHT); // videoStage.attach(bgVideo, videoStage.CENTER); var videoArea:LiquidArea = new LiquidArea(this, 0, 0, stage.stageWidth, stage.stageHeight); videoArea.attach(bgVideo, ScaleMode.PROPORTIONAL_OUTSIDE); the commented line was my other attempt. I don't know if it's relevant, I am also adding other objects (navigation etc.) to my videoStage. I also tried setting the stage.scaleMode to NO_BORDER, in flash and in the html-code, nothing would do the trick. Help is greatly appreciated Peter
×
×
  • Create New...