If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

i have a parent swf with images that when clicked loads another swf. the problems is that the child swf is not loading the images that correspond to the scrolling nav neither loads the other swfs. now, when i try the child alond it has no problem loading the images or the swfs.

the child swf is inside a folder called, "swfIndex"- inside such folder is the child and the folders holding the images and the swf for the child. bellow is the code.

look at this. do you think that "basename" should be equal to "root.basename" or "parent.parent.basename"

PHP Code:

var id:Number;var basename:String;

//trace ( id );idTag.text = id;idTag.visible = false;

basename = root.root.basename; // another way is parent.parent.basename

// loads the thumbnail imagesvar thumbURL:String = "swfIndex/thumbs/" + basename + id + ".jpg"// this is the name of the folder that contains jpgvar imageURL:String = "swfIndex/images/" + basename + id + ".swf"// this is the name of the folder that will contain the .swfs

I didn't realise you were trying to grab basename from the parent swf.

You will not be able to access the parent's variable like that.

To access the parent swf's variable you will need to first recast the parent to a MovieClip.

e.g.

PHP Code:

trace( MovieClip(parent).basename );

Now this itself will only work once the loader.content has been added to the stage.. i.e. (not gonna work on the first frame of the child swf because this code will run before the loader COMPLETE function is run, which adds the swf to the stage).

Another solution might be to fire off an init function etc. once the child swf is loaded, then you can pass the required basename var.

i see what you mean with the linkage name. i am changing that name by adding a p2 to it. so now it will read: "thumb_templatep2"- however, the linkage class is still the same "thumb" - are you able to see the thumb images when you load the child swf onto the parent swf?

are you using this path in the child .fla (p-2) to load the images and swfs
"var imageURL:String = "swfIndex/images/" + basename + id + ".swf""

i am playing with it- have to run to my meeting and show my none working proyect....

Lexicon. it works! it works!
i went to the meeting with broken swf ready to tell the client that the work is still in progress and not yet ready. the client was late and i ran back to my office to check the forum- you had the last suggestion on the linkage name which i did change it and it worked. i ran back to the conference room and was able to present the working prototyte of the project.

mil gracias Lexicon

the client asked for a lot of changes and addition of elements like text to explain each of the panels (panels are the 8 vertical images on the parent swf). now when users click on the any of the images the loaded child will have a description of what the panel is about then when click on scrolling horizontal images the txt will go away and the corresponding img will come up.

Hello guys
I am pulling my hair already couple of hours and trying lots things but still this unwanted message when clicking the thumbs and imgs are not changing and none error codes. Can you please someone take a look?
I even tried to change linkages...still same.