Flash Me!

Soldato
Joined
15 Nov 2007
Posts
13,155
Location
Hertfordshire
Right, in need of some advice in Flash....basically, I've put together a simple website with a music player. The website is one file, and the music player is an external .swf. I'm using the following code to import the music player:

Code:
var loader = new Loader();
loader.load(new URLRequest("butterflyPlayer.swf"));
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onCompleteHandler);
addChild(loader);


function onCompleteHandler(e:Event):void {
	preloaderBar.visible = true;
	loader.content.x=50;
	loader.content.y=50;
	loader.content.width=400;
	loader.content.height=300;
}

The import works fine, but the player is stuck in completely the wrong area of the page, and I have no idea how to move it.

Can anyone shed any light? It doesn't make any difference if I move the music player in the original file, or tweak the x&y values above and it's doing my nut in :(
 
Back
Top Bottom