View Full Version : component content resize at authoring time (MX2004)
churowa
03-14-2005, 10:22 AM
I'm experiencing regarding confusion regarding how components are resized in Flash. I've created a component that extends mx.core.UIComponent, and I've dropped it onto the stage in the authoring environment.
Now I want to resize it, to make it smaller. When I use the Free Transform tool however, the contents of the component don't resize with the component. The borders of the component resize, but begin cutting off the content. The content doesn't resize as well. Is this simply a common issue, that I can't do anything about? Is there any way to specify how large the contents of a component will be? I don't necessarily know how big the components will be, so you can see my problem.
SrinivasSM
03-14-2005, 11:20 AM
Hi,
U can't Use Free Transform Tool for the components which u create unless untill it's a complete complied clip.And one more thing if u r converting ur component into compiled clip don't forget to include all other components instances inside it and remember to resize the inner components of ur components according to the clip's size.I hope u understood what I am trying to Inform You.
churowa
03-14-2005, 04:13 PM
Thanks for your reply Srinivas,
I think I understand, somewhat. I've just been exporting my components as .swc files, and not as compiled clips. Does that make a big difference? And, when you say I have to include all other components inside the compiled clip, does that mean include them in the MovieClip that the compiled clip is exported from? Well, I'll try and see first.
edit -- Ok, I've tried it out, and unfortunately I get the same problem with a compiled clip. Essentially, I created an .fla file, and created a movieClip inside that that had some shape in it. Then, I linked that to an .as file. If I then convert to SWC, then in the library the movieclip gets a component symbol next to it. If I convert to compiled clip, a new library symbol is created, that has SWF in the name. That symbol also has a component icon. No matter which one I move onto the stage, when I try and resize it, the component resizes but the content is left unchanged.
SrinivasSM
03-15-2005, 09:24 AM
Hi,
If u can mail me ur Code to Me then may be i can solve ur problem.
my mail id is srinivas_20sm@rediffmail.com
Please Specify ur Name and Together with ActionScript.org,ok?
dhicka
05-22-2005, 11:45 PM
This is kinda of a lame solution but you can put your component into a movieclip and use the free transform tool.
vBulletin® v3.7.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.