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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T17:37:08+00:00 2026-06-09T17:37:08+00:00

I’m trying to create 3different objects each one loaded from a different swc. Each

  • 0

I’m trying to create 3different objects each one loaded from a different swc. Each swc uses the same fl.controls.ComboBox and on runtime I get an error about being unable to convert from MovieClip to ComboBox.

I tried changing the publish settings for the libs to “external” in the Link Type but this forces me to include the whole libs into the project which increases its executable’s size considerably.

What is the correct way to use fl.controls.ComboBox (or any other type of control) on different swc’s without having conflicts in code?

  • 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-06-09T17:37:09+00:00Added an answer on June 9, 2026 at 5:37 pm

    I do not understand the you problem.
    because common sense best case is only the components attach the Libarary in a single SWC, and programmatically do make a combo box is normal.

    I you look at the full source code and .fla be clear solved, but i guess as your problem following.

    Did you each combobox in SWC to wrapping? SWC of each individual to distinguish between,from the combo box is refer a following process.
    For example, there are three kinds of the SWC.
    If assume that Number 1 is City Selection ComboBox and Number 2 is Interesting Selection ComboBox and Number 3 is a Birthday ComboBox.
    you should convert to CityComboBox, SelectionComboBox, BirthdayComboBox MovieClip that once wrapped in a crash does not occur if used after. and you must following code.

    private var comboBox0:CityComboBox;
    private var comboBox1:SelectionComboBox;
    private var comboBox2:BirthdayComboBox;
    private var cityComboBox:ComboBox;
    private var selectionComboBox:ComboBox;
    private var birthdayComboBox:ComboBox;
    
    public function Constructor()
    {
       comboBox0 = new CityComboBox();
       .
       .
       .
       cityComboBox = comboBox0.getChildAt(0) as ComboBox;
    }
    

    enter image description here

    enter image description here


    p.s

    In my experience, unless you create a each SWC mapping each Class,
    SWC’s do not need to be separated into each.(Of course, depending on
    the circumstance different way is.) if you’re a single SWC much in a
    movie clip or component Libary created in you mind tidy and crash does
    not exist. And what part do you know if the problem is easy. Because
    they are all in one place DisplayObject, Naming, Linkage such crash can be prepared avoided.

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

Sidebar

Related Questions

Basically, what I'm trying to create is a page of div tags, each has
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I'm trying to create an if statement in PHP that prevents a single post
I am trying to understand how to use SyndicationItem to display feed which is
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I am reading a book about Javascript and jQuery and using one of the
I am trying to render a haml file in a javascript response like so:
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this

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.