flash/action script
- Started
- Last post
- 8 Responses
- tasty0
center dynamic content on a blank movie clip?
i have my images loading to an blank movie clip.
but it's loading the images to 0,0 coordinate. Not all the files are the same size is there a way to center the dynamic content?
- amullins0
something like this...
var blank_mc:MovieClip = new MovieClip();
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEven... onLoaderInit);
blank_mc.addChild( loader );
function onLoaderInit( e:Event ):void
{
var _loader:Loader = e.target.loader;
blank_mc.x = (this.stage.stageWidth-blank_mcw...
}
this.addChild(blank_mc);- loader.contentLoader... Event.INIT, onLoaderInit );
amullins
- loader.contentLoader... Event.INIT, onLoaderInit );
- amullins0
it's difficult to help with coding issues on here - the above code is @ http://www.niftynewsite.com/sand…
- maximillion_0
check out the Tween class
- i think he means calling the JS function not replicating the effect in flashgraham
- elee0
here's a decent tutorial for fscommand, make sure you have your embed parameters right
- tasty0
thanks guys, i'm going to work on this tonight