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!