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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T22:08:09+00:00 2026-05-15T22:08:09+00:00

I have a gui class, The functions optional value getting error. If i am

  • 0

I have a gui class, The functions optional value getting error. If i am not passing the fillcolor and other optional values.

Error:

ReferenceError: Error #1069: Property fillColor not found on String and there is no default value.

AS 3.0

    var windowBase:Sprite = UIClip("Sprite");
    /* sliderClip = Gui.UIClip("MovieClip",{width:100, height:50, fillColor:0xFFFF0D, alpha:.7});
    */
    function UIClip (type:String, params:object = '') {
       var clip;
       trace("Hello")
       if (type == 'MovieClip') {
        clip = new MovieClip  ;
       } else {
        clip = new Sprite;
       }
       //trace(params + "params.fillColor " + params.fillColor)
       if (params is Object) {
        clip.graphics.beginFill ((params.fillColor != "") ? params.fillColor : 0xFFFFFF, params.alpha ? params.alpha : 1 );
        clip.graphics.lineStyle (params.lineThickness != "" ? params.lineThickness : 1, params.borderColor ? params.borderColor: 0x000000);
        clip.graphics.drawRoundRect (0,0, 
         (params.width != undefined ) ? params.width : 100, 
         (params.height != undefined) ? params.height : 100 ,
         params.eW ? params.eW : 0,
         params.eH ? params.eH : 0);
        clip.graphics.endFill ();
        //trace("Hello")
       }

       return clip;
      }

How can I solve this?

  • 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-15T22:08:09+00:00Added an answer on May 15, 2026 at 10:08 pm

    Condition “if (params is Object)” is true. String is object, too.
    I’m using null for optional params if they have no default value.

    Try this:
    function UIClip (type:String, params:object = null)
    and test “if (params != null)”

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

Sidebar

Ask A Question

Stats

  • Questions 539k
  • Answers 539k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer try replacing :comments with :feed May 17, 2026 at 2:13 am
  • Editorial Team
    Editorial Team added an answer Unfortunately Unix does not store the creation time of a… May 17, 2026 at 2:13 am
  • Editorial Team
    Editorial Team added an answer Running Sinatra with Ruby 1.9.2 the template directory is no… May 17, 2026 at 2:13 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I have a GUI architecture wherein elements fire events like so: guiManager->fireEvent(BUTTON_CLICKED, this); Every
I have created a simple GUI using Windows Forms in visual C++ 2008. There
I have a workspace with the following 3 projects: Library Tests GUI The tests
I have a Python script which uses Tkinter for the GUI. My little script
I am trying to figure out how to set the value of the text
I have a function which I need to call for three different types, with
I need to call the co-class function by reading its address from vtable of
I'm having a problem, where I wish to run several command line functions from
I'm developing a GUI library with a friend and we faced the problem of
I'm building a small GUI-Test automation tool in C# for a application. One of

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.