Vigor
Vigor

Reputation: 21

is there some difference of component in flex3 and flex4

there some weird problems in my project,I download the objecthandles project which let make a component draggable,resizeable,stretchable and rotatable.

it works well in flex3,then in flex4,I add decorator(a Sprite object) to the spark component,any component,such as group,button and so on ,the decorator not show,but the functon addElement(),it was executed.

so I want to konw the difference between flex3 and flex4,or what I do to shield the spark component mouseClick event,I have tried the mouseenable or focusEnable,they did not work.

Upvotes: 0

Views: 87

Answers (1)

csomakk
csomakk

Reputation: 5497

flex4 has spark components, while flex3 has mx components. In flex4 however, you can still use the old mx components, if you allow it in the project setup. spark components are usually lighter, faster, more reliable, but contain less features than in mx components. A Sprite is not a flex object, it is pure AS3. Since it is not a flex component, it is not added by addElement(), rather with addChild().

Upvotes: 2

Related Questions