HTML object unable to load js file

I am using a html object to load a wysiwyg editor in an air app as follows:
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml">
     <mx:String id="text">
    <![CDATA[
        <html xmlns="http://www.w3.org/1999/xhtml">
        <head>
            <script type="text/javascript" src="com/company/editor/editor.js"></script>
        </head>
        <body>
            <script type="text/javascript">
                var editor = new Editor("{name}", "{width}", "{height}", "{toolbar}", "{value}");
                editor.Create()
            </script>
        </body>
        </html>
    ]]>
    </mx:String>
     <mx:Script>
        <![CDATA[
          private function htmlInit():void {
                text = text.replace("{name}", this.name);
                text = text.replace("{width}", this.width);
                text = text.replace("{height}", this.height);
                if (this.content == null) {
                    // for some reason there are times that at this stage content is null instead of a blank string
                    // even though I have set it to a blank string when intialized.
                    this.content = "";
                text = text.replace("{value}", (this.content.split("\n").join("")).split('"').join('\\"'));
                text = text.replace("{toolbarSet}", this.toolbarSet);
                _tmp = text;
                this.invalidateProperties();
            private var _tmp:String;
            override protected function commitProperties():void{
                if(_tmp){
                    html.htmlText = _tmp;
                    _tmp = null;
                super.commitProperties();
        ]]>
     </mx:Script>
     <mx:HTML id="html" creationComplete="htmlInit()" width="100%" height="250"/>
</mx:Canvas>
The problem I have is that if I have the application compiling the air package for flash 10.x.x (which is the default) it doesn't find the editor.js file and therefore "new Editor(...)" goes undefined and the page doesn't work.  If I then override the "target-player" option to 9.0.28 everything works.
Of course the editor.js file is in the correct subdirectory of the air package which corresponds to the entry in the signature.xml.
Any ideas of the cause and a way to get this to load in flash 10?
Thanks in advance
Matthew

Hi Praveen,
thats exactly what am i doing ,
File txtResource = new File("C://yourfile.txt");
if (txtResource.exists()) {
//Do your logic here
BufferedReader in =
                         new BufferedReader(
                              new java.io.FileReader("C:
yourfile.txt"));
But when  i read in as
String str=null;
while ((strLine = in.readLine()) != null)
in seems to be null. I am not able to solve this mystery . any ideas please pass me ..
thanks
Also my scheduler is not working as per behaviour . I scheduled it for every5minhour,
every10minhour, ..........every55minhour,everyfullhour .
But i had to restart EP for starting scheduler otherwise its not scheduling (even afer re-deploying) which is taking significant time for me to check any change. Any idea why its happening like ? if u have any idea on how to schedule it for every5min so that i can track changes please let me know.
thanks

Similar Messages

  • Quicktime: Unable to load nib file: MainMenu, exiting.

    Recently updated OS X to 10.6.8
    Ever since the upgrade, my system quicktime player is completely dead.   Will not launch, displays generic icon in the application folder.
    iMac:QuickTime Player.app ryan$ pwd
    /Applications/QuickTime Player.app
    iMac:QuickTime Player.app ryan$ ls
    Contents
    iMac:QuickTime Player.app ryan$ cd C*
    iMac:Contents ryan$ ls
    Info.plist    MacOS        Resources    _CodeSignature    version.plist
    iMac:Contents ryan$ cd M*
    iMac:MacOS ryan$ ls
    QuickTime Player
    iMac:MacOS ryan$ ./Q*
    2011-12-16 13:40:05.201 QuickTime Player[30859:903] Unable to load nib file: MainMenu, exiting
    iMac:MacOS ryan$
    I've run the repair permissions utility, within the disk utility several times on the volume.
    I've run the verify disk utility on the volume - no problems reported.
    No other application issues that I've noticed; only quicktime is broken.
    Not sure what to do next.   If it gave me a clue about which "nib" file it was after I could go check it.
    iMac:English.lproj ryan$ pwd
    /Applications/QuickTime Player.app/Contents/Resources/English.lproj
    iMac:English.lproj ryan$ ls -lrt
    total 0
    -rw-r--r--  1 root  wheel  5143 Aug  8 06:39 ExportRefMovieForWebTemplate.html
    -rw-r--r--  1 root  wheel   350 Aug  8 06:39 SaveForWebiFrameTemplate.html
    drwxr-xr-x  2 root  wheel   102 Aug  8 06:41 MGRemoteHUDView.nib
    iMac:English.lproj ryan$  cd *nib
    iMac:MGRemoteHUDView.nib ryan$ ls -lrt
    total 0
    -rw-r--r--  1 root  wheel  4208 Aug  8 06:39 keyedobjects.nib
    Am I missing files in that directory structure??

    Did you repair permissions & restart after the
    update?
    I tried repairing the permissions and QuickTime still failed to launch; however, I didn't think to restart the machine. But then I fired up TechTool and it found problems with the volume structure, repaired it, and all is good now. So I'm not sure if TechTool fixed the problem or if it was eventually restarting after repairing the permissions.

  • Unable to load prn file in LedgerLink

    I am working with HE641 and having to use LedgerLink to load files since there is some account translation. For some reason I am unable to load the file. This is through Citrix. During the load process, the files appears to load because the status bar appears to increment upward but when I look at Data Entry in the app, I can not see any results. Cany anyone help me with this?

    I had to get security to the translation file through Citrix.

  • Crystal Xcelsius is unable to load this file...  no upgrade 4.5 to 2008 :(

    Post Author: jezbraker
    CA Forum: Xcelsius and Live Office
    Anyone else having problems getting 4.5 files to open in 2008? I create a nice simple new xlf with a simple xls behind it and a just a grid component in 4.5, then try open the file in 2008 and i get... Crystal Xcelsius is unable to load this file. This file may be corrupt or have features that cannot be supported by this version of Crystal Xcelsius.im on the following versions...Version 4.5Application Version 4.2.4.3File Version 1.1.0.2Version 2008Application Version 5.0.0.99Build Number 12,0,0,121 I'm hoping that this is just a version issue with what was on ESD... the help file seem to suggest upgrade is simple so would but good to here of folks having sucess - and if so what versions your on thanks!jez.

    Post Author: jezbraker
    CA Forum: Xcelsius and Live Office
    well i hope thats the case... but its a bit strange that neither the beta versions i tested or this ESD version (its not very clear as to if its pre-release - nothing on the splashscreen/about to indicate its not the full thing) can open 4.5 files...  suggests that the beta did not cover backward compatability which is a bit concerning :(hopefully im just missing something simple!from the help file in the '08 version i have here...Xcelsius supports the ability to import a visualization created
    with Xcelsius 4.5. This import ability lets Xcelsius 4.5 customers upgrade their
    existing visualizations to take advantage of the new features of Xcelsius 2008.
    Backup your current XLF, JPEG, and external SWF files before upgrading your
    visualization.
    Note: Xcelsius 3.0, 3.5, and 4.0 files cannot be
    imported into Xcelsius 2008. To use these files in Xcelsius 2008 you must first
    import them into Xcelsius 4.5, then import the files into Xcelsius 2008.

  • I am  unable to load GRAPHIC files using the transaction SFP.

    I am  unable to load GRAPHIC files using the transaction SFP.
    The error message says that there is no connection to the below given url.
       http://<hostname:8000>/sap/bc/fp/
    is it something like i have to activate this service in transaction sicf ?

    Try http://<hostname:8000>/sap/bc/fp/!
    ! at the end ..
    Regards
    Juan

  • QuickTime fails to launch: "Unable to load nib file"

    QuickTime has decided today that it will no longer launch. When I look at the message generated in Console it says:
    "QuickTime Player[300] Unable to load nib file: MainMenu, exiting"
    This has been happening since I updated my copy of Fetch. I have tried reinstalling QuickTime but it hasn't helped.
    I am running QuickTime Pro 7.1.6 with DivX and Flip4Mac, both of which were installed some time ago and everything has been running fine until this morning.
    Any ideas what I should do next?
    Thanks.
    iBook G3   Mac OS X (10.3.9)   QuickTime Pro 7.1.6 with DivX and Flip4Mac 2.1.1.70

    Did you repair permissions & restart after the
    update?
    I tried repairing the permissions and QuickTime still failed to launch; however, I didn't think to restart the machine. But then I fired up TechTool and it found problems with the volume structure, repaired it, and all is good now. So I'm not sure if TechTool fixed the problem or if it was eventually restarting after repairing the permissions.

  • Mail Unable to load nib file: MailViewer

    Mail decided not to work. looking at the console I get:
    Mail Unable to load nib file: MailViewer, exiting
    I read somewhere that it might have gotten corrupted, and that therefore I need to reinstall. Is there an easy way to install just Mail in its latest version and not go through (likely outdated) pkg installers? Even better, any other way of solving this problem?
    Many thanks in advance.
    Ivan

    I would say you have a serious issue with your hard drive. Consider doing a format with zero all data options enabled, and see if it pass. You might also consider buying some advanced disk repair utility to test (and repair ?) the drive (TechTool, DiskWarrior or Drive 10).
    Is there an (windows burnable) image "updated rescue disk"?
    No, the restore disk comes with each machine and is to keep in safe place.
    Use it to reinstall your system and apply the Mac OS Update via Software Update or using the same combo update.
    Why reward points ?

  • Xcelsius is unable to load this file.It may be corrupt or have features

    Hi All,
               While i am opening XLF file i got bellow message:
    "Xcelsius is unable to load this file.It may be corrupt or have features that are supported by this version of Xcelsius"
    i m unable to open that file .I lost whole thing.so can any one help me how to resolve this problem.
    Regards,
    Ramana

    Hi,
    Which version of xcelsius you are using now !
    The file which you are trying to  open may be created in higher version of xcelsius
    So upgrade to latest version and try.
    Before opening xcelsius check if EXcel.exe is running from taskmanager -->processes
    if that is runnning end the process.
    @sri

  • Xcelsius is unable to load this file problem because the file is corrupt

    Hi me name is Luis Diego and im working in a dashboard.
    The first time i update  the file was ok. After that the file start to send me the next message:
    "Crystal Xcelsius is unable to load this file. The file may be corrupt or have features cannot be supported by this version of Crystal Xcelsius."
    I try to open the file in other computers and in that computers the file was open it. All the computers have the professional version 4.5 so do i.
    I reinstall the Crystal Xcelsius in my computer because i thought that the problem was a wrong install in the first time. But after i reinstall the software the problem doesnt go away.
    So i need the help of someone to fix this.
    Thank you for any help that can bring me.
    Regards
    Luis Diego Sancho Morera

    I suggest you purchase a case and have a dedicated support engineer work with you directly:
    http://www.sdn.sap.com/irj/boc/gettingstarted
    Or
    http://store.businessobjects.com/store/bobjects/Content/pbPage.CSC_map_countyselector/pgm.67024400?resid=jFmmLgoBAlcAAALO-iYAAAAP&rests=1278687224728

  • Safari unable to load nib file?

    I have a user who when they click to start Safari the icon bounces once and does not start.
    I found the crash log that says this,
    5/13/14 2:26:32 PM
    com.apple.launchd[68]
    ([0x0-0x29029].com.apple.Safari[172]) Exited with exit code: 1
    5/13/14 2:26:52 PM
    Safari[174]
    Unable to load nib file: MainMenu, exiting
    5/13/14 2:26:52 PM
    Safari[174]
    Unable to load nib file: MainMenu, exiting
    5/13/14 2:26:52 PM
    com.apple.launchd[68]
    ([0x0-0x2a02a].com.apple.Safari[174]) Exited with exit code: 1
    5/13/14 2:26:52 PM
    com.apple.launchd[68]
    ([0x0-0x2a02a].com.apple.Safari[174]) Exited with exit code: 1
    5/13/14 2:27:37 PM
    com.apple.launchd[68]
    (0x10a1d0.Locum[180]) Exited: Terminated
    I dont know what this means or how to fix it.
    We had a power outage when the user was in Safari.
    OSX 10.5.8
    Safari 5.0.6
    Thanks for your help
    SS

    They need to reinstall Safari : Safari 5.0.6 for Leopard
    although other applications & OS components may also have been affected.

  • Unable to load multiple files to Essbase using MaxL and wildcards

    I have multiple data files to load:
    Files:
    Filename.txt
    Filename_1.txt
    Filename_2.txt
    According to the following link, Essbase is able to load multiple files to BSO databases via MaxL by using wildcards:
    http://docs.oracle.com/cd/E17236_01/epm.1112/esb_tech_ref/frameset.htm?launch.html
    However, when I try to run the following I receive the following error:
    MaxL:
    import database MyApp.DB data from server text data_file "../../MyApp/Filename*.txt" using server rules_file "L_MyRule" on error append to "\\Server\Folder\L_MyRule.err";
    Error:
    ERROR - 1003027 - Unable to open file [DB01/oracleEPM/user_projects/epmsystem2/EssbaseServer/essbaseserver1/app/MyApp/DB/../../Filename*.txt].
    ERROR - 1241101 - Unexpected Essbase error 1003027.
    I can run the following fine without any problem, but this only deals with the first of several files, and I’d rather not hard-code multiple files since the number might vary in the future:
    MaxL:
    import database MyApp.DB data from server text data_file "../../MyApp/Filename.txt" using server rules_file "L_MyRule" on error append to "\\Server\Folder\L_MyRule.err";
    Any ideas? And how about ASO databases?

    JamesD wrote:
    According to the following link, Essbase is able to load multiple files to BSO databases via MaxL by using wildcards:
    http://docs.oracle.com/cd/E17236_01/epm.1112/esb_tech_ref/frameset.htm?launch.html
    That is the tech ref for 11.1.2.2, are you on 11.1.2.2?
    Import Data
    11.1.2.2 - http://docs.oracle.com/cd/E17236_01/epm.1112/esb_tech_ref/frameset.htm?maxl_imp_data.html
    11.1.2.1 - http://docs.oracle.com/cd/E17236_01/epm.1112/esb_tech_ref_1112100/frameset.htm?maxl_imp_data.html
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • 3.1.2 Import Objects - How To Load a File into BI-IP

    I am looking for the transport files.
    Does anyone know if the Maintenance Optimizer has to be used in order to download the files, that contain the custom objects that Marc developed, into the customer's transport directory?
    Message was edited by:
            John Morris

    Hi Marc,
    I have been working with our Basis team, and we are still unable to locate the files.  I am replying on their behalf.
    We’ve read through OSS note 13719, and understand the process of extracting the data and cofiles to the /usr/sap/trans directory.  We are having difficulty finding the ZIP file which contains these files.  We’ve looked on SDN, and also on sapserv4.  Is there a specific location that this file can be downloaded from?
    Thanks for your help,
    John

  • Unable to load swf files in flash

    Hi,
    since creating all the animation in one flash file will
    produce a big file i tried to split and create small flash files
    and load these files in the main flash movie using the image and
    swf loader component.
    eg.
    main.swf, sub1.swf, sub2.swf.
    In the main swf , buttons are created to load sub1.swf and
    sub2.swf.
    The action script on button 1 is
    on (release) {
    //Movieclip GotoAndStop Behavior
    this.gotoAndStop("sub1");
    //End Behavior
    where sub1 is frame label. the image loader loads the
    sub1.swf file starting from this label. Everything works fine
    locally but the swf files are not loading when i test in my server
    or remotely.
    can anyone please help
    thanx in advance

    I am also having a problem with action scripts. I upload
    everything and still get the error message how can I solve this
    problem? It's killing me.

  • Unable to load php file into native window..

    Hi Guys,
    Im using flash cs3 as my development environment. what i was trying to do is creating a small login application using Air. I must say im still a newbie to flash air. as far as my login system concern i have managed following tasks,
    1. send username ans password using post and validate through php
    2. get the result back to flash application and open up a new native air window if the login is success.
    3. close the login window.
    now what i want to do is load my PHP application inside that newly open native window. How can i do it. I tried using Loader() method but it only worked for images not for php or html files.
    heres how I tried to use the loader method,
    var url:String = "http://localhost/Flash/login/welcome.php";
    var fileLoader:Loader = new Loader();
    fileLoader.load(new URLRequest(url));
    win.stage.addChild(fileLoader);
    This failed.
    Does anyone know how to load a PHP file into a Native window? Your help highly appreciate it.
    Just in case for the people who wants to know who I did the above mentioned tasks heres the code,
    Posting data to PHP server
    function sendLoginData() {
         if(txtUserName.text=='')
              txtBox.text = 'Username is empty';
         else if(txtPassword.text=='')
              txtBox.text = 'Password is empty';
         else
              var variables:URLVariables = new URLVariables();
              variables.UserName = txtUserName.text;
              variables.Password = txtPassword.text;
              var request:URLRequest = new URLRequest("http://localhost/Flash/login/login.php"); 
              var loader:URLLoader = new URLLoader(); 
              loader.dataFormat = URLLoaderDataFormat.TEXT; 
              request.data = variables; 
              request.method = URLRequestMethod.POST; 
              loader.addEventListener(Event.COMPLETE, handleComplete); 
              loader.addEventListener(IOErrorEvent.IO_ERROR, onIOError); 
              loader.load(request);
    Handdle the returned data
    function handleComplete(event:Event):void
         var variables:URLVariables = new URLVariables(event.target.data); 
         if(variables.errorcode==0)
              var url:String = "http://localhost/Flash/login/welcome.php";
              try {                             
                   //Native window
                   var options:NativeWindowInitOptions = new NativeWindowInitOptions();
                   options.systemChrome = NativeWindowSystemChrome.STANDARD;
                   options.transparent = false;
                   options.maximizable=false;
                   var win:NativeWindow = new NativeWindow(options);
                   win.title = 'welcome page';
                   //win.width = 900;
                   //win.height = 900;
                   /*var fileLoader:Loader = new Loader();
                   fileLoader.load(new URLRequest(url));
                   win.stage.addChild(fileLoader);*/
                   win.maximize();
                   win.activate();
                   stage.nativeWindow.close();
              } catch (e:Error) {
                trace("Error occurred!");
         else
              txtBox.text = 'Invalid logins';
    function onIOError(event:IOErrorEvent):void
         trace("Error loading URL."); 
    PHP code
    <?php
    $username = addslashes($_POST['UserName']);
    $password = addslashes($_POST['Password']);
    //do your database checking here. this is an example
    if($username=='niroshan' && $password=='123456')
         echo "errorcode=0"; 
    else
         echo "errorcode=1"; 
    ?>
    Call the function when pressing the submit
    cmdButton.addEventListener(MouseEvent.CLICK,readySendLoginData);
    function readySendLoginData(evt:MouseEvent){    
      sendLoginData();
    Thanks,
    best regards,
    Niroshan

    Thats right, HTMLLoader should solve the issue as Loader used for JPEG, PNG OR GIF files loading as per my knowledge

  • Unable to load properties file from filesystem

    Hi,
    I have a client swing-applicatiion packaged in a jar-file. The application uses some resource files, including a xxxx.properties file to set defaults for the application. All resource files are included in the jar file and everything works as expected. I load the xxxx.properties file as follows:
    is_ = getClass().getResourceAsStream("/resources/xxxx.properties");
    Because it is not possibl to change any property values inside the jar-file without recreating this jar-file, i want to exclude the xxxx.properties file from the jar-file and put it in the folder containing the jar-file.
    So i have:
    drive:/folder/app.jar
    drive:/folder/xxxx.properties
    Now i read the xxxx.properties file from disk in stead of the 'resouce'-folder within my application (jar):
    is_ = getClass().getResourceAsStream("drive:/folder/xxxx.propoerties");
    but it doesn't work, the file isn't found.
    What am i missing here?
    Any suggestions?

    The best way to approach this is to include the properties file in the Jar as you originally did. If the user changes any property, save the entire set of properties to a sub-directory of user.home (perhaps based on the package name of the main class). Check for the copy in user.home before using the 'default' properties built into the Jar.
    Other places/ways to store the changed information.
    - java.util.prefs.Preferences
    - Assuming the app. has a GUI and can be deployed over a network, the JNLP API PersistenceService. Here is a demo. of the PersistenceService (http://pscode.org/jws/api.html#ps).
    Edit 1:
    I did not at first notice that this post was in Java Applet Development.
    <li> Applets can also (theoretically) use cookies to store information. This is prone to failure when users disable cookies.
    <li> To store information on the local file system (e.g. in user.home) or to use Preferences (AFAIU) would require trusted code.
    <li> If the user has the Next Generation Java Plug-In (Java 1.6.0_10+) it is possible to leverage the JNLP API services in an embedded & sand-boxed applet.
    Edited by: Andrew Thompson on Feb 1, 2011 9:32 AM

Maybe you are looking for

  • Reading Each String From a text File

    Hello everyone..., I've a doubt in File...cos am not aware of File.....Could anyone plz tell me how do i read each String from a text file and store those Strings in each File...For example if a file contains "Java Tchnology forums, File handling in

  • Using packages breaks batch file

    Hi there, I wonder if anyone can help me here. I've been continuing work on somebody else's previous project, and everything is fine except for the batch file used to run the program from non development. I decided to use Eclipse to develop as oppose

  • What does a * mean for checktable in dd03l?

    I  am looking at dd03l, there is a column checktable which tells the check table For the filedname in a given table tabname. I have seen following values in checkable: 1. Blank u2013 no check table 2. A table name such T005, it is the check table nam

  • No amount tolerance entered for company code

    Hi, I am trying to Post G/L account using F-02. I am getting following error 'No amount tolerance entered for company code xxxx' Can anyone help me on this? Note: I have already defined tolerence group. Thanks, Shalini

  • D'weaver:Access Denied when attempting to save files-HELP!

    This is driving me nuts. Here are some specs: -Using Dreamweaver CS3 -I am logging in as administrator on IIS6 -Been using a network mapped directory to accesss files (always worked before) -Tried setting up RDS (get error <h1>Bad Request (Hostname i