Results 1 to 4 of 4

Thread: Flash CS3, AS2, XML

  1. #1
    Join Date
    Mar 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Flash CS3, AS2, XML

    Sorry, for all of the info:

    In this zip file, I replaced the images, with blank photos, with the image titles, to make it easier to see the problem.

    (download files) http://www.pbsjbuzz.tv/site_flash/site_flash.zip

    The company that I am doing some flash design work for, bought a template, from templatemonster.com. The template ID that they purchased, is 20643. I usually work more on the design/creative side, but I know a little of simple actionscript. Although, I can not figure out why this is not working, after some simple modifications. I believe that it is an issue with the actionscript, somewhere, in the "pages2/sub_menu2" part or somewhere, in the "pages2/gall_main2" part, in the .fla file. I am 99.99% finished with this site and I would greatly appreciate any of your help, in any way, possible. This site is currently online, for you to view, at your earliest convenience.

    http://www.pbsjbuzz.tv/site_flash


    NOTE: (Additional Information):

    This template originally came with 4 main menus (PORTFOLIO / ABOUT US / OUR NEWS / CONTACT US).
    The PORTFOLIO section has 3 submenu links (INTERIOR / LANDSCAPE / ANIMALS).
    I changed the 3 submenu links from, (INTERIOR / LANDSCAPE / ANIMALS), to (AVIATION / EDUCATION / FEDERAL).
    Those work fine.
    Now, I have added 4 additional submenu links. (LEISURE SERVICES / SUSTAINABLE DESIGN / TRANSIT / ARCHITECTURE ENGINEERING).
    So, I now have a total of 7 links, within the PORTFOLIO section, named (AVIATION / EDUCATION / FEDERAL / LEISURE SERVICES / SUSTAINABLE DESIGN / TRANSIT / ARCHITECTURE ENGINEERING).
    My first 3 links work perfect, but the other (4-7) links are not working, correctly.
    They seem to link to the correct category, but do not load correct image, until you click on a thumbnail, then the big image loads, as it is supposed to do, but the thumbnails still have the wrong images loaded.
    I have checked every word for word of the actionscript, but I still can not figure this out.
    I believe that this is a simple solution, surely consisting of only 1 letter, word or sentence of code being wrong, somewhere, in the actionscript, within the flash (fla) file.

    Thank you, for all of your help.

    ---------------------------------------------------------------

    One guy looked over the files and sent me this:

    _parent["item"+_root.main_gall_num].gotoAndPlay("s2");
    _root.main_gall_num = num;
    _parent.gall.play();
    Where are those "item1", "item2", defined?
    The functionality of the submenu is fine, but it seems the elements are missing. I tried changing a different "num", and it loaded that
    so i guess you are missing the element on the parent symbol.

    ---------------------------------------------------------------

    Another guy sent me this message:

    stick traces in, it seems there is code somewhere which either runs once or is hard coded to 3 items, hence it then buggs out after you have extended the array

    ---------------------------------------------------------------

    In the main .fla file, this actionscript, is on the first frame:

    Code:
    Stage.align = "MC";
    Stage.scaleMode = "noScale";
    url = "tfile";
    
    _root.cacheKiller="true"; 
    import gs.dataTransfer.XMLParser;
    function onFinish(success_boolean, results_obj, xml) { //This fhunction gets called as soon as the XML loads and gets parsed.
     if (success_boolean) {
     //trace (1);
     play();
     }
    }
    stop();
    var parsed_obj = {}; //We'll use this to hold the parsed xml object (once the XML loads and gets parsed successfully).
    var unCash= new Date().getTime();
    if (_root.cacheKiller=="true") {
    
     fileToLoad=url+"_main.xml?cacheKiller="+unCash;
     fileToLoad=url+"_main.xml";
    }
    else {
     fileToLoad=url+"_main.xml";
    }
    XMLParser.load(fileToLoad, onFinish, parsed_obj);
    
    
    
    _root.emp.useHandCursor = 0;
    ///forplayer
    _root.mus = 1;
    _root.n = 1;
    _root.num = 1;
    ---------------------------------------------------------------

    In the main .fla file, this actionscript, is on the second frame:
    Code:
    import gs.dataTransfer.XMLParser;
    function onFinish(success_boolean, gallery_obj, xml) { //This fhunction gets called as soon as the XML loads and gets parsed.
     if (success_boolean) {
     
     play();
     }
    }
    
    
    
    
    
    
    //system settings
    // frame number where readMore movieClip is situated    
     pagesReadMoreFrame=5;
    // frame number of the first content page
     firstPageFrame=1;
    //system settings
    
    
    
    
    #include "gs/dataTransfer/xmlFunctions.as"
    //_root.link=_root.getMenuSystemOrder(0);
    ---------------------------------------------------------------

    In the main .fla file, this actionscript, is on the third frame:
    Code:
    import mx.transitions.Tween;
    import mx.transitions.easing.*;
    function pic_movs(my_x) {
     var name1:MovieClip = _root.pages.gall.gall.thumbs;
     myTween = new Tween(name1, "_x", Strong.easeInOut, name1._x, my_x, 25, false);
    }
    ---------------------------------------------------------------

    When the "PORTFOLIO" page loads, this actionscript, is on the first frame:
    Code:
    _root.main_gall_num=1;
    _root.gall_num=1;
    item1.gotoAndStop(15);
    ---------------------------------------------------------------

    Each "sub_menu" link (AVIATION / EDUCATION / FEDERAL / LEISURE SERVICES / SUSTAINABLE DESIGN / TRANSIT / ARCHITECTURE ENGINEERING), has this actionscript, on each link, the only difference is the num = 1 (AVIATION), has num = 2 (EDUCATION), num = 3 (FEDERAL), etc, etc, through num = 7, for (ARCHITECTURE ENGINEERING):
    Code:
    onClipEvent (load) {
     num = 1;
     this.title1.gotoAndStop(num);
     this.title2.gotoAndStop(num);
    }
    on (rollOver) {
     if (_root.main_gall_num<>num) {
     this.gotoAndPlay("s1");
     }
    }
    on (releaseOutside, rollOut) {
     if (_root.main_gall_num<>num) {
     this.gotoAndPlay(_totalframes-_currentframe);
     }
    }
    on (release) {
     if (_root.main_gall_num<>num and _root.gall_animation == 1) {
     _root.gall_animation = 0;
     _parent["item"+_root.main_gall_num].gotoAndPlay("s2");
     _root.main_gall_num = num;
     _parent.gall.play();
     }
    }
    ---------------------------------------------------------------

    In the section where the photos load, each frame has a different category of photos that loads on that frame.
    Code:
    The actionscript, on frame 1, is:
    
    _root.gall_num=1;
    
    Then, frame 2 has:
    
    _root.gall_num=2;
    
    frame 3 has:
    
    _root.gall_num=3;
    
    frame 4 has:
    
    _root.gall_num=4;
    
    frame 5 has:
    
    _root.gall_num=5;
    
    frame 6 has:
    
    _root.gall_num=6;
    
    frame 7 has:
    
    _root.gall_num=7;
    ---------------------------------------------------------------

    I added all of the extra images, to the xml file.
    The original xml file came with only 3 categories, of images (12 small and 12 big, in each category).
    Last edited by djr33; 03-15-2010 at 08:18 PM. Reason: use [code] tags around code!

  2. #2
    Join Date
    Apr 2010
    Location
    Rio de Janeiro / Brazil
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by lukedesigns View Post
    Sorry, for all of the info:

    In this zip file, I replaced the images, with blank photos, with the image titles, to make it easier to see the problem.

    (download files) http://www.pbsjbuzz.tv/site_flash/site_flash.zip

    The company that I am doing some flash design work for, bought a template, from templatemonster.com. The template ID that they purchased, is 20643. I usually work more on the design/creative side, but I know a little of simple actionscript. Although, I can not figure out why this is not working, after some simple modifications. I believe that it is an issue with the actionscript, somewhere, in the "pages2/sub_menu2" part or somewhere, in the "pages2/gall_main2" part, in the .fla file. I am 99.99% finished with this site and I would greatly appreciate any of your help, in any way, possible. This site is currently online, for you to view, at your earliest convenience.

    http://www.pbsjbuzz.tv/site_flash


    NOTE: (Additional Information):

    This template originally came with 4 main menus (PORTFOLIO / ABOUT US / OUR NEWS / CONTACT US).
    The PORTFOLIO section has 3 submenu links (INTERIOR / LANDSCAPE / ANIMALS).
    I changed the 3 submenu links from, (INTERIOR / LANDSCAPE / ANIMALS), to (AVIATION / EDUCATION / FEDERAL).
    Those work fine.
    Now, I have added 4 additional submenu links. (LEISURE SERVICES / SUSTAINABLE DESIGN / TRANSIT / ARCHITECTURE ENGINEERING).
    So, I now have a total of 7 links, within the PORTFOLIO section, named (AVIATION / EDUCATION / FEDERAL / LEISURE SERVICES / SUSTAINABLE DESIGN / TRANSIT / ARCHITECTURE ENGINEERING).
    My first 3 links work perfect, but the other (4-7) links are not working, correctly.
    They seem to link to the correct category, but do not load correct image, until you click on a thumbnail, then the big image loads, as it is supposed to do, but the thumbnails still have the wrong images loaded.
    I have checked every word for word of the actionscript, but I still can not figure this out.
    I believe that this is a simple solution, surely consisting of only 1 letter, word or sentence of code being wrong, somewhere, in the actionscript, within the flash (fla) file.

    Thank you, for all of your help.

    ---------------------------------------------------------------

    One guy looked over the files and sent me this:

    _parent["item"+_root.main_gall_num].gotoAndPlay("s2");
    _root.main_gall_num = num;
    _parent.gall.play();
    Where are those "item1", "item2", defined?
    The functionality of the submenu is fine, but it seems the elements are missing. I tried changing a different "num", and it loaded that
    so i guess you are missing the element on the parent symbol.

    ---------------------------------------------------------------

    Another guy sent me this message:

    stick traces in, it seems there is code somewhere which either runs once or is hard coded to 3 items, hence it then buggs out after you have extended the array

    ---------------------------------------------------------------

    In the main .fla file, this actionscript, is on the first frame:

    Code:
    Stage.align = "MC";
    Stage.scaleMode = "noScale";
    url = "tfile";
    
    _root.cacheKiller="true"; 
    import gs.dataTransfer.XMLParser;
    function onFinish(success_boolean, results_obj, xml) { //This fhunction gets called as soon as the XML loads and gets parsed.
     if (success_boolean) {
     //trace (1);
     play();
     }
    }
    stop();
    var parsed_obj = {}; //We'll use this to hold the parsed xml object (once the XML loads and gets parsed successfully).
    var unCash= new Date().getTime();
    if (_root.cacheKiller=="true") {
    
     fileToLoad=url+"_main.xml?cacheKiller="+unCash;
     fileToLoad=url+"_main.xml";
    }
    else {
     fileToLoad=url+"_main.xml";
    }
    XMLParser.load(fileToLoad, onFinish, parsed_obj);
    
    
    
    _root.emp.useHandCursor = 0;
    ///forplayer
    _root.mus = 1;
    _root.n = 1;
    _root.num = 1;
    ---------------------------------------------------------------

    In the main .fla file, this actionscript, is on the second frame:
    Code:
    import gs.dataTransfer.XMLParser;
    function onFinish(success_boolean, gallery_obj, xml) { //This fhunction gets called as soon as the XML loads and gets parsed.
     if (success_boolean) {
     
     play();
     }
    }
    
    
    
    
    
    
    //system settings
    // frame number where readMore movieClip is situated    
     pagesReadMoreFrame=5;
    // frame number of the first content page
     firstPageFrame=1;
    //system settings
    
    
    
    
    #include "gs/dataTransfer/xmlFunctions.as"
    //_root.link=_root.getMenuSystemOrder(0);
    ---------------------------------------------------------------

    In the main .fla file, this actionscript, is on the third frame:
    Code:
    import mx.transitions.Tween;
    import mx.transitions.easing.*;
    function pic_movs(my_x) {
     var name1:MovieClip = _root.pages.gall.gall.thumbs;
     myTween = new Tween(name1, "_x", Strong.easeInOut, name1._x, my_x, 25, false);
    }
    ---------------------------------------------------------------

    When the "PORTFOLIO" page loads, this actionscript, is on the first frame:
    Code:
    _root.main_gall_num=1;
    _root.gall_num=1;
    item1.gotoAndStop(15);
    ---------------------------------------------------------------

    Each "sub_menu" link (AVIATION / EDUCATION / FEDERAL / LEISURE SERVICES / SUSTAINABLE DESIGN / TRANSIT / ARCHITECTURE ENGINEERING), has this actionscript, on each link, the only difference is the num = 1 (AVIATION), has num = 2 (EDUCATION), num = 3 (FEDERAL), etc, etc, through num = 7, for (ARCHITECTURE ENGINEERING):
    Code:
    onClipEvent (load) {
     num = 1;
     this.title1.gotoAndStop(num);
     this.title2.gotoAndStop(num);
    }
    on (rollOver) {
     if (_root.main_gall_num<>num) {
     this.gotoAndPlay("s1");
     }
    }
    on (releaseOutside, rollOut) {
     if (_root.main_gall_num<>num) {
     this.gotoAndPlay(_totalframes-_currentframe);
     }
    }
    on (release) {
     if (_root.main_gall_num<>num and _root.gall_animation == 1) {
     _root.gall_animation = 0;
     _parent["item"+_root.main_gall_num].gotoAndPlay("s2");
     _root.main_gall_num = num;
     _parent.gall.play();
     }
    }
    ---------------------------------------------------------------

    In the section where the photos load, each frame has a different category of photos that loads on that frame.
    Code:
    The actionscript, on frame 1, is:
    
    _root.gall_num=1;
    
    Then, frame 2 has:
    
    _root.gall_num=2;
    
    frame 3 has:
    
    _root.gall_num=3;
    
    frame 4 has:
    
    _root.gall_num=4;
    
    frame 5 has:
    
    _root.gall_num=5;
    
    frame 6 has:
    
    _root.gall_num=6;
    
    frame 7 has:
    
    _root.gall_num=7;
    ---------------------------------------------------------------

    I added all of the extra images, to the xml file.
    The original xml file came with only 3 categories, of images (12 small and 12 big, in each category).
    You got some success with this problem? I am having the same problem with template monster 25325. I have tried support but they gamble for us to make the change across the site with them, or another amount to be charged pro design. And I can do that.

    I look back!

  3. #3
    Join Date
    Apr 2010
    Location
    Rio de Janeiro / Brazil
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    You got some success with this problem? I am having the same problem with template monster 25325. I have tried support but they gamble for us to make the change across the site with them, or another amount to be charged pro design. And I can do that.

    I look back!

  4. #4
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    I disagree. Your advice is relevant: there are tradeoffs to modifying existing templates, but as long as you are aware of the risks, then that may be the right way to go. Unless you happen to have a "team of professionals" available to do it for you, there's not really another option, is there?
    Also, is there a reason you're replying to many old discussions that are mostly already answered?
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •