question

Maryan M avatar image
0 Likes"
Maryan M asked Ben Wilson commented

Triggers Creation & Trigger's property

I created OnReset/OnDraw/OnMessage executable treenode by FlexScript. And I used eventlisten function connect these node with event triggers. I wish I could complete the same work using DLLMaker. However eventlisten function is missing in DLLMaker.So I used nodefunctionlisten instead, but it didn't work. Can anybody help me? In addition, I found when eventlisten worked, there would create some new nodes in the tree, onresettrigger for instance. And it has a subnode with simple data.
FlexSim 20.2.2
triggers creation
· 4
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Maryan M avatar image Maryan M commented ·
and I didn't find how to attach a pic?
0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Maryan M commented ·
You say you created them in the tree - can you share where exactly?

If you don't see an icon to attach a picture then just copy and paste into your reply - it should handle that and allow you to resize etc.. Sometimes the icons are hidden if the page is too narrow.

0 Likes 0 ·
Wang Yang avatar image Wang Yang Maryan M commented ·

Our technical team from China will call you right away. Please answer the phone and describe your problem

0 Likes 0 ·
Ben Wilson avatar image Ben Wilson ♦♦ commented ·

Hi @Maryan M, was jason.lightfoot's answer helpful? If so, please click the red "Accept" button on their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot edited

For those searching Answers for OnReset, OnDraw and OnMessage and finding this page, you can just place flexscript nodes in the behaviours part of an objects tree in order to override the behaviour of the class. If you want to retain the class behaviour in addition to your code, you should include the line "inheritcode();" in your flexscript.

· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Steven Hamoen avatar image Steven Hamoen commented ·

@jason.lightfoot Shouldn't that read "inheritcode()"?

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Steven Hamoen commented ·

Hehe - yes, thanks!

0 Likes 0 ·