
I am looking for some help in the following area.
I am loading movies that i have on a video site called "vimeo"
i am using their hubnut slideshow swf which i have on my site at realworldmediagroup.com.au
I am loading the hubnut swf in as an external swf file.
using the following code that I got from another vimeo user.
Which I have pasted below.
It works fine, but what I would like to do is to load another swf over this to place a nice border over the top of the movies that this swf loads up.
For the life of me I havent been able to do it.
I am very new to all this and get easily confused. Is there anyone that could write me some additional code to be able to call up another external swf that will sit above the one that is getting loaded in the code below.
I hope this makes sense??!!
cheers,
anthony…
———————
import flash.system.Security;
import flash.net.URLRequest;
import flash.display.Loader;
import flash.system.LoaderContext;
import flash.events.Event;
import flash.events.ProgressEvent;
Security.allowInsecureDomain("vimeo.com");
var moogaloop:Sprite = new Sprite(); // the video player
var player_width = 624;
var player_height = 351;
var video:AVM1Movie;
function startLoad():void
{
var v_loader:Loader = new Loader();
var v_request:URLRequest = new URLRequest("http://realworldmediagroup.com.au/siteMedia/SWF/hubnut.swf?user_id=user(myUserIdHere)&color=00adef &background=000000&fullscreen=0&slideshow=0&stream =channel&id=27190&server=vimeo.com");
v_loader.contentLoaderInfo.addEventListener(Event. COMPLETE, onCompleteHandler);
v_loader.contentLoaderInfo.addEventListener(Progre ssEvent.PROGRESS, onProgressHandler);
var loaderContext:LoaderContext = new LoaderContext();
v_loader.load(v_request,loaderContext);
}
function onCompleteHandler(e:Event):void
{
trace(’load Complete’);
// Position the player where you want it
moogaloop.x = 9;
moogaloop.y = 25;
video = e.currentTarget.content;
video.width = player_width-15;
video.height = player_height-15;
moogaloop.addChild(video);
// Create the mask for moogaloop
var v_mask:Sprite = new Sprite();
with( v_mask.graphics ) {
beginFill(0×000000, 1);
drawRect(moogaloop.x, moogaloop.y, video.width+60, video.height+60);
endFill();
}
addChild(v_mask);
moogaloop.mask = v_mask;
addChild(moogaloop);
}
function onProgressHandler(e:ProgressEvent):void
{
var percent:Number = e.bytesLoaded / e.bytesTotal;
trace(percent);
}
startLoad();
————————-
If you would like to make a comment, please fill out the form below.
Recent Comments