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

  • Home
  • SEARCH
  • 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 7402959
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T04:55:34+00:00 2026-05-29T04:55:34+00:00

I have a compiled swf File (lets call it cat.swf) that is loaded via

  • 0

I have a compiled swf File (lets call it “cat.swf”) that is loaded via the Loader Class of my Main movie. The cat appears without problems. But inside cat.swf there are two movieclips defined (lets call em “head” and “body”), and I have ye to find a way to get control of these from my Main movie.

When I check for numChildren of the loader Object it only gives me back one (an unnamed instance), if I cast that as a Movieclip to check for deeper children it continues all the way down like a tower of turtles.

How can I get access to “head” from my loading Movie?

  • 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-29T04:55:36+00:00Added an answer on May 29, 2026 at 4:55 am

    Use Loader.content to access the root MovieClip of the loaded SWF. If you specify an interface to the MovieClip’s base class, which contains getters for head and body, you can cast myLoader.content to it and access the clips directly in a type-safe way. But if it’s just these two, you can of course use bracket syntax, too:

    var head : DisplayObject = myLoader.content["head"];
    

    If you have not declared the head and body as fields, you can also use

    var head : DisplayObject = DisplayObjectContainer (myLoader.content).getChildByName ("head");
    

    to access the clip via its stage name.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application with a SWF loader. From the loaded SWF file, I'm
I have a compiled swf file and a I can't edit it , but
I have an ActionScript project with several classes that i compiled as an swf
I have a main Flex Application ('A.swf') loading a SubApplication (defined in' B.swf') via
All, In the Flash app I'm building, I have a main SWF that will
Under gcc (g++), I have compiled a static .a (call it some_static_lib.a ) library.
I have a compiled .NET assembly with a specific resource file embedded (named 'Script.xml').
I have a Flex 4.5.1 application which loads another swf file (as a module
i have built a custom class, which i call from a frame script. the
I have flex sdk 4.6 installed and I want to compile AS3 class that

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.