This content has been marked as final. Show 3 replies
Yes, you can... but first you need to make sure that the image was loaded.
so, on this.new_mc.getBytesLoaded() == this.new_mc.getBytesTotal() you can set the action.
the code below works fine:
_root.onEnterFrame = function()
if(_root.new_mc.getBytesLoaded() == _root.new_mc.getBytesTotal() && _root.new_mc.getBytesLoaded() > 0)
_root.new_mc._xscale = _root.new_mc._yscale = 15;
Its better to use loadClip() rather than loadMovie().
and you can set or get the height or width on onLoadInit.
Thanks for help
with _xscale and _yscale i found that it makes problem when i am using different size of images. because it sets the size in percentage. I used height and width instead.
Another problem i found is proportion of images. Here is the final code that resizes the images proportionately.