Hello All!
Well, I can load in swf's just loverly, but what I have is a sliding menu, with buttons in it, that when pressed, load an image into an empty movieclip.
I really just need to know how to target back to the _root of the whole movie.
It works great when the buttons and empty movieclip in the same stage or same movie clip, however I need to work out the right script to target right back to the root where i want the image to sit, from a button, inside a movie clip. I have the jpegs in both the swf folder and inside the flash file.
The reason I need the buttons and the img_container separate is because if you slide the buttons left or right in the sliding menu, the image slides across as well.
Here is what works when they are within the same movie clip:
on (release) {
loadMovie("lamp 1.jpg", "img_container" );
_root.img_conta iner._xscale = 40
_root.img_conta iner._yscale = 40
}
...however i'm trying to use target path, and it's not working too well...
on (release) {
loadMovie("lamp 1.jpg", "img_container" );
this.img_contai ner._xscale = 40;
this.img_contai ner._yscale = 40;
}
Any ideas, or how I could better structure this would be wonderful!
Thanks!
Well, I can load in swf's just loverly, but what I have is a sliding menu, with buttons in it, that when pressed, load an image into an empty movieclip.
I really just need to know how to target back to the _root of the whole movie.
It works great when the buttons and empty movieclip in the same stage or same movie clip, however I need to work out the right script to target right back to the root where i want the image to sit, from a button, inside a movie clip. I have the jpegs in both the swf folder and inside the flash file.
The reason I need the buttons and the img_container separate is because if you slide the buttons left or right in the sliding menu, the image slides across as well.
Here is what works when they are within the same movie clip:
on (release) {
loadMovie("lamp 1.jpg", "img_container" );
_root.img_conta iner._xscale = 40
_root.img_conta iner._yscale = 40
}
...however i'm trying to use target path, and it's not working too well...
on (release) {
loadMovie("lamp 1.jpg", "img_container" );
this.img_contai ner._xscale = 40;
this.img_contai ner._yscale = 40;
}
Any ideas, or how I could better structure this would be wonderful!
Thanks!
Comment