3 Replies Latest reply on Feb 11, 2011 4:50 PM by Ned Murphy

    Silence in user manual

    barpos Level 1

      Hi,

       

      Can anyone explain what the "Export on frame 1" option is all about?  Or else, where I can find info on.

       

      Here's an excerpt of the AS3 Programming manual (which does not discuss the "Export on frame 1" option):

       

       

      To export a symbol for ActionScript:

      1

      1

      2

      If necessary, activate the Advanced settings.

      3

      In the Linkage section, activate the Export for ActionScript checkbox.This will activate the Class and Base Class fields.By default, the Class field is populated with the symbol name, with spaces removed (for example, a symbol named "Tree House" would become "TreeHouse"). To specify that the symbol should use a custom class for its behavior, enter the full name of the class including its package in this field. If you want to be able to create instances of the symbol in ActionScript, but don’t need to add any additional behavior, you can leave the class name as-is.The Base Class field’s value defaults to flash.display.MovieClip. If you want your symbol to extend the functionality of another customer class, you can specify that class’s name instead, as long as that class extends the Sprite (or MovieClip) class.

      4

      Press the OK button to save the changes.

      Select the symbol in the Library panel and open its Symbol Properties dialog box.

        • 1. Re: Silence in user manual
          Ned Murphy Adobe Community Professional & MVP

          Try searching the help documents using... "Export in First Frame"  including the quotes and you may find a discussion about that phrase.  Typically you would select this option when you are setting up an object to be dynamically instantiated, which is why it is normally selected when you select the option to Export for Actionscript.  It basiically means when your file starts, that asset is made available in the first frame as part of the initial loading of the file.

          1 person found this helpful
          • 2. Re: Silence in user manual
            barpos Level 1

            Thanks, your explanation is plenty good enough.

             

            Another question related to the same manual section (subsequent text) of the manual (question in bold):

             

            4 Press the OK button to save the changes.

            At this point, if Flash can’t find an external ActionScript file with a definition for the specified class (for instance, if you didn’t need to add additional behavior for the symbol), a warning is displayed:

            A definition for this class could not be found in the classpath, so one will be automatically generated in the SWF file upon export.

            You can disregard this warning if your library symbol does not require unique functionality beyond the functionality of the MovieClip class.

             

            If you do not provide a class for your symbol, Flash will create a class for your symbol equivalent to this one: 

             

            package

            {

            import flash.display.MovieClip;

            public class ExampleMovieClip extends MovieClip

            {

            public function ExampleMovieClip()

            {

            }

            }

            }

             

            What class name are they referring to here?  Symbol Properties->Class in Flash authoring environment?  The Class field cannot be left blank.

            • 3. Re: Silence in user manual
              Ned Murphy Adobe Community Professional & MVP

              They are not referring to the name you enter in the Class field,  They are referring to the actual class that Flash creates for that object.  So for that class code they show, your entry in that Class textfield would replace what they show as "ExampleMovieClip"

               

              You can create your own class file by that name and Flash will use it instead of creating that default version.  It is in first looking for the class name you enter and not finding it that Flash let's you know it will create it automatically.