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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T10:41:05+00:00 2026-06-07T10:41:05+00:00

I new with flash and I really don’t know what is the reason I

  • 0

I new with flash and I really don’t know what is the reason I get this error:

TypeError: Error #2007: Parameter text must be non-null.
at flash.text::TextField/set text()
at sgmap_fla::MainTimeline/mapOver()

my actionscript:

description.countryName_txt.text = "";
description.zone_txt.text = "";

map_mc.buttonMode=true;

map_mc.addEventListener(MouseEvent.MOUSE_OVER, mapOver);
map_mc.addEventListener(MouseEvent.MOUSE_OUT, mapOut);

map_mc.northZone.countryName = "Singapore"; 
map_mc.northZone.zone = "North Zone";

map_mc.centralZone.countryName = "Singapore"; 
map_mc.centralZone.zone = "Central Zone";

map_mc.eastZone.countryName = "Singapore"; 
map_mc.eastZone.zone = "East Zone";

map_mc.westZone.countryName = "Singapore"; 
map_mc.westZone.zone = "West Zone";

map_mc.southZone.countryName = "Singapore"; 
map_mc.southZone.zone = "South Zone";

function mapOver(e:MouseEvent):void{
    var mapItem:MovieClip = e.target as MovieClip;
    description.countryName_txt.text = mapItem.countryName;
    description.zone_txt.text = mapItem.zone;   
    description.gotoAndStop(mapItem.name);
    TweenMax.to(mapItem, .5, {tint:0xFF9900});
    TweenMax.fromTo(description, .5, {alpha:0, x:50, blurFilter:{blurX:80}}, {alpha:1, x:10, blurFilter:{blurX:0}});
    }

function mapOut(e:MouseEvent):void{
    var mapItem:MovieClip = e.target as MovieClip;
    TweenMax.to(mapItem, .5, {tint:0x990000});
    }
  • 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-07T10:41:06+00:00Added an answer on June 7, 2026 at 10:41 am

    Text field text cannot be null.

    Specifically this error is caused by setting a text field text property to null. This can be replicated with TextField Classic Text:

    Classic Text:

    var tf:TextField = new TextField();
    tf.text = null;
    

    This will throw the error your cited:

    Error #2007: Parameter text must be non-null.

    TLF Text does not have this issue, and may be set to null.

    Per your implementation, this occurs within your mapOver(e:MouseEvent) function. Either mapItem.countryName or mapItem.zone are null. It’s likely they are both null.

    var mapItem:MovieClip = e.target as MovieClip;
    description.countryName_txt.text = mapItem.countryName; // null
    description.zone_txt.text = mapItem.zone;               // null
    

    Mouse events do not seem to be dispatched from the scope you expect. You have a listener on map_mc:

    map_mc.addEventListener(MouseEvent.MOUSE_OVER, mapOver);
    

    It looks like you’re expecting this event from any of the following movie clips: northZone, centralZone, eastZone, westZone, and southZone. These symbols have the properties you are looking for; however, map_mc does not.

    So, root cause is that your event listener e.target is not the symbol you are expecting.

    Verify what symbol e.target is. It’s probably map_mc which does not have the properties you are expecting:

    map_mc.countryName; // doesn't exist
    mac_mc.zone;        // doesn't exist
    

    You’re looking for those properties on a child of map_mc:

    map_mc.northZone.countryName;
    map_mc.northZone.zone;
    
    map_mc.centralZone.countryName;
    map_mc.centralZone.zone;
    
    // etc...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Flash ActionScript myData = new LoadVars(); myData.onLoad = function() { myText_txt.text = this.myVariable; };
When I preview this the video quality is really bad, and I don't know
I want to create flash website, with flex, but i don't really know how
I've been trying to fix this error for days now. Really. I just don't
im really new to flash, how do i go about creating a variable which
I am new to Flash and AS3. I have a DataGrid like this Item
Sorry, I'm new to flash I have this line of code: BaseEntry( _entryList[i] ).topTeamName
I'm new to object oriented programming and flash. As far as I know, global
Well, to be honest it works just for one client, don't really know why.
I'm new to flash and it's really bugging me that I cannot find out

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.