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.

Tags: Adobe AIR

Similar Questions

  • iOS: problem with loading the content of an xml file placed on a server

    So, I have an app that loads a few small things (pictures and text) of a xml/php file on the server. Everything works fine on both android and in the flash debugger, but when I install the ipa file on my iPhone my IOErrorEvent displays an error message. When the xml file and example photos come with the app (they are not on the server, but in the ipa file) everything works perfectly. There is something about iOS that prevents me to load all the data from the server, it seems. There must be a way around it.

    I would be grateful for advice.

    Kind regards

    Array must be table.

  • 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.

  • Problem with loading Variables from a text file

    Hello

    I'm quite a novice when it comes to scripts and I am struggling to achieve something quite simple. I want to have an external text file that will allow me to control the number of timeout that I reference in my code below. I need to be able to change this variable by editing a simple text file.

    var myTimer:Timer = new Timer(60000,1);
    

    I want to change the 60000 and 1.

    I followed what looks like a nice clean approach to this tutorial: http://www.designscripting.com/2012/01/as3-flash-loading-variables-from-a-text-file/

    However, when I'm stuck is how to reference my variable imported into the code. I tried 'name1' but it does not work. I get ' 1067: Implicit coercion of a value of a numeric type to a type unrelated string.' error '

    I'm an output:

    HTTP status = 0

    Data loaded

    Name1: undefined

    {name2: 1}

    http://screencast.com/t/gwD09jovIrb4

    I use CS5 and AS3.

    Thank you

    Dan

    I see nothing wrong with what you show, and when I try I get the following output...

    HTTP status = 0

    Data loaded

    Name1: 6000

    name2: 1

    The only thing I suspect for the moment is the data file itself.  I can reproduce the problem if I insert white space before this string, then make sure that the text string is not preceded by anything whatsoever.

  • Loading data from the external XML file

    Hello people!

    I have a XML file on my server, updated by cron every 10 minutes and I want to load data to my webworks her application, but the jquery ajax function do not support the folded areas. So here's my question - how should this information? Can I somehow download this file and then use ajax?

    Welcome!

    in your config.xml file, add an authorization to access your server:

    subdomains of http://www.yourserver.com"="true"/ >

    This will get by cross-origin issues.

  • 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!

  • How can I replace my app on iTunes Connect with a new version with air for iOS and app Loader?, how do I replace my app on iTunes Connect with a new version with AIR for iOS and the Application Loader?

    How can I replace my app on iTunes Connect with a new version with air for iOS and app Loader?, how do I replace my app on iTunes Connect with a new version with AIR for iOS and the Application Loader? I got an error that the version number needs to be updated. I created a new record in iTunes Connect with version 1.1 and I took ownership of my current app 1.1 in air for iOS section in Flash.

    Check your descriptor file to make sure that it shows the updated version, too.

  • 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.

  • 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

  • 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

  • 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.

  • I have intermittent problems with iphoto importing from iphone since 0sx 10.11.6. Update

    I have intermittent problems with iphoto importing from iphone since 0sx 10.11.6. -Update

    1 iphoto sees not iphone - restart

    2 iphoto sees iphone but says "no pictures" - restart

    3 Iphoto sees phone and photos and I click Import all or import selected - then I have problem of file format and nothing is imported

    NOTE: I have similar problems with image capture - sometimes you can see the phone and photos, and sometimes is not

    I have an imac 2015 - execution of yosemite

    Help my new iphone because 7 is coming today and I am terrified of the transfer.

    Not sure, but in any case iPhoto is a dead - it would be really smart to learn pictures (a totally new and different program with a learning curve and different workflows)

    With the help of pictures with my new iPhone 7 and iCloud photo library all works well without any problem - nothing different photos with my iPhone except the news and the best quality Photos 5

    LN

  • Problem with a Toshiba PX1267E 320 external drive

    Hi all

    I have a problem with a Toshiba px1267e 320 external drive, when everything was ok with it I would like to move on and the blue led would come and change blue /violet as it was found on my laptop, a small vibration could be felt if I handled the case which indicates that the d/d engine was on.

    After that fateful morning I turned on one explores in my computer and found no ext drive, checked the blue led disc on affected the case allowed to detect any vibration, eclipsed the reader of the case put my ear to hear low clicking.

    I removed the device and connected to shopping cart, this time I could feel the engine goes, connected to the laptop, new hardware found made my computer explore and didn't find any drive, Device Manager enabled and found it so I uninstalled and reconnected the usb with the same result.
    I don't know what to do next.

    I had a Word with computer store if they could recover some time I wait they told at least 6 hours work, if possible (don't want to shop)
    Bought me another model of the same digital Western not and new power to try to exchange the electronic circuit just in case he finds also the and/or possible fault we power/s but I'm clutching at straws here.

    Anyone of you guys, here you have something like this happen? any suggestions?
    I'm curious to know what they were going to try in the store to retrieve even if he said that he could not guarantee the results.
    I would appreciate any helpful suggestion (not throw it in the trash)

    > I removed the unit and connected to shopping cart, this time I could feel the engine goes, connected to computer laptop, new
    > hardware found made my computer explore and found no drive, checked Device Manager and found it so I
    > uninstalled and reconnected the usb with the same result.
    > I don't know what to do next.

    I think that the external HARD drive is dead
    Maybe it s a head crash which would explain the low clicking and other noises
    Unfortunately, I have this case you can't do anything

  • Laptop had a problem to "Solve a problem with PSIKey", solution from Windows & installed according to the instructions. How will I know that the problem is solved?

    has stopped working properly.

    An update is available that solves this problem.

    Downloaded Update site Web Protexis, Inc. and told to follow the steps in the installation wizard. The file downloaded and said he was setting up installation. Then after a few seconds, the box has disappeared and nothing else happened. How will I know if this problem has actually been resolved? My laptop has shown 6 problems with this unit from 30/07/11-08/12/11, where the unit has stopped working. Because I don't know what it is yet, I don't know really if the problem is solved or not. What should I do at this point? I have a SP2 7520-5185, running Vista Home Premium, Acer-Aspire. Thanks for any help you can give.

    Hello

    If you have installed a trial or paid a licensed version of Corel software products, you probably may notice a third unannounced software application makes its way into your computer too. The program is PSIService.exe by Protexis, which installs a Protexis V2 of Licensing Windows operating system service or Protexis licensing service.

    PSIService belongs to protect DRM (digital rights management) copy protection and license management software, which is intended to protect an application or software against piracy and illegal copying. Thus PSI service is normally installed by another program, such as Corel Paint Shop Pro Photo X 2, Corel Paint Shop Pro XI (X 1), Corel Paint Shop Pro X, that uses its service to collect information of license to repatriate much like spyware, protect copy and authenticate the user who is using an authentic version of the program.

    When you tried to download and install the program, if the box that says closed the dialog box when the download is complete has been verified, it will close the dialog box.

    I suggest that you restart the computer and check if you get an error message.

Maybe you are looking for