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 6780505
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:30:50+00:00 2026-05-26T16:30:50+00:00

I am having an issue where I have created a Custom Control and when

  • 0

I am having an issue where I have created a Custom Control and when I add it in a FLA file, it displays as I expect. When I add an ActionScript (AS) file to my custom control, reload the component list and add the custom control again, it no longer displays the custom control in my FLA file.

Here is what I did (maybe I did something wrong here?):

  1. Created a new FLA file and called it Control1.fla
  2. Created a rectangle on the stage and right clicked it and selected “Convert to Symbol”.
  3. I gave it a name of Control1 and clicked OK.
  4. Then I right clicked on the control in the Library and selected “Component Definition”.
  5. I gave it a class name of Control1 and checked the “Display in Components panel” checkbox.
  6. I then double clicked the Control1 icon in the Library to open it and simply added a line.
  7. Right click Control1 in the Library and select “Export SWC File…” and gave it a name of Control1.swc
  8. Then I created a new FLA file and called it Tester.fla
  9. I refreshed the Component list (using the little drop down to the right of the Components list label).
  10. I dropped the Control1 control onto the stage and I see my control with the line I drew earlier in it.
  11. I run the application and I see the control as I would expect.
  12. Now I go back to the Control1.fla file and select File / New and select “ActionScript 3.0 Class” file and enter Control1 as the class name. Change the code to be this:

package
{

import flash.display.MovieClip;

public class Control1 extends MovieClip {

    public function Control1() {
        // constructor code
    }

}

}

  1. I save this AS file as Control1.as
  2. I go back to the Control1.fla file and right click on the Control1 icon in the Library list and select “Export SWC File…”.
  3. I then go back to the Tester.fla file and delete the Control1 object I had on the stage.
  4. I refresh the Component list as I did in step 9.
  5. I drag the Control1 component onto the stage and select “Replace existing component” in the prompt that appears and I now see my custom control on the stage.
  6. However, when I run the application now, I do not see my custom control – I only see a blank white stage.

I am pretty sure I am missing a step or something like that – I am just starting to learn Flash & AS3 and I followed a tutorial on this, but I am running into this problem!

Any help would be greatly appreciated!
Thanks!

  • 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-26T16:30:51+00:00Added an answer on May 26, 2026 at 4:30 pm

    I’ve never made a custom SWC component but the process you are following is a lot like making a custom FLA component. The step that seems to be missing is saving the file into the config/components folder. Here is the path for that.
    C:\Program Files (x86)\Adobe\Adobe Flash CS4\Common\Configuration\Components
    Then restart flash. FLA’s also require you to make a shim, which is just a compiled clip that contains your compiled code that you just insert into your the component in your library. I’m not sure if SWC components require that. Here is a link about shims and fla components just in case you need it or decide to switch.

    http://www.flexiblefactory.co.uk/flexible/?p=16

    http://redbjarne.wordpress.com/actionscript-3-0-custom-components-from-hell/

    This one helped me the most but it’s not perfect and watch his phrasing. it can be tricky.

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

Sidebar

Related Questions

I am having following issue with reading binary file in C. I have read
I have been having issues with a custom check box control for a while
I am having an issue with a custom control rendering its contents (child controls)
Hopefully an easy one, I have created a Custom Repeater control that extends System.Web.UI.WebControls.Repeater.
I m new to use ankhSVN and having issues. I have created some new
Having an issue here that I have tried everything I can think of but
I have been having this issue in iterating through an array of keys and
I'm having an issue with multiple markers on google maps - I currently have
I'm having an issue bending my head around this one. I have a table
I am having an issue with ColdFusion's CFChart tag. I have a couple graphs

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.