[Experimental Summary] Multivariable loading of TXT text in Flash.

xiaoxiao2021-03-06  43

The result of the attempt: Loading the same file to multiple texts seem to have failed. A possible explanation is that the content after the first carriage is ignored, and the test results support the above ideas. Support: After the text is empty, it is loaded, and there is no. Therefore, when the second Enter key appears after the first variable, the loading is impossible to succeed.

Here is some tests that started:

1LoadVarialBesNum1.1.1in TXT: DATAINTXT = THIS ITA.TXT, MAKE ITA LITTE LONGER, SEE What WILL HAPPEN?

Tips = by now, I think, you have known thing how does loadvariablesnum have its power :)

LoadvarialBesNum ("Data1.txt", 0); the level of the two text is the same. _LEVEL0.A_LEVEL0.B

1.2IN TXT: DATAINTXT = THIS ITATA.TXT, MAKE ITA LONGER, SEE What WILL HAPPEN?

Tips = by Now, I Think, you have known this does loadvariablesnum has it it we doue:) In FLALOADVARIALBESNUM ("DATA1.TXT", 0); text variable is TIPS.

As a result, there is of course nothing.

1.3 Think of the same time after changing the level: // This idea is denied, because LoadVarialBesNum is for the text text domain, and the change is actions for MC.

2.1 MC: MCTXT1 and MCTXT2 with two embedded Text Text fields The text domain variables of each embedded textXTXT and TIPS / / ASLOADVARIABLES ("Data1.txt", "MCTXT1"); loadvariables ("Data1.txt" , "MCTXT2");

The effect is of course failed.

3 I have to solve it with two texts. With two embedded Text text domains, MC: MCTXT1 and MCTXT2 respective embedded text fields are: DatAintxt and Tips // AsloadVariables ("Data1.txt", "MCTXT1"); loadvariables ("Data2.txt", "MCTXT2");

4 relative to the hierarchy path. Correct method 1: loadingvariables ("chdir / data1.txt", "mctxt1"); loadvariables ("chdir / data2.txt", "mctxt2");

Correct method 2: [Good is strange, in DW, this is written as the root path] Loadvariables ("/ chdir / data1.txt", "mctxt1"); loadvariables ("/ chdir / data2.txt", "MCTXT2");

Error 1: loadingvariables ("chdir / data1.txt", "mctxt1");

Error Opening URL "File: /// D | /MYAS2/Loader/chdir/ata1.txt"

Error 2: Loadvariables ("/ chdir / data1.txt", "mctxt1");

Error Opening URL "File: /// D | /MYAS2/Loader//HDIR/Data1.txt" error 3: Loadvariables ("/ chdir / data1.txt", "mctxt1");

Error Opening URL "File: /// D | /MYAS2/Loader//HDIR/ata1.txt"

5 Because Flash has strengthened security, although it is very good to run on your machine, you can use it directly to read data directly, ~~~~

6 Today is finally successful: I have paid a little attention to some content of the post-change change, I can clearly see the value = ... & value = ... form. So, I want to try to see if there is any use, the result, huh, huh ~~~ Success. 6.1Trial1:? Content DataInTxt loadVariablesNum text = This it the Data.txt, make it a litte longer, see what will happen & Tips = By Now, I think, you have known that How does loadVariablesNum have its power :)

// Text content is also available, as long as there is & the number, you can correctly divide multiple variables. DataNTxt = this it the data.txt, make it it is little, see what willhppen?

& Tips = by now, I think, you have knower That How does loadvariablesnum has its power :)

As long as one sentence in the main scene: LoadvariableSnum ("Data1.txt", 0);

6.2Trial2: Settings 2.1Loadvariables: loadingvariables ("Data1.txt", "MCTXT1"); loadvariables ("Data1.txt", "MCTXT2");

I feel that friends from the web page should be more familiar with this & ~~~

7 Correct 5. Really put it online, or you can read data (put it in the home page), but some unstable ~~~ Summary now put the loading conditions on the web page. A can only load it by single text.

B The first variable will be ignored, so you can write the variable text into the following form: false = Hehe & DATAINTXT = THIS ITA.TXT, MAKE ITA LITTE LONGER, SEE What WILL HAPPEN? & TIPS = by now, I think, You have Known That How does loadvariablesnum have its power :) It is ok to cooperate with 6.1 and 6.2.

C After the above two conditions, you can still read data without having to be on the home page index.

8 child data catalog: 8.1Trial1Loadvariables ("FlashData / Data1.txt", "MCTXT1"); LoadVariables ("FlashData / Data1.txt", "MCTXT2");

8.2Trial2LoadVariableSnum ("FlashData / Data1.txt", 0);

The result is successful ~~~

The following two practice sites demonstrate the above effects (05/2/25 valid): http://emilmatthew.91x.nethttp: //emilmatthew.51.net There is an unexpected gain, through Loadvariables, I actually put one Other stuff on the free space webpage, can be used for Hack, huh, huh ~~~ by now, I think, you have known this how does loading: