Jump to content


Photo

onFwActiveSelectionChange is not firing

onFwActiveSelectionChange

  • Please log in to reply
1 reply to this topic

#1 awguo

awguo

    Fireworks Sparkle

  • Members
  • Pip
  • 1 posts

Posted 31 July 2012 - 10:27 PM

Hey guys,

I am new to extending FW though I am really loving it. Today I met a very annoying problem that the "onFwActiveSelectionchange" is not firing. I don't know why. All the other events like "onFwActiveToolChange" are firing correctly....

-- CODE --

ExternalInterface.addCallback("IsFwCallbackInstalled",IsFwCallbackInstalled);
ExternalInterface.addCallback("onFwActiveSelectionchange",onFwActiveSelectionchange);

function IsFwCallbackInstalled(funcName:String):Boolean
{
debug_txt.text = funcName;
switch(funcName)
{
case "setfwActiveToolForSWFs":
return true;
case "onFwActiveToolChange":
return true;
case "onFwActiveSelectionchange":
return true;
}
return false;
}

function onFwActiveSelectionchange(event){
debug_txt.text = "GO!" + Math.random();
}

#2 jdunning

jdunning

    Fireworks Ninja

  • Members
  • PipPipPipPipPip
  • 173 posts

Posted 06 February 2013 - 04:55 PM

This is obviously a very belated response, but it looks like your code isn't working because the C in the name should be capitalized.  You have "onFwActiveSelectionchange" but it should be "onFwActiveSelectionChange".