A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: extend the movieClip object?

Hybrid View

  1. #1
    Senior Member
    Join Date
    Dec 2002
    Location
    Netherlands
    Posts
    1,632
    Maybe #initclip isn't supported in the main timeline
    How I get your code to work is like this ...

    Add a movieclip to the symbol library with link name SWR_Tree and add this part of the code to it's first frame.
    Code:
    #initclip
    
    function SWR_Tree()
    {
    this.createTextField("tf",100,20,20,200,200);
    this.tf.text="hello world";
    }
    
    SWR_Tree.prototype = new MovieClip();
    
    Object.registerClass("SWR_Tree",SWR_Tree);
    
    #endinitclip
    Now add
    Code:
    attachMovie("SWR_Tree","tree", 101);
    to the first frame of the main timeline.

    That should do it.

  2. #2
    Steve R swrzzzz's Avatar
    Join Date
    Jan 2005
    Location
    Leicestershire,UK
    Posts
    195
    Thank you! yes that works

    I have been working n a tree type nav bar. Now I can run it as a movie clip from the symbol table I will pop it on KoolExchange in the next day or so

    Cheers

    Steve

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