Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer peopleโ€™s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer peopleโ€™s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 365575
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T13:33:01+00:00 2026-05-12T13:33:01+00:00

Good morning friendly Flashers ;) So I’ve been trying since yesterday to just load

  • 0

Good morning friendly Flashers ๐Ÿ˜‰ So I’ve been trying since yesterday to just load a SWF file into my main movie. I’ve done this before just placing code inside a movieClip, but this time I’m working inside of Class files. I have my main class which calls a function inside of my sub class which contains the loader. My problem is that the swf will load (I can tell via traces) but I cannot see the loaded swf ๐Ÿ™

Below is the code inside of my sub class

package src.howdinicurtain {

import flash.net.*;
import flash.display.*;
import flash.events.Event;

public class HowdiniFrame extends MovieClip {   
    //public var splashLoader;
    public var introLoader:Loader = new Loader();
    public var introContainer:MovieClip;
    private var holdX:Number;
    private var holdY:Number;

    public function HowdiniFrame(url:String, loadX, loadY):void {
        holdX = loadX;
        holdY = loadY;

        this.addChild(introLoader);
        //this.addChild(introContainer);

        introLoader.load(new URLRequest(url));

        introLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,swfLoaded);
    }

    public function swfLoaded(e:Event):void {
        introLoader.contentLoaderInfo.removeEventListener(Event.COMPLETE, swfLoaded);
        introContainer = introLoader.content as MovieClip;
        //introContainer = MovieClip(introLoader.contentLoaderInfo.content);

        addChild(introContainer);

        introContainer.x = holdX;

        introContainer.y = holdY;

        trace("holdX = "+holdX);
        trace("holdY = "+holdY);

    } 

}

}

The code above will load the swf file, I can see the swf files trace statements from the start of the animation to the end, but I cannot actually see the swf file inside of the main swf.

Traces:

  • The SWF file is = intro.swf
  • Intro Movie Starts ๐Ÿ™‚
  • contentLoaderInfo event removed
  • Intro Movie Ends ๐Ÿ™

Here is the code in my main class that calls the sub class function that loads the movie:

var introPath:String = xmlOutput.intro;
trace("The SWF file is = "+introPath+"\r"+"\r");
hc = new HowdiniFrame(introPath, 0, 20); 

I swear I throw my code into the first frame of a movieClip and it works fine, I see the animation in the loaded SWF play instantly, but when I have my code inside of Class files I cannot see my SWF at all ๐Ÿ™ thoughts? ideas? Thanks for any tips!

~ Leon

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T13:33:01+00:00Added an answer on May 12, 2026 at 1:33 pm

    What is hc? Is that a MovieClip on the stage? What if you try:

    hc.addChild(new HowdiniFrame(introPath, 0, 20));
    

    or if hc is not a clip on the stage

    hc = new HowdiniFrame(introPath, 0, 20);
    addChild(hc);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Good morning, I've been up all night trying to figure this out on my
Good Morning, I have a SharePoint site that I've been trying to fix up
Good morning; my google-fu seems to be lacking today. I've just been upgraded to
Good morning stackoverflow ! I'm trying to extract from a binary file a hexadecimal
Good morning. I've been having this issue for some days and have been lokking
Good morning in my timezone. Those are simple questions , i just do not
Good morning all. I've been pondering over the best way to use plupload with
Good morning, all. I've been doing websites now for about seven years (most of
Good morning everyone, I've got an issue when trying posting on my facebook wall
Good morning. After generating an AAR file from the WSDL and deploying, I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.