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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:46:53+00:00 2026-05-28T06:46:53+00:00

I’ve been writing ActionScript for nigh on 10 years; but I’ve always used separate

  • 0

I’ve been writing ActionScript for nigh on 10 years; but I’ve always used separate text editors like TextMate to write the code and used the Flash IDE to compile it. I decided that this weekend I’d give Flash Builder a try, since it’s clearly the way forward.

Anyway. I’m using Flash Builder 4.6 on OSX — installed this morning and I haven’t futzed with it — and I built a simple “Actionscript Mobile App” (because my current project at work is a mobile air app, being built with the Flash IDE).

package
{
    import zakariya.layout.RootLayoutSprite;

    public class DoesThisEvenWork extends RootLayoutSprite
    {
        public function DoesThisEvenWork()
        {
            super();

            trace( "hello... what's my size: " + this.size );
        }
    }

    override public function onLayoutUpdated():void
    {
        super.onLayoutUpdated();

    }

    override public function onSizeChanged():void
    {
        super.onSizeChanged();
        trace( 'onSizeChanged..., new size: ' + this.size );   
    }
}

The class RootLayoutSprite derives from LayoutSprite and is part of a layout management API I wrote and have used in dozens of projects, big and small. The onLayoutUpdated and onSizeChanged methods are defined in LayoutSprite, as well as the size property.

The definition looks more or less like so:

package zakariya.layout 
{
    public class LayoutSprite extends Sprite {

        /*
            Called after this Sprite's size changes, before layout of children is executed
        */
        public function onSizeChanged():void
        {}

        /*
            Called after this Sprite's size changes, after layout of children is executed
        */
        public function onLayoutUpdated():void
        {}


    }
}

The zakariya.layout code is raw code in a local repo — not compiled to SWC — and it’s all in a folder structure which I added to the project’s source path. Flash builder clearly recognizes the base classes because it recognizes RootLayoutSprite.

When I try to build this I get the following:

1006: A super expression can be used only inside class instance methods.    DoesThisEvenWork.as /DoesThisEvenWork/src   line 17 Flex Problem
1010: The override attribute may be used only on class property definitions.    DoesThisEvenWork.as /DoesThisEvenWork/src   line 15 Flex Problem
1010: The override attribute may be used only on class property definitions.    DoesThisEvenWork.as /DoesThisEvenWork/src   line 21 Flex Problem
1020: Method marked override must override another method.  DoesThisEvenWork.as /DoesThisEvenWork/src   line 15 Flex Problem
1020: Method marked override must override another method.  DoesThisEvenWork.as /DoesThisEvenWork/src   line 21 Flex Problem

So, Flash Builder will not let me override those methods. If I take away the ‘override’ attributes, Flash Builder complains that the methods are defined in a base class. Facepalm.

Mind you, this simple code works fine in the Flash IDE.

I honestly have no idea what’s going on. I haven’t fooled with the Flash Builder config. I’ve avoided Flash Builder for years because I didn’t write Flex projects… and in my free time I write C++ so I don’t know anything about the Flash Builder eclipse toolchain.

My assumption is that the Flash IDE has a less strict compiler than Flash Builder, and as such, I’ve been doing something wrong for so long I didn’t know it was wrong.

Help?!

  • 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-28T06:46:54+00:00Added an answer on May 28, 2026 at 6:46 am

    The code should not compile in the Flash IDE either – it contains a syntax error.
    You closed the class declaration after the constructor. Just move that curly brace all the way down and everything should work fine.

    package
    {
        import zakariya.layout.RootLayoutSprite;
    
        public class DoesThisEvenWork extends RootLayoutSprite
        {
            public function DoesThisEvenWork()
            {
                ...
            }
        } // <= your class ends here
    
        // everything below is outside of the class!
    
        override public function onLayoutUpdated():void
        {
         ...}
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

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&#8217;Everest What PHP function
I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
I would like to count the length of a string with PHP. The string
I used javascript for loading a picture on my website depending on which small
I've got a string that has curly quotes in it. I'd like to replace
Seemingly simple, but I cannot find anything relevant on the web. What is the
I have a French site that I want to parse, but am running into

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.