huge problem with loading text fromXML

Hi, I have spent hours trying to load text from XML, which is already responsible for thumbnails and FLV.
I have a function that loads the xml file and then call for the FLV file from an onclick which requires the event.currentTarget.name
Which works very well.
Now I need to have a text in a text box, but I can only fill it with. currentTarget.name because all the other values are like... uh... lost?
Here is the code:





Acciones.transitions import. *;
import of gs. TweenLite;
import fl.motion.easing. *.
var playeron = 0;


var urlRequest:URLRequest = new URLRequest ("pics.xml");
var urlLoader:URLLoader = new URLLoader();
var xml;
var xmlList:XMLList; urlLoader.load (urlRequest);
urlLoader.addEventListener (Event.COMPLETE, urlLoaded);

var arrayThumb:Array = new Array();
var arrayName:Array = new Array();
var arrayTitulo:Array = new Array();



var photoContainer: Sprite = new Sprite();
addChild (photoContainer);
photoContainer.mask = thumb_holder;

IT'S THE TEXT BOX WHERE THE TITLE SHOULD APPEAR
var cartel: TextField = new TextField;
cartel.x = 5;
cartel.y = 5;
cartel. Width = 110;
cartel.autoSize = TextFieldAutoSize.LEFT;
cartel. Selectable = false;
addChild (cartel);

var i: Number;
function showXML(e:Event):void {}
var imagenes:XML = new XML (e.target.data);
}

function urlLoaded(event:Event):void {}
XML = XML (event.target.data);
xmlList = xml.children ();
trace (xmlList.length ());
for (i = 0; i < xmlList.length (); i ++) {}
thumb: thumbnail of the var = new Thumbnail (xmlList .url);
var picName:String = xmlList
.big_url;
var titulo:String is xmlList .titulo;.
var picTitle: String = String (xmlList
.attribute ('name'));
arrayName.push (picName);
arrayThumb.push (thumb);
arrayTitulo.push (picTitle);
arrayThumb there = 67.5;
arrayThumb
.x = i * 186 + 90;
arrayThumb .addEventListener (MouseEvent.CLICK, onClick);
arrayThumb
.name = arrayName ;

photoContainer.addChild (thumb);




It's the OnClick where I want to call the correspondent of TITLE I put in a table, a couple of lines before / / this. (arrayTitulo)
I no longer get the entire table, an undefined value, or nothing. quite simply, it does not recognize what I'm doing. (who is clicking on this particular button)

function onClick(event:MouseEvent):void {}

cartel. Text = event.currentTarget.name;

TweenLite.to (menutotal, 0.75, {x: 18, y:-139});})
thumb_holder.x = - 1000;
fondothumbs.x = - 1000;
handler.x =-1000;
Track.x =-1000;
TweenLite.to(cerrarvideo,1,{x:611,y:60,alpha:1});)


Fl.video import. *;

TweenLite.to(cinepressplayer,1,{x:330,y:150});)
CPL.source = event.currentTarget.name;
Cpl.Play ();





funcion close button
cerrarvideo.addEventListener (MouseEvent.CLICK, onClick2);
function onClick2(event:MouseEvent):void {}

CPL.pause ();
TweenLite.to(cerrarvideo,0.50,{x:-200,y:-200,alpha:0});)
TweenLite.to(cpl,1,{x:-390,y:105});)
TweenLite.to (menutotal, 0.75, {x: 18, y:56});})
thumb_holder.x = 20;
fondothumbs.x = 20;
handler.x = 20;
Track.x = 20;



}





}
}

-handles the Click event we added thumbnails.



}


var minScroll:Number = 0;
var maxScroll:Number = track.width - handler.width;
var shuffling: Boolean = false;
limits: var = new Rectangle Rectangle(handler.x,handler.y,maxScroll,0);
handler.buttonMode = true;
handler.addEventListener (MouseEvent.MOUSE_DOWN, beginDrag);










function beginDrag(event:MouseEvent):void {}
handler.startDrag (false, bounds);
dragging = true;
handler.addEventListener (Event.ENTER_FRAME, checkingProgress);
stage.addEventListener (MouseEvent.MOUSE_UP, endDrag);
}
function endDrag(event:MouseEvent):void {}
handler.stopDrag ();
dragging = false;
}

function checkingProgress(event:Event):void {}
this var: number = handler.x/maxScroll.
If (dragging) {}
Tweener.addTween (photoContainer, {x: (-this *(photoContainer.width-thumb_holder.width)-6), duration: 1});
}
}

This

I forgot to mark it as resolved.

Tags: Adobe Animate

Similar Questions

  • Flash Air CC iOS: problems with loading text from an external xml located on a server.

    So I have this code allowing me to load the text of an xml located on a server. Everything works fine on Air for Android. The app works even in the ios emulator, but once I export my app on my ios with ios device 7, I do not see any text. The app is developed with Air sdk 3.9. What could be the reason? Do I need any special authorization like on Android? IOS even allow load xml from an external server?

    Clues?

    OK, I solved the problem.

  • problem with loading text

    I use a loadvars action to load the external .txt file, and it loads the file BUT will read numbers out of the file.
    It will not read letters that make words - making phrases, which make me angry.

    No idea why this would be? I tried to play with the encoding of the .txt file, it would be something in the code AS? (even if that it should load the file since it is the reading of the number.)

    Any suggestions?

    Corrected in "General Discussions Forum"... remove the text field and makes a new... now works... you know!

  • Problem with load LOV value reset

    12.1.3 ADF

    I am facing a problem with load LOV set to reset.

    I have a page in waterfall surrounded by af LOV: PanelFormLayout. Also do some validation on the data entered by the user when clicked on submit. If the validation fails, an alert will appear on the validation failed and user will stay on the same page.

    Values LOV child get back their null or empty when you click on the "submit" button. It works as expected when the validation failed and the user has navigated to the next page. But if validation fails, the user stays on the same page and child LOV connection reset to NULL or emptyvalue. For this reason, NPE error occurs when the user attempts submit again and have to select again the child value LOV.

    Is it possible to keep the child LOV value even after submitting a form?

    Page code:

    < af:panelBox text = "Product Details" id = "pb4" >

    < af:panelFormLayout id = labelWidth "180px" = "pfl4" >

    < af:selectOneChoice value = "#{bindings." ProdType.inputValue}.

    label = "#{bindings." Required to ProdType.label'} = 'true '.

    requiredMessageDetail = "product Type cannot be NULL. Please select a value.

    shortDesc = "Select the Type of product" id = "soc1' autoSubmit = 'true '.

    showRequired = "true" contentStyle = "width: 150.0px".

    Binding = "#{viewScope.provBean.prodType} '"

    valueChangeListener = "#{viewScope.provBean.prodTypeVCL}" >

    < f: selectItems value = "#{bindings." ProdType.items}"id ="si1"/ >

    < f: validator binding = "#{bindings." ProdType.validator} "/ >"

    "< af:target execute="@this "make ="soc2"/ >

    < / af:selectOneChoice >

    < af:selectOneChoice value = "#{bindings." ProdVer.inputValue}.

    label = "#{bindings." Required to ProdVer.label'} = 'true '.

    requiredMessageDetail = 'Product Version cannot be NULL. Please select a value.

    shortDesc = 'Select Product Version' id = 'soc2 '.

    Disabled = ' #{bindings. " ProdVer.inputValue == null} ".

    contentStyle = "width: 150.0px" showRequired = "true".

    Binding = "#{viewScope.provBean.prodVer}" >

    < f: selectItems value = "#{bindings." ProdVer.items}"id ="si2"/ >

    < f: validator binding = "#{bindings." ProdVer.validator} "/ >"

    < / af:selectOneChoice >

    < / af:panelFormLayout >

    < / af:panelBox >

    Timo thanks for your response.

    Child LOV I created is an attribute of transient and resolved the problem by setting the property of passivation to true.

  • Photoshop: problem with the text tool

    Hi there, problems with my text in Photoshop tool. When I try to write, using vertical text is written just a line, a straight line instead of any text. This only started happening in the last hours. I tried to change the texts and closing and start Photoshop again, all without success, please help?

    Please reset the text tool

  • Problem with the text is pixelated

    Problem with the text is pixelated on iPad retina. You have a solution?

    Digital Publishing Suite 101: keep the text accurate in a Raster slideshow

  • Huge problems with creative cloud, it breaks down twice a day and we have lost a very important folder.

    Huge problems with creative cloud. I have a VIP account, 5 licenses. Everyone knows the app crashing. As a result, I lost a huge document that could potentially cost the company of thousands of pounds. (Fortunately, I had a pdf) the file is now completely corrupted. So, I try to use the cloud storage if synchronization, im told is still available for me to locally to do because im saying that this feature is sindou in 'lots', even if the website of adobe says "as a member, you have the right to download and use the new features as they are released; you get the best tools immediately "." I tried to call on the phone and if the person was very helpful, little has been identified as a possible cause. The cat twice and the best advice was to sign, and then insert it again. Please help, view of the threat to become corrupt because of daily accidents of the files is completely unacceptable. What can I do?

    Hi david.leonard,

    If you have CC apps crashing please consult the KB: http://helpx.adobe.com/photoshop/kb/cc-applications-crash-immediately-launch.html .

    You can ask to get a quick access to sync via this link: https://creative.adobe.com/earlyaccess.

    Kind regards

    Romit Sinha

  • I have problems with the text... Help

    Hey

    I have problems with the text box in indesign cs4...

    When I do a text frame and write a short text and want to make a new line and press ENTER, my cursor goes to the next page and the small red cross in the corner of my document apears.

    someone knows what to do here?

    I realle need your help

    Thank you

    This has been covered a lot. A BIOS update may be an option to solve the problem of keyboard mapping, you can change your keyboard shortcuts to reassign the digital keypad input to be a paragraph return or you can try simply by changing the State of the numlock - if it is on, turn it off and vice versa. Withthis problem most of the systems that seems to change the function of the two keys back and forth between the enter alpha and entry number.

  • problems with the text and rounded rectangles

    So I have some rounding of the rectangles in fireworks, then export as fxg, and import it into flash catalyst - but they lose the roundness of rectangles square become. Also have problems with the text as half displaying or doesn't appear do not at all.

    feature request

    -would be really cool to be able to change the paths in flash catalyst

    -Edit the code in code view

    see you soon

    brand

    Hi, the absence of a property of corner radius is a limitation of the FXG export command in Fireworks CS4. We work closely with the Fireworks team to improve interoperability FXG in CS5.

    Thank you for your comments and suggestions.

    -brian

    Team Flash Catalyst

  • Problem with dynamic text

    Hello, all.

    I'm having trouble with dynamic text not displaying only not on the scene during execution.  When I test the scene, fields of text but loading, but when I test the movie, or run publish a snippet, the text is not there.  Some figures appear unstable in the text fields, but are often completely empty. --J' did ensure that the fonts have been included and I can't understand why this is happening.

    Any ideas or suggestions are greatly appreciated.

    Thank you.

    Try another font which has called to work correctly, such as Arial and see if you still have the problem. Not all fonts can be embedded correctly...

  • Having a problem with loading in the combustion chamber

    Hello

    I'm having a small problem I could use help with. I'm not really sure what's going on, but I'm having a problem with one of the pages of my site does not when you try to view the page in Firefox. But if I loaded this page in Safari or Chrome, it loads very well.

    Here is the URL of the page to take a look:
    Specific link removed by moderator display ~ J99 < sitename >.com/top-10/top...services/

    No idea why this might be happening or how to fix it? I don't know if it's just my computer, or if others have the same problem.

    Thanks in advance,

    Mike

    There's two of us have confirmed the page will load so I deleted the link to display as it could be construed as advertising.

    P.S. Note only forum content in the resolved threads is now indexed by search engines.

    (Last updated: February 14, 2015 08:45 CEST)

    Solved the locked thread now ~ J99

  • Windows 7 Causes of security errors - Invalid SIDS - problem with loading of programs such as Adobe Flash

    I discovered a bug in my Windows 7 (64-bit) that causes security errors in my system.  I honestly do not know or understand how these mistakes happened.  For example, my system lists the group "power users ^ 0' and 'Power users' (the latter should of course)."  I have never tested with the accounts system, not to mention the well known windows accounts.
    Even when I try to delete the group "power users ^ 0' the system replied that he could not remove a well-known group."  This isn't a well-known group.  The Group initially appeared in 'users and groups' within the 'computer management '.  I made a few changes to the security in the registry settings to try to fix my system, but the group no longer appears in "computer Management\Users and groups."  It appears when I look at the 'properties' for a user and select ' Add/search' when I try to add a group to the user. »
    Regarding Adobe Flash, it does not when I am connected with a normal user account.  It does not load when I log in as an administrator (on the same machine).  So I suspect there is a security problem in the registry which prevents Adobe Flash to load for a regular user.  What me stem, is that when I go there and install Adobe Flash for a normal user (Yes, he invites me to run the installation as long as the administrator - date which I enter the password to continue the installation, which runs without error reported).  The installation of Adobe Flash completed successfully for the user as an Explorer window showing the installation of Adobe Flash successfully, I proceed to access any site that requires Adobe Flash to be installed on the client computer and the site if poster correctly - flash loads fine.  Now, if log out me of the account of user and re - login under the same user on this computer, even when the user has just installed Adobe Flash, it loads is no longer!  When I navigate to a site that requires Adobe Flash, it generates an error indicating that Adobe Flash must be installed!  Curiously, when I connect as administrator, Adobe Flash loads very well!  For me, Windows 7 displays security system errors / makes me crazy.  I would be grateful if I get assistance for this problem.   All system errors have focused on SIDS invalid, invalid years system well-known accounts created by Windows 7.  In the meantime, I connect as administrator because he never complains you need to install Adobe Flash.
    Help, please!

    Thank you
    E-mail address is removed from the privacy *... com

    I decided to do a clean reinstall of my computer Windows 7 (64 bit)...  Nevertheless, I think that I think I know when the error with the "Power User ^ 0' saw the light of day..."  When I was rebuilding my machine with a fresh install of Windows 7 (with a full format my system drive), I noticed that when I renamed my machine (as everyone would expect to see), I inspected the "users and groups" in "Computer management" and low and has appeared the "power users ^ 0' group."  I believe that this has happened during the time where I've renamed my machine.   I have never messed with the creation of groups or something of the sort.  I am amazed that such a simple task would result in such a mistake.  As for my problem with impossible to load Adobe Flash, that the error has been removed, but I don't see how it existed in the first place.  I do not understand why Microsoft publishes several buggy instead of solidification Windows 7 systems.

    Thank you for your help,

    ~ sreyes27

  • BlackBerry Smartphones having HUGE problem with the screen

    Please help me people... My flipberry went completely crazy...
    I ' l try to explain the problem with as much detail as I can remember...
    Since last week or both internal as external screen my phone acted crazy...
    for the start of a few days, the problem started with the internal display will red sometimes, or show the half of the screen with stripes of colors... I thought it was a passing phase...
    but after a few days, the screen went completely black... both screens external and internal... until this time, as I ran the firmware 4.6.0.222
    so that day I sat down and wiped my phone completely and loaded the latest firmware 4.6.0.236... in order to completely black screens are returned to the way they were... sometimes ok, sometimes showing abstract things and weird colors...

    and even today both screens went completely black... so I'm currently trying to get back to the 4.6.0.180 version as recommended by t-mobile...

    and I have not dropped my phone once again since I bought it 4 months ago... need help

    usually the phone will come with a free warranty of one year.  The best thing I can suggest is to return to the top of any data you left phone and bring it back for a replacement or sent it to be repaired because it seems to me that your phone is defective.

  • Problem with the text block (text cut)

    Hello

    I have a problem with indesign (last CC version, I have upgradate today in the morning).

    I create a document with several pages and each page

    is a text box it and the text box are connected (the text content is broadcast through them).

    The text box are defined by a paragraph style, where I set the font style, color...

    I defined that the box can be 2 colunms and oviously, I also set betwin space columns.

    So the apears tex cut in the bottom text box and the rest of the blanks strages.

    I enclose a scrrenshot.

    Please, help me, I'm stacked in this disorder.

    Thnk

    EmilianoSchermata 2016-07-21 alle 16.48.59.png

    I find the solution.

    Yhe problem was in the style Panel,

    in the tab which, in Italian, is called 'options di separazione.

    I am enclosing a copy.

    Thank you all

  • Problems with the 'Text Ticker' Widget

    Hello, I have a problem with the widget "Ticker text." I tried to put more ticker and then a text on my site, but it does not work, when I look in Muse it looks like this:

    TextTickerinMuse.JPG

    and when I look in the preview only the first text ticker works... maybe it is not possible to have more then ticker text on a site?

    TextTicker.JPG

    Thank you.

    It seems that you use the same name for all instances of ticker on the page.

    You must have a unique name for each ticker you want on a single page. Strips with duplicate names will not work.

    See you soon,.

    Vikas

Maybe you are looking for

  • networking of two iMacs

    I managed A iMac for iMac B network.  I can see the data on the computer from computer B.  However, these data are 'read only '. I want to make changes to the data on the computer from computer B.  How this is done?

  • Toolbar

    Update firefox drinking, my roboform toolbar doesn't load...

  • Firefox can't read msgfilterrules.dat

    I spend the time to create my message filters only to discover the next time or I open firefox it cannot read the file. I have deleted all instances of msgfilterrules.* and began more - several times. It will work for awhile and then give me the erro

  • Satellite P30-128: installation power management error Code: 0x7E

    Hello, I formatted my laptop yesterday, and I could not install power management software correctly. When the installation is complete, I get "fatal error. Program will be closed. "Code: 0x7E. Can someone help me please?

  • El Capitan change password by e-mail

    When I go into the preferences of Mail and go to the accounts, the box change the "password" is no longer?