A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Attaching a component at runtime....?

  1. #1
    Senior Member
    Join Date
    Apr 2001

    Attaching a component at runtime....?

    Hi, im just wondering how to attach a component from the library at runtime. I know how to do this with a movieClip....

    //attach and position library movieclip at runtime (frame 1 _root)

    _root.attachMovie("myMovieClip","newnameMyMovieCli p",100,);
    newnameMyMovieClip._x =100,newnameMyMovieClip._y =100;

    However using the same for components doesnt work...How do i do this?

    Thanx in advance!

  2. #2
    Join Date
    Apr 2002

    On runtime

    Are you sure you have the component you are calling in your library?
    The blue of the sea is sometimes so blue
    that only blood is more reed.

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