View Full Version : Anyone know how to attach a movieclip without it being visible...?
Charleh
June 10th, 2007, 06:13 PM
When I attach a movieclip I scale it almost immediately to the right size but there's always a flicker as the clip appears at full size before it gets a chance to be scaled down... I scale literally right after the call to attachMovie... any ideas?
creatify
June 10th, 2007, 06:17 PM
When using attach - you can pass an init object to the method that should be executed prior to it being drawn on the Stage.
for example, see the movieClipProperties and how they're placed below:
var clip:MovieClip = _root.attachMovie("linkagename", "newname", _root.getNextHighestDepth(), {_x:10, _y:10, _xscale:50, _yscale:50, _alpha:50});
Charleh
June 10th, 2007, 06:19 PM
Bah my bad I worked it out I was calling scaling code in some other part but setting the scaling of the objects before I set the scale factor! :(
actionAction
June 10th, 2007, 06:19 PM
Nevermind, you all beat me to it! Glad it's worked out!
Charleh
June 10th, 2007, 07:04 PM
Nevermind, you all beat me to it! Glad it's worked out!
Aye, now things go boom and the explosions look right without the shrapnel scaling up :D
http://img48.imageshack.us/img48/5851/boomnc8.jpg
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.