Feche1320 Posted March 11, 2012 Share Posted March 11, 2012 How can I make a 'global' set and getElementData? I thought about creating an object, but then how could I get that object on another resource? Link to comment
Castillo Posted March 11, 2012 Share Posted March 11, 2012 setElementData ( root, "myData", "Hello World!" ) getElementData ( root, "myData" ) You can also set the data to the console. setElementData( getElementByIndex ( "console", 0 ), "myData", "Hello World!" ) getElementData( getElementByIndex ( "console", 0 ), "myData" ) Link to comment
Feche1320 Posted March 11, 2012 Author Share Posted March 11, 2012 OH lol, that will work? Link to comment
Feche1320 Posted March 11, 2012 Author Share Posted March 11, 2012 Meh I'll add it to root, it's easier >.< Thanks! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now