Search…

X3 Photo Gallery Support Forums

Search…
 
ameneon
Topic Author
Posts: 1
Joined: 15 Nov 2007, 19:11

integration with Flash - original content disappears

15 Nov 2007, 19:22

i am trying to implement imagevue in i website i am making in flash. However, problems occur when using the loadMovie function. I am fairly new to Flash, so i hope you are patient with me. I ´ve searched forums and search engines all day now.

I have my page set up with a main.swf which contains an animated menu, top-bar and a blank movie clip named content. This is where i want to load my different pages from the menu. I have put an actionscript on one of the buttons telling it to load imageVue when pressed. imageVue appears in the box, but when it starts playing, everything outside the content_mc disappears.

This is my code for the button:
Code
this.onRelease = function() {				
		
		loadMovie("gallery/imagevue.swf", _parent.content);

Any help would be greatly appreciated.

edit: PS. I am testing this locally for now, and don ´t have a external server yet.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

19 Nov 2007, 01:36

As an experienced flash developer, I can say that I have hearsd of this issue a few times, and it is often because the movieclip specified is incorrect or does not exsist "yet" as the point the code is being run.

Try add a line in your code before the loadMovie line:
Code
trace(_parent.content);
If the trace returns "undefined", you know the movieclip path is incorrect, or for some reason the movieclip does not exist on stage yet.

I also notice another thing - Since you are loading imagevue.swf from a remote folder "gallery/imagevue.swf", you must use the globalpath parameter to tell the gallery where the Imagevue root folder is. I believe your code should be like this:
Code
loadMovie("gallery/imagevue.swf?globalpath=gallery/", _parent.content);
 
zella
Posts: 11
Joined: 05 Dec 2007, 13:59

02 Jan 2008, 04:59

Could you send your .fla?
Have you solved the problem?
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

05 Jan 2008, 01:41

I created an example for you here:
https://www.photo.gallery/loadtest.swf
https://www.photo.gallery/loadtest.fla

As you can see, on the click of a button, imagevue is laoded into the page, and the original content is kept intact. Below is the code:
Code
Stage.scaleMode = "noScale";
b.onPress = function(){
	loadMovie("imagevue/imagevue.swf?globalpath=imagevue/", mymc);
}