6 Replies Latest reply on Jul 21, 2007 8:41 AM by Rothrock

    Basics of movies

    Sarawinder
      Can someone teach me the basics of movies. Like how to manipulate them, what are the parameters, etc
        • 1. Re: Basics of movies
          Level 7
          Eh? I'd suggest looking around at the myriad Flash tutorial websites out
          there...

          --
          Dave -
          Head Developer
          http://www.blurredistinction.com
          Adobe Community Expert
          http://www.adobe.com/communities/experts/


          • 2. Re: Basics of movies
            Level 7
            Hi Sarawinder,

            Are you working in ActionScript 2.0 or 3.0. There are major differences
            in the MovieClip data type between the two versions which are not
            compatible.

            Patrick

            Sarawinder wrote:
            > Can someone teach me the basics of movies. Like how to manipulate them, what are the parameters, etc

            --
            http://www.baynewmedia.com
            Faster, easier, better...ActionScript development taken to new heights.
            Download the BNMAPI today. You'll wonder how you ever did without it!
            Available for ActionScript 2.0/3.0.
            • 3. Re: Basics of movies
              Level 7
              >>There are major differences in the MovieClip data type...

              I haven't got Flash 9 yet, but from my understanding MovieClip is identical
              and backwards compatible... there is the new Sprite class, which MovieClip
              extends, but MC itself is supposed to be the same.

              --
              Dave -
              Head Developer
              http://www.blurredistinction.com
              Adobe Community Expert
              http://www.adobe.com/communities/experts/


              • 4. Re: Basics of movies
                Level 7
                Actually, that's not the case. The MovieClip object is similar and the
                properties act in similar ways, but there are major differences. For
                example:

                ActionScript 2.0 ActionScript 3.0

                movieClip._x movieClip.x
                movieClip.onEnterFrame *removed* - Uses event broadcaster to
                receive ENTER_FRAME event
                movieClip.createEmptyMovieClip *removed* closest analog is addChild but
                this doesn't create a specific instance name in the parent
                movieClip.getNextHighestDepth *removed* depths no longer applicable

                I could go on but this is sufficient to show that the differences are
                pretty major. There are similarities, to be sure, but the ActionScript 3
                MovieClip class is definitely not the same. IMHO, the changes to the
                class structure are very sensible...Adobe was really progressive here.
                The ability to simply pluck a DisplayObjectContainer object and plop it
                down in another one is great. Also, the inheritance chain makes a lot of
                sense. By the time you get down to the MovieClip class, the
                functionality stack is pretty extensive. There is much more dependence
                on inheritance and extending core classes, which happens to be the way I
                code as well, so I appreciate the new changes. Also, the fact that
                *everything* is now a class, even dynamic linkages, it just makes life
                so much easier. I don't mean to imply that the ActionScript syntax
                changed; it's pretty much the same (albeit more strict); it's just the
                relationship of objects to one another that is considerably different.

                Patrick

                DMennenoh **AdobeCommunityExpert** wrote:
                >>> There are major differences in the MovieClip data type...
                >
                > I haven't got Flash 9 yet, but from my understanding MovieClip is identical
                > and backwards compatible... there is the new Sprite class, which MovieClip
                > extends, but MC itself is supposed to be the same.
                >

                --
                http://www.baynewmedia.com
                Faster, easier, better...ActionScript development taken to new heights.
                Download the BNMAPI today. You'll wonder how you ever did without it!
                Available for ActionScript 2.0/3.0.
                • 5. Re: Basics of movies
                  Level 7
                  Thanks Patrick, I had read MC was bacwards compatible... don't see how it
                  could be unless you're publishing to player 8 though. Interesting. I have
                  been reading quite a lot on AS3, getting familair with the new organization.
                  I think it's great too... Much cleaner and better thought out.

                  --
                  Dave -
                  Head Developer
                  http://www.blurredistinction.com
                  Adobe Community Expert
                  http://www.adobe.com/communities/experts/


                  • 6. Re: Basics of movies
                    Rothrock Level 5
                    I would recommend reading the help files. But don't try searching. Go to the part that is the alphabetic and find the movieclip class. You can then read every method, property, and event for that class – at least in the AS2 documentation.

                    Also if you are trying to do something and typing it into the actionscript panel, the methods, properties, etc. will turn a color if you have typed it properly. Then if you need to know what parameters it will take, you can click in the word and press F1, that will bring up the help for that and you can read it there. At least in the AS2 documentation. So for example, you can't remember what goes with attachMovie, so you type

                    this.attachMovie

                    click in the attachMovie word and press F1, you can then see that it is the linkage ID followed by the instance name you want to give it, followed by a depth, and then an optional init object.

                    For the AS3 it gets a little bit more difficult. The F1 trick doesn't always seem to work for a number of reasons. The main of which seems to be that most classes inherit most of their methods from parent classes. So if you look at the MovieClip entry there appear to be very few methods and properties available to you. But if you look at the top of the entry for MovieClip you will see that it inherits from Sprite so then you need to go to the sprite entry and movieclip will inherit all those things too. But Sprite inherits from DisplayObject container and so on up the tree. So the thing you want may be anywhere along the route.

                    Yes it does make a lot of sense in many ways, but the help files could have been implemented in a bit more helpful way.