Below are the various components of my app.

my main mxml file has this function called on creation complete
public function init():void
            {
                john2.text = "nothing yet.";
                addEventListener("loggedIn",changeCanvas);
            }

public function changeCanvas(event:Event):void
            {
                john2.text = "bubbled";
                //mainCanvas.visible = true;
                //loginRegisterCanvas.visible = false;
            }

I have a loginObj.as class that is imported. The class handles my webservice login stuff. The login resulthandler is below.

public function wsSigninResult(result:Event):void
        {
            var loginEvent:Event = new Event("loggedIn",true);
            ... (var assignments)
            dispatchEvent(loginEvent);
        }

I tested the dispatch with a listenner in the same file, that worked just fine. I just can't get the class file to bubble the even to the application.

J

--
John Wilker
Vice President Software Development/Writer
Red Omega Solutions, Inc.
www.johnwilker.com / www.red-omega.com

"Everything changes, nothing remains without change." ~Buddha c.483 bc

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to