How to share remoteclass with netGroup?

Hello!

I try to share an instance of a class between two applications but the message is just an object and not the instance of the class, and when I try to convert it to a class, I get a ' null '.

Here some info about what I've done:

an example class:

[Bindable]
[RemoteClass(alias="com.brand.Message")]
public class Message
{
     // Some properties
}

I send with netGroup:

_netGroup.sendToNearest(message, neighbor.address);

So now the other application, I get the Message instance object so I try to convert it to a Message:

var message:Message = event.info.message as Message;

But the message is 'null' when it's done...

So, is it possible to automatically receive the type of good object (here ' Message'), and if not, how to convert?

THX!

Okay, I found the solution, it's really simple actually.

I just need to record my class with registerClassAlias()...

So now the type of my 'event.info.message' is 'Message '. Zoe

Tags: Adobe Animate

Similar Questions

  • How to share photos with specific people

    original title: HOW DO I SHARING of PHOTOS WITH PEOPLE SPECIFIC

    I'M IN THE LIBRARY, WHERE I PUT MY PHOTOS.  THERE IS A GROUP OF PHOTOS I WANT TO SEND ONLY SPECIFIC PEOPLE BUT WHEN I CLICK ON SHARE WITH AND TYPE THEIR NAME IN IT - IT DOES NOT RECOGNIZE THEIR NAME - EVEN IF IT'S IN MY WINDOWS LIVE CONTACTS LIST.  HOW TO CHOOSE SPECIFIC SHARING PEOPLE?

    Your library windows 7 and sharing with is for other users on the same computer and other machines on the same home network.

    If you want to share by E-mail, you will need to open and use windows photo gallery, and skydrive lets share direct links to the files.

    http://Windows.Microsoft.com/en-us/Windows-Live/Photo-Gallery-get-started?T1=T3

    Homegroup from start to finish
    http://Windows.Microsoft.com/en-us/Windows7/help/HomeGroup-from-start-to-finish
    File sharing essentials
    http://Windows.Microsoft.com/en-us/Windows7/file-sharing-essentials

    Share files with anyone
    http://Windows.Microsoft.com/en-us/Windows7/share-files-with-someone

  • How to share markers with thumbnails

    I want to share my markers with a customer for future reference.  I can share markers as a Web page, but how do I include a thumbnail image with each marker?

    You must send the file that just came out with the HTML page.

  • How to share audio with other members to a meeting?

    Hello

    I want to share a video with my class, but my students can't hear the video since they receive only audio of my microphone. I was wondering if there is any way I can share what I hear. If someone can provide me with instructions on how to do this I will appreciate it highly. I use adobe connect.

    Thank you

    Jonathan R.

    You try to share a video in the share pod or via screen sharing?

    Screen sharing the image of your screen (or application), not share audio. More videos run at 24-30 FPS (frames per second), while runs at 3-5 FPS of screen sharing. A large amount of Visual information displayed by your video is therefore lost. If that's what you do, I would recommend that you get an FLV or MP4 video version that you share and that load directly on the share pod. The reading will be synchronized between all participants, and the audio comes through their computer speakers.

  • How to share files with media player between computers?

    as above, how do you get media player to allow the access/share files on a wireless network home. Also how can you say what version of media player you have? any help appreciated cheers

    Hello

    Personally, I don't use file sharing in wireless connection. But take a look at this site:

    http://www.Microsoft.com/windows/windowsmedia/player/FAQ/sharing.mspx

    Note in firewall settings, you must allow sharing between computers.

  • How to share Notes with my family

    I have family sharing set up, but I'm not able to share Notes.  Can I share Notes?

    Scenario: I am creating a shopping list that I can share with my wife on her phone.  I would also like this combo on his phone and my phone.

    Thank you!

    Erik

    It can be easy, just add your wife as secondary to note only and made icloud account, but now with the migration of Notes icloud IMAP to separate the support, I would just use any IMAP account for this. So, you can either create new e-mail account and add both of your devices or use one of the other emails you have. Yahoo, Gmail all noted syncing ability and if you do not want to share messages, you can disable it during the installation.

  • How to share internet with router wireless and host of Win 7

    I need to share my internet connection Windows 7 via a wireless router? I would like to share with the other win 7 and Ibook and iphone.

    It is not clear from your question if you already have a wireless router or intend to buy one.  If you have the instructions with it should help you to get it implemented.  Whatever it is, the following may help: http://windows.microsoft.com/en-US/windows7/set-up-a-wireless-router

    On edit: I just noticed you used the words 'Win 7 host' in the post title.  If you use a Windows 7 computer wireless router is just one of many possible devices connected to the router and the incoming internet connection sharing.  If you try to set up a wireless network without using a router, the following may help: http://windows.microsoft.com/en-US/windows7/What-is-a-computer-to-computer-ad-hoc-network

  • How to share files with the airport?

    Hello

    I have the new airport Time Capsule (2 TB).  I would like my wife to be able to access all my pictures, that are in files on my computer that I save on airport using Time Machine.  She uses several products Apple (iPhone, Macbook Air).

    What is the best way to do it?

    Is there anyway to access pictures in my backup Time Machine?

    If this isn't the case, I think I can just create a folder on the Time Capsule and copy files, which would be accessible on the Time Capsule via shared in the Finder.  But I see 2 disadvantages of the present.  I must first of all, don't forget to update this file manually.  Secondly, my photo files are about 70 GB and it seems like a waste of space, to have it on the Time Capsule twice.  So that means less space for my backups, the backup history go back less far, right?

    Thanks for explaining!

    Tyler

    On your computer, turn on sharing files via sharing preferences. In the first list box, add the folders on your computer that you want to share. In the second list box your will see the users default access. Simply add your wife's name to the list. You can create a new account on it to connect to your computer or you can just give your credentials so it can connect directly to your user account. Or you can change the privileges of everyone from r/o r/w.

  • How to share programs with all users?

    I created standard user profiles in Wondows 7 Home premium to my children more couple other users, but they cannot see or use one of the programs that I have installed under my account admin; like MS Office, Itunes, etc. etc.

    Could someone please help me understand how I do all visible programs to all users because there seems to be not having only two options when you set up a user account.

    I myself remember that maybe I should have selected an option during the installation of the program (MS Office, Itunes etc.) ' allow access to all users ', but do not see this option during installation.

    It's my first experience of the user windows 7 having worked on XP pro.

    Thanks for any help, support or advice.

    You have selected the option to install the programs only for the current user and all users. Otherwise, all users would have the program shortcut icons on their Menus start. You can add these shortcuts to the Start Menu > all programs by placing them from all users start menu.

    http://www.howtogeek.com/HOWTO/6463/stupid-geek-tricks-how-to-open-the-start-menu-folder-in-Windows-7/

    Right click on the "All programs" button from the Start Menu and choose 'Open' to get user-specific Start Menu folder. Choose "Open All Users" to download the file of the start - the system-wide Menu.

    %Appdata%\Microsoft\Windows\Start Menu folder or user-specific and
    C:\ProgramData\Microsoft\Windows\Start Menu for all users. MS - MVP - Elephant Boy computers - don't panic!

  • How to share photos of clouds with Skype?

    How to share photos of clouds with Skype?

    iCloud does not support sharing with Skype.

    iCloud, sharing photos - Apple Support

  • How to share an item bought with a family member?

    How to share an item bought with a family member?

    They need to download from the purchase history

  • How to share a photo slideshow with Mac & PC people

    I developed a slide show on my iMac from Photos. How to share the slideshow with friends, some with Apple devices and some with PC devices?

    export Photos as a gesture of Quicktime - which runs on a Mac or a PC (the PC must have the free QuickTime installed)

    LN

  • Qosmio F20-155: how to use BT to share files with the mobile phone

    Hello
    I HAVE TOSHIBA QOSMIO F20-155, BUT I DON'T NO HOW TO USE BLUETOOTH TO SHARE FILES WITH MY CELL PHONE
    PLEASE HELP ME

    Hello

    First a simple question: are you sure that your laptop supports Bluetooth?
    AFAIK the Qosmio F20-155 was delivered without the BT module.

    In addition, if you are not sure if the phone has BT then you can check the bottom of the unit. It should be placed a label BT if the Bluetooth has been installed.

  • all my data is all save on the local disk c, how to share the data with the other drive, local drive d.

    all my data records on the local disk c, how to share the data with the other drive, local drive d.

    Hi Jasonbichard,

    1. what type of drive is D? Is - this another partition on the same disk?

    2 Windows operating system you are using?

    You can change the location of the disk to save the data in the d: instead of C: and check if it helps.

    a. navigate to the location (username) C:\Users\.
    b. right click on the folder that you want to change the location, and then select Properties.
    c. click on the location tab and change the location to D: drive.

    d. click on apply and Ok.

  • How to share a folder in windows XP with password so that people on the network can see only its folder

    Original title: Network share

    How to share a folder in windows XP with password so that people on the network can see only its folder

    Hello

    See the following article:

    How to disable the file sharing simple and how to set permissions on a shared folder in Windows XP:

    http://support.Microsoft.com/kb/307874

Maybe you are looking for