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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T13:08:26+00:00 2026-05-11T13:08:26+00:00

I’m having quite some trouble to try and get an app I wrote in

  • 0

I’m having quite some trouble to try and get an app I wrote in AS2 to AS3. The reason I need to go to AS3 is something icky, so I won’t go into detail about it.

I’ve got 90% of the application running with the new code. Now I’ve come to the point where I have to convert this code from AS2,

function setAnimation(theObject,id) {     theObject.vensterid=id;     theObject.onEnterFrame = function()     {         var myHoriTween:Tween = new Tween (this,'_x',Strong.easeOut,this._x,(130+((theObject.vensterid-frameno)*260)),1,true);     } }  setAnimation(venster0,0); 

, to AS3. My attempt of doing this ended up like

function setAnimation(anObject,id) {     var theObject = this[anObject];     theObject.vensterid=id;     function slideHorizontal(event:Event)     {             var myTween:Tween = new Tween (theObject,'x',Strong.easeOut,this.x,(130+((theObject.vensterid-frameno)*260)),1,true);     }     theObject.addEventListener(Event.ENTER_FRAME,slideHorizontal); }  setAnimation(venster0,0); 

and gives me the following non-error (it doesn’t show as a compiler error, but as output):

TypeError: Error #1010: A term is undefined and has no properties.     at sliding_windows_as3_fla::SlideMenu_1/setAnimation()     at sliding_windows_as3_fla::SlideMenu_1/frame1() 

I think this is very strange since it doesn’t say anything about which term (and there are quite a lot) and googling didn’t find me an explanation either.

  • 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. 2026-05-11T13:08:26+00:00Added an answer on May 11, 2026 at 1:08 pm

    I didn’t get the chance to test your code, because it’s difficult to set up a context for it, but my thoughts would be:

    1. You should declare the parameter types: function setAnimation(anObject:Object,id:uint):void. It’s at least good practice.
    2. var theObject = this[anObject]; is completely unnecessary if your variable anObject is an object. I think var theObject = this[anObject]; doesn’t work, theObject ends up being null and that’s why you get your error. If you have declared a variable called venster0, that is the instance of a class that extends Object, then you can pass the reference to it without any other trouble.
    3. Depending on the object you work with, theObject.vensterid=id; might not work. The class that theObject instances must have the ‘vensterid’ property, or you will get `1119: Access of possibly undefined property vensterid through a reference with static type …
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

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
We're building an app, our first using Rails 3, and we're having to build
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I'm having trouble keeping the paragraph square between the quote marks. In firefox the
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have just tried to save a simple *.rtf file with some websites and
In my XML file chapters tag has more chapter tag.i need to display chapters
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I need a function that will clean a strings' special characters. I do NOT

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.