Can someone help..?

stop();
this._lockroot = true;
Stage.scaleMode = “noScale”;
Stage.align = “TL”;
#include “stylesheet.as”
#include “WeDoConstants.as”
import flash.geom.Rectangle;
import mx.utils.Delegate;
//Vars for NAVIGATION BUTTONS
var arSectionText:Array = [“main”,“gallery”,“profile”,“packages”,“blog”];
mcMainStage.mcNav_1.mcMainNav_Text.txtMainNav.text = arSectionText[0];
mcMainStage.mcNav_2.mcMainNav_Text.txtMainNav.text = arSectionText[1];
mcMainStage.mcNav_3.mcMainNav_Text.txtMainNav.text = arSectionText[2];
mcMainStage.mcNav_4.mcMainNav_Text.txtMainNav.text = arSectionText[3];
mcMainStage.mcNav_5.mcMainNav_Text.txtMainNav.text = arSectionText[4];
mcMainStage.mcNav_1.mcMainNav_Text.txtMainNav.autoSize = true;
mcMainStage.mcNav_2.mcMainNav_Text.txtMainNav.autoSize = true;
mcMainStage.mcNav_3.mcMainNav_Text.txtMainNav.autoSize = true;
mcMainStage.mcNav_4.mcMainNav_Text.txtMainNav.autoSize = true;
mcMainStage.mcNav_5.mcMainNav_Text.txtMainNav.autoSize = true;

mcMainStage.mcNav_1.hitArea = mcMainStage.mcNav_1.Hitarea;
mcMainStage.mcNav_1.Hitarea._visible = false;
mcMainStage.mcNav_2.hitArea = mcMainStage.mcNav_2.Hitarea;
mcMainStage.mcNav_2.Hitarea._visible = false;
mcMainStage.mcNav_3.hitArea = mcMainStage.mcNav_3.Hitarea;
mcMainStage.mcNav_3.Hitarea._visible = false;
mcMainStage.mcNav_4.hitArea = mcMainStage.mcNav_4.Hitarea;
mcMainStage.mcNav_4.Hitarea._visible = false;
mcMainStage.mcNav_5.hitArea = mcMainStage.mcNav_5.Hitarea;
mcMainStage.mcNav_5.Hitarea._visible = false;
var curSection:Number = 1;
var yposNewsEntry:Number = 320;

/***********************************************************
NAVIGATION Buttons
************************************************************/
mcMainStage.mcNav_1.onRelease = function(){
_root.curSection = 1;
GoMain();
};
mcMainStage.mcNav_2.onRelease = function(){
_root.curSection = 2;

xmlGallery.load(“xml/gallery.xml”);
};
mcMainStage.mcNav_3.onRelease = function(){
_root.curSection = 3;

};
mcMainStage.mcNav_4.onRelease = function(){
_root.curSection = 4;

};
mcMainStage.mcNav_5.onRelease = function(){
_root.curSection = 5;

};
/***********************************************************
LOAD SECTIONS
***********************************************************/
// MAIN NEWS ENTRY
function GoMain(){
mcMainStage.attachMovie(‘mcNewsPanel’, ‘mcNewsPanel’, 1,{_x:22,_y:300});

var mcNewsEntryContainer:MovieClip = mcMainStage.mcNewsPanel.createEmptyMovieClip(“mcNewsEntryContainer”,100);
//mcMainStage.mcNewsEntryContainer._x = 28;
//mcMainStage.mcNewsEntryContainer._y = 318;

var mcNewsEntryContent:MovieClip = mcMainStage.mcNewsPanel.mcNewsEntryContainer.createEmptyMovieClip(“mcNewsEntryContent”,101);

var txtScrollRectWindow:Rectangle = new Rectangle(0, 320, 240, 225);
mcMainStage.mcNewsPanel.mcNewsEntryContainer.scrollRect = txtScrollRectWindow;
mcMainStage.mcNewsPanel.mcNewsEntryContainer.cacheAsBitmap = true;

var v3 = mcMainStage.mcNewsPanel.mcNewsEntryContainer.mcNewsEntryContent.attachMovie(‘mcNewsEntry’, ‘mcNewsEntry0’, 200);

mcMainStage.mcNewsPanel.mcNewsScroller._visible = false;
mcMainStage.mcNewsPanel.mcScrollBarTrack._visible = false;

v3._y = yposNewsEntry;
v3.mcTxtBody.txtBody.styleSheet = styles;
v3.mcTxtBody.txtBody.autoSize = true;

v3.mcTxtHeadline.txtHeadline.text = “”;
v3.mcTxtBody.txtBody.htmlText = “”;
v3.txtDate.text = “”;

v3.mcTxtHeadline.txtHeadline.text = “Loading…”
v3.mcTxtBody.txtBody.htmlText = “One cafe latte coming up…”;
v3.txtDate.text = “”;

xmlNews.load(“xml/news.xml”);
};
function initNewsEntryScroller():Void{

mcMainStage.mcNewsPanel.mcNewsScroller._visible = true;
mcMainStage.mcNewsPanel.mcScrollBarTrack._visible = true;

mcMainStage.mcNewsPanel.mcNewsScroller._y = mcMainStage.mcNewsPanel.mcNewsEntryHolder._y;

mcMainStage.mcNewsPanel.mcNewsScroller.onPress = function(){

this.startDrag(false, this._x, mcMainStage.mcNewsPanel.mcNewsEntryContainer._y, this._x, mcMainStage.mcNewsPanel.mcNewsEntryContainer._y+mcMainStage.mcNewsPanel.mcNewsEntryContainer._height-this._height);

on_drag = true;
this.onEnterFrame = function(){
scrollAmount = (mcMainStage.mcNewsPanel.mcNewsEntryContainer.mcNewsEntryContent._height - mcMainStage.mcNewsPanel.mcNewsEntryContainer._height)/(mcMainStage.mcNewsPanel.mcNewsEntryContainer._height - mcMainStage.mcNewsPanel.mcNewsScroller._height);

//adjust the height of the dragger to reflect the amount of content available to see
//mcMainStage.mcNewsPanel.mcNewsScroller._height = -(mcMainStage.mcNewsPanel.mcNewsEntryContainer.mcNewsEntryContent._height/scrollAmount);
//abc = mcMainStage.mcNewsPanel.mcNewsEntryContainer.mcNewsEntryContent._height / mcMainStage.mcNewsPanel.mcNewsEntryContainer._height);
//set a new target y position
targY = -mcMainStage.mcNewsPanel.mcNewsScroller._y*scrollAmount;
//set the y of the text to 1/5 of the distance between its current y and the target y
//change the 5 to a lower number for faster scrolling or a higher number for slower scrolling
//Math.round() keeps it on a whole pixel number - good for pixel fonts
mcMainStage.mcNewsPanel.mcNewsEntryContainer.mcNewsEntryContent._y -= (mcMainStage.mcNewsPanel.mcNewsEntryContainer.mcNewsEntryContent._y-targY)/5;
}
}
mcMainStage.mcNewsPanel.mcNewsScroller.onRelease = mcMainStage.mcNewsPanel.mcNewsScroller.onReleaseOutside = function(){
this.stopDrag();
on_drag = false;
}
}
/***********************************************************
XML
************************************************************/
// import the class
import com.gskinner.net.XML2;
// function to handle the load event:
function complete(p_evtObj:Object):Void {
var XMLObj:XML = p_evtObj.target;
/trace("success: "+p_evtObj.success);
trace("status: "+XMLObj.status);
trace("toString: "+XMLObj.toString());
/
if(p_evtObj.success==“false”){
xmlError();
};
}
// function to handle the httpStatus event:
function httpStatus(p_evtObj:Object):Void {
//trace("http status: "+p_evtObj.httpStatus);
};
//XML Error handler
function xmlError(){
trace("xmlError: " + _root.curSection);

switch (_root.curSection){
case 1://MAIN
_root.mcMainStage.mcNewsPanel.mcNewsEntryContainer.mcNewsEntryContent.mcNewsEntry0.removeMovieClip();
var v3 = mcMainStage.mcNewsPanel.mcNewsEntryContainer.mcNewsEntryContent.attachMovie(‘mcNewsEntry’, ‘mcNewsEntry0’, 200);

v3._y = yposNewsEntry;
v3.mcTxtBody.txtBody.styleSheet = styles;
v3.mcTxtBody.txtBody.autoSize = true;

var twNewsEntryHeadline_0:twLetterByLetter = new twLetterByLetter(v3.mcTxtHeadline.txtHeadline,“Hello there, you’re nice but…”,20);
var twNewsEntryTxtBody_0:twByWordsEndLetters = new twByWordsEndLetters(v3.mcTxtBody.txtBody,“I couldn’t load the news entries for your perusal. Its me, not you. Really.<br><br>I’m sorry it didn’t work out, but that doesn’t mean we can’t still be friends. The rest of the site still works, so do check out the rest of this pad out. And return again in a bit for the news.<br><br>dazza loves you.”,10);
var twNewsEntryDate_0:twLetterByLetter = new twLetterByLetter(v3.txtDate,“00 Jan '00”,25);

mcMainStage.mcNewsPanel.mcNewsScroller._visible = false;
mcMainStage.mcNewsPanel.mcScrollBarTrack._visible = false;
break;
//case 2:
case 2://GALLERY
break;
case 3://PROFILE
break;
case 4://PACKAGES
break;
case 5://BLOG
break;
};
};
/***********************************************************
XML News
************************************************************/
xmlNews = new XML2();
xmlNews.ignoreWhite = true;
xmlNews.addEventListener(“complete”,this);
xmlNews.addEventListener(“httpStatus”,this);
xmlNews.timeout = INTERVAL_XML_TIMEOUT_DUR;
xmlNews.connectionTimeout = INTERVAL_XML_CONNECTTIMEOUT_DUR;
xmlNews.onLoad = function(success:Boolean):Void {

if (success) {
_root.mcMainStage.mcNewsPanel.mcNewsEntryContainer.mcNewsEntryContent.mcNewsEntry0.removeMovieClip();
_global.TotalNews = xmlNews.firstChild.firstChild.childNodes.length-5;

//trace("total number news: " + TotalNews);

for (var i:Number = 0; i< TotalNews;i++) {
//Attach the news MC to the stage. ‘whoMe’ of the MC refers to a property we use to determine who the MC is for easy reference.
//We use Stylesheets to style the HTMLTEXT in the text boxes.
var newsDepth:Number = 200+i;

var v3 = _root.mcMainStage.mcNewsPanel.mcNewsEntryContainer.mcNewsEntryContent.attachMovie(‘mcNewsEntry’, ‘mcNewsEntry’ + i, newsDepth,{whoMe:i,mcNewsEntryHeight:0});
//v3._visible = false;
v3._y = yposNewsEntry;
v3.mcTxtBody.txtBody.styleSheet = styles;
v3.mcTxtBody.txtBody.autoSize = true;
v3.mcTxtHeadline.txtHeadline.text = xmlNews.firstChild.firstChild.childNodes[i+5].childNodes[0].firstChild.nodeValue;
v3.mcTxtBody.txtBody.htmlText = xmlNews.firstChild.firstChild.childNodes[i+5].childNodes[2].firstChild.nodeValue;
v3.txtDate.text = xmlNews.firstChild.firstChild.childNodes[i+5].childNodes[4].firstChild.nodeValue;

//Position the news items on stage.
//We want the first news entry to be displayed - mcNewsEntry0, while the rest - don’t bother
if (i == 0){
yposNewsEntry += Math.round(v3.mcTxtBody._height + v3.mcTxtBody._y + YPOS_NEWS_ENTRY_SPACE);
}else{
yposNewsEntry += Math.round(v3.mcTxtBody._height + v3.mcTxtBody._y + YPOS_NEWS_ENTRY_SPACE);
};
curNewsEntry = 0;
}
initNewsEntryScroller();
} else {
xmlError();
}
};
/***********************************************************
XML Gallery
************************************************************/
var xmlGalleryShort:Object;
var numGalleryItems:Number;
xmlGallery = new XML2();
xmlGallery.addEventListener(“complete”,this);
xmlGallery.addEventListener(“httpStatus”,this);
xmlGallery.timeout = INTERVAL_XML_TIMEOUT_DUR;
xmlGallery.connectionTimeout = INTERVAL_XML_CONNECTTIMEOUT_DUR;
xmlGallery.ignoreWhite = true;
xmlGallery.onLoad = function(success:Boolean):Void {
if (success) {
xmlGalleryShort = xmlGallery.firstChild.childNodes;
numGalleryItems = xmlGalleryShort.length;

//CONSTANTS FOR GALLERY
var GAL_START_X:Number = 296;
var GAL_START_Y:Number = 10;
var GAL_THUMBNAIL_SPACING_X:Number = 5;
var GAL_THUMBNAIL_SPACING_Y:Number = 5;
var GAL_COLUMNS:Number = 3;
var GAL_THUMB_WIDTH:Number = 226;
var GAL_THUMB_HEIGHT:Number = 174;

for ( var i:Number = 0; i < numGalleryItems; i++){
var v3 = mcMainStage.attachMovie(‘mcGalleryListThumbnails’, ‘mcGalleryListThumbnails’+i, mcMainStage.getNextHighestDepth(),{whoMe:i});
v3._x = ((i % GAL_COLUMNS) * (GAL_THUMB_WIDTH + GAL_THUMBNAIL_SPACING_X)) + GAL_START_X;
v3._y = (Math.floor(i / GAL_COLUMNS) * (GAL_THUMB_HEIGHT + GAL_THUMBNAIL_SPACING_Y)) + GAL_START_Y;

//v3.txtProjTitle.text = xmlGalleryShort*.attributes.title;
var tw1:twLetterByLetter = new twLetterByLetter(v3.txtProjTitle, xmlGalleryShort*.attributes.title,25);
trace("thumb src: "+xmlGalleryShort*.attributes.thumbnail);

// create movie clip loader to handle downloading
var mclGalThumbs:MovieClipLoader = new MovieClipLoader();
// add this timeline as a listener to the loader instance
// so that events defined here will be called for it
var mclGalThumbsListener:Object = new Object();

mclGalThumbsListener.onLoadStart = function(target_mc:MovieClip) {
trace(“Load Started”);
};
mclGalThumbsListener.onLoadProgress = function(target_mc:MovieClip) {
trace(“Loading…”);
};
mclGalThumbs.addListener(mclGalThumbsListener);

var container:MovieClip = mcMainStage[‘mcGalleryListThumbnails’+i].createEmptyMovieClip(“mcThumbImage”, 1);
container._x = 2;
container._y = 2;
var url = “folio/photos/” + xmlGalleryShort*.attributes.path + xmlGalleryShort*.attributes.thumbnail;
mclGalThumbs.loadClip(url, container);

v3.onRollOver = Delegate.create(v3, ThumbnailRollover);
v3.onRollOut = Delegate.create(v3, ThumbnailRollout);
v3.onRelease = Delegate.create(v3, ThumbnailRelease);
}

} else {

xmlError();
};
};
function ThumbnailRollover(eventObj:Object):Void{
trace(“over”);
};
function ThumbnailRollout(eventObj:Object):Void{
trace(“out”);
};
function ThumbnailRelease(eventObj:Object):Void{
trace(“clicked”);
};
function startGalThumbPreload(){
// create movie clip loader to handle downloading
var mclGalThumbs:MovieClipLoader = new MovieClipLoader();
// add this timeline as a listener to the loader instance
// so that events defined here will be called for it
mclGalThumbs.addListener(this);

var container:MovieClip = mcMainStage.createEmptyMovieClip(“mcThumbImage_”+count, count);
};
/************************************************************************
FolioImgPreload.as
Preloader for folio images
*************************************************************************/
// this function begins preloading a swf url
function startFolioPreload(){
// create movie clip loader to handle downloading
var mcl_FolioImages:MovieClipLoader = new MovieClipLoader();
// add this timeline as a listener to the loader instance
// so that events defined here will be called for it
mcl_FolioImages.addListener(this);

var container:MovieClip = mcImgPlaceholder.createEmptyMovieClip(“mcImage_”+count, count);
// use loadMovie to load the swf url into container_mc

container._x = IMG_BACK_FOLIO_XPOS;
container._y = IMG_BACK_FOLIO_YPOS;

url = zURL + DesignPortFolio[CurProject].childNodes[count].attributes.src;
mcl_FolioImages.loadClip(url, container);
container._visible = false;
}
// When the loading starts, attach the preloader animation
// this will be removed when preloading is complete

// each time progress is made with the
// preloading, update the preloader
// (takes place of onEnterFrame when not using MovieClipLoader)
function onLoadProgress(target, bytes_loaded, bytes_total){
// assign value to preloader

//_root.mcLoadMsgMouseTrailer.mcPreloadBar.value = bytes_loaded/bytes_total;
this.mImgPreloader.value = bytes_loaded/bytes_total;
}
// when loading is complete for mcl_FolioImages
function onLoadComplete(target){

this[“mcImgIndicator_”+count].gotoAndPlay(“loaded”);

this.mImgPreloader.txtLoadingMsg.text = "Loading Image " + (count+1) + " of " + NumImagesInProject;

if (count == 1){
this[“mcImgIndicator_”+count].gotoAndPlay(“current”);

//if (FOLIO_STAT==“photo”){
//mcImgPlaceholder.mcImage_1._alpha = 0;
//ZigoEngine.doTween(mcImgPlaceholder.mcImage_1, ‘_alpha’,100, .7, “linear”);
//}else{
mcImgPlaceholder.attachMovie(“mcImgTransition_Next”,“mcImgTransition_Next”,66,{_x:IMG_BACK_FOLIO_XPOS,_y:IMG_BACK_FOLIO_YPOS});
mcImgPlaceholder.mcImage_1.setMask(mcImgPlaceholder.mcImgTransition_Next);
//};

AnimateInNextBackBtn();

} else if(count != 1){
this.mcImgPlaceholder[“mcImage_”+count]._visible = false;
};

if(count < NumImagesInProject){
count++;
startFolioPreload();
}else{
this.mImgPreloader.txtLoadingMsg.text = “All Images Loaded”;
ZigoEngine.doTween({target:this.mImgPreloader, _alpha:0, seconds:1, delay:.5,func:function(){mImgPreloader.removeMovieClip();}});

//trace(“list completed”);
return true;
}
}
// if there is an error, this event handler will
// be called and the preloader will be removed
function onLoadError(target, error_code){
//preloaderExt.removeMovieClip();
trace(error_code);
}
function AnimateInNextBackBtn(){
mcNextImg_Btn.enabled = true;
mcBackImg_Btn.enabled = true;

ZigoEngine.doTween({target:mcNextImg_Btn, _x:703, _alpha:100, ease:“easeOutElastic”, seconds:2});
ZigoEngine.doTween({target:mcBackImg_Btn, _x:251, _alpha:100, ease:“easeOutElastic”, seconds:2, delay:1});
};
function resetNextBackBtn(){

mcNextImg_Btn._x = 703;
mcNextImg_Btn._alpha = 0;
mcBackImg_Btn._x = 251;
mcBackImg_Btn._alpha = 0;

mcNextImg_Btn.enabled = false;
mcBackImg_Btn.enabled = false;
};

Does anyone noe wt the error for tis script…?
Been figuring out quite a long time…but still cant find it
please help
thank!!!

=)

this._lockroot = true;

indicates you know what you are doing:P

whats the problem?

What are you trying to accomplish?
What do you think is the problem?
What errors do you get from the compiler?
If you don’t get any compiler errors… what is not working with this script? ie: “the pictures are not loading…”

IMO it’s better if you only post the problematic code, and not your whole code. You’ll get more help if you make it easier for people to help you…

Welcome to the forum BTW :wink:

Error Scene=Scene 1, layer=actions, frame=1:Line 176: The class or interface ‘twByWordsEndLetters’ could not be loaded.
var twNewsEntryTxtBody_0:twByWordsEndLetters = new twByWordsEndLetters(v3.mcTxtBody.txtBody,“I couldn’t load the news entries for your perusal. Its me, not you. Really.<br><br>I’m sorry it didn’t work out, but that doesn’t mean we can’t still be friends. The rest of the site still works, so do check out the rest of this pad out. And return again in a bit for the news.<br><br>dazza loves you.”,10);

Error Scene=Scene 1, layer=actions, frame=1:Line 197: The class or interface ‘com.gskinner.net.XML2’ could not be loaded.
xmlNews = new XML2();

Error Scene=Scene 1, layer=actions, frame=1:Line 248: The class or interface ‘com.gskinner.net.XML2’ could not be loaded.
xmlGallery = new XML2();

Total ActionScript Errors: 3 Reported Errors: 3

this is the error found.
=)

thank