lukedesigns
03-15-2010, 05:52 PM
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:
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:
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:
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:
_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):
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.
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).
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:
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:
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:
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:
_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):
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.
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).