A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [RESOLVED] Re-Size image in vars

  1. #1
    Member
    Join Date
    Sep 2009
    Posts
    57

    resolved [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);

  2. #2
    Member Pepember
    Join Date
    Jul 2001
    Location
    Berlin
    Posts
    886
    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.
    Please sign here

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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center