A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: movieclip class

  1. #1
    The Iguana named Don
    Join Date
    Aug 2006
    Location
    A Cage
    Posts
    21

    movieclip class

    when you export a movieclip for actionscript, flash alerts you that its going to create a class for your movieclip, but if you wanted to create a custom class, what would you need to do to get the graphic to display? What is the code that flash creates? Thanks!

  2. #2
    The Iguana named Don
    Join Date
    Aug 2006
    Location
    A Cage
    Posts
    21
    nevermind, that was a stuipd question...figured it out!

    well, for anyone else who wants to know:

    package {
    import flash.display.MovieClip;

    public class mcName extends MovieClip {

    public function mcName() {

    trace(this);

    }
    }
    }

  3. #3
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    If you do not have any comments or actionscript in the movieclip just objects extend to a Sprite instead of MovieClip. It uses less memory, since MovieClips are dynamic.
    - 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