flash banner published do not show imported information in JSON

I have a .swf banner that in adobe FlashCS6 plays very well, but when I export ( .swf and .html).
the banner loses JSON information derived from the online JSON files.

I have download the .swf to localhost banner so it should do the trick, but it doesn't.

What I am doing wrong? I'm losing my mind! Help, please!

I upload banner to localhost, so it should



play
();
import flash.display.Sprite;
import flash.events.Event;
import flash.net.URLLoader;
import flash.net.URLRequest;

var _jsonPath:String = "http://api.topsport.lt/mobile/?json={%22method%22:%22offers%22,%22id%22:%22all/1/0/4564%22,%22lang%22:%22lt%22,%22os%22:%22a1%22}";
function init(e:Event = null):void
{
  removeEventListener
(Event.ADDED_TO_STAGE, init);

  
var loader:URLLoader = new URLLoader();
  
var request:URLRequest = new URLRequest();
  request
.url = _jsonPath;
  loader
.addEventListener(Event.COMPLETE, onLoaderComplete);
  loader
.load(request);
}  
init
(); 
function onLoaderComplete(e:Event):void
{
  
var loader:URLLoader = URLLoader(e.target);
  
var jsonObject:Object = JSON.parse(loader.data);
  
//JsonMan.decode(s:String):Object
  trace
("loader.data: " + loader.data);
  trace
(jsonObject[3].object.bets[0].title);
  
if(i<10){
  country1
.text = String(jsonObject[i].object.bets[0].title).toUpperCase();
  country2
.text = String(jsonObject[i].object.bets[2].title).toUpperCase();
  country1_odds
.htmlText = String("<b>"+ jsonObject[i].object.bets[0].odds + "</b>");
  country2_odds
.htmlText = String("<b>"+jsonObject[i].object.bets[2].odds + "</b>");
  x_odds
.htmlText = String("<b>"+jsonObject[i].object.bets[1].odds + "</b>");
  
var today = new Date();
  
var dd = today.getDate();
  
var mm = today.getMonth()+1; //January is 0!
  
var yyyy = today.getFullYear();

  
if(dd<10) {
  dd
='0'+dd
  
}
  
if(mm<10) {
  mm
='0'+mm
  
}

  today
= mm+'-'+dd+'-'+yyyy;
  trace
(today);

  obj_date
.htmlText = String("<b>" + jsonObject[i].object.date + "</b>");
  i
++;
  
if(i==9){
  i
=0;
  
}
  
}
}

Used a violin, or Charles, to help understand the problem. Using one of those that you can see the network traffic and see what is or what does not.

Tags: Adobe Animate

Similar Questions

  • Widget de Table published is not showing not


    I inserted and edited the table widget to my needs. I am able to see the table shown in Preview but NOT in the published version.

    I played a bit with options 'fix' for the table is on the 'Top '. The table does not always appear in the output published in Flash or HTML.

    Any advice?

    ??? You are supposed to open a Captivate course, always with the help of a html file. For the HTML5 output which is index.html, to output SWF is name for a hybrid output where you want to Captivate to detect which version to use is multiscreen.html and fichier.htm.

  • Firefox wants to install and addon intitule.1 does not show any information other than a link to Mozilla. Will keep this option disabled. Anyone know what it is?

    Thank you

    If you type about: support in your address bar and then press on enter, you can copy and paste the information in this thread?

  • Various menu flash black boxes do not show until wriggle on. This has been happening for some time and has not been fixed by updates.

    For some time now as bookmarks and Tools menus will be dark outside and only reveal after a quick mouse above. I am running windows 7, more recent updates and the latest version of Firefox. I have linked an example of picture of what happens to my bookmark menu.

    http://imgur.com/FUDNYOu

    Hello, you can try to reproduce this behavior when you start firefox in safe mode, once? Otherwise, it might be a problem with hardware acceleration...

    Troubleshoot extensions, themes, and issues of hardware acceleration to resolve common problems of Firefox

  • Imported video does not show what moving published file swf to another location

    I wonder if there is something I need to do for the video file imported to embed in the swf file. When I move the file published to another location, the video does not show. When it is played in the same location as the fact that publication, he plays very well. When I move the video file to the same location as the swf file that is published on another computer, it does not seem to see it. I don't know how to solve this problem. Looking for suggestions. Thank you!

    Got it, thanks again! I actually got to work by converting the mov to flv and video integration.

  • I exported my bookmarks on an external drive. I want to import their return and they do not show when I click Import...

    When I click on import and then open the external drive does not show bookmarks. If I open the external drive via "Start/computer" I can see in it, ok.

    This probably means that the file is not an extension of .html file and you will need to rename the file to bookmarks-2012-09 - 14.html make Firefox the list in the import file selector.

    You can see the HTML file type is required in the lower corner on the right.

    If you are unsure of the type of file, then you can open the file in Firefox via "file > open a file.

    A JSON backup will appear as a single line of text without line breaks and one backup HTML in a web page with clickable links.

    • A JSON backup begins with: {"title": "","id": 1, "dateAdded": }
    • An HTML backup begins with: <! DOCTYPE NETSCAPE-Bookmark-leader-1 >
  • Care Office BI Publisher 11.1.1.5 by not showing is not in Microsoft Office 2010

    Add bi publisher in Word 2010 not showing the same once I activated the plug-in, I activate the add-in TBmenus and little TBmenus 2007 add-in still does not display in WORD.

    It is very urgent please help

    Thank you and best regards,

    Satya

    It is because of MS office installed in user profile problem.

    I uninstalled MS Office

    and re-installed via the Admin account.

    It solves my problem

    Thank you all for your support

    Thank you best regards &,.

    Satya

  • CC 2015, some photos marked as already imported do not show in lightroom?

    Lightroom CC 2015, some photos marked as already imported do not show in lightroom?

    Use the filter bar in Lightroom to find one of these photos by file name. First click all the photographs and then search by file name. See the screen capture below for example:

  • Sliders on my muse adobe site are visible when I discovered the site in the browser within the program, but does not show up on published site

    Sliders on my muse adobe site are visible when I discovered the site in the browser within the program, but does not show up on the published site.

    explorersglobalfineart.com

    How can I rectify this?

    Thank you

    A large number of files in your site seems not to be on the server. If you use file > upload to FTP host, please repeat the process and select Download all files. If you use file > export as HTML and download with an FTP external program, please repeat the export process in an EMPTY FOLDER and then download everything that has been exported to your server.

  • [Captivate 8] HTML5 Publishing - first slide shows locally but not on test server

    Hi all

    The Question

    Anyone running in this number of the first slide shows on HTML5 (or SWF) until you open the table of contents and select the recalcitrant zipper and then it shows (and works) very well? Not on project load, just at the time when it is selected.

    Description

    I use only 8 Captivate for a short period of time, and I ran face first in a bit of a bigger obstacle than I expected. At the present time, I have a simple linear Captivate project containing essentially a Powerpoint (customer specified). Everything worked fine until I tried a preview of HTML 5 to 8 Captivate and first slide does not show. After that some research my solutions to the problems that I encountered were to:

    • Local preview sometimes causes a glitch. Solution: Publish locally and (pre) discovers the result. It did not work.
    • Group all the objects on the first slide, and then attach the Show action to this group. This corrects the problem.

    After that I published on a host server (server test for the moment, but in the end, it will be the direct dev server). I met the same problem, so:

    • Tried the Group thing, above. No joy.
    • Open the table of contents and navigated to other slides. None of the buttons (previous slide, next slide) worked.
    • Renamed the "Mouse.mp3" to remove that annoying click. Result: All buttons worked on the project, but the first slide showed (grouped or another).
    • Removed all the objects on the slide of the slide. No joy.
    • Removed the button (action: next slide) and reduces the time of reading of the slide to 5 seconds so that the blade will play during the loading, then just go to the next slide. No joy.
    • This SWF and HTML 5 publication tried.
    • All this with only tried SWF.

    Again, when I open the table of contents and go to the first slide ("Page title") the blank slide that is filled only by lonely borders becomes the title slide, as it should. Furthermore, glimpse local file (\project\index.htm) works very well.

    Of course, Miss something. It's probably something incredibly obvious, so I thank you for your patience.

    The technique

    Captivate 8.0.0.145

    OS: OSX and Windows XP Pro SP1 Maverick

    Other: Adobe CS (installation to date)

    Hello

    The solution you gave was given by Jim on his blog.

    HTML5 Captivate projects freezing in Google Chrome, c. 36 +.

    Please attribute it to him at least when copy you and paste this what.

    In any case, Adobe has released an official solution here. You can try that as well.

    The point on the problem of reading content Captivate HTML 5 in Google Chrome browser. "Rapid e-Learning | Adobe Captivate Blog

    Anthony

  • RGB channel does not show the imported images...

    RGB channel does not show the images imported... I can see it in blue, red and green circuit, but not in RGB... Please help...

    (I use Photoshop CS6)

    Well, that clarifies.

    Open Photoshop > edit > Preferences > Performance > the GPU settings > advanced settings > Drawing Mode > change to base - from now on, it is in "Advanced". See if that helps.

    If so, your video card doesn't support acceleration entirely for CS6.

    Looks like the driver of your video card is old about 3 years and more than 4 main versions:

    Driver date: 20090208190620.000000 - 000

    Driver version: 7.01.01.849

    Visit the AMD Web site to search for the latest drivers.

    The current version is 12.6, released July 23, 2012. This will certainly help you with your question.

    Also, go to help > update and download / install all the updates that are available for Photoshop. The current version is 13.0.1. You run 13.0 which is a compilation of March 2012.

    Let us know how it goes.

    -ST

  • Why Flash presentation retractable or not completely show preview in browser?

    Whenever I saw the FLASH presentation I've created, in a browser, gets cut off the lower part of the presentation or the entirety of the presentation is shrinking.

    My stage size has been set at 524 x 1048 because it is the width of the space I have for it on the Web page. When I saw in a browser, does not show the lower part of the presentation. I needed more space downstairs so I changed the height in 2000 and when I saw it, the presentation was shurnk.

    Any idea on how to keep my demension and still be able to see everything? I know that the scene is long, but I want users to be able to scroll to the bottom of their browser to see the bottom.

    in your swf embed html, at the top between the head tags find:

    change to the

  • Flash and IE (some videos showing do not)

    Hi, I have a problem that I can't fix and really need help!

    On some websites I'm unable to view the videos, they just sparkle and play the sound, and on most of the sites media and banner advertising does not either.

    Here is a list of sites:

    BBC iplayer - work

    YouTube - work

    ItvPlayer - does not

    99% of the animation sites banners ad does not

    My system:

    Windows 7 Home Premium SP1

    That is, 32 bit and 64 bit

    Flash Player 11 64-bit activeX installed

    Pease Help!

    Thank you.

    Could you try disabling hardware acceleration in IE to see if it changes anything?  Also, would you be willing to try this with Chrome to see what behavior it?

    How to enable or disable software rendering in Internet Explorer 9

    Thank you

    Chris

  • some old loading new imported images do not show images

    , I work with cs4/windows.  I can't get new images to show.  What page design and import the images it shows. When the "power" publication it does not show.

    The only thing I could see as a problem would be the old server (very)?.

    I left a few images that were on the server to start and they appear. Recently added images are not.

    http://www.twinsburgtravel.com/Sandals-Resorts.html

    You can also try to delete the old images for space

  • Flash banner will not play

    If I am posting this in the wrong section, could someone tell me the right place to post this upward to?

    I am using Flash CS3
    First of all, please see the new site I am building (using DW CS3)...

    http://intensittv.com

    I'm afriad I'm going to need a small step by step direction here.
    It is supposed to be a 5 second flash banner/intro I have accumulated at the top.
    All I see is an empty brown box where it is supposed to be.
    I have everything uploaded to the server. Rendering html and swf files.
    I thought I had all of the right ways.
    Another piece of trouble I have is when I go to press play in the property inspector, same thing. nothing plays. just a brown box empty.
    what I am doing wrong?

    I think that it is stuck on a frame of the opening. Right-click on the Brown area and select read.

Maybe you are looking for

  • scratches screen iPhone SE

    Recently, I replaced my iPhone with the iPhone 5 SE. I have my baby equipment, but on my 5 I've ever had a screen protector and never had any scratches. Not at all. I pre-ordered the SE, and it was to be alone in my jacket pocket (same place I kept m

  • Problems with iOS 9.3.1

    Hello! I just noticed today that the screen refreshes not enough fast or I can say that exhibitions display a sort of flicker. This happened after the recent update 9.3.1. At home, we have three iPad and the iPhone. To be precise, the above mentioned

  • My iPhone 4S is stuck in restore mode

    I went to restore my iPhone 4s, because I forgot my restriction password. I used the my MacPro laptop with the latest version of iTunes and the Mac OS software. I can't find the serial number because I can't get on the iPhone. I can't open the chip b

  • LifeCam Cinema HD has limited resolution in Vista

    I'm running Vista/64 with all updates and SPs.  Just bought a MS LifeCam Cinema HD for use with this computer, and the only resolution I can get is 160 x 120, none others appear on the list of the menu drop down.  I have downloaded the software twice

  • Windows Movie Maker 6.0 error during recording: check if the original sources are still available, the saving location is available and if there is enough disk space

    Original title: Windows Movie Maker 6.0 Save Bug? Something's weird with Windows Movie Maker... It cannot record movies, I create somehow. Immediamente when it starts to save, it gives an error signal: check if the original sources are always availab