Please help: AS3 loading ChildNodes

Good so I'll try to get my information from XML into movieclips called "button_1' - 'button_7' I have my XML ChildNodes showing in my window out when I export my swf.

I used the xml class to load in an xml instance, so how can I assign the data to my clips.

I had nothing else to extreme difficulties to get that much and I'm super stuck what to do next

Here is my code so far:

Stop();

import flash.display. *;
import flash.events. *;
import flash.net.URLRequest;
to import flash.net.URLVariables;
var numOfImages = 90;
var imgNum = 0;

ImageLoad ("aboutus.jpg", holderClip, 0, 0);

function ImageLoad (u: String, target, Ypos, Xpos)}
preLoader.alpha = 100;
var targetClip = target;
var positionY = 175;
var positionX = 112;
var _loader:Loader = new Loader();
var request: URLRequest = new URLRequest (u);
_loader. Load (request);
targetClip.addChild (_loader);
targetClip.y = positionY;
targetClip.x = positionX;
_loader.contentLoaderInfo.addEventListener (ProgressEvent.PROGRESS, loadProgress);
_loader.contentLoaderInfo.addEventListener (Event.COMPLETE, completeHandler);
}

function loadProgress(event:ProgressEvent):void {}
var percentLoaded:Number = event.bytesLoaded/event.bytesTotal;
percentLoaded = Math.round(percentLoaded * 100);
preLoader.gotoAndPlay (percentLoaded);
trace ("loading:" + percentLoaded + "%");
}

function completeHandler (event): void {}
trace ("Done");
preLoader.alpha = 0;
}

var myXML:XML;

var myLoader:URLLoader = new URLLoader();
myLoader.load (new URLRequest ("links.xml"));
myLoader.addEventListener (Event.COMPLETE, processXML);
function processXML(e:Event):void {}
myXML = new XML (e.target.data);
trace (myXML.*);
}

Any help I appreciate completely.

See you soon-

Graeme

That's how I access to information in xml:

http://www.vbforums.com/showthread.php?t=574389

Tags: Adobe Animate

Similar Questions

  • Please help: classes load very slow and takes almost 100% CPU and 1.08 GB memory

    The total number of pages is 129. We used the Captivate 5.5. We have several Web page widgets and a few videos. I tried out the web widgets and videos, however, the course still loads very slow.

    I would appreciate if someone can give somve suggestion.

    Thank you very much.

    What is the file size of the swf file?

    What is the percentage that you use for the preloader?  Edit > Preferences > project > start and end

    Slow loading happens on other computers?

  • Please help me understand the production and loading of variable classes

    Hi guys,.

    I know I'm stupid, but I can't get this!  AS3 says that you need to load variables in a class?  Please please give me a simple example

    my variables look like this... (the whole point of playing with variables was that if I had to make a change I could go to one place and change...

    but now I realse that I can't access or call them outside the clip, they are in:)

    Please help me!

    years1 var ="";

    years2 var ="";

    var w1 = 'ABN ';

    DEF1 var = "Year ABN (Australian Business Number), is a personal number for your business that makes it easier and faster to deal with the Government and other companies.";

    W2 var = 'ACN ';

    DEF2 var = 'year ACN is an Australian company number, which is a special number that each company allows you to identify it.  Neither of the two companies can have the same ACN. "

    var w3 = 'Action Plan';

    var def3 = "a business Plan of Action will show what to do and when it must be done."

    W4 var = "advertising";

    def4 var = "product advertising information to let people know about your business and try to increase sales."

    W5 Var = "Promotions".

    var def5 = "Promotions are where your company is looking to increase sales of a particular item by offering a good deal, advertising or a special screen. ';

    W6 var = 'advantage '.

    def6 var = 'advantage is that you get something good.  One of the benefits of exercise are getting fit, another is losing weight. « ;

    W7 var = 'Business Mentor';

    var def7 = "a business mentor is a trusted guide. You and someone who has the experience and succeeded in business and can help advise. « ;

    W8 var = 'name ';

    var def8 = "a business name is the name of a company uses to do its job."  It allows clients to know who you are. « ;

    W9 var = "business registration";

    var def9 = "when you start a business, you must save your ABN, you may need to register your business name.";

    W10 var = ' Cash flow ';

    var def10 = "Cash flow for a business is to have enough money saved to be able to pay your bills as they become due.";

    W11 var = "feature";

    def11 var = 'something features describing words on this thing.";

    W12 var = 'charges ';

    var def12 = 'an accusation is something that you have to pay, an expenditure.';

    w13 var = "company";

    def13 var = 'is identical to a company. A company is a type of business that must be registered (State or federal) and has a special legal status.  A company can put Pty Ltd, after it is the name of the company. « ;

    W14 var = 'competitor ';

    var def14 = 'a competitor is another company that is difficult for customers.';

    W15 var = 'Constitution '.

    var def15 = 'a business incorporation is a list of rules and principles that a company is committed to follow.';

    w16 var = "Companies Aboriginal and Torres Strait Islander Act";

    var def16 = "in the 1960 and 1970s, various reviews advised the Australian Government of the need for legislation to make it easier for Aboriginal communities and organizations in the forms of corporations. Accordingly, the ACA Act was adopted, allowing groups Aboriginal and Islanders of Torres Strait to companies form for economic or social purposes. « ;

    W17 var = "Corporations Act";

    var def17 = "The Australian Securities and Investments Commission (ASIC) have laws that apply to companies and these are present in the companies act.";

    w18 var = "cultural knowledge";

    var def18 = ' cultural knowledge are special information held by a particular cultural group, this could include technologies (e.g. special ways of using materials, manufacturing and using tools), stories, language and song, cultural, taboos, rules, regulation and oral history. "

    w19 var = "customer";

    var def19 = 'the client is a person who buys something out of a business.';

    w20 var = "debt."

    var def20 = "is something that you must repay. If you borrow $ 20 you have a debt of $20. « ;

    W21 var = "Direct competitor";

    var def21 = "is exactly the same as your business and competition for customers.";

    W22 var = 'dividend '.

    var def22 = "a dividend is the money that is paid to the shareholders on a regular basis on the profits of the company.";

    var w23 = "(Microsoft) Excel"; "

    var def23 = "Microsoft Excel is software that allows you to keep lists of total numbers add up and make other sums to those numbers."

    W24 var = 'Taxes ';

    var def24 = 'a tax is something that you must pay an expense.';

    w25 var = 'financial management ';

    var def25 = "Management financial is planning, organization, audit and control expenditures, income, and the tax for a company.";

    w26 var = 'Franchise ';

    var def26 = "a franchise is a business type, you can buy. When you buy a franchise you implemented the same type of company that successfully somewhere else. « ;

    w27 var = "ledger";

    var def27 = 'accounting for a company is where all revenue and expenditure for businesses that are stored in a document.';

    w28 var = "Goal."

    var def28 = "the goal is a target that you set yourself or your business.  Something you want to achieve. « ;

    w29 var = "opportunity for growth."

    var def29 = "a growth opportunity is a chance for the company grow."

    W30 var = 'GST ';

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

    w31 var = "CII";

    var def31 = "number of indigenous firms is a special number given to each of the Aboriginal companies to identify it. No two Aboriginal societies can have same ICN. « ;

    W32 var = "embed."

    var def32 = 'Incorporate is what people do when they create a partnership or a corporation.';

    w33 var = 'indirect competitor. "

    var def33 = "an indirect competitor sells a product or service to your similar business.  For example if you had a pizzeria, a fried chicken shop is an indirect competitor because it sells food and your customers might want to eat chicken instead of pizza. « ;

    w34 var = work «;»

    var def34 = "Labour is all the work performed by people (including you) in your company.";

    W35 var = 'name ';

    var def35 = "your legal name is the name that appears on your birth certificate.";

    w36 var = "Legal Protection";

    var def36 = "legal protection means that you are protected under the law of certain things happening.";

    w37 var = 'legal Structure (firm);

    var def37 = "legal structure is the type of business, unique partnership negotiating, company."

    w38 var = "responsibility."

    var def38 = 'a responsibility is something that you are responsible.';

    w39 var = 'license ';

    var def39 = "a licence is proof that you are allowed to do something.  For example, if you have a license, you can drive a car. « ;

    w40 var = "Lodge."

    def40 var = ' to file a form means to send it to where it needs to go. "

    w41 var = 'manufacturing ';

    var def41 = "a manufacturing company makes things.";

    w42 var = "Marketing Budget";

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

    W43 var = "minor criminal convictions."

    var def43 = "a minor conviction is something small, you were in trouble with the police during.  Shop lifting is a minor example of a criminal conviction. ";

    W44 var = "MYOB";

    var def44 = "MYOB is software financial management for businesses.";

    W45 var = 'networks '.

    var def45 = "a network for businesses is all your contacts, customers and the people you know through trade."; "

    W46 var = "Obligations";

    var def46 = ' Obligations are things you're responsible. "

    W47 var off = "One";

    def47 var = "' one off ' cost is something that has to be paid for once."

    W48 var = "operating Budget";

    var def48 = 'The operating Budget is a record of receipts and expenses of a business.';

    w49 var = 'overhead ';

    def49 var = 'overhead is expenditures or costs in the management of your business, things that you pay for.";

    W50 var = 'partnership '.

    var def50 = "a partnership is where two or more people own and run a company.";

    w51 var = "authorization."

    var def51 = "Permission is when you ask if you can do something.  If you ask and the person, group or Council and they say yes, you have permission. « ;

    w52 var = 'license ';

    var def52 = "a license is a special permit or permission to do something";

    w53 var = "personal property."

    var def53 = ' personal assets are the things you own, like your car, home and furniture. "

    w54 var = "Personal Protection";

    var def54 = "being part of a company offer shareholders some personal protection against legal liability and debt." This means that they have fewer responsibilities than a single trader. « ;

    W55 var = "Photo ID";

    var def55 = "Photo ID is a document that tells who you are and has your picture on it, like driving a permit, card 18 + or a passport."

    W56 var = "" Postal address ";"

    var def56 = "your mailing address is the address where you receive your sent mail.  It may be different from the address where you live. « ;

    w57 var = "Pricing structure."

    var def57 = "price structure, that's where something, prices may change depending on how much the customer order.  More order the cheaper the price becomes. « ;

    w58 var = 'private ';

    var def58 = "private means is no not part of the Government."

    w59 var = 'profitable ';

    var def59 = ' profitable means that there is money remaining after a company pays for all of his expenses out of the money, he did. "

    W60 var = "promote."

    var def60 = "when you promote something you try to advertise or increase the amount of people who know about it."

    L61 var = "liability insurance";

    var def61 = ' public liability insurance provides protection to the owner of the company against get sued by a member of the public for things like injuries or material damage. ";"

    w62 var = 'Quickbooks ';

    var def62 = "Quickbooks is software financial management for businesses."; "

    w63 var = 'Registered ';

    var def63 = "recommended means that you have registered your information on an official list.»  You register your car in order to drive it on the road. « ;

    W64 var = 'implementing regulation ';

    var def64 = 'Regulations are the rules or laws that control what you can and can't do.';

    W65 var = "Retail"

    var def65 = "detail is where things sells in small quantities to customers."  Detail that usually happens in a store and prices are higher. « ;

    w66 var = 'Service '.

    var def66 = "Service Company A provides a service, like mowing the lawn or accounting services.";

    w67 var = "shareholders";

    var def67 = "Shareholders are people own part of the company.";

    w68 var = "Sole trader";

    var def68 = 'a single trader is where a person owns and operates a business.';

    w69 var = 'DΘmarrer budget;

    def69 var = ' A start up Budget is the first Budget which is for a company to start and includes all costs involved in the creation of the company. "

    w70 var = 'strategy '.

    var def70 = 'a business strategy is a plan of attack, or a plan of how to do something.';

    w71 var = 'system ';

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

    w72 var = 'Vision '.

    var def72 = 'Vision in business is to be able to imagine and see something in the future.  To set up a new business, you learn something new that did not previously exist. « ;

    w73 var = "at large";

    var def73 = ' basically, it's where things sells in large quantities, usually for a lower price. " The wholesale price. A wholesaler is usually a large hangar where the goods are stored. Selling wholesale is not generally available to anyone. « ;

    No, this isn't a reason, you should use a class file.

    Anyway, your document class variables are defined on the main timeline in order to reference them from a timeline, you can use:

    . W36 of MovieClip (root);  for example (but it is really not desirable to have a coding in more of a chronology)

  • AS3 click Tag - please help!

    I read on questions posted on click on tags and can not understand my problem.

    I have a dynamically loaded button 'myViewPackagesBtn '. The publication that I create this banner ads says that I need to create a "clickTAG" and do not have a hard-coded url and they ned to be able to track clicks.

    They said to use this code:

    on (release) {}

    getURL (clickTag, "_blank");

    }

    My AS3 code is as follows:

    myViewPackagesBtn.addEventListener (MouseEvent.MOUSE_UP, goSite1);

    function goSite1(evt:MouseEvent):void {}

    navigateToURL (new URLRequest ("http://phgoffers.com/participatingHotels.aspx?id=327 & src = 12113815"));

    }

    You please help me and let me know how to accomplish what they are asking for?
    Thank you!!!

    If they require you to use the AS2 code, you cannot use your AS3 code.  If you can use your AS3 code, then you need to replace the url with the variable "clickTAG"...

    myViewPackagesBtn.addEventListener (MouseEvent.MOUSE_UP, goSite1);

    function goSite1(evt:MouseEvent):void {}

    navigateToURL (new URLRequest (clickTag), "_blank");

    }

    To get the "clickTAG" variable assigned, you will probably need to study using FlashVars.  The value of "clickTAG" is generally attributed as part of the html code to embed the swf file in web page.  That allows anyone to change the link via the HTML rather than having to edit the swf file.  You can check with the person who wrote the rules for this.

  • Please help on the Loader.content movieclip

    Hello
    I've been search autour and got the mixed solutions, summarized as follows:
    If I need to load external swf into the main swf file, I need charger with URLRequest appropriate for this purpose.
    Once charged, you can listen to the event complete and addChild the loader.content to the main swf.
    Because I have a stop on the first frame of the swf loaded, I need to run the SWF with a button. Solutions on the net pointed out that it happened, you must mount the loader.content to MovieClip and have to thanks to a delicate way to do it as

    var movie: * = loader.content;
    var clip: MovieClip = film;
    clip.gotoAndPlay (4);
    .....
    I tried this method and I still don't have a Type constraint: cannot convert flash.display in MovieClip
    Please help, do not know why some experts said that it works while I can't function. Thanks in advance

    Hmm, you try to load an AV1 (Actionscript 1, 2) SWF? If so, you are having some problems. AS3 does not handle these well. You better downgrade your app to AS2 and using MovieClipLoader. Import an AS3 SWF should enter native mode without any necessary data conversion

    evt.target.content.gotoAndPlay (2);

    WL

  • my firefox crashes and gives me say eror sign, Firefox cannot load your profile. may be it is removed or have not achieved.please help me

    I have a problem my firefox crashes and gives me this error, Firefox can't load your profile, it may be removed or have not reached. I tried to open the profile manager he gived me the same error
    I uninstalled firefox almoast 20 times and deleated all ISO pc files and nothing has changed, please help me.sory fore bad English.

    Thanks for the help I fixed firefox, I instaled windows pack 3 and it started working again.

  • (Dell) Windows 7 Home Prem OA: Please HELP! Windows is loading files.

    To the right,.
    Since my brother was playing around with my computer and play Minecraft, I got a screen that says: "Windows loading files. I tried almost everything, and I'm desperate. I watched a lot of things that still doesn't work. Repeativly F8 at startup, F10, F12 and nothing. The thing is, whenever I have turn the computer back on, there is no commissioning. The screen will appear just by these words: "Windows is loading files," and a white bar at the bottom. I see no symbol start like HP or DELL. I see no screen connection. I tried unplugging and reconnecting TAB, CTR, ALT, DELETE, put highlighted with arrows keys and down and clicking on ENTER. EVERYTHING. He has also been disconnected from the internet for several months and I can't use the disc slot.

    I have also all my photos, songs, videos, work, life and data on this computer. I NEED A WAY TO REPAIR THIS COMPUTER WITHOUT LOSING ALL MY STUFF! Please, please, please help!
    Thank you!

    Since your computer laptop is a Dell, I highly recommend going to Dell Community support.

    It's the HP product HP consumer support forum.

    http://en.community.Dell.com/support-forums/

  • Please help my acer iconia 10 usually load or light just bought a months :(

    It please does not load help acer iconia 10

    just bought a month ago

    Contact Acer customer service or your seller, because it is under warranty.

  • have an error on my computer - Windows cannot load the locally stored profile. Possible causes of this error include insufficient security rights or a corrupt... local profile, what should I do please help

    have an error on my computer - Windows cannot load the locally stored profile.  Possible causes of this error include insufficient security rights or a corrupt... local profile, what should I do please help.

    Hi MelbaIsaiah,

    I suggest you to follow the steps in the article and check if it helps.

    Error message "Windows cannot load your profile because it may be corrupted" when you try to log on Windows XP

    http://support.Microsoft.com/kb/318011

    I hope this helps.

  • Please help, my other computer shows an error message: "Windows did not start because of an error in the software: load needed DLLs for kernel.

    Please help, my other computer shows an error message: "Windows did not start because of an error in the software: load needed DLLs for kernel.

    Hello

    ·          What is the number and the model of the computer?

    ·          What is the service pack installed?

    ·          The meadow of operating system has been installed on the computer?

    ·          Do you remember any changes made on the computer before the show?

    Try the steps listed in the link below: how to fix a computer that does not start: http://www.microsoft.com/windowsxp/using/setup/support/nostart.mspx

    You can also check: Error Message: Windows could not start because of the mistake in... : http://support.microsoft.com/kb/326671

  • I have a dell computer, it has axtra D drive for drive & utilities I have mistakanly loaded two times I remove and reinstall please help / ps its low memory, see the

    I have a dell computer, it has axtra D drive for drive & utilities I have mistakanly loaded two times I remove and reinstall please help / ps its low memory, see the

    Hello


    (1) what exactly are you trying to delete?
    (2) what exactly you are trying to re - install?
    (3) exactly where do you get this memory low message?
     
    The reader might be for backup and could have copied data on the same, thanks to which it shows a low space.

    You can contact Dell technical support for assistance by following this link:
    http://support.Dell.com/
    Hope this information is useful.
  • SQMAPI.dll and load on Vista error Please HELP!

    After restarting my laptop to factory settings I get 2 errors.  I have Windows Vista on the computer on which the errors. The first error occurred just after the "preparing your desktop scene" and he says, ' error loading C:\Program may Explorer\iessetup.dll "and the second showed upward after that I tried to install SP2 and it says"SQMAPI.dll is not found"Please help me in correcting these errors.

    The other post:

    When I ran that he stopped at 72% and said "Protection of resources Windows could not perform the requested operation." I have Windows Vista on the computer on which the errors. I get 2 messages after I tried to restore my computer to factory settings. The first sets out, "error loading C:\Program may Explorer\iessetup.dll" and the second says "SQMAPI.dll is not found" Please help me to correct these errors.

    Hello

    Did you change your computer?

    I suggest you to follow the links and check out them.

    Method 1:

    Step 1:

    Delete files using disk cleanup

    http://Windows.Microsoft.com/en-us/Windows-Vista/delete-files-using-disk-cleanup

    Step 2:

    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7

    http://support.Microsoft.com/kb/929833

    Method 2:

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.Microsoft.com/kb/929135

    Note: After a repair, be sure to set the computer to start as usual as mentioned in step 7 in the above article.

    Method 3:

    How to troubleshoot Windows Vista and Windows Server 2008 service pack installation issues

    http://support.Microsoft.com/kb/947366

    See also:

    Learn how to install Windows Vista Service Pack 2 (SP2)

    http://Windows.Microsoft.com/en-us/Windows-Vista/learn-how-to-install-Windows-Vista-Service-Pack-2-SP2

  • I need driver audio windows enterprise 8 for asrock g41m-vs3 r2.0 motherboard.my new windows is loaded, but not his driver .other that I got take advantage of windows 8 Please help.

    I need driver audio windows enterprise 8 for asrock g41m-vs3 r2.0 motherboard.my new windows is loaded, but not his driver .other that I got take advantage of windows 8 Please help.

    According to this site:
    http://www.ASRock.com/MB/overview.asp?cat=download&OS=all&model=G41M-VS3 R2.0
    There is no driver Win8 MB for. You can try to install the Win7 audio driver in compatibility mode.

    According to VIA, this Windows 8 driver:
    http://www.via.com.tw/en/support/drivers.jsp
    supports the VT1705 chipset, which is what your MB.
    (Step 1 - Windows
    Step 2 - Windows 8 bits - xx
    Step 3 - audio
    Step 4 - VIA HD Audio codec VT1702S, VT1705 VT1708B, VT1708S, VT1716S, VT1718S)

    SC Tom

  • "The service user profile Service has no logon. User profile cannot be loaded. "and new users are not created in the registry, that is it please help

    I am trying to create new users on my computer windows 8 but it dosent open, I get a message "the service user profile service has no logon. User profile cannot be loaded. "and new users are not created in the registry, that is it please help

    I had the same problem.  Get the «user profile service has no user of logan...» "I tried everything I found online and nothing has worked.  Then I reinforced to the back and looked at the whole picture.  It turns out that it wasn't a computer after all problem but a question of the user.  Under folder C:/users/default in the end I managed to delete all subfolders except appdata.  So when you went to create a new user he could not find the correct files to copy to the new profile to store information in.  To ensure that I had a correct records back into the C:/users/default folder, I went on another computer and just copy paste the new default folder from another computer in the folder users on my computer and erased mine.  Of course I could create my comments and new users account once again.  Finally.
  • CC .exe file is not loading. [Please help!]

    Hello

    I tried to download a trial of Adobe CC, but for some reason any, whenever I try to run the downloaded .exe file, it just never came up. I don't get the wheel of continuous loading, I get a different problem. It will not open same. I tried several ways to solve this problem, I even tried the cleaning tool and it didn't work. Please help me out here.

    PROBLEM SOLVED-

    I deleted a file that includes aspects inside and now the .exe file runs correctly. Thanks for the help!

Maybe you are looking for