Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Special Interests > Visual Media > Web Design and Development

Reply
 
Thread Tools Search this Thread Display Modes
Old Feb 14, 2006, 02:05 PM   #1
adroit
macrumors 6502
 
Join Date: Sep 2005
Location: Victoria, BC
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
adroit is offline   0 Reply With Quote

Reply
MacRumors Forums > Special Interests > Visual Media > Web Design and Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Privacy / DMCA contact / Affiliate and FTC Disclosure
Copyright 2002-2013, MacRumors.com, LLC