Javascript src attribute not reading .js file

This issue surfaced when I upgraded from SDK 3.1/AIR 1.1 to
SDK 3.2/AIR 1.5. The EXACT same code works fine before the upgrade.
I only included the pertinent code in this posting. The result is a
simple JS Alert. Like I said, it works fine SDK 3.1/AIR 1.1, but
not in SDK3.2/AIR 1.5. I am running all this through FlexBuilder.
I can not believe no one else has ran into this issue. Is
this a bug? Is there a workaround? I have been working on this for
2 days, so anything would help.
I have a AS varible defined with the following HTML:
private var helloWorldTest:String = '<head>' +
'<script type="text/javascript"
src="app:/aTest.js"></script>' +
'<style type="text/css">' +
'body { margin: 10px ; }' +
'</style>' +
'</head>' +
'<body>' +
'<script type="text/javascript">' +
'helloWorld();' +
'</script>' +
'</body>' +
'</html>';
The aTest.js file looks like this, very simple:
function helloWorld()
alert("Hello World From aTest.js");
In the mxml insert into the mx:HTML component:
<mx:FormItem label="Author Text" id="formitem4">
<mx:HTML width="940" id="helloWorldTestVar"
htmlText="{helloWorldTest}"/>
</mx:FormItem>

One other note:
I get the following error when trying to call helloWorld in
3.2/1.5:
ReferenceError: Can't find variable: helloWorld

Similar Messages

  • I am trying to import cr2files from the camera into lightroom 5 and keep getting an error message saying Lightroom can not read the files and therefore will not import them.  Has anyone had a similar problem-.thanks

    I am trying to import cr2files from the camera into lightroom 5 and keep getting an error message saying Lightroom can not read the files and therefore will not import them.  Has anyone had a similar problem….thanks

    If you are having the same problem, i.e. a disk permission problem, open your favorite search engine and search on, "change disk permissions", and I think you'll find plenty of information on how to fix the problem. This is a Lightroom forum. Your problem is with your operating system. There is no sense in rewriting instructions that are already available if you do a simple search.

  • I have lost my photos/videos when i imported from my ipad 2 to my new imac latest version and it's not reading the files.  I have downloaded iMac library manager and can see them. can someone shed some light please ?

    i have lost my photos/videos when i imported from my ipad 2 to my new imac latest version OS X 10.8.4
    and it's not reading the files.  I have downloaded iMac library manager and can see them.  when i go back into iphoto i'm getting the following message :
    Do you want to switch the current iPhoto Library from “iPhoto Library.photolibrary” to “iPhoto Library.photolibrary” and relaunch iPhoto?
    I don't know what to do - please help !!!!
    can someone shed some light please ?

    So it appears you have only one library on the hard drive. Apply the two fixes below in order as needed to that library:
    Fix #1
    1 - launch iPhoto with the Command+Option keys held down and rebuild the library.
    2 - run Option #4 to rebuild the database.
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    1 - download iPhoto Library Manager and launch.
    2 - click on the Add Library button and select the library you want to add in the selection window..
    3 - Now that the library is listed in the left hand pane of iPLM, click on your library and go to the Library ➙ Rebuild Library menu option.
    4 - In the next  window name the new library and select the location you want it to be placed.
    5 - Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments.  However, books, calendars, cards and slideshows will be lost. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.

  • ERROR:Could not read archive file - during Processing Base System Part 2

    Hi there,
    What I have:
    * I have problem with installation of the Mac OS X Panther v10.3 on iMac.
    * I have 3 original CDs (black with silver X).
    What I did:
    * I made new 1 partition and formated disk as Mac OS Extended (Journaled) over the Disk Utility in the first CD as normal without additional options (if I tried to format disk with zero all data and 8 way random write format after 3 days computer freeze)
    * I verified disk over this utility - that was ok - HFS volume verifed.
    * Then I restarted the computer and ran installation from this first CD
    What happened:
    * installation did not finish, because there were some problems during installation process.
    * i tried to customize installation just for essential work (without other languages support, printers etc), but it was still the same problem
    Installation log:
    After I choosed installation type, there was first error, but it did not look like important.. - root: bootstraplookup(): unknown error code
    Checking your installation disk - OK
    Preparing disk - OK
    Preparing base 1 and 2 - OK
    Other preparing.. - OK
    Processing Base System Part 1 - OK
    Processing Base System Part 2
    ==
    ERROR:Could not read archive file. - pax: Invalid header, starting valid header search.
    ERROR:Could not read archive file. - pax: Invalid header, starting valid header search.
    last message repeated 2 times
    ERROR:Could not write file. - pax: WARNING! These patterns were not matched:
    Some files for Essentials may not have been writen correctly.
    root: Installer[108] Exception raised during posting of notification. Ignored. exception: Some files for Essentials may not have been written correctly. (code 1)
    Install Failed
    Error detected
    Name: NSGenericException
    Reason: Some files for Essentials may not nave been written correctly. (code 1)
    ==
    It seems like a problem with reading some data from the CD, but during the installation checking of disk was ok.. maybe it can be problem with the cd-rom..? Or problem with data on cd-rom - I mean bad archive file..? But it is original CD.. What do you think??
    Thank you!

    Tomas,
    On THIS Page, locate your iMac model.
    From the Documents column, click on the appropriate number link.
    Using the info in the document that opens, locate the serial number of your iMac.
    On THIS Page, in the text field for Search Tech Specs, enter that serial number.
    Click on the model of iMac that appears.
    Post a link to the page that opens, or post the info requested below.
    Exactly which model iMac is it?
    What is the Processor speed?
    What size is the Hard Drive?
    How much Memory is installed?
    What type of internal Optical Drive does it have?
    Which version of OS, was the original Installed Software?
    ali b

  • Adobe 11 will not read my files.

    I have downloaded Adobe 11 several times, with and without the anti-virus set, and though it recognises my files Microsoft reports it had 'encountered a problem and is closing it down' when I try to open them.  When I restore the system to Adobe 9 it opens my old files but, obviously, not those in '11' format.  Any ideas?

    Well, it's like this.  Someone sends me some printed  information.  A bill.
    A report ,  It downloads.  I try  to open it and it tells me I need Adobe
    Reader 11 to do so and gives me a  link.  .  I download from the link.  It
    takes an age but in the  end it tells me I have successfully downloaded Adobe
    Reader 11. When I try to  open the file Microsoft tells me they have
    encountered a problem and are closing  it down.  When I try to open any of my
    saved Adobe Reader files I then  get the same message.  I have to use System
    Restore to get the facility of  Adobe Reader 9  back.  Then it opens my saved
    files again.
    In a message dated 04/11/2012 02:36:32 GMT Standard Time, 
    [email protected] writes:
    Re:  Adobe 11 will not read my files.
    created by Pat Willener (http://forums.adobe.com/people/pwillener)  in 
    Adobe Reader - View the full  discussion
    (http://forums.adobe.com/message/4821557#4821557)

  • Illustrator files cannot be opened: Could not read the file because an error has occurred.

    I cannot open some files from  Illustrator which contain PNG files placed. When I try to open the file, I get a message saying: "this png contains addtional data for Adobe fireworks, which will be discarded upon save." When I press "ok" I get the same screen again. When I press "cancel" I get: "coulld not read the file because an error has occured". I am currently working on a Mac Mavericks. Using Illustrator cc and Fireworks CS6.

    Eliana,
    If you have some file corruption, one thing often tried first is to create a new document and File>Place the (PDF contents, if any of the) corrupted one to see how much may be rescued that way.
    Here are some websites where you can see whether it can rescue the actual file, and if it can, you may pay for a subscription to have it done,
    http://www.recoverytoolbox.com/buy_illustrator.html
    http://markzware.com/adobe-software/fix-illustrator-file-unknown-error-occurred-pdf2dtp-fi le-recovery/
    http://www.illustrator.fixtoolbox.com/
    As far as I remember, the first one is for Win and the second one is for Mac, while the third one should be for both.
    Here are a few pages about struggling with it yourself:
    http://daxxter.wordpress.com/2009/04/16/how-to-recover-a-corrupted-illustrator-ai-file/
    http://helpx.adobe.com/illustrator/kb/troubleshoot-damaged-illustrator-files.html
    http://kb2.adobe.com/cps/500/cpsid_50032.html
    http://kb2.adobe.com/cps/500/cpsid_50031.html
    http://helpx.adobe.com/illustrator/kb/enable-content-recovery-mode-illustrator.html

  • Adobe Reader will not read pdf files on internet

    I have lastest version of Adobe reader on a new mac running OS 10 Maverick. This has latest safari (7.0.1) as my internet browser. My adobe reader reads pdf files already present on my desktop, but will not read pdf files from the internet even after I allow "trust" this site. Can anyone help me to resolve the issue please. Is it a bug that Adobe has not solved??

    Sorry if you did not understand my instructions.
    Regarding bullet point 4: Check Reader >Preferences > Internet > Web Browser Options> The blessed app should be " /Applications/Adobe Reader.app"
    You specified that you don't see the path, then it might be some problem in your installation.
    Please see the attached image and let me know what you see on your system.
    Regarding bullet point 5: Load PDF in Safari.
    This means open any PDFs in Safari web browser.
    Please make sure the below highlighted plug-ins are installed on your system by going to the specified path. And make sure the version of the below two plug-ins are 11.0.06. You can find the version by selecting the plugin and hit Command+i.
    Go to your Main Hard Disk/Library/ Internet Plug-Ins/ AdobePDFViewerNPAPI.plugin
    Go to your Main Hard Disk/Library/ Internet Plug-Ins/ AdobePDFViewer.plugin
    Please let me know if these help.
    Thank You

  • Why my device not read pdf-files in mail messages?

    Qq
    why my Nokia device not read pdf-file on mail message?

    What is the operating system on that device?
    Do you have Adobe Reader installed?
    What exactly means "not read"?

  • I have a problem with the mac can not read video files with the extension IMOD. How can I solve this problem?

    I have a problem with the mac can not read video files with the extension IMOD. How can I solve this problem?

    By doing a Google search. 

  • "could not read the file because the plug-in could not understand the file."

    "could not read the file because the plug-in could not understand the file."
    I keep getting this error when trying to open some of my illustrator files. Usually after trying 5 or 6 time it will mysteriously open without a problem. I've reinstalled Illustrator and that didn't work. I've uninstalled and reinstalled CS3 and that didn't work.
    Why does it sometimes open and sometimes not???
    I've lost I don't know how many hours screwing around with this and REALLY pissing me off!!!
    AURGH!

    I think this has something to do with the PNG plugin.

  • Whenever i try to download a rather large file i continue to get the "could not read source file" error. Tried new profile, uninstalling and looking for the compreg.dat file to delete nothing is working. Please help

    whenever i try to download a rather large file i continue to get the "could not read source file" error. Tried new profile, uninstalling and looking for the compreg.dat file to delete nothing is working. Please help

    Did you reinstall CS3 after CC?
    For that matter, doing an in-place upgrade on the OS is always a gamble with Adobe programs. Reinstalling all the versions you need, in order, would probably solve your problem.
    And you shouldn't need to save as IDML after opening the .inx in CC.

  • CS3 not reading xmp files generated in CS2.

    CS3 is not reading xmp files generated in CS2.
    If I open a raw file that was adjusted in ACR in PSCS2 with PSCS3 it does not recognize the adjustments that were made to the file.
    PSCS3 opens the file in ACR with the default settings and I lose all of the adjustments and crops.
    Is anyone else having this problem. If so: is their a fix or a stting I should use?

    First. make sure you have updated to Bridge 2.1.0.100.
    2nd, Purge the Cache from the TOOLS menu in Bridge.
    3rd, Delete and rebuild your Bridge preferences by holding down the Option key (Command+Option, or Command+Option+Shift work as well) immediately after launching the application.
    4th, if that doesn't work, make a fresh, new Mac account and log in as a different user.
    Then report back.

  • My program does not read raw files from mark III

    My program does not read raw files from mark III

    emac77,
    Support for Canon 5D MIII RAW files was announced in ACR 7.1 (Adobe Camera Raw 7.1).
    The current stable release is ACR 7.2 while ACR 7.3 is still a Release Candidate (Beta).
    Starting ACR 7.2, Adobe stopped supplying a manual download link which was available till 7.1. Adobe Application Manager (AAM) is the only way for you to update to ACR 7.2.
    However, here is a direct download link that AAM connects to for the download that you can use to grab the .zip or .dmg (Mac) file. Download and install. See if you're able to open your files then.
    ACR 7.2 for Windows: http://swupdl.adobe.com/updates/oobe/aam20/win/PhotoshopCameraRaw7-7.0/7.2.82/Setup.zip
    ACR 7.2 for Mac: http://swupdl.adobe.com/updates/oobe/aam20/mac/PhotoshopCameraRaw7-7.0/7.2.82/Setup.dmg
    -ST

  • My iTunes can not read a file, because its created by a newer

    My iTunes can not read a file, because it's created by a newer!!!
    The file is:     iTunes Library.itl
    I hope you can help me!!
    Bye tokiodrift

    You need to restore the pre-upgrade backup of the library file in the manner shown in  Empty/corrupt library after upgrade/crash.
    tt2

  • Photoshop CS4 will not read Raw files from Nikon D60. [was: No automatic updates for my PS CS 4  on windows (for reading .Nef files)?]

    Hi
    I have been using PS CS4 for several years.
    Yesterday, I went to PS CS4 help and selected "updates", but I get the message "There are not updates available at this time; Please note that some updates for the following products cannot be determined at this time: Adobe Updater".
    I need the updates because I just purchased a Nikon D60 and my Photoshop does not read the .NEF files produced by the camera.
    any idea, please?
    thanks

    I need the updates because I just purchased a Nikon D60 and my Photoshop does not read the .NEF files produced by the camera.
    Camera Raw plug-in | Supported cameras
    Camera Raw-compatible Adobe applications
    Do you really mean the Nikon D60 which shipped in 2008? Was it purchased secondhand?
    The Nikon D60 was first supported in Adobe Camera Raw 4.4.
    Photoshop CS4 ships with Camera Raw 5.0 so it can read D60 NEF files out of the box. No updates required.
    If you do mean the D60 then something else must be going on. e.g. are you using Nikon software to transfer files from camera to computer?

Maybe you are looking for

  • URL Error for all Webdynpro Aplication's

    Hi, i can nor run any webdynpro aplication und i recive follow Errorlog in "st11" in hostfile are 2 IP-adress registrated: 127.0.0.1       localhost 10.10.0.10      AFLAKI and all services are aktive. What can i do ? 14.07.2009                       

  • Messages in HOLDing status

    Hi Gurus, I have a problem with messages in XI. Some of them are in a HOLD status, some work fine. There is no reason why they should be in a HOLD status. I've checked SMQ1, SMQ2 - all clear. Is there I can do a, process these messages (they are now

  • Release memory for nested top-level classes

    Hello experts. I have a top-level class which consists of several static methods. Inside such a method I create several new instances of a nested top-level class inside my original class. Later I want to release one of these instances i.e. destroy in

  • GOS - Transaction xd03 or me5a

    How can I do to save the attachment from GOS toolbar (in transaction as XD03 or me5a) to my Content Server ? I've configured to save the attachment of Workplace in Content Server, but I need to do the same with transactions like XD03 or ME5A. Thank's

  • ABAP objects, drilling down into methods/parameter/method/parameter...

    Hello all, When creating or changing purchase orders using the enjoy transactions ME21N and ME22N, I want to force the users to have the same delivery address on every line item. I have found and activated the BADI ME_PROCESS_PO_CUST. I have added so