开发者

Can you increase the visual size of a flash cs3 Checkbox Component?

开发者 https://www.devze.com 2022-12-17 05:25 出处:网络
I want to use the checkbox component in my flash app, but it\'s really tiny.According to this article 1, the s开发者_运维问答ize and scale parameters only affect the invisible bounding box.Does anyone

I want to use the checkbox component in my flash app, but it's really tiny. According to this article 1, the s开发者_运维问答ize and scale parameters only affect the invisible bounding box. Does anyone know of a quick solution on how to scale up (enlarge) the visual area of the checkbox component in flash CS3?


I solve the problem by copy checkbox inside a movieclip and then resizing the movie clip.


After you have added the CheckBox component, go to the library and open the folder 'Component Assets.' Locate the folder 'CheckBoxSkins' and edit every item to the size, color, etc. that you require.

You only have to do the 'tick' (CheckBox_selectedIcon) once as it is used with all the state boxes.

Scaling or sizing in the code does not work.

For my application, which was visual, I created 2 graphics for selected and unselected, added them to stage 'addChild();' and used 'visible' to show or hide them within an if{} function.

For example,

if(condition is true){
    checkboxUnselected.visible = true;
    checkboxSelected.visible = true;
}


You can scale the entire component with myCheckBox._xscale=200;myCheckBox._yscale=200; However this will scale everything, including the line thicknesses, text size, shadow etc, so it might not be the effect you're looking for.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号