Skip to main content
The Real M
Participating Frequently
March 10, 2022
Question

Why is there a red border around a movieclip?

  • March 10, 2022
  • 1 reply
  • 431 views

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..

    This topic has been closed for replies.

    1 reply

    JoãoCésar17023019
    Community Expert
    Community Expert
    March 10, 2022

    Hi.

     

    Can you provide some screenshots for your FLA and code?

     

    Regards,

    JC

    The Real M
    Participating Frequently
    March 11, 2022

     

     

    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
    }
    }

    }

     

    The Real M
    Participating Frequently
    March 11, 2022

    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!!