flash random text in question transferred to the external

Users questions:An external text file cy.txt, there are a lot of lines, each line is a proverb, and now want to swf, called for Goal 1: Click the button A, were randomly transferred to a proverb. Require the redeployment of idioms are not repeated. Require the target 2: Click the button B, were randomly transferred to four idioms. Requires that each transferInto the idiom of the four non-repetition, and all transferred to the idiom is not repeated. If the brackets are difficult to achieve, then please do not consider this part of the heroes.
Experts answer: In fact, if you are separated from the idiom, an idiom into a single text file, and then named according to the law would be much easier to (cy1.txt, cy2.txt ...) I'm sorry, I am not expert and can only complete your first objective, but can not guarantee non-repetition, I am also an undergraduate, on this point capability, and I beg your pardon! ** each text-ri format, respectively: cy1 =**** cy2 =####** the frame on theWrite: Number: a = Math.floor (Math.random () * Total number of idioms); String: name = "cy" adda; String: n = nameadd ". Txt"; ** Create a dynamic text box (DynamicTextfeild), the variable name: cy_display ** write on the button: on (press) (loadVariables (n ,""); cy_display = String ( "cy" adda);) INot tested, so I do not know if I have grammatical errors (you master, if found, be sure to point out ah!). If you find problems please comment and I will regularly read. Annex: holmes.swf
  • This information provided by the users.Thanks!