Actionscript - loader component Help!

Discussion in 'Web Design and Development' started by adroit, Feb 14, 2006.

  1. adroit macrumors 6502


    Sep 28, 2005
    Victoria, BC
    I am trying to create a dynamic loader component that will load "itemLoad" movie clip and set it to specify size and location. The size and location of all the movie clips will chage as the new item is loaded.

    Here is some of the AS code for this function:

    function createLoader (evt_obj:Object) {
    var thisLDR:Object = this.createClassObject(mx.controls.Loader, "ldr_load"+itemNum, itemNum -50);
    thisArray[itemNum] = thisLDR;
    for (var i:Number=0; i<=itemNum; i++){
    thisArray.move((maxWorkX + (maxWorkWidth/itemNum)*(i-1)) ,maxWorkY);

    The problem is that I want to make the movie clip strech to fit the size of the loader. Currently it will expand porportionally the fit the loader but it will not strech. How can I do that?

    I am willing to try other method that doesn't need the loader too (I tried "createEmptyMovieClip" but I'll have to scale it but I want to specify the size of the movie clip by number of pixles.)

    Thank you,

Share This Page