Quote:
Originally Posted by m-land
...
Is there any reason why not to do it this way?
|
Not at all!
As I wrote earlier I'm a old-style Turbo-Pascal, Delphi Coder and IMHO fairly skilled reverse engineer. But I never ever really used (heavy) OOP.
I justed tried to define a part object, but with no luck, so the work-around was born.
As I don't like to retype code over and over again, we can shorten this by intruduce:
Code:
<code>
<function id="numkey" params="num">
var part=new Object;
part.key=num;
this.EINK.VIEW.DOCUMENT.AUTORUN_GROUP.AUTORUN.bubble("doDigit",part);
</function>
</code>
and
Code:
<button id="NUM_BUTTON1" active="true" text="1" left="715" top="75" width="30" height="60" visible="false">
<code>
<function id="click">
this.bubble("numkey",1);
</function>
</code>
</button>
BTW: you may have noticed the code to call "PRSPlus.js" ?
That is one thing which I really would like to have in the Sim.
And the best thing is, PRSPlus.js is executed and the CORE Scripts are loaded! (PRSPlus.log is created, CORE dumps fine)
But where the heck is this CORE Instance created, how can it be called from any other script?
I will attach a ZIP file with the actually used sources, if you will have a look?
(You will have to set the path-variables manually by now)
Any help / suggestions are highly appreciated.