Copy link to clipboard
Copied
Is it possible for a user to edit text live once exported? I am looking to create a program where the user can redefine risks presented to them by double-clicking the text and then writing in their own risks?
Thanks
James
for canvas use a textinput component
for as3 use the component or an input textfield.
Copy link to clipboard
Copied
for canvas use a textinput component
for as3 use the component or an input textfield.
Copy link to clipboard
Copied
I have a text box, but i cannot seem to choose 'text input' in the properties panel? it is not highlighted?
Copy link to clipboard
Copied
If you are working with a Canvas project then you can't set a textfield to Input. You need to use the TextInput component from the Components Window. Just drag an instance onto the stage and format it as you need.
Copy link to clipboard
Copied
click help>components and drag the textinput component to the stage where you want your 'text input'
Copy link to clipboard
Copied
If your text input component is named 'nametext' as the animate instance name, retrieve the value with one of the following:
myVal = $('#nametext').val();
myVal = document.getElementById('nametext').value;
myVal = this.nametext._element._element[0].value;
myVal = document.getElementsByTagName("input")[0].value;
To see a list of available properties, use console.log(this.nametext); In a browser such as Internet Explorer 11, open the developer tools by pressing F12 and check the console for the log. Click on the + to see properties.