Jump to content
Search Community

HyperNerd

Members
  • Posts

    28
  • Joined

  • Last visited

Everything posted by HyperNerd

  1. Interestingly, if I place video.pauseVideo(); within the onPause function it does work, but then I still get the following error for the video.playVideo(); within the onPlay command: #1069: Property playVideo not found on flash.media.Video and there is no default value. at pages::ProductAPage/onPlay() That also would negate the purpose of decreasing the video volume before pausing... Sorry if this is newb stuff, but I'm trying to understand.
  2. Thank you for clearing that up! Next question - I have an onPause function that decreases the volume over 1 second and then sends an onComplete to pause the video. However, I'm receiving error: Error #1069: Property pauseVideo not found on flash.media.Video and there is no default value. at pages::ProductAPage/soundFadeComplete() at Function/http://adobe.com/AS3/2006/builtin::apply() at com.greensock.core::TweenCore/complete() at com.greensock::TweenLite/renderTime() at com.greensock.core::SimpleTimeline/renderTime() at com.greensock::TweenLite$/updateAll() function initVideo():void { //create a VideoLoader video = new VideoLoader("Liberation.f4v", { name:"myVideo", container:this, width:stage.stageWidth, height:stage.stageHeight, scaleMode:"proportionalInside", autoPlay:true} ); video.load(); setChildIndex(video.content, 0); } function onPause(e:MouseEvent):void{ pauseBTN.visible = false; playBTN.visible = true; testBTN.visible = true; //tween volume to 0 over the course of 1 seconds TweenLite.to(video, 1, {volume:0, onComplete: soundFadeComplete}); } function soundFadeComplete():void { video.pauseVideo(); } function onPlay(e:MouseEvent):void { pauseBTN.visible = true; playBTN.visible = false; testBTN.visible = false; video.playVideo(); TweenLite.to(video, 1, {volume:1}); } Any idea what is wrong with my video.pauseVideo(); / playVideo(); approach?
  3. Hello all, I'm brand new to LoaderMax/VideoLoader and I am looking into using it for cue point benefits over NetStream with the Gaia Framework. I have succesfully loaded my video, which needs to run in the background with buttons on top. My question is, how do I set the VideoLoader to the bottom of the depth stack? My recent attempt kicks back an "Implicit coercion" error: import com.greensock.TweenMax; import com.greensock.loading.*; import com.greensock.loading.display.*; import com.greensock.*; import com.greensock.events.LoaderEvent; import com.greensock.layout.*; ... function initVideo():void { //create a VideoLoader var video:VideoLoader = new VideoLoader("Liberation.f4v", {name:"myVideo", container:this, width:1280, height:720, scaleMode:"proportionalInside", bgColor:0x000000, autoPlay:true, volume:0, requireWithRoot:this.root, estimatedBytes:75000}); setChildIndex(video, 0); //start loading video.load(); //tween the volume up to 1 over the course of 2 seconds. TweenLite.to(video, 2, {volume:1}); } setChildIndex seems to be the culprit.. How to add at a given depth? Thanks!
×
×
  • Create New...