A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Referencing swc (components) from the library

  1. #1
    Member
    Join Date
    Mar 2004
    Posts
    45

    Referencing swc (components) from the library

    Since I'm coding in AS3 I need to dynamically add components to my stage.

    How can I do this?

    Say I have a component in the library with the linkage class com.david.Tree;

    How can I do something like: var myTree:Tree = new Tree();

    ???

    Any help would be most appreciated,

    David

  2. #2
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    import com.david.Tree;
    var myTree:Tree = new Tree();
    addChild(myTree);
    - The right of the People to create Flash movies shall not be infringed. -

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center