Egret learning diary entry --- Chapter 23. (book section 9.9 to 9.11 content)

Twenty-three (9.9 to 9.11 in the book section content)

  Today, to section 9.9.

  

  

  

  

  Key:

    1, the declaration and use of VSlider.

  operating:

    1, the declaration and use of VSlider.

      In fact, almost HSlider and use.

      

  At this point, the end of section 9.9 content.

 

  Start 9.10.

  

  

  

  

  

  

  

  

  

  

  

  

  

  Key:

    1, with TextureMerger, generate WordArt Atlas resources.

    2. Import WordArt resources and uses.

    3, word spacing adjustments arts.

  operating:

    1, with TextureMerger, generate WordArt Atlas resources.

      Open TextureMerger, select Bitmap Font.

      

      Click to add character.

      

      I then select the prepared material, click Open.

      

      Then play a good name, and click OK.

      

      amount. . . I encountered a problem.

      

      This is described in the book does not match the ah.

      

      Ask the group to go and see. . . He stepped pit.

        Ahem. . . Well, I know why the. I find the material in question. I re looking for another wave of material.

        Therefore, we must go to download the correct material, properly formatted material.

        

      Slightly adjust.

       

      Export.

       

      File export.

      

    2. Import WordArt resources and uses.

      Simply import it.

      

      Start by creating a MyFontTestSkin.exml file, and drag a BitmapLabel components.

      

      Select bitmap text.

      

      Effective immediately.

      

      The next step is to create a binding class.

      

      Then add view illustrating an example operating results.

      

    3, word spacing adjustments arts.

      Font spacing can be adjusted by letterSpacing property.

      

      running result.

      

  So far, 9.10 end.

 

  Start 9.11.

  

  

  

  

   Key:

    1, creating and using Image component.

  operating:

    1, creating and using Image component.

      Ready to name resources, and copy the resource name.

      

      Code starts and set the resource name.

      

      In addition to this way, as well as texture, base64 way.

      Take a look at the texture of the way.

      

      Finally base64.

      First copy the base64 encoded.

      

      Then use.

      

  So far, 9.11 end.

Guess you like

Origin www.cnblogs.com/dmc-nero/p/11282132.html