# Can someone help..?

**URL:** <https://forum.kirupa.com/t/can-someone-help/262817>\
**Category:** Uncategorized\
**Created:** [June 10, 2008, 7:43am UTC](https://forum.kirupa.com/t/can-someone-help/262817 "2008-06-10T07:43:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![eshy](https://avatars.discourse-cdn.com/v4/letter/e/df788c/32.png) [@eshy](https://forum.kirupa.com/u/eshy)\
**Post date:** [June 10, 2008, 7:43am UTC](https://forum.kirupa.com/t/can-someone-help/262817/1 "2008-06-10T07:43:01Z")

</div>

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](https://mcMainStage.mcNewsEntryContainer).\_x = 28;  
[//mcMainStage.mcNewsEntryContainer](https://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](https://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](https://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](https://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](https://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](https://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!!!

=)

---

<div class="post-metadata">

**Author:** ![randomagain](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@randomagain](https://forum.kirupa.com/u/randomagain)\
**Post date:** [June 10, 2008, 9:24am UTC](https://forum.kirupa.com/t/can-someone-help/262817/2 "2008-06-10T09:24:21Z")

</div>

**this.\_lockroot = true;**

indicates you know what you are doing:P

whats the problem?

---

<div class="post-metadata">

**Author:** ![Pier25](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@Pier25](https://forum.kirupa.com/u/Pier25)\
**Post date:** [June 10, 2008, 9:24am UTC](https://forum.kirupa.com/t/can-someone-help/262817/3 "2008-06-10T09:24:41Z")

</div>

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 😉

---

<div class="post-metadata">

**Author:** ![eshy](https://avatars.discourse-cdn.com/v4/letter/e/df788c/32.png) [@eshy](https://forum.kirupa.com/u/eshy)\
**Post date:** [June 11, 2008, 6:03am UTC](https://forum.kirupa.com/t/can-someone-help/262817/4 "2008-06-11T06:03:10Z")

</div>

**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
