HTMLLoader, main application window and scrollbars

If I instantiate HTMLLoader with "new HTMLLoader.createRootWindow()," scrollbars show up correctly when text overflows the set width and height. I can add it to the stage, but I'm still left with an empty popped up native window
If I instantiate HTMLLoader with simply "new HTMLLoader()," you can add it to the stage, but it doesn't include scrollbars when the window overflows with text.
What I want to do is incredibly simple - create a new HTMLLoader instance, have as part of my main application's stage, and get the benefit of the built-in scrollbars.  Why is that so difficult?

OK - my problem with the HTML Control is I can't seem to add it to a child custom class.
i.e. - I have my main Air app and a custom class extending UIComponent. I add the custom class to the stage in the main app, and in the custom class, add an HTML Control.  I'm also adding a different HTML Control to the main app.
Only the HTML in the main app actually shows up. No errors given. What am I missing here?
Main Air app mxml:
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()">
<mx:Script>
<![CDATA[
import mx.controls.HTML;
var _myComp:Comp;
private function init():void {
_myComp = new Comp();
_myComp.init();
_myComp.x = 200;
_myComp.y = 200;
addChild(_myComp)
var html:HTML = new HTML();
html.htmlText = "Text on main application window"
addChild(html);
]]>
</mx:Script>
</mx:WindowedApplication>
Comp Class:
package {
import flash.display.Shape;
import mx.controls.HTML;
import mx.core.UIComponent;
public class Comp extends UIComponent {
public function Comp() {
public function init():void {
var shape:Shape = new Shape()
shape.graphics.beginFill(0,1)
shape.graphics.drawRect(0,0,200,400);
shape.graphics.endFill();
addChild(shape)
var html:HTML = new HTML();
html.htmlText = "Text Inside child component";
html.x = 200
this.addChild(html);
trace(html.htmlText)

Similar Messages

  • Where are my screens!!??? All my task windows work but the main application window where I Can see my work is missing!

    All my task windows work but the main application window where I Can see my work is missing!
    Help Me!
    I have two operational websites that I can't acces!

    Try the following:
    delete the iWeb preference files, com.apple.iWeb.plist and com.apple.iWeb.plist.lockfile, that resides in your Home() /Library/Preferences folder.
    go to your Home()/Library/Caches/com.apple.iWeb folder and delete its contents.
    Click to view full size
    launch iWeb and try again.
    If that doesn't help continue with:
    move the domain file from your Home/Library/Application Support/iWeb folder to the Desktop.
    launch iWeb, create a new test site, save the new domain file and close iWeb.
    go to the your Home/Library/Application Support/iWeb folder and delete the new domain file.
    move your original domain file from the Desktop to the iWeb folder.
    launch iWeb and try again.
    OT

  • How to change the style of the main application window shell

    Hello,
    I am migrating my application from eclipse 3.x to eclipse 4.3 and I want to set the style of the main application window i.e. the shell that is created in application MTrimmedWindow in e4.
    Earlier we were doing it using
    IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
    configurer.setInitialSize(new Point(0, 0));
    configurer.setShowCoolBar(false);
    configurer.setShowStatusLine(false);
    configurer.setShellStyle(SWT.DIALOG_TRIM | SWT.RESIZE);
    But now in e4 application after reading some forum replies I got to know that custom renderer needs to be created for that.
    I created my own renderer extending WBWRenderer and as I wanted to change the style of shell I am overriding createWidget method.
    Now the problem is that if I am just creating a new shell in this createWidget method then it is not working. Might be because this method has a lot of other code also.
    So I copied all this code into my overridden method of createWidget & just changed the style of shell according to my need. Then this worked but for this I have to put some private methods also into my custom renderer class from WBWRenderer.
    SO my question is to confirm that if I am doing it in a right way?
    or is there any other mechanism to do this in a more efficient way?
    Thanks

    This can now be solved with a specific "persisted state" key flag, as documented in https://bugs.eclipse.org/bugs/show_bug.cgi?id=386951 . For example to realize a NO_TRIM window, add the key/value styleOverride/8, where 8 is the value if you get the numeric of
    int val = SWT.NO_TRIM;
    System.out.println(val);
    Hey Zugi: Liebe Grüsse! Master UIBK/2010

  • Close main application window in WD for Java

    Hi there,
    Is there anyway I can close the main application window(not popup) programatically.
    I tried calling the exit plug in the interface view controller, but doesnt seem to close the window automatically.
    I am having 2 components, one calling the other..
    Any help will be greatly appreciated.
    Many Thanks
    lm

    Hi LM,
    Check Re: Close the parent window especialy Nibu`s suggestion.
    <i>
    1) In your Interface view, create an exit plug with a parameter Url of type string.
    2) Add your Interface view controller to your current view's required controller. (in properties tab of your view)
    3) After opening the new External window fire the outbound plug as :
    wdThis.wdGet<your interface view controller>().wdFirePlug<your exit plug's name>("javascript:void(window.close())");
    </i>
    It should work for you.
    Best regards, Maksim Rashchynski.

  • What happend when i am minimizing a Jframe (main application window)

    i notice something weird in my Swing application
    i am tracking the "Windows task manager" and i see that
    when i minimize the main frame and
    the memory reduces
    maximizing the application back make the memory go back again
    bet using less memory this time
    how come ?
    thank you

    [Bug ID #4412569|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4412569]
    Closed as "Not a Defect." It was/is a Window's quirk. Native applications (ex: Notepad or MSPaint) should do the same thing on your computer.

  • WD ABAP: close main application window without logging off

    Hi all,
    I need to fire a url (like www.yahoo.com) when a button in a popup window is pressed. The popup as well as the main window need to be closed but not logged off. I was able to close the popup but not the main window.  What are the steps in doing it and if u could provide the code too, it would be helpful. 
    Thanks,
    Sravanthi

    Hi Sravanthi,
    Yes, this is possible by using the suspend/resume functionality. More information can be found here:
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/63a47dd9-0b01-0010-3d8e-de27242bf011">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/63a47dd9-0b01-0010-3d8e-de27242bf011</a>
    Best regards,
    Thomas

  • HTMLLoader and Scrollbars

    I've been following the lynda.com AIR for Flash Devs
    tutorial. It shows how to add the Scrollbar Class to an HTMLLoader.
    Is it just me, or is Adobe's Scrollbar a rather odd
    implementation?
    I mean it works, but, for instance, the scroll handle you
    grab with your mouse is always much much smaller than it should be
    when compared to the actual content.
    Also, I have the stage resizing and the scrollbars moving
    properly, but I've noticed that resizing the app smaller, always
    forces the scrollbar to appear, regardless of the content being
    larger than the content area or not.
    Is everyone using this implementation for scrolling, or are
    people using something else?

    OK - my problem with the HTML Control is I can't seem to add it to a child custom class.
    i.e. - I have my main Air app and a custom class extending UIComponent. I add the custom class to the stage in the main app, and in the custom class, add an HTML Control.  I'm also adding a different HTML Control to the main app.
    Only the HTML in the main app actually shows up. No errors given. What am I missing here?
    Main Air app mxml:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()">
    <mx:Script>
    <![CDATA[
    import mx.controls.HTML;
    var _myComp:Comp;
    private function init():void {
    _myComp = new Comp();
    _myComp.init();
    _myComp.x = 200;
    _myComp.y = 200;
    addChild(_myComp)
    var html:HTML = new HTML();
    html.htmlText = "Text on main application window"
    addChild(html);
    ]]>
    </mx:Script>
    </mx:WindowedApplication>
    Comp Class:
    package {
    import flash.display.Shape;
    import mx.controls.HTML;
    import mx.core.UIComponent;
    public class Comp extends UIComponent {
    public function Comp() {
    public function init():void {
    var shape:Shape = new Shape()
    shape.graphics.beginFill(0,1)
    shape.graphics.drawRect(0,0,200,400);
    shape.graphics.endFill();
    addChild(shape)
    var html:HTML = new HTML();
    html.htmlText = "Text Inside child component";
    html.x = 200
    this.addChild(html);
    trace(html.htmlText)

  • Close Window (main application) in 2004s

    Hi,
    I have a webdynpro application (developed in 2004s)  where I have a close button. When user clicks close button, I simply need to close the browser.
    I tried using javascript:void(window.close())" as exit plug parameter from interface view still throws me an exception  com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Invalid URL=javascript:void(window.close())
    Is there any way to close the main application window.
    Thanks for your time and help.
    Best Regards,
    Shiva

    Hi,
    Go thru the below steps. Here u need to create a html file to close the main window.
    1. In your component's interface view, create an exit plug. Name it as - ExitPlug.It's type as "Exit".
    2. Create a paramater for this exit plug. Name this parameter "Url". It should be exactly like the same name.
    3. In your view add the interface view as a required controller.
    4. Create your HTML file. Let's say you call it Static.html.
    <html>
    <head>
    <script langauage="javascript">
    function closeWin(){                    window.close();     
    </script>
    </head>
    <body onload="javascript:closeWin();">     </body></html>
    5. Save this in the mimes folder for your DC under your package. You do this from the navigator view.
    6. Now use the following code:
    try {String url = WDURLGenerator.getAbsoluteWebResourceURL(wdComponentAPI.getComponent().getDeployableObjectPart(),"Static.html");wdThis.wdGet<your component name>InterfaceViewController().wdFirePlugExitPlug(url);} catch (WDURLException e) {}
    For more information go thru Re: JavaScript in WD link.

  • I need help identifying and removing annoying gadget that shows all open windows and applications when I mouse over a corner.

    It seemed like a good idea at the time. Some time ago I installed a gadget (doesn't seem to be an item in my Applications folder) which, when I mouse-over the lower-left corner of my screen, brings up a screen showing reduced-size versions of all open application windows and Finder windows. I've tried to identify what it is, and where it is located, so I can remove it, but to no avail.
    I'd really appreciate any help getting rid of this thing. Thanks!

    Hi Paul,
    Check System Preferences>Accounts (Users & Groups in later OSX versions)>Login Items window to see if it or something relevant is listed.
    Check the System Preferences>Other Row, for 3rd party Pref Panes.
    Check the System Preferences>Keyboard>Keyboard Shortcuts.

  • I updated to 3.6.22 on my Mac, and am getting pop-up windows opening. They are hiding behind the main brower window. I have blocked pop-ups in my preferences, its still happening.

    I recently updated to 3.6.22 on my Mac, and for the first time ever, am getting pop-up windows opening with various spam-type ads and sites. They are typically hiding behind the main brower window, and I first figured it out when one of them had audio a few days ago. I have blocked pop-ups in my preferences, and it is still happening. Can you advise please?

    I recently updated to 3.6.22 on my Mac, and for the first time ever, am getting pop-up windows opening with various spam-type ads and sites. They are typically hiding behind the main brower window, and I first figured it out when one of them had audio a few days ago. I have blocked pop-ups in my preferences, and it is still happening. Can you advise please?

  • Removing AddressBar, StatusBar from Default Application Window

    Hi,
    I want to hide address bar from default application window!
    This application would be triggered from a link in another (web dynpro / non-web dynpro) application.
    And user should not be able to see where he is gets navigated.
    So, is there anyway we can hide address bar from default application window of a Web Dynpro application?
    Please help.
    Thanks and regards,
    Amey Mogare

    Hi Naga,
    I already tried this code. But what it does is, it opens same window as new window in main application window.. so on screen I see two windows.. one parent window with URL clearly seen and 2nd child window which doesn't have address bar
    So this is not as I need.
    Are you getting my point?
    Thanks and regards,
    Amey Mogare

  • Best Practice in regards to adding showing SkinnablePopUp from the Main application file of Mobile A

    Hello,
    I want to display a SkinnablePopUp when the user presses the back key when the current view is the first view to ask if he wants to quit.
    The logic (checking if the key pressed was the back key && the current view is the first view) is in the main application file and if those two conditions are true then the exit() method is called.
    I want to show the confirmation popup. Should I move all that in the first view mxml component or is it OK to instantiate the SkinnablePopUp in the main app file?
    Thank you.

    so do I, or did, well still do but less than before
    it seems best practice is to seperate mxml and AS3
    have a look at this
    http://tv.adobe.com/watch/max-2010-develop/flexactionscript-30-architecture-and-dependency -injection-frameworks-overview/

  • Show component from main application mxml.

    Hi all,
         I have a main application mxml and inside has a button named show_form. After that, I design an form named Form_A. And now, I want when click on show_form button fire the Form_A and made it appear.
         Hown can I do this ?
         Thanks !

    There are many ways of doings this, it depends how your forms are shown.
    Are they in a ViewStack or similar container? If so just change the view from the click handler function for the button.
    If they are in a Canvas/HBox/VBox, in the click handler function of the button you can do a check like if Form_A.visible==true then submit it and hide it, else submit the other form. You can also have a variable that tracks if Form_A was submitted.
    If you have code, post it here and we can find the best solution with a clear example in front.

  • How to restrict "Open Applications" window from showing C drive? Or use the Windows Explorer "Open" Window?

    Hi, Im new to JDeveloper and I work in a school which requires restriction of the C: Drive. Does any one know how I can either stop the "Open Applications" dialog from showing this drive or Use the Windows Explorer "Open" dialog window to browse files, the drive has been hidden and restricted using GPO but JDeveloper shows the C: drive?
    Any help is much appreciated.

    Hi and thanks Timo. We are using 12c. On the Windows side of things, we are using Win7 and we have hidden the drives we don't want the user to see using GPO but obviously Jdev then shows these drives in its "Open Applications" Window and allows access. As far as the environmental variable is concerned this is something that I put in place.
    Many thanks for your reply and the link to the tech doc.
    Nigel

  • Window style/behaviour of main B1 window

    Hi
    Unfortunately (why ever?!?), SAP did not use the default style for the main B1 windows and it always stays blue as when it has the focus even if it does not. This is very annoying and even does not adhere to common Windows programming.
    Can I somehow change this behavior and have classical windows like appearance of the main B1 window?
    Franz

    Jeyakanthan A wrote:
    > Franz,
    >
    > It's normal behaviour of windows,You can check it in
    > following path.
    >
    > Right Click>Display Properties>Apperance
    >
    > Active Window(Blue)-->Inactive Window(Grey).
    >
    >
    > Jeyakanthan
    No it is not the normal behavior of windows. Active windows are colored, inactive windows aren't colored.The SAP main window always is colored. Why or why not, i dont know.
    How to change ? I think it is not possible to change, cause normaly window behavior is linked / compiled to the lib or exec´s. U see SAP is not linked to the libs for window behavior of i.e. WinXP, or something like that. It is the only way for explain the phenomenon.

Maybe you are looking for

  • IPhone 5 and iPad 3 not being recognized by iTunes

    I have tried this: [url]http://support.apple.com/kb/TS1591[/url] and this: [url]http://support.apple.com/kb/ht1747[/url] and this: [url]http://www.apple.com/support/iphone/assistant/itunes/#section_7[/url] I have tried different usb cables and ports

  • Sessionstore.js file pop-ups for download, then disappears

    My prob is related to this one https://support.mozilla.org/en-US/questions/967691 but it is a bit different. I didn't notice if MF uploads without any reason (I don't observe this till now) but a .js file popped up for download all of a sudden until

  • Drag and drop stopped working

    I have a windows PC with windows 7 I am using iTunes 10 everything was working fine yesterday and then suddenly, when I try to drag and drop items from iTunes to my iPod classic I am unable to do so If I select the songs to drag and hover over the pl

  • Where is my favorite effect on keynote09?

    Hi all, since upgrading to KN09 I noticed my favorite 2D transition effect, droplet, is mo longer available in the drop down list. Anybody know if it can be retrieved somehow? Thx Rezf

  • 1/2 a screen now...help

    I now have 1/2 a screen with a black bar going down the side..help someone, please