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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T15:43:27+00:00 2026-06-18T15:43:27+00:00

I am creating a sample MVC using Parsley Framework of Flex. I am having

  • 0

I am creating a sample MVC using Parsley Framework of Flex. I am having one slider control (mx:HSlider) which dispatches the event to the model for doing something on slider change. For that i have created one custom event and i am using parsley selectors for handling event. Here is the code

//Event
        class MyEvent extends Event
        {
        public static const MSG="msg";
    //constructor, clone method and two fields
        }

//View
    <fx:Metadata>
    [Event name="msg" type="pack1.MyEvent"]
    [ManagedEvents("msg")]
    </fx:Metadata>

    <fx:Declaration>
    <parsley:Configure/>
    </fx:Declaration>

    public function onSliderChange(event:SliderEvent):void
    {
    dispatchEvent(new MyEvent(MyEvent.MSG,event.thumbIndex,event.value);
    }

//Model
    [MessageHandler(selector="msg")]
    public function doSomething(event:MyEvent)
    {
    //code
    }

Now, event gets dispatched successfully but somehow message handler is not getting called.
What can be wrong here? Can anyone please make me know what is problem? Any kind of help will be appreciated. Thanks in advance.

Note : My context is getting initialized and my model is also getting injected. But the events shows me some strange behaviour. It is just not getting dispatched to the model where handlers for that are.

  • 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-18T15:43:28+00:00Added an answer on June 18, 2026 at 3:43 pm

    I thought there is an error in some configuration or in normal events with parsley events but in my code i was dispatching more that one events from the class and i was writing them as

    [ManagedEvents("a","b","c")]
    

    But after reading documentation of parsley i observed that it should be

    [ManagedEvents("a,b,c")]
    

    It solved my problem. Thanks for all your replies.

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

Sidebar

Related Questions

I am creating one sample project in android. i am using sample rss feed.
Suppose I am creating a application using the sample Northwind database using asp.net mvc
I am creating a simple application using the MVC design pattern where my model
We are creating sample application for windows mobile using Rijndael algorithm. Its working fine.
My project contains tagcloud and I am following the sample on: http://www.mikesdotnetting.com/Article/107/Creating-a-Tag-Cloud-using-ASP.NET-MVC-and-the-Entity-Framework My problem
i'm creating a very simple (hello World quality) web application using spring mvc 3.0.
What if I am creating an intranet web application using MVC and in the
I am in the process of creating a website using ASP.NET MVC. I went
I recently started using MVC, and as a test project I am creating a
I'm creating site using MVC architecture and get stunned when I came to AJAX.

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.