Copy link to clipboard
Copied
I have created an empty movieClip for loading images into. But I can't see why there is always a thin red border around this movieClip when I publish the movie.
Any ideas?
Thanks..
Copy link to clipboard
Copied
Hi.
Can you provide some screenshots for your FLA and code?
Regards,
JC
Copy link to clipboard
Copied
I'd have to do several screenshots as you may be able to see from this overall shot. Look to the right.
I also have a number of comments on there which expands the length of the sheet.
So I'll post the code that applies, underneath.
I'm not sure right now whether I need to post the whole thing here.
Creating and loading the movieClip and loading images into it were the first two things that I put into the script.
The problem has always been present.
I have nothing else that applies to either the movieClip or the images being loaded into it.
The rest of the code is for:-
- ensuring that the images go back or forward in the right order from any point.
- parsing the xml file for the images.
- for using xml data to load image titles and links and adding to a basket.
- mouse events.
- text formatting.
The other screenshot is of the instance of the emptyMovieClip instance properties.
////From The main class file////////////////////////
//For the movieClip.
public var imageLoader: MovieClip = new emptyMovieClip();
imageLoader.addEventListener(Event.ADDED_TO_STAGE, loadMovie);
function loadMovie(): void {
galleryL: x = (stage.stageWidth - imageLoader.width) / 2;
galleryL: y = (stage.stageHeight - imageLoader.height) / 2;
imageLoader.removeEventListener(Event.ADDED_TO_STAGE, f);
}
//For the image loader
public var nextImage:Loader = new Loader();
addChildAt(imageLoader, 0);
nextImage.load(new URLRequest("../images/"+currImage+".png"));
addChild(nextImage);
imageLoader.addChildAt(nextImage, 1);
///Other File///////////////////////////////////////
//emptyMovieClip.as
package {
import flash.display.MovieClip;
public class emptyMovieClip extends MovieClip {
public function emptyMovieClip() {
// constructor code
}
}
}
Copy link to clipboard
Copied
Ok! Stand down folks...
I had the border set when I created the symbol.
Just looked into editing the movieClip instance and fond the border there.
Noob alert!!
Copy link to clipboard
Copied
**border
Copy link to clipboard
Copied
**found.
I need to sleep