java - how to use swc file in flash builder project -


hi.. have swc file have added file project using http://interactivesection.files.wordpress.com/2008/11/use_flash_code_library_in_flex.jpg how can use component in flash builder project. thanks

after adding swc project shown in screengrab, can use of classes in swc other class in project:

as:

import some.package.in.my.swc.someclass;  private var someclass:someclass; 

mxml:

add namespace top level tag points package in swc, such xmlns:library="some.package.in.my.swc.*", add tags so:

<library:somecomponent/> 

hope helps.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -