Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Programming and Scripting
action property var gettin lost

DouweDabbe
Guest
Quote
2021-07-20 17:54:53

when I create an action script and
declare some variable thru the XML property block

then i notice quite often that some handfull of lines below this XML block
this variable (an int) inside the action function body (prototype.execute) becomes unknown.


I try calling the variable as

myVar = ... or
this.myVar = ...


What is going on here ???


smnmhmdy
Registered User
Quote
2021-07-20 18:13:20

Really strange, maybe there is a problem with the xml's formatting?


just_in_case
Moderator
Quote
2021-07-20 19:43:41

Can't say much without having a look into actual code, if you can provide a snippet or something to look into. Makesure you are not using some symbols or something else in your action properties name or in the action name.

Also are you using "this.myVar" inside a new function in your prototype to acces the action parameters ?


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Inte?national" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact