Frequently Asked Questions

About V1.2 How to change and set Layouts question:

Because of the template v1.2 support many layouts now,so need notice some setting: Here is main_config.xml Layout configuration instructions:

<!-- site logo/menu layout, support “top”,”bottom”  -->
<layout>top</layout>

         <!-- site logo support set logo layout (‘left’,’center’,’right’), support set logo down spacing value --> 
    <logo layout="center" delay="0.3" src="assets/logo.png" height="65" spacing="0" width="318" />

         <!-- site top panel height,background color,alpha. When layout=’bottom’ can set bg =’ false’ -->
    <top bg="true" color="0x000000" height="120" alpha=".5" />

        <!-- site footer panel height,background color,alpha. When layout=’top’ can set bg =’ false’ -->
    <footer bg="true" color="0x000000" height="50" alpha="1">

        <!-- site information,support set layout (‘left’,’center’,’right’) and down spacing value -->
        <text layout="right" spacing="35">
            <![CDATA[<font color="#9d9d9d">©2010 copyright by <font color="#008ec8"><a href="event:http://activetofocus.com">activetofocus.com</a></font> All rights reserved.</font>]]>
        </text>

        <!-- social account,support set layout (‘left’,’center’,’right’) and down spacing value -->
        <social layout="right" spacing="5">
            <twitter>http://twitter.com/youraccount</twitter>
            <facebook>http://facebook.com/youraccount</facebook>        
            <flickr>http://flickr.com/youraccount</flickr>
            <stumbleupon>http://stumbleupon.com/youraccount</stumbleupon>
            <digg>http://digg.com/youraccount</digg>
        </social>
    </footer>

         ............
        <!--  site menus setting , support set menu down spacing value -->
    <menus spacing="60">
         ...........

</menus>

When you set “top” or “bottom”,then you need notice set logo spacing , menu spacing, site information spacing, social spacing so that layou correct. If you need you also can top/footer panel height/background color,alpha.

Notice: spacing means from from the panel top downward shift space.

Here have some Layouts Example and Config Details:

About delete social or don’t need some social account

You just don’t add link in these account of you don’t need.

For example: you just don’t need twitter account,then just delete”http://twitter.com/youraccount”,do like it.
<twitter></twitter>
<facebook>http://facebook.com/youraccount</facebook>        
<flickr>http://flickr.com/youraccount</flickr>
<stumbleupon>http://stumbleupon.com/youraccount</stumbleupon>
<digg>http://digg.com/youraccount</digg>
If you don’t need any social account,just do like it:
<twitter></twitter>
<facebook></facebook>        
<flickr></flickr>
<stumbleupon></stumbleupon>
<digg></digg>

About how to embed yourself fonts or down we used fonts

If your computer have no we used fonts,please click here down it.

I got some clients need use their font for menu,now please view the image for you understands how to embed fonts.

how do i remove info/info text/info button from gallery?

First,you need open the com\activetofocus\template\modules\gallery\ComItemPanel.as , because of you need remove the info so you need delete _infoBtn,_textUtils,_textClose . Here are some modify code and function use ”//” :
        /**
         * init all data
         */
        private function init():void
        {
            if(Model.getInstance().dic['Music']) Model.getInstance().dic['Music'].stopMusic();

            this.alpha = 0;

            addBg();
            addItem();
            addButton();
//          addInfo();

            _pageUtils = new PageUtils(1, changeFun);
            _pageUtils.page = _params['sid'];
            _pageUtils.list    = _params['items'];
            onStageResize();

            Tweener.addTween(this, { time:_delay*2, alpha:1,onComplete:onComplete} );
        }
         private function addButton():void
        {
            _buttonPanel = new Sprite();
            _buttonPanel.alpha = 0;
            addChild(_buttonPanel);

            _closeBtn = new ComGalleryCloseBtn();
            _closeBtn.scaleX = _closeBtn.scaleY = 0.7;
            _closeBtn.buttonMode = true;
            _closeBtn.mouseChildren = false;
            _closeBtn.addEventListener(MouseEvent.CLICK, onClosePanel);
            _buttonPanel.addChild(_closeBtn);

            _preBtn = new ComGalleryNavBtn();
        // _preBtn.scaleX = _preBtn.scaleY = 0.7;
            _preBtn.buttonMode = true;
            _preBtn.mouseChildren = false;
            _preBtn.addEventListener(MouseEvent.CLICK, onNavBtnClick);
            _buttonPanel.addChild(_preBtn);

            _nextBtn = new ComGalleryNavBtn();
            _nextBtn.buttonMode = true;
            _nextBtn.mouseChildren = false;
            _nextBtn.scaleX = -1;
        // _nextBtn.scaleY = 0.7;
            _nextBtn.addEventListener(MouseEvent.CLICK, onNavBtnClick);
            _buttonPanel.addChild(_nextBtn);

//            _infoBtn = new ComGalleryInfoBtn();
//            _infoBtn.scaleX = _closeBtn.scaleY = 0.7;
//            _infoBtn.buttonMode = true;
//            _infoBtn.mouseChildren = false;
//            _infoBtn.addEventListener(MouseEvent.CLICK, onInfoBtnClick);
//            _buttonPanel.addChild(_infoBtn);
//            
//            _textClose = new ComGalleryCloseBtn();
//            _textClose.scaleX = 0.4;
//            _textClose.scaleY = 0.4;
//            _textClose.addEventListener(MouseEvent.CLICK, onTextCloseBtnClick);
//            _buttonPanel.addChild(_textClose);
        }
        /**
         * show item
         */
        private function showItem():void
        {
             _itemPanel.changeItem(_pageUtils.currectlist[0].path,_bool);

//           onTextCloseBtnClick();

//            addInfo();

//            _textUtils.htmlText = _pageUtils.currectlist[0].desc;
        }

You just replase your ComItemPanel.as some function code use the above changes.

You also can CLICK HERE down the modify ComItemPanel.as file replace your ComItemPanel.as file.

If you had do it,then open the gallery.fla and use “ctrl” + “enter” publish it.

All ok,use the new swf files.

About how to remove sound/music

Open com\activetofocus\template\view\ComTopPanel.as on 117 lines.

Remove “addMusicPlayer();” use ”//”

        /**
         *
         */
        private function dataChange():void
        {
            if (_data.logo != null) addLogo();
            if (_data.menus != null) addMenu();
            if(_data.menuClick != null) _menuFun = _data.menuClick;
//            addMusicPlayer(); // delete it
            addFullscreenBtn();
            onStageResize();
        }

How to take out “Our Partners” all together and keep that complete section for about us?

Open about.fla and delete Our Partners text in stage.

Then open com\activetofocus\template\modules\about\AboutMain.as modify the text content width and delete partners icons.

                /**
         * analyze XML data
         */
        private function analyzeXML():void
        {
            _bg = DisplayLine.getLineSprite(_sw, _sh);
            _bg.alpha = 0.1;
            addChildAt(_bg,0);

            _aboutTxt = new TextUtils();
            _aboutTxt.x = 10;
            _aboutTxt.y = 185;
            _aboutTxt.width = 570;// here set text width
            _aboutTxt.height = 165;
            //_aboutTxt.mouseover = true;
            _aboutTxt.scrollbordercolor = 0x1a1a1a;
            _aboutTxt.scrollcolor = 0x000000;
            _aboutTxt.useBackground = false;
            _aboutTxt.scrolllinecolor = 0xffffff;
            _aboutTxt.htmlText = _xml.content;
            addChild(_aboutTxt);

            addImage();
//                addPartners(); // don't load partners icons
        }

Need the music to also play when viewing single images in V1.2

Begin we got some clients suggest about the gallery and clicking single image preview the music play question. Because of the gallery support video so will happen video sound and background music sound at the same time play.So V1.2 we stop sound when while view single images.

If you still need play music sound,please do some modify.

First,open com\activetofocus\template\modules\gallery\ComItemPanel.as , delete some code like below: 1.use ”//” delete ” if(Model.getInstance().dic[‘Music’]) Model.getInstance().dic[‘Music’].stopMusic(); ”
        /**
         * init all data
         */
        private function init():void
        {
//            if(Model.getInstance().dic['Music']) Model.getInstance().dic['Music'].stopMusic(); // stop music 

            this.alpha = 0;

            addBg();
            addItem();
            addButton();
            addInfo();

            _pageUtils = new PageUtils(1, changeFun);
            _pageUtils.page = _params['sid'];
            _pageUtils.list    = _params['items'];
            onStageResize();

            Tweener.addTween(this, { time:_delay*2, alpha:1,onComplete:onComplete} );
        }
2.use ”//” delete “if(Model.getInstance().dic[‘Music’]) Model.getInstance().dic[‘Music’].playMusic();”
        private function onCloseComplete():void
        {
//            if(Model.getInstance().dic['Music']) Model.getInstance().dic['Music'].playMusic(); // here means play music again 
            Clear.removeChild(this);
        }
Second,open gallery.fla and use “ctrl” + “enter” publish it.

All ok, use new gallery.swf

What about active links from the Our partners buttons?

1.Add link for each item so that click the button open then link.You just replace your about_config.xml use our new about_config.xml Or add ” link=’http://activetofocus.com,_blank' ” for your each item.
<!-- add about us partners images -->
    <item src="assets/about/flashden.gif" link="http://activetofocus.com,_blank" />
2.Add function for the partners button click event.You need replace your com/activetofocus/template/modules/about/AboutMain.as

All ok,then open the about.fla, publish it and use new about.swf.

Now,you can down the new about_config.xml and AboutMain.as use the link: http://activetofocus.com/preview/65/partners.zip
by
by
by
by
by
by