|
|
running custom function from hotspot in customized pluginHi, I'm basing a custom plugin on the example plugin provided. I wrote a function this plugin swf, and I need to have this called from a hotspot click (set in the xml). I haven't done a lot yet in it beside change the buttons to my graphics, all works great, easy, and have it loading in as a plugin. I saw the quick examples on the site regarding calling a function writtin in a plugin. I'm a little confused as to which one is correct, I tried both. I tried this example and set the function to shift the x of a red square just to see if I have a 'pulse' here. nothing. I didn't change anything other than remove the text paramter and add my mc x move. function myfunction()
{ test_mc.x = 900; } I created a quick test red sq mc name set to test_mc krpano.set("events.myfu", myfunction); I set the onclick on the hotspot in the xml to this: onclick="call(events.myfu);" I get nothing. The function works, very simple mc move to test this. advanced in as2, getting fairly familiar in AS3 but flying a litte blind here wthout a bit more documentation. thanks for any imput in advance. |
New forum topicsRecent comments
Who's onlineThere are currently 0 users and 1 guest online.
|