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

  • Home
  • SEARCH
  • 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 447281
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T21:33:17+00:00 2026-05-12T21:33:17+00:00

Actionscript supports a [RemoteClass] metadata tag that is used in BlazeDS to provide data-binding

  • 0

Actionscript supports a [RemoteClass] metadata tag that is used in BlazeDS to provide data-binding hints for marshalling AMF binary objects from Java to BlazeDS.

For example:

Java:
package sample;

public class UserInfo
{
    private String userName;

    public String getUserName()
    {
        return userName;
    }

    public void setUserName(String value)
    {
        userName = value;
    }
}

Actionscript:

[Bindable]
[RemoteClass(alias="sample.UserInfo")]
public class UserInfo
{
    public var userName:String=”";
}

How exactly is the [RemoteClass] implemented in the BlazeDS framework and could you override that behavior and provide a custom data-binding remoting framework (e.g. a JSON message passing system) that you could bind to the Actionscript [Bindable], [RemoteClass] class?

  • 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-12T21:33:18+00:00Added an answer on May 12, 2026 at 9:33 pm

    [RemoteClass(alias=”com.example.MyClass”)] is a Flex shorthand for calling flash.net.registerClassAlias() :

    public function registerClassAlias(aliasName:String, classObject:Class):void
    

    To access those registered alias classes at runtime (to write a custom JSON data serialization framework) you can call:

    getClassByAlias(aliasName:String):Class
    Looks up a class that previously had an alias registered through a call to the registerClassAlias() method.

    For outgoing encoding from AS to Java you need to retrieve the aliased class name, you can do that by calling flash.utils.describeType() and use “reflection” on your Actionscript object’s class to query attributes, properties, methods of the object.

    For example the following code snippet for ObjectCodec.as seems to retrieve the alias attribute by using “@”:

    override protected function encodeComplex(o:Object, b:IBinary, context:IContext=null):void
    {
            var desc:XML = describeType(o);
            var classAlias:String = desc.@alias;
            //...
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an actionscript class that serializes and unserializes data compatible with php's serialization
In ActionScript, how can you test if an object is defined, that is, not
For Actionscript 2.0 Let's say this page www.example.com/mypage returns some html that I want
I'm using GraniteDS Actionscript code generation templates that let's me take a Java object
I know SWFC supports both ActionScript 2.0 and ActionScript 3.0. But how do I
Why are inline closures so rarely used in Actionscript? They are very powerful and
I'm working on a project that uses ActionScript 3.0 with Flex SDKs. The project
I am trying to create an ActionScript 3 class that implements two interfaces. The
Since Flash doesn't support multithread how do you that in actionscript 3 ?
I have some actionscript that plays a movie clip. When the movie clip is

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.