8 Replies Latest reply on Mar 4, 2012 5:12 PM by subtlefly72

    added a movie clip to a loaded .swf and now it won't load get error #1056

    subtlefly72 Level 1

      was all working fine until I added a simple shape movieclip (rectangle that I want to have visible and invisible) now just by adding this MC I get this error..

       

      ReferenceError: Error #1056: Cannot create property largeframe on aavariable.

                at flash.display::Sprite/constructChildren()

                at flash.display::Sprite()

                at flash.display::MovieClip()

                at aavariable()[/Users/aaron/Documents/bizMob/aavariable.as:156]

      Your help is much appreciated

      sub

        • 1. Re: added a movie clip to a loaded .swf and now it won't load get error #1056
          Ned Murphy Adobe Community Professional & MVP

          Can you explain the elements (largeframe, aavariable) that are mentioned in the error, what you are attempting to do with them, and show the code that is relevant?

          • 2. Re: added a movie clip to a loaded .swf and now it won't load get error #1056
            subtlefly72 Level 1

            ok so aavariable is my document class and largeframe is a movieclip (which was just a rectangle that I wanted to be visible and invisible) which I added to a separate flash file that was being loaded into the first ( using your proploader code ned)  so after I added this extra mc into my external fla, all of a sudden my project wouldnt work anymore. 

            I dont really know what code to post...

            so I had an external fla called wb, was loading fine, I added an extra mc to it (largeframe) and then it wouldnt work anymore.

            Cheers

            sub

            • 3. Re: added a movie clip to a loaded .swf and now it won't load get error #1056
              Ned Murphy Adobe Community Professional & MVP

              I can only guess that you have not propery implemented the largeframe object.  Since you say it is part of a separate file, then it is likely sensible that it cannoit be a property of the document class object

              • 4. Re: added a movie clip to a loaded .swf and now it won't load get error #1056
                subtlefly72 Level 1

                Not properly implemented? Please tell me more.  I have many other mc's in this external file and am turning them visible on and off, why is largeframe suddenly doing something different?  My document class is only holding variables that I want to be "global" there are no global functions (just an empty one the same name as doc class).  I have removed offending mc and stopped this error, but I am disturbed and would like to know why it occurred to prevent tears in the future.

                cheers

                sub

                • 5. Re: added a movie clip to a loaded .swf and now it won't load get error #1056
                  Ned Murphy Adobe Community Professional & MVP

                  Your best bet at resolving this is to examine the error message and what it is telling you.  For instance, what is line 156 of your aavariable.as file.  If it involves the largeframe object, then that will be your starting point for trying to see how you might be looking for a property that aavariable does not have and cannot be created.

                  • 6. Re: added a movie clip to a loaded .swf and now it won't load get error #1056
                    subtlefly72 Level 1

                    Hi Ned,

                    Here is my doc class, the line 156 is where my public function is called (there is nothing in it)

                    Cheers

                    sub

                    package  {

                     

                    import flash.display.MovieClip;

                    import flash.display.Sprite;

                    import flash.net.URLRequest;

                     

                    public class aavariable extends MovieClip{

                    public var ans1:String = "";

                    public var ans2:String = "";

                    public var w1:String = "ABN";

                    public var def1:String = "An ABN (Australian Business Number), is a personal number for your business that makes it easier and quicker to deal with  government and other businesses.";      

                    public var w2:String="ACN";

                    public var def2:String="An ACN is an Australian Company Number, which is a special number that each company gets to identify it.  No two companies can have the same ACN";

                    public var w3:String="Action Plan";

                    public var def3:String="A business Action Plan will show What needs to be done and When it needs to be done by."

                    public var w4:String="Advertising";

                    public var def4:String="Advertising is producing information to let people know about your business and try to increase sales."

                    public var w5:String="Promotions";

                    public var def5:String="Promotions are where your business tries to increase the sales of a particular item through offering a good deal, advertising or a special display.";

                    public var w6:String="Benefit";

                    public var def6:String="A benefit is something good that you get.  One benefit of doing exercise is getting fit, another benefit is losing weight.";

                    public var w7:String="Business Mentor";

                    public var def7:String="A business mentor is a trusted guide. Someone who has experience and has been successful in business and can help and advise you.";

                    public var w8:String="Business Name";

                    public var def8:String="A Business name is the name a business uses to do its work.  It lets customers know who you are.";

                    public var w9:String="Business Registration";

                    public var def9:String="When you start a business you need to register your ABN, you may need to register your business name.";

                    public var w10:String="Cash flow";

                    public var def10:String="Cash Flow for a business is having enough cash saved to be able to pay your bills when they are due.";

                    public var w11:String="Characteristic";

                    public var def11:String="The characteristics of something are describing words about that thing.";

                    public var w12:String="Charges";

                    public var def12:String="A charge is something you have to pay, an expense.";

                    public var w13:String="Company";

                    public var def13:String="Is the same as a corporation. A company is a type of business that needs to be registered (either State or Federal) and has special legal status.  A company can put Pty. Ltd after it’s business name.";

                    public var w14:String="Competitor";

                    public var def14:String="A competitor is another business that is challenging you for customers.";

                    public var w15:String="Constitution";

                    public var def15:String="A constitution in business is a list of rules and principles that a company has agreed to follow.";

                    public var w16:String="Corporations Aboriginal and Torres Strait Islander Act";

                    public var def16:String="In the 1960s and 1970s, various reviews advised the Australian Government of the need for legislation to make it easier for Indigenous communities and organisations to form corporations. As a result, the ACA Act was passed, allowing Aboriginal and Torres Strait Islander groups to form corporations for any social or economic purpose.";

                    public var w17:String="Corporations Act";

                    public var def17:String="The Australian Securities and Investments Commission (ASIC) have laws that apply to corporations and these are found in the Corporations Act.";

                    public var w18:String="Cultural knowledge";

                    public var def18:String="Cultural knowledge is special information that is held by a particular cultural group, this could include technologies (e.g. special ways of using materials, making and using tools), stories, language and song, cultural rules, taboos, regulations and oral history.";

                    public var w19:String="Customer";

                    public var def19:String="The customer is someone who is buying something from a business.";

                    public var w20:String="Debt";

                    public var def20:String="Is something that you have to pay back. If you borrow 20 dollars you have a $20 debt.";

                    public var w21:String="Direct competitor";

                    public var def21:String="Is selling exactly the same thing as your business and competing for your customers.";

                    public var w22:String="Dividend";

                    public var def22:String="A dividend is money that is paid to shareholders regularly out of the company’s profits.";

                    public var w23:String="(Microsoft) Excel";

                    public var def23:String="Microsoft Excel is a computer program that lets you keep lists of numbers and also add up totals and do other sums to those numbers.";

                    public var w24:String="Fees";

                    public var def24:String="A fee is something that you have to pay, an expense.";

                    public var w25:String="Financial Management";

                    public var def25:String="Financial Management is the planning, organising, checking  and controlling of the income, expenses and Tax for a business.";

                    public var w26:String="Franchise";

                    public var def26:String="A franchise is a type of business you can buy. When you buy a franchise you set up the same type of business that has been successful somewhere else.";

                    public var w27:String="General ledger";

                    public var def27:String="A general ledger for a business is where all of the income and expenses for that business are kept in a document.";

                    public var w28:String="Goal";

                    public var def28:String="A goal is a target that you set yourself or your business.  Something that you want to achieve.";

                    public var w29:String="Growth opportunity";

                    public var def29:String="A growth opportunity is a chance for a business to get bigger.";

                    public var w30:String="GST";

                    public var def30:String="The Goods and Services Tax is paid when you buy things. Some items like food and medicine do not have the Goods and Services tax charged to them.";

                    public var w31:String="ICN";

                    public var def31:String="Indigenous Corporations Number is a special number given each indigenous corporation to identify it. No two indigenous corporations can have the same ICN.";

                    public var w32:String="Incorporate";

                    public var def32:String="Incorporate is what people do when they create a company or corporation.";

                    public var w33:String="Indirect competitor";

                    public var def33:String="An indirect competitor is selling a similar product or service to your business.  E.g. If you had a pizza shop, a fried chicken shop is an indirect competitor because it sells food and your customers might want to eat chicken instead of pizza.";

                    public var w34:String="Labour";

                    public var def34:String="Labour is all the work done by people (including you) in your business.";

                    public var w35:String="Legal name";

                    public var def35:String="Your Legal Name is the name that is on your Birth Certificate.";

                    public var w36:String="Legal protection";

                    public var def36:String="Legal protection means you are protected under the law from certain things happening.";

                    public var w37:String="Legal structure (business)";

                    public var def37:String="Legal structure is the type of business, sole trader, company, partnership.";

                    public var w38:String="Liability";

                    public var def38:String="A liability is something you are responsible for.";

                    public var w39:String="Licence";

                    public var def39:String="A license is proof that you have permission to do something.  For example, if you have a driving license you can drive a car.";

                    public var w40:String="Lodge";

                    public var def40:String="To lodge a form means to send it to where it has to go.";

                    public var w41:String="Manufacturing";

                    public var def41:String="A manufacturing business makes things.";

                    public var w42:String="Marketing budget";

                    public var def42:String="A marketing budget is the amount of money you have set aside for advertising and promotion for your business.";

                    public var w43:String="Minor criminal convictions";

                    public var def43:String="A minor criminal conviction is something small you have been in trouble over with the police.  Shop lifting is an example of a minor criminal conviction. ";

                    public var w44:String="MYOB";

                    public var def44:String="MYOB is financial management software for business.";

                    public var w45:String="Networks";

                    public var def45:String="A network for business is all of your contacts, customers and the people you know through doing business. ";

                    public var w46:String="Obligations";

                    public var def46:String="Obligations are things you are responsible for.";

                    public var w47:String="One off";

                    public var def47:String="A “one off” cost is something that only needs to be paid for once.";

                    public var w48:String="Operating budget";

                    public var def48:String="The Operating Budget is a record of the income and expenses of a business.";

                    public var w49:String="Overheads";

                    public var def49:String="Overheads are the expenses or costs in running your business, the things you have to pay for.";

                    public var w50:String="Partnership";

                    public var def50:String="A partnership is where two or more people own and run a business.";

                    public var w51:String="Permission";

                    public var def51:String="Permission is where you ask if you can do something.  If you ask and the person, group or council and they say yes, you have permission.";

                    public var w52:String="Permit";

                    public var def52:String="A permit is a special license or permission to do something";

                    public var w53:String="Personal assets";

                    public var def53:String="Personal assets are things that you own, like your car, house and furniture.";

                    public var w54:String="Personal protection";

                    public var def54:String="Being part of a company offers the shareholders some personal protection from legal and debt liabilities. This means that they have less responsibility than a Sole trader.";

                    public var w55:String="Photo identification";

                    public var def55:String="Photo Identification is a document that shows who you are and has your photo on it, like a Driver’s License, 18+ card or a passport.";

                    public var w56:String="Postal address";

                    public var def56:String="Your postal address is the address where you get your mail sent.  It might be different to the address where you live.";

                    public var w57:String="Pricing structure";

                    public var def57:String="Pricing structure is where prices for something can change depending on how much the customer orders.  The bigger the order the cheaper the price becomes.";

                    public var w58:String="Private";

                    public var def58:String="Private means not part of government.";

                    public var w59:String="Profitable";

                    public var def59:String="Profitable means that there is money left over after a business pays for all of its expenses out of the money it has made.";

                    public var w60:String="Promote";

                    public var def60:String="When you promote something you try to advertise or increase the amount of people who know about it.";

                    public var w61:String="Public liability insurance";

                    public var def61:String="Public Liability Insurance gives legal protection to the business owner against getting sued by a member of the public for things like injury or property damage. ";

                    public var w62:String="Quickbooks";

                    public var def62:String="Quickbooks is financial management software for business. ";

                    public var w63:String="Registered";

                    public var def63:String="Registered means that you have recorded your information on an official list.  You register your car to be able to drive it on the road.";

                    public var w64:String="Regulations";

                    public var def64:String="Regulations are rules or laws that control what you can and can’t do.";

                    public var w65:String="Retail";

                    public var def65:String="Retail is where things get sold in small amounts to customers.  Retail usually happens in a shop and the prices are higher.";

                    public var w66:String="Service";

                    public var def66:String="A Service business provides a service, like lawn mowing or accounting services.";

                    public var w67:String="Shareholders";

                    public var def67:String="Shareholders are people that own part of a company.";

                    public var w68:String="Sole trader";

                    public var def68:String="A sole trader is where one person owns and runs a business.";

                    public var w69:String="Start up budget";

                    public var def69:String="A Start Up Budget is the first Budget that gets done for a starting business and includes all of the costs involved in setting up the business.";

                    public var w70:String="strategy";

                    public var def70:String="A strategy in business is a plan of attack, or a plan of how to get something done.";

                    public var w71:String="system";

                    public var def71:String="A system is business is a set of detailed plans and rules for how to do something in your business.";

                    public var w72:String="Vision";

                    public var def72:String="Vision in business is being able to imagine and see something in the future.  To set up a new business you need to be able to see something new that wasn’t there before.";

                    public var w73:String="Wholesale";

                    public var def73:String="Wholesale is where things get sold in large amounts, usually for a cheaper price. The Wholesale price. A wholesaler is usually a big shed where goods are stored. Wholesale is not usually available to just anyone.";

                                        public function aavariable() {

                     

                                        }

                     

                     

                              }

                     

                    }

                    • 7. Re: added a movie clip to a loaded .swf and now it won't load get error #1056
                      Ned Murphy Adobe Community Professional & MVP

                      You haven't yet shown anything relevant to something called "largeframe" except for the error message so there isn't much I can offer..

                      • 8. Re: added a movie clip to a loaded .swf and now it won't load get error #1056
                        subtlefly72 Level 1

                        Ok here is all of the code from my external fla, it works fine until I put largeframe.visible=true/false in the code, sown near the end in the hide words and show words functions

                        Sorry about all the code...

                        Cheers,

                        sub

                         

                        hidedefwords();

                        Letterbuttonsappear();

                         

                         

                        //letter buttons

                        import flash.events.MouseEvent;

                         

                         

                        //letter buttons

                        function A_wordsgo(event:MouseEvent):void

                        {

                          hidedefwords();

                          showAwords();

                        }

                         

                         

                        A_button.addEventListener(MouseEvent.CLICK, A_wordsgo);

                        function B_wordsgo(event:MouseEvent):void

                        {

                        hidedefwords();

                          showBwords();

                        }

                         

                         

                        B_button.addEventListener(MouseEvent.CLICK, B_wordsgo);

                        function P_wordsgo(event:MouseEvent):void

                        {

                        hidedefwords();

                          showPwords();

                        }

                         

                         

                        P_button.addEventListener(MouseEvent.CLICK, P_wordsgo);

                        function C_wordsgo(event:MouseEvent):void

                        {

                          hidedefwords();

                           showCwords();

                        }

                         

                         

                        C_button.addEventListener(MouseEvent.CLICK, C_wordsgo);

                        function D_wordsgo(event:MouseEvent):void

                        {

                        hidedefwords();

                          showDwords();

                        }

                         

                         

                        D_button.addEventListener(MouseEvent.CLICK, D_wordsgo);

                         

                         

                        function E_wordsgo(event:MouseEvent):void

                        {

                           hidedefwords();

                            showEwords();

                        }

                         

                         

                        E_button.addEventListener(MouseEvent.CLICK, E_wordsgo);

                        function F_wordsgo(event:MouseEvent):void

                        {

                          hidedefwords();

                           showFwords();

                        }

                         

                         

                        F_button.addEventListener(MouseEvent.CLICK, F_wordsgo);

                        function G_wordsgo(event:MouseEvent):void

                        {

                          hidedefwords();

                           showGwords();

                        }

                         

                         

                        G_button.addEventListener(MouseEvent.CLICK, G_wordsgo);

                        function H_wordsgo(event:MouseEvent):void

                        {

                          hidedefwords();

                        }

                         

                         

                        H_button.addEventListener(MouseEvent.CLICK, H_wordsgo);

                        function I_wordsgo(event:MouseEvent):void

                        {

                           hidedefwords();

                            showIwords();

                        }

                         

                         

                        I_button.addEventListener(MouseEvent.CLICK, I_wordsgo);

                        function J_wordsgo(event:MouseEvent):void

                        {

                          hidedefwords();

                        }

                         

                         

                        J_button.addEventListener(MouseEvent.CLICK, J_wordsgo);

                        function K_wordsgo(event:MouseEvent):void

                        {

                          hidedefwords();

                        }

                         

                         

                        K_button.addEventListener(MouseEvent.CLICK, K_wordsgo);

                        function L_wordsgo(event:MouseEvent):void

                        {

                        hidedefwords();

                          showLwords();

                        }

                         

                         

                        L_button.addEventListener(MouseEvent.CLICK, L_wordsgo);

                        function M_wordsgo(event:MouseEvent):void

                        {

                          hidedefwords();

                           showMwords();

                        }

                         

                         

                        M_button.addEventListener(MouseEvent.CLICK, M_wordsgo);

                        function N_wordsgo(event:MouseEvent):void

                        {

                           hidedefwords();

                            showNwords();

                        }

                         

                         

                        N_button.addEventListener(MouseEvent.CLICK, N_wordsgo);

                        function O_wordsgo(event:MouseEvent):void

                        {

                           hidedefwords();

                            showOwords();

                        }

                         

                         

                        O_button.addEventListener(MouseEvent.CLICK, O_wordsgo);

                        function Q_wordsgo(event:MouseEvent):void

                        {

                           hidedefwords();

                            showQwords();

                        }

                         

                         

                        Q_button.addEventListener(MouseEvent.CLICK, Q_wordsgo);

                        function R_wordsgo(event:MouseEvent):void

                        {

                          hidedefwords();

                           showRwords();

                        }

                         

                         

                        R_button.addEventListener(MouseEvent.CLICK, R_wordsgo);

                        function S_wordsgo(event:MouseEvent):void

                        {

                          hidedefwords();

                           showSwords();

                        }

                         

                         

                        S_button.addEventListener(MouseEvent.CLICK, S_wordsgo);

                        function T_wordsgo(event:MouseEvent):void

                        {

                          hidedefwords();

                        }

                         

                         

                        T_button.addEventListener(MouseEvent.CLICK, T_wordsgo);

                        function U_wordsgo(event:MouseEvent):void

                        {

                          hidedefwords();

                        }

                         

                         

                        U_button.addEventListener(MouseEvent.CLICK, U_wordsgo);

                        function V_wordsgo(event:MouseEvent):void

                        {

                           hidedefwords();

                            showVwords();

                        }

                         

                         

                        V_button.addEventListener(MouseEvent.CLICK, V_wordsgo);

                        function W_wordsgo(event:MouseEvent):void

                        {

                           hidedefwords();

                            showWwords();

                        }

                         

                         

                        W_button.addEventListener(MouseEvent.CLICK, W_wordsgo);

                        function X_wordsgo(event:MouseEvent):void

                        {

                           hidedefwords();

                        }

                         

                         

                        X_button.addEventListener(MouseEvent.CLICK, X_wordsgo);

                        function Y_wordsgo(event:MouseEvent):void

                        {

                           hidedefwords();

                        }

                         

                         

                        Y_button.addEventListener(MouseEvent.CLICK, Y_wordsgo);

                        function Z_wordsgo(event:MouseEvent):void

                        {

                           hidedefwords();

                        }

                         

                         

                        Z_button.addEventListener(MouseEvent.CLICK, Z_wordsgo);

                        //functions

                        function showdefinitions(){

                                  hidedefwords();

                                  Letterbuttonsdisappear();

                                  wordbook.worddefinitions.play();

                          wordbook.wordDEF.text=ans1;

                          wordbook.Def_word_1.text=ans2;

                        }

                        function cleardefinition(){

                          wordbook.wordDEF.text="";

                          wordbook.Def_word_1.text="";

                        }

                         

                         

                        function defbackup(event:MouseEvent):void {

                         

                         

                           wordbook.worddefinitions.play();

                           Letterbuttonsappear();

                           cleardefinition();

                         

                        }

                        def_back.addEventListener(MouseEvent.CLICK, defbackup);

                         

                         

                        // word buttons

                         

                         

                        function abngo(event:MouseEvent):void

                        {

                         

                        ans1=def1;

                        ans2=w1;

                        showdefinitions();

                        }

                         

                         

                        abn_def.addEventListener(MouseEvent.CLICK, abngo);

                         

                         

                         

                         

                         

                         

                        acnbut.addEventListener(MouseEvent.CLICK, showacn);

                        function showacn(event:MouseEvent):void {

                         

                          ans1=def2;

                           ans2=w2;

                                  showdefinitions();

                        }

                        APBut.addEventListener(MouseEvent.CLICK, showAP);

                        function showAP(event:MouseEvent):void {

                         

                          ans1=def3;

                           ans2=w3;

                                  showdefinitions();

                        }

                        adv_but.addEventListener(MouseEvent.CLICK, showadv);

                        function showadv(event:MouseEvent):void {

                         

                          ans1=def4;

                           ans2=w4;

                                  showdefinitions();

                        }

                         

                         

                         

                         

                         

                         

                         

                         

                         

                         

                         

                         

                         

                         

                         

                         

                         

                         

                         

                         

                         

                         

                         

                         

                         

                         

                         

                         

                        benefit_def.addEventListener(MouseEvent.CLICK, showbenefit);

                        function showbenefit(event:MouseEvent):void {

                         

                         

                           ans1=def6;

                           ans2=w6;

                                  showdefinitions();

                         

                        }

                        businessM_def.addEventListener(MouseEvent.CLICK, showBM);

                        function showBM(event:MouseEvent):void {

                         

                         

                           ans1=def7;

                           ans2=w7;

                                  showdefinitions();

                         

                        }

                        businessN_def.addEventListener(MouseEvent.CLICK, showBN);

                        function showBN(event:MouseEvent):void {

                         

                         

                           ans1=def8;

                           ans2=w8;

                                  showdefinitions();

                         

                        }

                        businessR_def.addEventListener(MouseEvent.CLICK, showBR);

                        function showBR(event:MouseEvent):void {

                         

                         

                           ans1=def9;

                           ans2=w9;

                                  showdefinitions();

                         

                        }

                         

                         

                         

                         

                         

                         

                         

                         

                         

                         

                         

                         

                         

                         

                         

                         

                         

                         

                         

                         

                         

                         

                         

                         

                         

                         

                         

                         

                         

                         

                         

                         

                         

                         

                         

                         

                        cash_flow_def.addEventListener(MouseEvent.CLICK, showcashflow);

                        function showcashflow(event:MouseEvent):void {

                         

                         

                           ans1=def10;

                           ans2=w10;

                                  showdefinitions();

                         

                        }

                        characteristics_def.addEventListener(MouseEvent.CLICK, showcharacteristics);

                        function showcharacteristics(event:MouseEvent):void {

                         

                         

                           ans1=def11;

                           ans2=w11;

                                  showdefinitions();

                         

                        }

                        charges_def.addEventListener(MouseEvent.CLICK, showcharges);

                        function showcharges(event:MouseEvent):void {

                         

                         

                           ans1=def12;

                           ans2=w12;

                                  showdefinitions();

                         

                        }

                        company_def.addEventListener(MouseEvent.CLICK, showcompany);

                        function showcompany(event:MouseEvent):void {

                         

                         

                           ans1=def13;

                           ans2=w13;

                                  showdefinitions();

                         

                        }

                        competitor_def.addEventListener(MouseEvent.CLICK, showcompetitor);

                        function showcompetitor(event:MouseEvent):void {

                         

                         

                           ans1=def14;

                           ans2=w14;

                                  showdefinitions();

                         

                        }

                        constitution_def.addEventListener(MouseEvent.CLICK, showconstitution);

                        function showconstitution(event:MouseEvent):void {

                         

                         

                           ans1=def15;

                           ans2=w15;

                                  showdefinitions();

                         

                        }

                        ATSIcorpact_def.addEventListener(MouseEvent.CLICK, showATSIcorpact);

                        function showATSIcorpact(event:MouseEvent):void {

                         

                         

                           ans1=def16;

                           ans2=w16;

                                  showdefinitions();

                         

                        }

                        corpact_def.addEventListener(MouseEvent.CLICK, showcorpact);

                        function showcorpact(event:MouseEvent):void {

                         

                         

                           ans1=def17;

                           ans2=w17;

                                  showdefinitions();

                         

                        }

                        culknow_def.addEventListener(MouseEvent.CLICK, showculknow);

                        function showculknow(event:MouseEvent):void {

                         

                         

                           ans1=def18;

                           ans2=w18;

                                  showdefinitions();

                         

                        }

                        customer_def.addEventListener(MouseEvent.CLICK, showcustomer);

                        function showcustomer(event:MouseEvent):void {

                         

                         

                           ans1=def19;

                           ans2=w19;

                                  showdefinitions();

                         

                        }

                         

                         

                         

                         

                         

                         

                        debt_def.addEventListener(MouseEvent.CLICK, showdebt);

                        function showdebt(event:MouseEvent):void {

                         

                         

                           ans1=def20;

                           ans2=w20;

                                  showdefinitions();

                         

                        }

                        direct_comp_def.addEventListener(MouseEvent.CLICK, showdirect_comp);

                        function showdirect_comp(event:MouseEvent):void {

                         

                         

                           ans1=def21;

                           ans2=w21;

                                  showdefinitions();

                         

                        }

                        dividend_def.addEventListener(MouseEvent.CLICK, showdividend);

                        function showdividend(event:MouseEvent):void {

                         

                         

                           ans1=def22;

                           ans2=w22;

                                  showdefinitions();

                         

                        }

                         

                         

                         

                         

                         

                         

                        excel_def.addEventListener(MouseEvent.CLICK, showexcel);

                        function showexcel(event:MouseEvent):void {

                         

                         

                           ans1=def23;

                           ans2=w23;

                                  showdefinitions();

                         

                        }

                         

                         

                         

                         

                         

                         

                        fees_def.addEventListener(MouseEvent.CLICK, showfees);

                        function showfees(event:MouseEvent):void {

                         

                         

                           ans1=def24;

                           ans2=w24;

                                  showdefinitions();

                         

                        }

                        fin_man_def.addEventListener(MouseEvent.CLICK, showfin_man);

                        function showfin_man(event:MouseEvent):void {

                         

                         

                           ans1=def25;

                           ans2=w25;

                                  showdefinitions();

                         

                        }

                        franchise_def.addEventListener(MouseEvent.CLICK, showfranchise);

                        function showfranchise(event:MouseEvent):void {

                         

                         

                           ans1=def26;

                           ans2=w26;

                                  showdefinitions();

                         

                        }

                         

                         

                        gen_led_def.addEventListener(MouseEvent.CLICK, showgen_led);

                        function showgen_led(event:MouseEvent):void {

                         

                         

                           ans1=def27;

                           ans2=w27;

                                  showdefinitions();

                         

                        }

                        goal_def.addEventListener(MouseEvent.CLICK, showgoal);

                        function showgoal(event:MouseEvent):void {

                         

                         

                           ans1=def28;

                           ans2=w28;

                                  showdefinitions();

                         

                        }

                        gro_op_def.addEventListener(MouseEvent.CLICK, showgro_op);

                        function showgro_op(event:MouseEvent):void {

                         

                         

                           ans1=def29;

                           ans2=w29;

                                  showdefinitions();

                         

                        }

                        gst_def.addEventListener(MouseEvent.CLICK, showgst);

                        function showgst(event:MouseEvent):void {

                         

                         

                           ans1=def30;

                           ans2=w30;

                                  showdefinitions();

                         

                        }

                         

                         

                        icn_def.addEventListener(MouseEvent.CLICK, showicn);

                        function showicn(event:MouseEvent):void {

                         

                         

                           ans1=def31;

                           ans2=w31;

                                  showdefinitions();

                         

                        }

                        incorporate_def.addEventListener(MouseEvent.CLICK, showincorporate);

                        function showincorporate(event:MouseEvent):void {

                         

                         

                           ans1=def32;

                           ans2=w32;

                                  showdefinitions();

                         

                        }

                        in_com_def.addEventListener(MouseEvent.CLICK, showin_com);

                        function showin_com(event:MouseEvent):void {

                         

                         

                           ans1=def33;

                           ans2=w33;

                                  showdefinitions();

                         

                        }

                         

                         

                         

                         

                        labour_def.addEventListener(MouseEvent.CLICK, showlabour);

                        function showlabour(event:MouseEvent):void {

                         

                         

                           ans1=def34;

                           ans2=w34;

                                  showdefinitions();

                         

                        }

                        le_name_def.addEventListener(MouseEvent.CLICK, showle_name);

                        function showle_name(event:MouseEvent):void {

                         

                         

                           ans1=def35;

                           ans2=w35;

                                  showdefinitions();

                         

                        }

                        le_pro_def.addEventListener(MouseEvent.CLICK, showle_pro);

                        function showle_pro(event:MouseEvent):void {

                         

                         

                           ans1=def36;

                           ans2=w36;

                                  showdefinitions();

                         

                        }

                        le_str_def.addEventListener(MouseEvent.CLICK, showle_str);

                        function showle_str(event:MouseEvent):void {

                         

                         

                           ans1=def37;

                           ans2=w37;

                                  showdefinitions();

                         

                        }

                        liability_def.addEventListener(MouseEvent.CLICK, showliability);

                        function showliability(event:MouseEvent):void {

                         

                         

                           ans1=def38;

                           ans2=w38;

                                  showdefinitions();

                         

                        }

                        licence_def.addEventListener(MouseEvent.CLICK, showlicence);

                        function showlicence(event:MouseEvent):void {

                         

                         

                           ans1=def39;

                           ans2=w39;

                                  showdefinitions();

                         

                        }

                        lodge_def.addEventListener(MouseEvent.CLICK, showlodge);

                        function showlodge(event:MouseEvent):void {

                         

                         

                           ans1=def40;

                           ans2=w40;

                                  showdefinitions();

                         

                        }

                         

                         

                         

                         

                        manufacturing_def.addEventListener(MouseEvent.CLICK, showmanufacturing);

                        function showmanufacturing(event:MouseEvent):void {

                         

                         

                           ans1=def41;

                           ans2=w41;

                                  showdefinitions();

                         

                        }

                        mar_bud_def.addEventListener(MouseEvent.CLICK, showmar_bud);

                        function showmar_bud(event:MouseEvent):void {

                         

                         

                           ans1=def42;

                           ans2=w42;

                                  showdefinitions();

                         

                        }

                        min_cri_def.addEventListener(MouseEvent.CLICK, showmin_cri);

                        function showmin_cri(event:MouseEvent):void {

                         

                         

                           ans1=def43;

                           ans2=w43;

                                  showdefinitions();

                         

                        }

                        myob_def.addEventListener(MouseEvent.CLICK, showmyob);

                        function showmyob(event:MouseEvent):void {

                         

                         

                           ans1=def44;

                           ans2=w44;

                                  showdefinitions();

                         

                        }

                         

                         

                        networks_def.addEventListener(MouseEvent.CLICK, shownetworks);

                        function shownetworks(event:MouseEvent):void {

                         

                         

                           ans1=def45;

                           ans2=w45;

                                  showdefinitions();

                         

                        }

                         

                         

                        obligations_def.addEventListener(MouseEvent.CLICK, showobligations);

                        function showobligations(event:MouseEvent):void {

                         

                         

                           ans1=def46;

                           ans2=w46;

                                  showdefinitions();

                         

                        }

                        one_off_def.addEventListener(MouseEvent.CLICK, showone_off);

                        function showone_off(event:MouseEvent):void {

                         

                         

                           ans1=def47;

                           ans2=w47;

                                  showdefinitions();

                         

                        }

                        ope_bud_def.addEventListener(MouseEvent.CLICK, showope_bud);

                        function showope_bud(event:MouseEvent):void {

                         

                         

                           ans1=def48;

                           ans2=w48;

                                  showdefinitions();

                         

                        }

                        overheads_def.addEventListener(MouseEvent.CLICK, showoverheads);

                        function showoverheads(event:MouseEvent):void {

                         

                         

                           ans1=def49;

                           ans2=w49;

                                  showdefinitions();

                         

                        }

                         

                         

                        promotions_def.addEventListener(MouseEvent.CLICK, showpromotions);

                        function showpromotions(event:MouseEvent):void {

                         

                         

                           ans1=def5;

                           ans2=w5;

                                  showdefinitions();

                        //           var data5="d5";

                         

                        //this.addEventListener(TextEvent.LINK,linkF);  // this line can be used for all your textfields, if you have more than one.

                        //wordDEF.htmlText=parseTextF("advertising",def5,data5);

                         

                         

                         

                        //function parseTextF(keyword:String,txt:String,dataS:String):String {

                            // i think you'll need to consider 3 cases.  1. a keyword is at the start, 2. in the middle , 3. at the end of txt

                            // for example: if 2

                        //    var a:Array = txt.split(keyword);

                        //    return a[0]+"<a href='event:"+dataS+"'>"+keyword+"</a>"+a[1];

                            // and you may have more than 1 keyword in txt

                        //}

                         

                         

                        //function linkF(e:TextEvent):void{

                        //trace(e.text);

                        //ans1=def4;

                        //ans2=w4;

                        //wordDEF.text=ans1;

                        //Def_word_1.text=ans2;

                        //}

                        }

                         

                         

                         

                         

                         

                         

                        partnership_def.addEventListener(MouseEvent.CLICK, showpartnership);

                        function showpartnership(event:MouseEvent):void {

                         

                         

                           ans1=def50;

                           ans2=w50;

                                  showdefinitions();

                         

                        }

                        permission_def.addEventListener(MouseEvent.CLICK, showpermission);

                        function showpermission(event:MouseEvent):void {

                         

                         

                           ans1=def51;

                           ans2=w51;

                                  showdefinitions();

                         

                        }

                        permit_def.addEventListener(MouseEvent.CLICK, showpermit);

                        function showpermit(event:MouseEvent):void {

                         

                         

                           ans1=def52;

                           ans2=w52;

                                  showdefinitions();

                         

                        }

                        per_***_def.addEventListener(MouseEvent.CLICK, showper_***);

                        function showper_***(event:MouseEvent):void {

                         

                         

                           ans1=def53;

                           ans2=w53;

                                  showdefinitions();

                         

                        }

                        per_pro_def.addEventListener(MouseEvent.CLICK, showper_pro);

                        function showper_pro(event:MouseEvent):void {

                         

                         

                           ans1=def54;

                           ans2=w54;

                                  showdefinitions();

                         

                        }

                        pho_ide_def.addEventListener(MouseEvent.CLICK, showpho_ide);

                        function showpho_ide(event:MouseEvent):void {

                         

                         

                           ans1=def55;

                           ans2=w55;

                                  showdefinitions();

                         

                        }

                        pos_add_def.addEventListener(MouseEvent.CLICK, showpos_add);

                        function showpos_add(event:MouseEvent):void {

                         

                         

                           ans1=def56;

                           ans2=w56;

                                  showdefinitions();

                         

                        }

                        pri_str_def.addEventListener(MouseEvent.CLICK, showpri_str);

                        function showpri_str(event:MouseEvent):void {

                         

                         

                           ans1=def57;

                           ans2=w57;

                                  showdefinitions();

                         

                        }

                        private_def.addEventListener(MouseEvent.CLICK, showprivate);

                        function showprivate(event:MouseEvent):void {

                         

                         

                           ans1=def58;

                           ans2=w58;

                                  showdefinitions();

                         

                        }

                        profitable_def.addEventListener(MouseEvent.CLICK, showprofitable);

                        function showprofitable(event:MouseEvent):void {

                         

                         

                           ans1=def59;

                           ans2=w59;

                                  showdefinitions();

                         

                        }

                        promote_def.addEventListener(MouseEvent.CLICK, showpromote);

                        function showpromote(event:MouseEvent):void {

                         

                         

                           ans1=def60;

                           ans2=w60;

                                  showdefinitions();

                         

                        }

                        pub_lia_def.addEventListener(MouseEvent.CLICK, showpub_lia);

                        function showpub_lia(event:MouseEvent):void {

                         

                         

                           ans1=def61;

                           ans2=w61;

                                  showdefinitions();

                         

                        }

                         

                         

                        quickbooks_def.addEventListener(MouseEvent.CLICK, showquickbook);

                        function showquickbook(event:MouseEvent):void {

                         

                         

                           ans1=def62;

                           ans2=w62;

                                  showdefinitions();

                         

                        }

                         

                         

                        registered_def.addEventListener(MouseEvent.CLICK, showregistered);

                        function showregistered(event:MouseEvent):void {

                         

                         

                           ans1=def63;

                           ans2=w63;

                                  showdefinitions();

                         

                        }

                        regulations_def.addEventListener(MouseEvent.CLICK, showregulations);

                        function showregulations(event:MouseEvent):void {

                         

                         

                           ans1=def64;

                           ans2=w64;

                                  showdefinitions();

                         

                        }

                        retail_def.addEventListener(MouseEvent.CLICK, showretail);

                        function showretail(event:MouseEvent):void {

                         

                         

                           ans1=def65;

                           ans2=w65;

                                  showdefinitions();

                         

                        }

                         

                         

                        service_def.addEventListener(MouseEvent.CLICK, showservice);

                        function showservice(event:MouseEvent):void {

                         

                         

                           ans1=def66;

                           ans2=w66;

                                  showdefinitions();

                         

                        }

                        shareholder_def.addEventListener(MouseEvent.CLICK, showshareholder);

                        function showshareholder(event:MouseEvent):void {

                         

                         

                           ans1=def67;

                           ans2=w67;

                                  showdefinitions();

                         

                        }

                        sol_tra_def.addEventListener(MouseEvent.CLICK, showsol_tra);

                        function showsol_tra(event:MouseEvent):void {

                         

                         

                           ans1=def68;

                           ans2=w68;

                                  showdefinitions();

                         

                        }

                        sta_up_def.addEventListener(MouseEvent.CLICK, showsta_up);

                        function showsta_up(event:MouseEvent):void {

                         

                         

                           ans1=def69;

                           ans2=w69;

                                  showdefinitions();

                         

                        }

                        strategy_def.addEventListener(MouseEvent.CLICK, showstrategy);

                        function showstrategy(event:MouseEvent):void {

                         

                         

                           ans1=def70;

                           ans2=w70;

                                  showdefinitions();

                         

                        }

                        system_def.addEventListener(MouseEvent.CLICK, showsystem);

                        function showsystem(event:MouseEvent):void {

                         

                         

                           ans1=def71;

                           ans2=w71;

                                  showdefinitions();

                         

                        }

                         

                         

                        vision_def.addEventListener(MouseEvent.CLICK, showvision);

                        function showvision(event:MouseEvent):void {

                         

                         

                           ans1=def72;

                           ans2=w72;

                                  showdefinitions();

                         

                        }

                         

                         

                         

                         

                        wholesale_def.addEventListener(MouseEvent.CLICK, showwholesale);

                        function showwholesale(event:MouseEvent):void {

                         

                         

                           ans1=def73;

                           ans2=w73;

                                  showdefinitions();

                         

                        }

                         

                         

                        function hidedefwords(){

                                  largeframe.visible=false;

                        abn_def.visible=false;

                        acnbut.visible=false;

                        APBut.visible=false;

                        adv_but.visible=false;

                        benefit_def.visible=false;

                        businessM_def.visible=false;

                        businessN_def.visible=false;

                        businessR_def.visible=false;

                        cash_flow_def.visible=false;

                        characteristics_def.visible=false;

                        charges_def.visible=false;

                        company_def.visible=false;

                        competitor_def.visible=false;

                        constitution_def.visible=false;

                        ATSIcorpact_def.visible=false;

                        corpact_def.visible=false;

                        culknow_def.visible=false;

                        customer_def.visible=false;

                        debt_def.visible=false;

                        direct_comp_def.visible=false;

                        dividend_def.visible=false;

                        excel_def.visible=false;

                        fees_def.visible=false;

                        fin_man_def.visible=false;

                        franchise_def.visible=false;

                        gen_led_def.visible=false;

                        goal_def.visible=false;

                        gro_op_def.visible=false;

                        gst_def.visible=false;

                        icn_def.visible=false;

                        incorporate_def.visible=false;

                        in_com_def.visible=false;

                        labour_def.visible=false;

                        le_name_def.visible=false;

                        le_pro_def.visible=false;

                        le_str_def.visible=false;

                        liability_def.visible=false;

                        licence_def.visible=false;

                        lodge_def.visible=false;

                        manufacturing_def.visible=false;

                        mar_bud_def.visible=false;

                        min_cri_def.visible=false;

                        myob_def.visible=false;

                        networks_def.visible=false;

                        obligations_def.visible=false;

                        one_off_def.visible=false;

                        ope_bud_def.visible=false;

                        overheads_def.visible=false;

                        promotions_def.visible=false;

                        partnership_def.visible=false;

                        permission_def.visible=false;

                        permit_def.visible=false;

                        per_***_def.visible=false;

                        per_pro_def.visible=false;

                        pho_ide_def.visible=false;

                        pos_add_def.visible=false;

                        pri_str_def.visible=false;

                        private_def.visible=false;

                        profitable_def.visible=false;

                        promote_def.visible=false;

                        pub_lia_def.visible=false;

                        quickbooks_def.visible=false;

                        registered_def.visible=false;

                        regulations_def.visible=false;

                        retail_def.visible=false;

                        service_def.visible=false;

                        shareholder_def.visible=false;

                        sol_tra_def.visible=false;

                        sta_up_def.visible=false;

                        strategy_def.visible=false;

                        system_def.visible=false;

                        vision_def.visible=false;

                        wholesale_def.visible=false;

                         

                        }

                        function showAwords(){

                                  largeframe.visible=true;

                                  abn_def.visible=true;

                        acnbut.visible=true;

                        APBut.visible=true;

                        adv_but.visible=true;

                        }

                        function showBwords(){

                                  largeframe.visible=true;

                                  benefit_def.visible=true;

                        businessM_def.visible=true;

                        businessN_def.visible=true;

                        businessR_def.visible=true;

                        }

                        function showCwords(){

                                  largeframe.visible=true;

                                  cash_flow_def.visible=true;

                        characteristics_def.visible=true;

                        charges_def.visible=true;

                        company_def.visible=true;

                        competitor_def.visible=true;

                        constitution_def.visible=true;

                        ATSIcorpact_def.visible=true;

                        corpact_def.visible=true;

                        culknow_def.visible=true;

                        customer_def.visible=true;

                        }

                        function showDwords(){

                                  largeframe.visible=true;

                                  debt_def.visible=true;

                        direct_comp_def.visible=true;

                        dividend_def.visible=true;

                        }

                        function showEwords(){

                                  largeframe.visible=true;

                                  excel_def.visible=true;

                         

                         

                        }

                        function showFwords(){

                                  largeframe.visible=true;

                                  fees_def.visible=true;

                        fin_man_def.visible=true;

                        franchise_def.visible=true;

                        }

                        function showGwords(){

                                  largeframe.visible=true;

                        gen_led_def.visible=true;

                        goal_def.visible=true;

                        gro_op_def.visible=true;

                        gst_def.visible=true;

                        }

                        function showIwords(){

                                  largeframe.visible=true;

                        icn_def.visible=true;

                        incorporate_def.visible=true;

                        in_com_def.visible=true;

                        }

                        function showLwords(){

                                  largeframe.visible=true;

                        labour_def.visible=true;

                        le_name_def.visible=true;

                        le_pro_def.visible=true;

                        le_str_def.visible=true;

                        liability_def.visible=true;

                        licence_def.visible=true;

                        lodge_def.visible=true;

                        }

                        function showMwords(){

                                  largeframe.visible=true;

                        manufacturing_def.visible=true;

                        mar_bud_def.visible=true;

                        min_cri_def.visible=true;

                        myob_def.visible=true;

                        }

                        function showNwords(){

                                  largeframe.visible=true;

                        networks_def.visible=true;

                        }

                        function showOwords(){

                                  largeframe.visible=true;

                        obligations_def.visible=true;

                        one_off_def.visible=true;

                        ope_bud_def.visible=true;

                        overheads_def.visible=true;

                        }

                        function showPwords(){

                                  largeframe.visible=true;

                        promotions_def.visible=true;

                        partnership_def.visible=true;

                        permission_def.visible=true;

                        permit_def.visible=true;

                        per_***_def.visible=true;

                        per_pro_def.visible=true;

                        pho_ide_def.visible=true;

                        pos_add_def.visible=true;

                        pri_str_def.visible=true;

                        private_def.visible=true;

                        profitable_def.visible=true;

                        promote_def.visible=true;

                        pub_lia_def.visible=true;

                        }

                        function showQwords(){

                                  largeframe.visible=true;

                        quickbooks_def.visible=true;

                        }

                        function showRwords(){

                                  largeframe.visible=true;

                        registered_def.visible=true;

                        regulations_def.visible=true;

                        retail_def.visible=true;

                        }

                        function showSwords(){

                                  largeframe.visible=true;

                        service_def.visible=true;

                        shareholder_def.visible=true;

                        sol_tra_def.visible=true;

                        sta_up_def.visible=true;

                        strategy_def.visible=true;

                        system_def.visible=true;

                        }

                        function showVwords(){

                                  largeframe.visible=true;

                        vision_def.visible=true;

                        }

                        function showWwords(){

                                  largeframe.visible=true;

                        wholesale_def.visible=true;

                        }

                        function Letterbuttonsdisappear(){

                                  largeframe.visible=true;

                        A_button.visible=false;

                        B_button.visible=false;

                        C_button.visible=false;

                        D_button.visible=false;

                        E_button.visible=false;

                        F_button.visible=false;

                        G_button.visible=false;

                        H_button.visible=false;

                        I_button.visible=false;

                        J_button.visible=false;

                        K_button.visible=false;

                        L_button.visible=false;

                        M_button.visible=false;

                        N_button.visible=false;

                        O_button.visible=false;

                        P_button.visible=false;

                        Q_button.visible=false;

                        R_button.visible=false;

                        S_button.visible=false;

                        T_button.visible=false;

                        U_button.visible=false;

                        V_button.visible=false;

                        W_button.visible=false;

                        X_button.visible=false;

                        Y_button.visible=false;

                        Z_button.visible=false;

                        def_back.visible=true;

                        }

                        function Letterbuttonsappear(){

                                  largeframe.visible=false;

                        A_button.visible=true;

                        B_button.visible=true;

                        C_button.visible=true;

                        D_button.visible=true;

                        E_button.visible=true;

                        F_button.visible=true;

                        G_button.visible=true;

                        H_button.visible=true;

                        I_button.visible=true;

                        J_button.visible=true;

                        K_button.visible=true;

                        L_button.visible=true;

                        M_button.visible=true;

                        N_button.visible=true;

                        O_button.visible=true;

                        P_button.visible=true;

                        Q_button.visible=true;

                        R_button.visible=true;

                        S_button.visible=true;

                        T_button.visible=true;

                        U_button.visible=true;

                        V_button.visible=true;

                        W_button.visible=true;

                        X_button.visible=true;

                        Y_button.visible=true;

                        Z_button.visible=true;

                        def_back.visible=false;

                        }