-
[RESOLVED] Re-Size image in vars
I have been trying to figure this out for the longest. I had got it fixed but flash suddenly crashed and everything was lost.
Now here is the as code, I want to know how I resize the _loc5, which is the image that is being called. I will greatly appreciate it. Thank you!
Actionscript Code:
var _loc2 = _loc6.attachMovie("galleryThumb", "thumb" + _loc3, _loc3); var _loc5 = swfRoot + dataObject.path + dataObject.id + "_" + _loc3 + ".jpg"; var _loc4 = _loc2.createEmptyMovieClip("imageHolder", 1); _loc2.id = _loc3; _loc4.loadMovie(_loc5);
-
oh, it's been a long time in AS2, but maybe this helps:
Actionscript Code:
_loc4.onLoad = function(){ this._xscale=50; this._yscale = 50; }
when you are loading data, you definitely need an event handler (hopefully in this case "onLoad") that fires when the loading is finished and the data has been instantiated. if this is not the correct one, then please look up event handlers in the AS2 Livedocs.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|