|
Can you try to remove all the code within
the execute method in the command? After that, see if your code below the
broadcastEvent works. Also, have you tried to add a trace statement
to the command to make sure it is executing… From: Hi mike, That is the weird thing. Other commands work fine. Also this command
works also but the code beneth doesn't get executed which is the weird thing.
The command doesn't implement responder therefore it doesn't use delegate
either. It just manipulates the ModelLocator. The command is executed way into
the application so the controller and everything is instantiated. The command
is registered correctly with the controller otherwise it would not execute. On 9/16/05, Michael
Herron <[EMAIL PROTECTED]>
wrote: There are only so many things it can be: ·
Have you registered the event correctly with the
controller? ·
Has the controller been instantiated? ·
Has the controller been instantiated BEFORE the
event is broadcast? o When is the event broadcast? ·
Are you instantiating a delegate from within your
command? ·
Are all services required by the delegates
available when they are constructed? -Mike From: [email protected]
[mailto:[email protected]]
On Behalf Of Omar Ramos
Nope,
This is the call
EventBroadcaster.getInstance().broadcastEvent(ScrapblogController.EVENT_SELECT_OBJECT,
eventObj); The command only implements the Command interface and only has a if
and a switch statement on execute thats it.
On
9/16/05, Mercer, Dustin <
[EMAIL PROTECTED]> wrote: Just curious, do you use any viewhelpers within your command? From: [email protected]
[mailto:[email protected]]
On Behalf Of Omar Ramos I have set traces all over the place. No errors are
occurring and the command gets executed. Any Idea what could be the problem? On
9/14/05, Omar Ramos < [EMAIL PROTECTED]>
wrote: Thanks
alot for your reply ali, If in fact there was an error why the piece of code
beneth that line doesn't get executed? I am checking the command it is
executing just fine. Gona check on it again. On
9/14/05, Alistair McLeod <
[EMAIL PROTECTED] > wrote: Hi Omar, An exception is probably getting thrown somewhere, either in
the EventBroadcaster because the event hasn't been registered with a command,
or within your command itself. Have you checked flashlog.txt (ensure you have debug player,
mm.cfg etc). Ali --
From: [email protected]
[mailto:
[email protected]] On Behalf Of Omar
Ramos Hi there, There is
something strange going with cairngorm in the application am currently
developting. It seams that when I do a broadcast the lines of code beneth if
doesn't execute. I do
this. EventBroadcaster.getInstance().broadcastEvent(ScrapblogController.EVENT_SELECT_OBJECT,
eventObj); and the
trace never apears or the code beneth it never gets executed. Any ideas? Omar
Ramos System
Developer -- SPONSORED LINKS
YAHOO! GROUPS
LINKS
YAHOO! GROUPS
LINKS
YAHOO!
GROUPS LINKS
|

