PDA

View Full Version : Problem with importing TextArea component


rbb
05-02-2004, 04:12 AM
Hi peoples,

I'm trying to make a site with lots of little 'pods' that get loaded depending on the area of the site. The maing thing is one .swf with each pod loaded as a sepearate swf. Most of these pods with textArea omponents in them.

Basically I don't want to have to export the textArea component in each .swf, jsut the main one. Without the component they're about 3k, but with it they are around 40k :eek:

I figured I could use
import mx.controls.TextArea;
in the main .swf, then use
createClassObject(TextArea,"eventText",5);
in the pod swf's to create the textArea. But this doesn't seem to be working. Is it not possible at all to only have the textArea component in one .swf, and any other .swf's that get loaded into it using that one? I realloy hope it does, otherwise this site is going to be pretty big. :(

Any ideas anyone?


Thanks in advance,

rbb.

Billy T
05-02-2004, 08:57 AM
hey Nic

have you looked into shared libraries?

rbb
05-03-2004, 07:48 AM
no. but now i have. :)

thanks bill! ;)

Billy T
05-03-2004, 11:09 AM
let us know how you go