|
|
#1 |
|
Actionscript - loader component Help!
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[i].setSize((maxWorkWidth/itemNum),maxWorkHeight); thisArray[i].move((maxWorkX + (maxWorkWidth/itemNum)*(i-1)) ,maxWorkY); } thisLDR.load(itemLoad); } 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, Adroit |
|
|
|
0
|
![]() |
|
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| thread | Thread Starter | Forum | Replies | Last Post |
| iMovie '11- Missing quicktime component help! | MrFluffums | Mac Applications and Mac App Store | 2 | Aug 1, 2011 10:00 AM |
| mini dvi to component help... | hardfox | Digital Video | 3 | Dec 4, 2006 07:00 PM |
| actionscript read id3 tag help | homerjward | Mac Programming | 0 | Feb 1, 2006 09:28 PM |
| Some actionscript broken on Mac. HELP!! | benwa02 | Design and Graphics | 0 | May 10, 2005 08:16 PM |
All times are GMT -5. The time now is 01:47 AM.






Linear Mode

