Swiffy: Convert from Flash to HTML5: Input text is not supported - html

We are using the swiffy converter to convert our math flash programs to HTML5.
Problem is, a lot of our programs have input fields that are not converted by Swiffy. The error message is:
Input text is not supported. (2 occurrences)
Now we try to find a workaround to setup things in Flash so that the conversion works including the input fields.
Has anyone found a solution?
Thanks in advance.

One thing you might do is to convert the input text fields to dynamic text fields, then create buttons that fill out these text fields. I tried it and it worked. Considering it is a math app, you might want to create a keypad that sends the numbers to these text fields and a clear button to allow users to delete incorrect entries. It might seem like a lot of work for a simple event, but this is only until Swiffy converts input text
Best wishes
//assuming you have a dynamic text field on stage named 'inputIN_txt' and a button named 'inputBtn'
inputBtn.addEventListener(MouseEvent.CLICK, onInputData)
function onInputData(e:Event): void{
inputIN_txt.text="Hello, Swiffy"
}

Related

Save form control values to use later

I am working on a large form using Angular 5 and Material 2, and to test it, I am using Chrome. It has more than a hundred of controls, some of them are input of type text, and others are select.
So I want an easy way to save the selected values of all of the controls to use later. It's a waste of time filling manually the controls several times.
I found some Chrome extensions to do it, but none of them save the values of the select controls.
If you are already using Angular why do you need a chrome extension? just create a dummy object and init it when you getting the form... That way you already have all the fields automatically filled with your dummy values. It is the most easy way.

HTML input field dynamic "placeholder"

I have a rather stupid question, but I would like some input on the issue.
On some websites you have a date input field, which has a placeholder in the form of mm/dd/yyyy.
However, when you start typing, the characters are getting replaced one by one, like 02/3d/yyyy.
So its not a placeholder but some sort of dynamic input already. My question is, how is this generated? Is this a javascript library (jquery, angularjs etc.) or any other feature im not aware of?
Thanks for your help, I tried finding appropriate code online but nothing did the function described above.
I mean of course you could program in JS an event listener on keypress, and depending on the input you adjust the field accordingly, but I wonder if there is an easier way to do so!
You can create the mask by following this guide: https://github.com/RobinHerbots/Inputmask

Scroll Multiple Text Fields using Action Script 3.0

I am trying to build a Flash application which would display data from a external source and scroll it from left to right.
I am new to action script world, i have found an example in which text is scrolling but here there is only one text field. I would like to have multiple text field depending upon my data loaded from external source. How can i achieve it. Do i need to create 10 text fields if my external data returns 10 records.
Any advice on this would be appreciated. Thanks
It depends on your task, if you need 10 lines of text information that moves independently, so you will need 10 text fields. Or you could scroll one text field and change it's content with a new information (next record). For scrolling of the text field you will need Timer or Enter frame handler or Tweening engine, as for changing text you will need some logic, like if text goes offscreen - show another text data.
For me, your question looks very similar to this one, check it, maybe it will be helpful for you.

Flash input text field only accepts characters already used somewhere on the stage. What's happening?

On the stage I have an input field (classic text, input text) with **no filters** and **no restrictions** and yet, when I try to type something in it, I can only use characters that are already on the stage somwhere else.
For example, I have a few other labels on the stage with the strings '125' and 'HB'. In my input field I can now type any string containing those characters, like 'H52B' or '121212', but I just can't use any other characters! If I press '4' or 'K' on my keyboard, nothing happens!
I am sure there is nothing happening to this input field in actionscript and there are no filters on it. This problem may have something to do with the fact that I got this fla from a designer and upon opening it, I got a message saying something about fonts not being on my machine and converting to system defaults. Could it have something to do with that?
I'm using flash cs5.5 and actionscript 3.
Check if the designer embedded only some characters of your font and embed all the remaining characters you eventually need.

Populate a registration form with Tab Delimited Data

I have a Tab Delimited Data lets say Name Address DOB EmailID copied to clipboard, now I need to paste this data on some online html forms which contains these fields,but whenever I am trying to do so its pasting all the contents in selected text box, where as if I try the same in excel its recognizing the tabs and placing each filed properly in a different cell.
Do I need to format my input data some other way, please let me know.
It's a little bit difficult to tell when someone pastes data into a field. I believe that only IE and Safari support the onpaste event [source]. For everyone else, you could just check the keypress event.
Anyway, if you can find an appropriate event to latch onto, just check the value of the element, and if it contains tab characters, split the value on that and populate the remaining fields.
document.getElementById('first_field').onpaste = function() {
var cells = this.value.split('\t');
if (cells.length > 1) {
// loop through 'cells' and put the value into the other fields
}
};
I'm not sure this is possible without a bit of programming (creating html forms to post), I wouldn't normally recommend it but if you are not familiar with any programming constructs you might want to check out autohotkey, you might be able to get it to mimic your copy and paste action. If you want a real solution, just holler.