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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T18:08:29+00:00 2026-05-13T18:08:29+00:00

So I know as3 doesn’t have pointers, but I thought there might be a

  • 0

So I know as3 doesn’t have pointers, but I thought there might be a way to use object variables as pointers.

Right now I’m relying on passing a function that gets the get function, it’s not a very elegant solution something like this:

myvar = function():int{return objectName.getVarValue};

The other option would be to change all the gets and set methods into get and set functions, or add these in addition to.
I could also create a linking class that just stores the name, but that that is just a bigger headache.

can anyone confirm for me that there really isn’t a way to get the up-to-date values of an object’s variable without without doing anything more complicated than this?


There is essentially three parties involved, almost like an MVC. I one object is the controller, that tells which value of the “view” to be matched with whichever datakey.
The View is kind of dumb, and so is the data/model so everything is done through the controller and in a sequence where these events overlap. So I’m delegating the data-grabbing to the datakey, by defining at the beginning all the different parameters, and later I can just call the update and select the datakeys and they grab the data.
right now I have the constructor linked to the value through a function I’m creating like this

onUpdate:function():int{return objectName.getVarValue};

it’s a bit more complex than that, but that’s the gist of it.
In Flex you can do data binding, but that’s a flex thing and not AS3, and it’s not exactly a pointer either.

I wish as3 could just do pointers, maybe in as4? I thought there might be a way to retrieve the getter as a function that I didn’t know of.

  • 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-13T18:08:29+00:00Added an answer on May 13, 2026 at 6:08 pm

    I would just pass the object itself, since the reference behaves most like a pointer. You can cook up your own data binding using dynamic properties. When you want to wire up your view to the data model, the controller creates a data binding with the data source object, and the name of the property to bind on the data source, and the name of the property to bind on the view:

    view.AddBinding(dataObjectName, "somePropertyOnObject", "propertyNameOnView");
    

    You can store these in some sort of Binding class you create, and in each call to AddBinding, you add it to a collection, probably making sure no duplicates exist for a given “propertyNameOnView”. When you need to respond to a property update event on the data object, you make the assignment like the below, except you’d grab the strings from your the Binding object, maybe iterating through the entire collection of Bindings to perform a full update of the view:

    this["propertyNameOnView"] = dataObjectName["somePropertyOnObject"];
    

    But more like this with a binding object:

    someBinding.DestinationObject[someBinding.DestinationProperty] = 
      someBinding.DataSource[someBinding.SourceProperty];
    

    You could even put this code directly in the Binding object itself exposed through an Update method so that you just call Update() on the particular binding, and it brings the data up from the data model’s property to your view’s property.

    This is a little information on dynamic properties to get you started if you are not familiar with them:
    http://www.colettas.org/?p=17

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

Sidebar

Ask A Question

Stats

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

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

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

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

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Finally, I found really good stuff: Florian Apolloner wrote a… May 14, 2026 at 9:59 pm
  • Editorial Team
    Editorial Team added an answer There is no equivalent to git clean in the core… May 14, 2026 at 9:59 pm
  • Editorial Team
    Editorial Team added an answer That depends. If you store separate data on the different… May 14, 2026 at 9:59 pm

Trending Tags

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

Top Members

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.