New Window, HTMLLoader.loadString image problem

Hello,
I woudl like to load an image into a new window which I create, the image is accessable via the main application e.g. app:/images/notificationbg.png After creating the new window, the text and everything appears fine, but the image fails to load, I have tried not making it a background image and used <img src="images/notificationbg.png"> just to test it but still no luck.
////////////////////// Create Window /////////////////////
var options = new air.NativeWindowInitOptions();
            options.transparent = false;
            //transparent windows must have the systemChrome set to none
            options.systemChrome = air.NativeWindowSystemChrome.NONE;
            options.type = air.NativeWindowType.LIGHTWEIGHT;
            this.htmlLoader = air.HTMLLoader.createRootWindow(
                    false, //hidden
                    options,
                    false, //no scrollbars
                    bounds
////////////////////// Load the Image /////////////////////
this.htmlLoader.loadString("<html>" +
"<head><style type=\"text/css\">#notify { background: url('images/notificationbg.png') no-repeat; }</style></head>" +
"<body><div id=\"notify\" style=\"width: 200px; height: 62px; padding-top: 34px; padding-left: 45px;\">"+this.template+"</div></body>"+                       "</html>");
Any help would be much appreciated!
Thanks,
Andrew

Add the following code before you call loadString():
            htmlLoader.placeLoadStringContentInApplicationSandbox = true;
By default, content added via loadString() is not in the application security sandbox (and it cannot load images from the application directory). By setting this property to true, loadString() content is placed in the application security sandbox.
For more information, see the property's description in the language reference:
http://help.adobe.com/en_US/AIR/1.5/jslr/flash/html/HTMLLoader.html#placeLoadStringContent InApplicationSandbox

Similar Messages

  • Flash player locks up IE on new Windows 7 (64) Image deployed by SCCM

    I created a new Windows 7 Image and deployed it by using SCCM.
    When in Windows 7 Audit mode I install the latest version of flash player and all the other apps we use.
    After the image is done and deployed you can log in as administrator and everything seems great at first.
    The problem is when you create an additional local account on the machine OR join it to a domain any additional profiles can't use IE.
    We have traced it to flash player. IE just freezes and hangs for about 3-5 mins on any flash player website.
    The only work around is we reinstall flash player afterwards. At that point Flash is fixed and works fine for anyone logged in.
    It's gotten to the point when I might have to exclude flash from my image and just install it later when a computer is deployed.
    IE version doesn't matter, it has the same response with IE8 or 9
    Any ideas?

    http://forums.adobe.com/message/5067997#5067997
    http://helpx.adobe.com/flash-player/release-note/fp_116_air_36_release_notes.html
    I suspect the 11.6 release will fix this up for you.
    Thanks,
    Chris

  • How do i open a new window? serial communication problem

    I am trying to make a serial communication interface, with changeable settings,
    but i wanted it to be that the settings to be openend in a new window, how am i able to do that.
    I tried to make a separate subvi, but unable to do that, here is my explanation in images and the vi files.
    -Just a student-
    Attachments:
    LVTerm.vi ‏50 KB

    Hello Nandha,
    SubVI's can be created by selecting the part that you want in the subVI and than select "create subVI" from the "Edit" menu.
    Or cut the selected part and open a new VI and paste in the code. Then you have to connect all the controls and indicators to your connector pane. To do this right click the icon in the upper right corner and "Show connector". Select a pattern that has enough connectors, my personal favorite is the 4x4x4. Select the wire tool and select a connector and then the control or indicator you want to connect. Try to keep controls to the left and indicator to the right.
    Now you have to figure out when you want to show the settings window. Is it necessary that the communication goes on during manipulation of the settings?
    Kind regards,
    André
    Regards,
    André
    Using whatever version of LV the customer requires. (LV5.1-LV2012) (www.carya.nl)

  • Make a new window repeat the image?

    I have an image that I want to tile seamlessly. So I do the offset-thing and clone it. What I want to do now is to open a new window with the same image (Window > Arrange > New Window) for filename.ext and then tile the windows (Arrange > Tile), but then also make the new window to repeat the image so that I can see the edits I make reflect in the repeated image so I can get rid of unwanted patterns. I hope I'm not too vague about my question! Thanks!

    antevante wrote:
    Thank you for your answers! I didn't quite get it to work the way I wanted though.
    Can I somehow get my left window to show my image in a non-tiled state so that I can edit it while my right window shows the same image but tiled and zoomed out and updates when I make the edits in my left window? It's a bit of a pain in the *** to edit my image, then copy it and pasting it in an array. Then going back and editing, array again. This is a hassle even with an action. There's maybe other texturing applications for this kind of workflow but I thought I was so close with the New Window-feature in PS
    For the updating part you can use smart objects. There is one time setup that is more involved but then you can use this as a template for any future work.
    I just did that myself and described the steps:
    Create a canvas with a size that will fit perfectly many squares for example 1000 x 1000 to fit 100 squares with the size 100 x 100.
    On a new layer at the top left corner create a 100 x 100 square with any color or image.
    Right click on the layer with the square in the layer's palette and choose Convert to Smart Object.
    Hold Alt and drag the layer on top of itself 9 times to have total of 10 copies of the layer.
    On the canvas, make sure there is no selection, and with the Move tool drag one of the overlapping squares snapping it to the top right of the canvas (this is easy if Snap to Document Bounds is checked in the View > Snap to menu).
    In the layers palette Shift click the first and last layers to select all layers with the square.
    Make sure the Move tool is selected and in its options at the top of the screen click the "Distribute Horizontal Centers" button (the third from the right side).
    While all layers are still selected in the layers's palette, press Ctrl + G to group them.
    Duplicate  and distribute the group vertically in the same way you duplicated the squares but using "Distribute Vertical Centers" button instead. However, Alt+ drag a group doesn't work on a document with nothing but a single group, and I had to duplicate the first group by right clicking on it and choosing Duplicate. Then you can Alt + drag and drop between Groups.
    If you whish, while all groups are selected press Ctrl + Shift + Group, to ungroup and then Ctrl + Group to have all squares organized in one group and that's  basically it with the initial setup.
    Now edit a tile and update the image.
    In the layer's palette, double click the icon of any of the smart layers with a square and this will open the square in its own window.
    Change, create or paste new image on the image of that window and when you Save this will update all tiles in the other window.
    Also in case you don't know, when you are editing the square of the smart layer, you can use Filters > Others > Offset with Horizontal and Vertical set to 50 pixels and for the Undefined Areas, check Wrap Around. to help you with creating a seamless tile. It creates seamless borders and all you have to do is eliminate the seams in the middle with the cloning or painting tools.

  • I open Firefox and nothing responds, no bookmarks, nothing unless I open a new window. Since this problem I have pop up adds on my desktop from Castrol, fifa!

    I don't think its a virus, I have done so many virus scans and I can't tell what is going wrong. I have uninstall and reinstall firefox to have this problem still happening. The only difference I have applied on firefox sometime before this problem, is installing a skin, which I have never done since installment. I realize there was a problem when the skin fails to show and there is a blank green space where the skin would be displayed. I have since (with the problem) have pop up adds from Fifa 2014, Castrol GTX and others, mostly in Spanish. I don't understand why as I have AVG installed. I googled the problem and I have yet to find out why this is happening on my computer.

    Hello,
    Safe Mode is a special Firefox mode that can be used to troubleshoot and fix problems. Safe Mode temporarily resets some settings and disables add-ons that might be causing problems. By comparing Firefox behavior in normal mode to its behavior in Safe Mode you may be able to pinpoint the cause of the problem.
    [[Troubleshoot Firefox issues using Safe Mode]]

  • Force firefox to open links in a new window

    How can I force firefox to open a link in a new window? Right now it opens the link in the same window, no matter how I configure the settings. Frustrating.
    Thanks

    Firefox does not have a built-in setting to open all links in a new window. Normally, you would need to hold down the Shift key when clicking the link (Shift+click) or use right-click > Open Link in New Window.
    You may be able to find an add-on that adds this feature. I know there are various add-ons to open links in a ''new tab'', but I don't know about a new window.
    If the problem is particular to Google search results, there is a setting in Google itself to switch the links from same window to new window. That can be found on the search preferences page:
    https://www.google.com/preferences#nwc
    This preference is saved in a cookie, so if you clear cookies often, then you would need to revisit that page often.

  • Thumbnail to open in new window

    Hi im really new to flash and I need to find out if its possible to click on a thumbnail and the image opens up in a new window? the image I have is not uploaded onto the web or anything like that. If it is possible can someone tell me how I can do it? I cant seem to find help anywhere

    You would have to load the image to the web in order for it to be opened in a new browser window.

  • I try to open a picture in a new window but it dose not work

    i went on to fan site and i saw a pic and i click on what normarly happings is that firefox opens a new window for the image but it just is not happing

    You can rename (or delete) the mimeTypes.rdf file in the Firefox profile folder to reset all file actions.
    *http://kb.mozillazine.org/mimeTypes.rdf
    *http://kb.mozillazine.org/File_types_and_download_actions#Resetting_download_actions
    You can use this button to go to the currently used Firefox profile folder:
    *Help > Troubleshooting Information > Profile Directory: Show Folder (Linux: Open Directory; Mac: Show in Finder)

  • New window everytime when submit button clicked in JSF

    Hi all,
    I am facing an issue where I need to popup a new window everytime the submit button on my JSF form is clicked.
    I have tried several methods but none is working to my purpose.
    1. Add a target="_blank" attribute in the JSF form. The problem is that even if any of my ValuechangeListeners get invoked, the page is rendered in a new window. My ValuechangeListeners work on onchange="submit()".
    2. Invoke a new window from javascript and name the window as say" new" . Also name the form's target as "new" but this does not generate a new window everytime and also problem 1 persists.
    3. If i use actionlistener and onclick event on button in the form, then the new page is rendered in both current page and new window.( javascript for new window is written).
    What I need is when a person clicks on submit button in the form, a new window should always popup up and the page should be rendered in the new window. The original form should remain as it is so that a user can again do a submit and get a new window.
    Please suggest.

    devayani wrote:
    Thanks all for the replies.
    Try onchange="this.form.target='_self';submit();"This works fine if all the valuechangelisteners are invoked. Suppose,if I dont select the radio
    button and dont select any values in list box. Now if i click submit, since the target=_blank,
    the page giving validation errors (for not selecting the list box)
    renders in a new page. As expected behavior, not my solution.
    If you need validation to remain in the same window (and that seems like the best for the user experience you have described), then delay the creation of the new window until after the request finishes. I.e., your page should always go back on itself. Under the right conditions (which you can set in your action method) it conditionally writes JavaScript which targets the new window.
    >
    Try returning false from the onclick event.I had tried it long back, so I just messed it up while writing, there were no actionlisteners.
    sorry about my third solution, lets consider solution 2 as below:
    Javascript
    <script type="text/javascript" >
         function newWindow(){
              window.open('','mywindow','width=400,height=200');
              return false;
         </script>
    JSF
    <h:form id="Frm_New" target="mywindow">     
    <h:commandButton id="btn_submit" disabled="false"             
                  action = "#{TestBean.submitValues}"
                  value="#{bundle.SC_SUBMIT}"
                  onclick ="newWindow()">But again this approach has above problems and also no new window everytime. For new window you said:
    Append a time stamp or random number to
    the end of the window name.This solution will not work as I have to reset the target for my form everytime to this new window name.You can remember the name of the window if necessary. Although you seem to be changing things on the fly; earlier the problem was you didn't get a new window every time. Or are you just confused on how to set the target?
    onclick="var wname = getWindowName(); createNewWindow(wname); this.form.target = wname; return true;">
    I was trying to actually set the target of the form as _blank at runtime during one of the phases of JSF lifecycle ( by using phaselistener). Although its not working as of now. Does this sound a good approach
    This is because I dont think that setting it on jsf would work as the page rendering on a new window( in my case) not only depends on clicking the submit button only but it depends on whether the user is done with all vaildations and now has to see the final result into new window.This would be addressed by the conditional JavaScript solution above.

  • When a pop up window comes up it is - search bookmarks and history window! I cannot log into my bank as login button should open new window to log in but I get the search page. I cannot see larger images as again I get the search bookmarks and history pa

    When a pop up window comes up it is - search bookmarks and history window! I cannot log into my bank as login button should open new window to log in but I get the search page. I cannot see larger images as again I get the search bookmarks and history page etc. Happens on all options that should open new page. I am so frustrated, this has been happening since Firefox updated itself 2 days ago to Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 ( .NET CLR 3.5.30729; .NET4.0C) was fine before that. using windows vista. Can you please advise what I should do? Also can you go back to previous version? Error console eg
    Warning: Error in parsing value for 'cursor'. Declaration dropped.
    Source File: https://ib.nab.com.au/nabib/styles/menu_nab.css?id=009
    Line: 116
    ib.nab.com.au : server does not support RFC 5746, see CVE-2009-3555 and Warning: Selector expected. Ruleset ignored due to bad selector.
    Source File: https://ib.nab.com.au/nabib/styles/nabstyle.css?id=014
    Line: 837
    == This happened ==
    Every time Firefox opened
    == 2 days ago after update.

    Do you have that problem when running in the Firefox SafeMode?
    [http://support.mozilla.com/en-US/kb/Safe+Mode]
    ''Don't select anything right now, just use "Continue in SafeMode."''
    If not, see this:
    [http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes]

  • When I use yahoo images and i open an image in a new window, it tweakes out firefox so that panes are distorted and exerything, the whole firefox browser looks like an F5 tornado took it apart and lumped it on my desktop... is this a known glitch?

    When I use yahoo images and open an image in a new window, the page, once I click its tab causes the entire browser to scramble graphically, making it nearly impossible to navigate further. I right-clicked and selected close tab. That regains the visual clarity of the browser. But how can I fix this to browse the images?

    Phillipp,
    I tried it again using "save link as", and this time it actually worked! I just now downloaded several more using the "save link as" option, and it works perfectly. Thanks. Problem solved.
    Littleberry

  • When I have video clips on my timeline, they do not play in the monitor screen. I hear the sound track but can not see the image. To test if my new files are somehow the problem, I went back and used video files that I used successfully a year ago, and th

    When I have video clips on my timeline, they do not play in the monitor screen. I hear the sound track but can not see the image. To test if my new files are somehow the problem, I went back and used video files that I used successfully a year ago, and they no longer play in the monitor window. I hear the sound track, but do not see any video. Have I changed some setting that controls video playback in the monitor window?

    Randy Ruttger
    Thanks for the follow up.
    Missing in this equation were the version of Premiere Elements that you were using and the computer operating system on which it was running. But...
    The deed is done. But.....Until now and after you went ahead and moved to version 12, we now learn what version of Premiere Elements you were using. We still do not know the computer operating system involved.
    You just said Premiere Elements 10. Premiere Elements 10 is hit by a serious known display issue if the computer uses a NVIDIA GeForce video card/graphics card. In this issue, the only remedy is to roll back the driver version to about May 2013. The description of the problem and how to do the roll back are described in one of the Announcements at the top of this forum. What video card/graphics card does your computer use?
    On another front, Adobe will be releasing a new version of Premiere Elements any day now. No one but Adobe knows the feature set for the new version. That type of information is announced at the moment of release of the new version.
    So the remedy to the problem that you presented in this thread could have been...
    1. Rolling back the NVIDIA GeForce driver version to about May 2013 if possible (Windows 8 or 8.1 64 bit, may not be possible)
    2. Move to another version of Premiere Elements (which you did)
    I offer the above for consideration so that you can review your decisions. We are pleased to learn that Premiere Elements 12/12.1 works for you.
    Please do not hesitate to ask questions and ask for clarifications, but remember that the answers are in the details.
    Best wishes,
    ATR

  • Problems installing update PS CS5 on new Windows 7 laptop w/ prior PS vers. already installed

    Hi,
    When I first got my new Windows 7 laptop, I tried loading PSCS5 onto it, but since it was an update disk, and previous versions weren't there, it didn't load. I finished my work during a 30-day trial period on a recent sabatical, I uninstalled it and all PS files except images saved, and have now gone through the following process in attempt to load it:
    1) Loaded PS 6.0 from a CD and serial number that I own--no problems
    2) Loaded PS CS2 from a CD and serial nuimber I own--no problems
    3) Loaded PSCS5 from an update CD also purchased, and got an error message saying something about CS4 needing to be uninstalled before CS4 could be properly loaded.
    Puzzling because A: I never loaded CS4, and B: was not trying to. So I uninstalled everything conceivably troubling from Adobe, even Flash Player, Patch files, but not ASA or Adobe Download Helper. Some Adobe files left behind I deleted and emptied the recycle bin and restarted over several different times. To my knowledge, my CS5 has only been used on one other computer. Do I need to de-activate it on the other one? I don't find it on a 3rd computer, but if it was simply uninstalled, without de-activation, would I need to re-install it to deactivate it on the 3rd one. I'm hoping somebody can help me tell how many computers have CS5 activation.
    Now, I've tried simply loading the CS2 disk and going to the PSCS5, and that failed, so I re-did steps 1-3 after purging also Lightroom3 and DreamWeaver CS3, thinking something from them might've been the culprit (though they earlier loaded flawlessly after a de-activation of DW on another computer). This time the Adobe Support box came up and after searching the system or whatever, said 'no problems could be found', and that I should contact Adobe Support. No FAQ's address this problem and a scan of forums was not helpful. So here I am.
    Any ideas? If it is lack of a Registry entry, it would be helpful to know exactly which one and how precisely to get it and patch that into Windows 7 for those of us who are not IT geeks. I'm guessing this might be a recurrent issue and it would be helpful to simply have that code to patch in, if it is known.
    Otherwise, I'm stuck using CS2, which while OK, is not CS5.
    All my Adobe products have been purchased originally purchased and activated by me.
    Thanks for any help,
    Michael J Kissane

    Hi Jeff,
    After reading your mail, I've un-installed the previous versions now
    (both 6.0 and CS2), including manually some files listed as
    impossible to uninstall under the PS 6.0 wizard (Adobe Program files
    x86, something). I restarted the computer (Lenovo running Windows 7
    Home Premium).
    I then tried to run the PS CS5 Upgrade disk directly and it failed
    with suggestion to go to the ASA, which said quickly "Inspection
    could not identify any issues. Please contact Adobe Support for
    further assistance"... and the website for same.
    I recall I did get a box with a request for the qualifying
    prerequisite's serial when I first tried this in December, but not
    having that on hand and after failing (I believe I even tried getting
    serials from 'My Adobe' resource) I punted and went for the trial
    period to finish my project. The rest I've written about in my forum posting.
    I'm hoping info from Maggie_8 from the forum
    http://forums.adobe.com/message/3880631#3880631 may get me through
    it. Otherwise, I don't know if I can save what's on the new laptop to
    an external HD and start all over after back tracking to a previous
    point (this was possible in older Windows OS, I recall, but one lost
    anything not saved elsewhere as the clock was turned back, so to speak)
    Frustrating...I had problems with Adobe Reader, too, and I hope I've purged it.
    Will persevere, but without wasting eons of time. Other fish to fry
    and all that...
    -Mike

  • Any way to open new browser window without using image maps?

    Is there any way to open new browser window without using image maps? My code works fine in Firefox, but not in IE. There are 2 problems in IE: 1st is that the thumbnail images move up within their own borders & 2nd that when you click on an image it does open up a new browser window, but also redirects to the index page (in this case it's just a placeholder index page - the new one I've called index_new.html for the time being).
    Here is the link:
    http://www.susieharperdesigns.com/gallery_beads.html
    Any help is greatly appreciated.

    Your missing a value on the HREF.  In your code you have this:
    <area shape="rect" coords="-24,-9,106,144" href=" " onclick="MM_openBrWindow('gallery_bead1.html','','width=255,height=360')" />
    </map></div>
    and it should be this:
    <area shape="rect" coords="-24,-9,106,144" href="javascript:void()" onclick="MM_openBrWindow('gallery_bead1.html','','width=255,height=360')" />
    </map></div>
    If you fix the code on all your beads, it should work.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • Image in gallery - new window

    http://thebeautyroomashby.co.uk/gallery.html
    Used contentflow.js and have now finally got this gallery displaying how I want.
    Just one quick question, I was wondering if anyone knew how to overcome as I can't seem to figure it out:
    It says you can open the image in a new window (at the moment you can only open it in the same window and only when the image is in the centre (which is perfect as you need to be able to click through the gallery))
    I tried both bits of code at the bottom of this page: http://www.jacksasylum.eu/ContentFlow/docu.php
    but the problem is because it makes the images a link when you do this, you can't click through the gallery (you have to use the scroll, which is not what I want!) - so i want it to only open the image in a new windown when it's in the centre.
    I had a scroll through the js sheet but wasn't sure what I was looking at... surely as it already only opens when the image is in the centre, there must be a setting that just changes it from same to new/blank window?
    Regards
    L

    I'm not sure if there is an easier way to do it in JavaScript. However, in the link tag of each photo you can set
    target="0"
    for example:
    <canvas src="entrance.jpg" width="207" height="207" class="content landscape" target="0" title="Beauty Room Entrance" origproportion="1.5"></canvas>

Maybe you are looking for