1

I'm using Flash CS4 and Flex 3.4.0. I'd like to create a vector-graphic button in Flash and use it in Flex.

I'd tried to install the Flex Component Kit, but it won't add me the 2 commands I need for the conversion as stated here.

Anyone has seen/dealt with this problem before?

2 Answers 2

1

You can export the MovieClip to SWF and use it as a skin, thus applying vectored image on a control.

Update:

You can also use SVG files. It's all explained here.

Sign up to request clarification or add additional context in comments.

Comments

0

Yup, happened to me not too long ago. If I recall correctly, it's an installation problem with CS4 (component kit was designed for CS3). After installing the kit, start the Extension Manager CS4, and there disable and re-enable the component. Commands should show up now.

But, you could do it all 'by hand', without the Flex Component Kit. Just set the fps to 24, and 'Export for Actionscript' the clips you'd like to use in Flex. Just be sure to use mx.flash.UIMovieClip as the base class (not the refular MovieClip). Export the resulting file as .swc and you're all set.

BTW, if you want to use an actual button created in Flash (the component, with states, skins and everything), I'm afraid you're gonna be disappointed. You cannot export flash buttons as flex buttons, as they have different inhenritace chain (flash uses flash.display.SimpleButton, and flex uses mx.controls.Button). You can use flash buttons in flex, but you can't leverage all the goodness flex brings with it (tooltips, layout and such). If someone has a clever solution for this problem, I'd love to hear it.

1 Comment

Thanks, but enable/disable method did not work for me and when I'm trying to apply the mx.flash.UIMovieClip on the MovieClip - it tells me that this class does not exist.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.