Advanced Search
  • Sign in:
    Remember
  • Developer's Guide
  • Forum
  • Moto CMS API
  • User's Guide
  • Support
  • Home
  • Home
  • Creating a Website
  • Modules
  • Creating a Background Gallery

  1. If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.
  • Sections

    • Getting Started
    • Template from A to Z
    • Downloads
    • Creating a Website
      • Steps to create Moto Template
      • Layouts & Source templates
      • Holders
      • Slots
        • Creating a simple slot
        • Creating an abstract slot
      • Modules
        • Creating a Menu
          • Part 1. Vertical Menu
          • Part 2. Submenu
        • Creating a Background Gallery
    • Additional Information
      • Custom Properties
      • Quick Tips and Tricks
      • Control Panel Rebranding
    • Русская документация
      • Начало Работы
      • Шаблон от А до Я
      • Шаги по созданию Moto-шаблона
  • Creating a Background Gallery

    Step 1: Creating BackgroundGalleryModule in Flash 

    Article Preview

    Let's open the website.fla, create a new layer and drag the Image Gallery Module Preview component from the library.
    ...
    Read More Read More

    Step 2: Adding a gallery module block to the XML file 

    Article Preview

    Now we should open the structure.xml file and describe our gallery with this block:
    ...
    Read More Read More

    Step 3: Creating the actionscript code 

    Article Preview

    Now let's get back to our BackgroundGalleryModule class and add an error handler to the class constructor. The event of successful initialization:
    ...
    Read More Read More 4 Comments

    Step 4: Adding and editing the gallery in the control panel 

    Article Preview

    Now we can compile the project and open the control panel. We can see our module in the Modules menu.
    ...
    Read More Read More

    Step 5: Creating an XML file for the gallery 

    Article Preview

    Now let's create an xml file for our gallery. In admin\modules\simpleGalleryModule there is a template.xml file. It's the default gallery template file. If we open it, we'll see that there are two properties described - Preview and Thumbnail. ...
    Read More Read More

    Step 6: Adding the images display logic 

    Article Preview

    Let's go back to the BackgroundGalleryModule class. We create new methods for setting the current image (setCurrent) and for loading it (loadImage):
    ...
    Read More Read More

    Step 7: Auto resize 

    Article Preview

    The module is resizable now. But we will lock it so that there is no possibility to drag it and change size. It will be resized automatically with the help of script.
    ...
    Read More Read More

    Step 8: Coordinates correction 

    Article Preview

    The logic of centering works relatively to the zero coordinates, but they are not absolute. They change their position while resizing and that makes the centering work incorrect. We have to include this offsetting to make the centering look right. ...
    Read More Read More

    Step 9: Background Image Switch 

    Article Preview

    In this step we'll create logic which will change the background image on page switch. We continue to work with the BackgroundGalleryModule class. ...
    Read More Read More 2 Comments

    Step 10: Animation complete function 

    Article Preview

    Also we can take onComplete logic to another function. It's a part of Tweener in the _loaderHandler function at the moment: ...
    Read More Read More

  • Recent Forum Posts

    samward

    Difference between ASP.net and Silverlight?

    What is the difference between ASP.net and Silverlight?

    samward 05-21-2013, 12:08 PM Go to last post
Try Moto CMS FREE for 30 days Download fully functional version
with no payment and commitment required
free trial
Product
  • Why
  • Tour
  • Demo
  • Pricing
  • Templates
  • Release Notes
Company
  • About Us
  • Contact Us
  • Privacy Policy
  • Terms of Use
Community
  • Blog
  • FAQ
  • Help Desk
  • Forum
Follow us
  • RSS
  • Twitter

Powered by vBulletin™ Version 4.0.5 Copyright © 2010 vBulletin Solutions, Inc. All rights reserved.

Copyright © 2008-2010 MotoCMS.com. All Rights Reserved | Privacy Policy

Powered by vBulletin® Version 4.1.10
Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.