Images wont show when loading external SWF..._parent and this problem!

Hello everybody,

For starters this is my first post on this forum (I actually registered myself because of this problem).

I have just started messing around in flash and made a pretty cool site (…design wise, the action script part is my major problem right now) which is suppose to go online sometime soon.

Now I have a small problem…

I used the following script to load an external SWF into my main SWF:
(i placed this script in the main timeline of my ‘main’ movie on frame 100 or something)

[COLOR=“Red”][as]
if(this.contentHolder == Number(this.contentHolder)){
loadMovieNum(“content1.swf”,this.contentHolder);
} else {
this.contentHolder.loadMovie(“content1.swf”);
}
[/as][/COLOR]

the external swf is al working fine, the preloader, buttons and thumbnails behaviour. All except for one thing: the photos wont load when i click on the thumbnails…

the external SWF is a photogallery with thumbnails.

the script for the small thumbnails is as following:
(i placed this on the first frame inside a movie clip of a movie clip which is staged in the main timeline)

*[COLOR=“red”][as]
var frameNum:Number;

function photoChange(){
_root.photos.gotoAndStop(“img”+frameNum);
_root.photos.fader.gotoAndPlay(2);
}
btn1.onRelease = function(){
frameNum = 1;
photoChange();
}
btn2.onRelease = function(){
frameNum = 2;
photoChange();
}
btn3.onRelease = function(){
frameNum = 3;
photoChange();

(....and so on....)

[/as][/COLOR]*

I also added a ‘randomize’ buttons which does work! the script for that (along other functions of the moving scrollingbar) is:
(this script is on the main timeline)

*[COLOR=“red”][as]
random_btn.onRelease = function(){
var picNum:Number;
picNum = Math.ceil(Math.random()*48);
photos.gotoAndStop(“img”+picNum);
photos.fadergotoAndPlay(2);
}

_root.onEnterFrame= function () {
if(_root._ymouse<502){
myVar=false;
}
if(_root._ymouse>501){
myVar=true;
}
if(_root._xmouse<230 && this._xmouse >130 and myVar==true){
imgBar.prevFrame();
imgBar.prevFrame();
imgBar.prevFrame();
imgBar.prevFrame();
} else{
imgBar.play();
}
if(_root._xmouse>600 && this._xmouse <700 and myVar==true){
imgBar.nextFrame();
imgBar.nextFrame();
imgBar.nextFrame();
imgBar.nextFrame();
}
if(_root._xmouse>231 && _root._xmouse<600 && myVar==true) {
imgBar.stop();
}
}

stop();
[/as][/COLOR]*

Now i get its the whole*[COLOR=“red”] _root[/COLOR]* thing. I have to change it to either [COLOR=“red”]_parent.this[/COLOR] or some other combination. i tried about any combination but right now im just guessing and i am not really getting the logic behind it. What combination do i use when i want to adres an mc inserted on the main timeline of the external SWF? do i just change:

*[COLOR=“red”][as]
var frameNum:Number;

function photoChange(){
_root.photos.gotoAndStop(“img”+frameNum);
_root.photos.fader.gotoAndPlay(2);
}
btn1.onRelease = function(){
frameNum = 1;
photoChange();
[/as][/COLOR]*

to something with [COLOR=“red”]_parent.this[/COLOR] in it? or do i change more in the code(s) on the other frames as well?

Thanks in advance! :slight_smile: